2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
962 TRAY_MONITOR_CPPFLAGS
1052 ac_subst_files='MCOMMON'
1053 ac_precious_vars='build_alias
1071 # Initialize some variables set by options.
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1083 program_transform_name=s,x,x,
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1121 # If the previous option needs an argument, assign it.
1122 if test -n "$ac_prev"; then
1123 eval $ac_prev=\$ac_option
1129 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1133 # Accept the important Cygnus configure options, so we can diagnose typos.
1135 case $ac_dashdash$ac_option in
1139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142 bindir=$ac_optarg ;;
1144 -build | --build | --buil | --bui | --bu)
1145 ac_prev=build_alias ;;
1146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147 build_alias=$ac_optarg ;;
1149 -cache-file | --cache-file | --cache-fil | --cache-fi \
1150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151 ac_prev=cache_file ;;
1152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154 cache_file=$ac_optarg ;;
1156 --config-cache | -C)
1157 cache_file=config.cache ;;
1159 -datadir | --datadir | --datadi | --datad)
1161 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162 datadir=$ac_optarg ;;
1164 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165 | --dataroo | --dataro | --datar)
1166 ac_prev=datarootdir ;;
1167 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169 datarootdir=$ac_optarg ;;
1171 -disable-* | --disable-*)
1172 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178 eval enable_$ac_feature=no ;;
1180 -docdir | --docdir | --docdi | --doc | --do)
1182 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183 docdir=$ac_optarg ;;
1185 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188 dvidir=$ac_optarg ;;
1190 -enable-* | --enable-*)
1191 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197 eval enable_$ac_feature=\$ac_optarg ;;
1199 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201 | --exec | --exe | --ex)
1202 ac_prev=exec_prefix ;;
1203 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205 | --exec=* | --exe=* | --ex=*)
1206 exec_prefix=$ac_optarg ;;
1208 -gas | --gas | --ga | --g)
1209 # Obsolete; use --with-gas.
1212 -help | --help | --hel | --he | -h)
1213 ac_init_help=long ;;
1214 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215 ac_init_help=recursive ;;
1216 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217 ac_init_help=short ;;
1219 -host | --host | --hos | --ho)
1220 ac_prev=host_alias ;;
1221 -host=* | --host=* | --hos=* | --ho=*)
1222 host_alias=$ac_optarg ;;
1224 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 htmldir=$ac_optarg ;;
1230 -includedir | --includedir | --includedi | --included | --include \
1231 | --includ | --inclu | --incl | --inc)
1232 ac_prev=includedir ;;
1233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234 | --includ=* | --inclu=* | --incl=* | --inc=*)
1235 includedir=$ac_optarg ;;
1237 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240 infodir=$ac_optarg ;;
1242 -libdir | --libdir | --libdi | --libd)
1244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245 libdir=$ac_optarg ;;
1247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248 | --libexe | --libex | --libe)
1249 ac_prev=libexecdir ;;
1250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251 | --libexe=* | --libex=* | --libe=*)
1252 libexecdir=$ac_optarg ;;
1254 -localedir | --localedir | --localedi | --localed | --locale)
1255 ac_prev=localedir ;;
1256 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257 localedir=$ac_optarg ;;
1259 -localstatedir | --localstatedir | --localstatedi | --localstated \
1260 | --localstate | --localstat | --localsta | --localst | --locals)
1261 ac_prev=localstatedir ;;
1262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264 localstatedir=$ac_optarg ;;
1266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269 mandir=$ac_optarg ;;
1271 -nfp | --nfp | --nf)
1272 # Obsolete; use --without-fp.
1275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276 | --no-cr | --no-c | -n)
1279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285 | --oldin | --oldi | --old | --ol | --o)
1286 ac_prev=oldincludedir ;;
1287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290 oldincludedir=$ac_optarg ;;
1292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295 prefix=$ac_optarg ;;
1297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298 | --program-pre | --program-pr | --program-p)
1299 ac_prev=program_prefix ;;
1300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302 program_prefix=$ac_optarg ;;
1304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305 | --program-suf | --program-su | --program-s)
1306 ac_prev=program_suffix ;;
1307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309 program_suffix=$ac_optarg ;;
1311 -program-transform-name | --program-transform-name \
1312 | --program-transform-nam | --program-transform-na \
1313 | --program-transform-n | --program-transform- \
1314 | --program-transform | --program-transfor \
1315 | --program-transfo | --program-transf \
1316 | --program-trans | --program-tran \
1317 | --progr-tra | --program-tr | --program-t)
1318 ac_prev=program_transform_name ;;
1319 -program-transform-name=* | --program-transform-name=* \
1320 | --program-transform-nam=* | --program-transform-na=* \
1321 | --program-transform-n=* | --program-transform-=* \
1322 | --program-transform=* | --program-transfor=* \
1323 | --program-transfo=* | --program-transf=* \
1324 | --program-trans=* | --program-tran=* \
1325 | --progr-tra=* | --program-tr=* | --program-t=*)
1326 program_transform_name=$ac_optarg ;;
1328 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331 pdfdir=$ac_optarg ;;
1333 -psdir | --psdir | --psdi | --psd | --ps)
1335 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339 | -silent | --silent | --silen | --sile | --sil)
1342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 sbindir=$ac_optarg ;;
1348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350 | --sharedst | --shareds | --shared | --share | --shar \
1352 ac_prev=sharedstatedir ;;
1353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 sharedstatedir=$ac_optarg ;;
1359 -site | --site | --sit)
1361 -site=* | --site=* | --sit=*)
1364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367 srcdir=$ac_optarg ;;
1369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370 | --syscon | --sysco | --sysc | --sys | --sy)
1371 ac_prev=sysconfdir ;;
1372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374 sysconfdir=$ac_optarg ;;
1376 -target | --target | --targe | --targ | --tar | --ta | --t)
1377 ac_prev=target_alias ;;
1378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379 target_alias=$ac_optarg ;;
1381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1384 -version | --version | --versio | --versi | --vers | -V)
1385 ac_init_version=: ;;
1388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391 { echo "$as_me: error: invalid package name: $ac_package" >&2
1392 { (exit 1); exit 1; }; }
1393 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394 eval with_$ac_package=\$ac_optarg ;;
1396 -without-* | --without-*)
1397 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400 { echo "$as_me: error: invalid package name: $ac_package" >&2
1401 { (exit 1); exit 1; }; }
1402 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403 eval with_$ac_package=no ;;
1406 # Obsolete; use --with-x.
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1423 -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425 { (exit 1); exit 1; }; }
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433 { (exit 1); exit 1; }; }
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1438 # FIXME: should be removed in autoconf 3.0.
1439 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 { echo "$as_me: error: missing argument to $ac_option" >&2
1451 { (exit 1); exit 1; }; }
1454 # Be sure to have absolute directory names.
1455 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456 datadir sysconfdir sharedstatedir localstatedir includedir \
1457 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458 libdir localedir mandir
1460 eval ac_val=\$$ac_var
1462 [\\/$]* | ?:[\\/]* ) continue;;
1463 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466 { (exit 1); exit 1; }; }
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1474 target=$target_alias
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478 if test "x$build_alias" = x; then
1479 cross_compiling=maybe
1480 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481 If a cross compiler is detected then cross compile mode will be used." >&2
1482 elif test "x$build_alias" != "x$host_alias"; then
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490 test "$silent" = yes && exec 6>/dev/null
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 { echo "$as_me: error: Working directory cannot be determined" >&2
1497 { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499 { echo "$as_me: error: pwd does not report name of working directory" >&2
1500 { (exit 1); exit 1; }; }
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505 ac_srcdir_defaulted=yes
1506 # Try the directory containing this script, then the parent directory.
1507 ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509 X"$0" : 'X\(//\)[^/]' \| \
1510 X"$0" : 'X\(//\)$' \| \
1511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1535 ac_srcdir_defaulted=no
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540 { (exit 1); exit 1; }; }
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1544 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545 { (exit 1); exit 1; }; }
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557 for ac_var in $ac_precious_vars; do
1558 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559 eval ac_env_${ac_var}_value=\$${ac_var}
1560 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1565 # Report the --help message.
1567 if test "$ac_init_help" = "long"; then
1568 # Omit some internal or obsolete options to make the list less imposing.
1569 # This message is too long to be a string in the A/UX 3.1 sh.
1571 \`configure' configures this package to adapt to many kinds of systems.
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE. See below for descriptions of some of the useful variables.
1578 Defaults for the options are specified in brackets.
1581 -h, --help display this help and exit
1582 --help=short display options specific to this package
1583 --help=recursive display the short help of all the included packages
1584 -V, --version display version information and exit
1585 -q, --quiet, --silent do not print \`checking...' messages
1586 --cache-file=FILE cache test results in FILE [disabled]
1587 -C, --config-cache alias for \`--cache-file=config.cache'
1588 -n, --no-create do not create output files
1589 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1591 Installation directories:
1592 --prefix=PREFIX install architecture-independent files in PREFIX
1593 [$ac_default_prefix]
1594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1602 For better control, use the options below.
1604 Fine tuning of the installation directories:
1605 --bindir=DIR user executables [EPREFIX/bin]
1606 --sbindir=DIR system admin executables [EPREFIX/sbin]
1607 --libexecdir=DIR program executables [EPREFIX/libexec]
1608 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1609 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1610 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1611 --libdir=DIR object code libraries [EPREFIX/lib]
1612 --includedir=DIR C header files [PREFIX/include]
1613 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1614 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1615 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1616 --infodir=DIR info documentation [DATAROOTDIR/info]
1617 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1618 --mandir=DIR man documentation [DATAROOTDIR/man]
1619 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1620 --htmldir=DIR html documentation [DOCDIR]
1621 --dvidir=DIR dvi documentation [DOCDIR]
1622 --pdfdir=DIR pdf documentation [DOCDIR]
1623 --psdir=DIR ps documentation [DOCDIR]
1629 --x-includes=DIR X include files are in DIR
1630 --x-libraries=DIR X library files are in DIR
1633 --build=BUILD configure for building on BUILD [guessed]
1634 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1638 if test -n "$ac_init_help"; then
1643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1645 --enable-libtool enable building using GNU libtool [default=yes]
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=no]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-includes enable installing of include files [default=no]
1652 --disable-nls do not use Native Language Support
1653 --disable-rpath do not hardcode runtime library paths
1654 --enable-gnome enable build of bgnome-console GUI [default=no]
1655 --enable-bat enable build of bat Qt4 GUI [default=no]
1656 --enable-bwx-console enable build of wxWidgets console [default=no]
1657 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1659 --enable-smartalloc enable smartalloc debugging support [default=no]
1660 --enable-lockmgr enable lock manager support [default=no]
1661 --enable-static-tools enable static tape tools [default=no]
1662 --enable-static-fd enable static File daemon [default=no]
1663 --enable-static-sd enable static Storage daemon [default=no]
1664 --enable-static-dir enable static Director [default=no]
1665 --enable-static-cons enable static Console [default=no]
1666 --enable-client-only build client (File daemon) only [default=no]
1667 --enable-build-dird enable building of dird (Director) [default=yes]
1668 --enable-build-stored enable building of stored (Storage daemon)
1670 --disable-conio disable conio support [default=no]
1671 --enable-ipv6 enable ipv6 support [default=yes]
1672 --disable-readline disable readline support [default=yes]
1673 --enable-batch-insert enable the DB batch insert code [default=no]
1674 --disable-largefile omit support for large files
1675 --disable-acl disable acl support [default=auto]
1676 --disable-xattr disable xattr support [default=auto]
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-pic try to use only PIC/non-PIC objects [default=use
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1686 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1687 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1688 --without-libintl-prefix don't search for libintl in includedir and libdir
1689 --with-included-gettext use the GNU gettext library included here
1690 --with-qwt[=DIR] specify qwt library directory
1691 --with-readline[=DIR] specify readline library directory
1692 --with-python[=DIR] Include Python support. DIR is the Python base
1693 install directory, default is to search through a
1694 number of common places for the Python files.
1695 --with-tcp-wrappers[=DIR]
1696 enable tcpwrappers support
1697 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1698 --with-working-dir=PATH specify path of Bacula working directory
1699 --with-archivedir=PATH specify path of SD archive directory
1700 --with-basename=RESNAME specify base resource name for daemons
1701 --with-scriptdir=PATH specify path of Bacula scripts directory
1702 --with-bsrdir=PATH specify path of Bacula bsrs directory
1703 --with-logdir=PATH specify path of Bacula logs directory
1704 --with-plugindir=PATH specify path of Bacula plugins directory
1705 --with-dump-email=EMAIL dump email address
1706 --with-job-email=EMAIL job output email address
1707 --with-smtp-host=HOST SMTP mail host address
1708 --with-pid-dir=PATH specify location of Bacula pid files
1709 --with-subsys-dir=PATH specify location of Bacula subsys file
1710 --with-baseport=PORT specify base port address for daemons
1711 --with-dir-password=PASSWORD
1712 specify Director's password
1713 --with-fd-password=PASSWORD
1714 specify Client's password
1715 --with-sd-password=PASSWORD
1716 specify Storage daemon's password
1717 --with-mon-dir-password=PASSWORD
1718 specify Director's password used by the monitor
1719 --with-mon-fd-password=PASSWORD
1720 specify Client's password used by the monitor
1721 --with-mon-sd-password=PASSWORD
1722 specify Storage daemon's password used by the
1724 --with-db-name=DBNAME specify database name [default=bacula]
1725 --with-db-user=UNAME specify database user [default=bacula]
1726 --with-db-password=PWD specify database password [default=*none*]
1727 --with-db-port=DBPORT specify a database port [default=null]
1728 --with-dir-user=USER specify user for Director daemon
1729 --with-dir-group=GROUP specify group for Director daemon
1730 --with-sd-user=USER specify user for Storage daemon
1731 --with-sd-group=GROUP specify group for Storage daemon
1732 --with-fd-user=USER specify user for File daemon
1733 --with-fd-group=GROUP specify group for File daemon
1734 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1735 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1736 base install directory, [default=/usr/local/pgsql]
1737 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1738 directory, default is to search through a number of
1739 common places for the MySQL files.
1740 --with-embedded-mysql[=DIR]
1741 Include MySQL support. DIR is the MySQL base install
1742 directory, default is to search through a number of
1743 common places for the MySQL files.
1744 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1745 install directory, default is to search through a
1746 number of common places for the SQLite3 files.
1747 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1748 install directory, default is to search through a
1749 number of common places for the SQLite files.
1750 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1751 directory, default is to search through a number of
1752 common places for the DBI files.
1753 --with-dbi-driver[=DRIVER]
1754 Suport for DBI driver. DRIVER is the one DBI driver
1755 like Mysql, Postgresql, others. Default is to not
1756 configure any driver.
1757 --with-x use the X Window System
1759 Some influential environment variables:
1760 CC C compiler command
1761 CFLAGS C compiler flags
1762 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1763 nonstandard directory <lib dir>
1764 LIBS libraries to pass to the linker, e.g. -l<library>
1765 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1766 you have headers in a nonstandard directory <include dir>
1767 CXX C++ compiler command
1768 CXXFLAGS C++ compiler flags
1770 WXCONFIG wx-config command. On some systems, you must set it to
1771 wx-config-2.6 to use wxWidgets 2.6.
1772 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1773 CXXCPP C++ preprocessor
1774 XMKMF Path to xmkmf, Makefile generator for X Window System
1776 Use these variables to override the choices made by `configure' or to help
1777 it to find libraries and programs with nonstandard names/locations.
1783 if test "$ac_init_help" = "recursive"; then
1784 # If there are subdirs, report their specific --help.
1785 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1786 test -d "$ac_dir" || continue
1790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1793 # A ".." for each directory in $ac_dir_suffix.
1794 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1795 case $ac_top_builddir_sub in
1796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1800 ac_abs_top_builddir=$ac_pwd
1801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1802 # for backward compatibility:
1803 ac_top_builddir=$ac_top_build_prefix
1806 .) # We are building in place.
1808 ac_top_srcdir=$ac_top_builddir_sub
1809 ac_abs_top_srcdir=$ac_pwd ;;
1810 [\\/]* | ?:[\\/]* ) # Absolute name.
1811 ac_srcdir=$srcdir$ac_dir_suffix;
1812 ac_top_srcdir=$srcdir
1813 ac_abs_top_srcdir=$srcdir ;;
1815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1816 ac_top_srcdir=$ac_top_build_prefix$srcdir
1817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1821 cd "$ac_dir" || { ac_status=$?; continue; }
1822 # Check for guested configure.
1823 if test -f "$ac_srcdir/configure.gnu"; then
1825 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1826 elif test -f "$ac_srcdir/configure"; then
1828 $SHELL "$ac_srcdir/configure" --help=recursive
1830 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1832 cd "$ac_pwd" || { ac_status=$?; break; }
1836 test -n "$ac_init_help" && exit $ac_status
1837 if $ac_init_version; then
1840 generated by GNU Autoconf 2.61
1842 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1843 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1844 This configure script is free software; the Free Software Foundation
1845 gives unlimited permission to copy, distribute and modify it.
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1853 It was created by $as_me, which was
1854 generated by GNU Autoconf 2.61. Invocation command line was
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 echo "PATH: $as_dir"
1906 # Keep a trace of the command line.
1907 # Strip out --no-create and --no-recursion so they do not pile up.
1908 # Strip out --silent because we don't want to record it for future runs.
1909 # Also quote any args containing shell meta-characters.
1910 # Make two passes to allow for proper duplicate-argument suppression.
1914 ac_must_keep_next=false
1920 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1922 | -silent | --silent | --silen | --sile | --sil)
1925 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1928 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1930 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1931 if test $ac_must_keep_next = true; then
1932 ac_must_keep_next=false # Got value, back to normal.
1935 *=* | --config-cache | -C | -disable-* | --disable-* \
1936 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1937 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1938 | -with-* | --with-* | -without-* | --without-* | --x)
1939 case "$ac_configure_args0 " in
1940 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1943 -* ) ac_must_keep_next=true ;;
1946 ac_configure_args="$ac_configure_args '$ac_arg'"
1951 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1952 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1954 # When interrupted or exit'd, cleanup temporary files, and complete
1955 # config.log. We remove comments because anyway the quotes in there
1956 # would cause problems or look ugly.
1957 # WARNING: Use '\'' to represent an apostrophe within the trap.
1958 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1959 trap 'exit_status=$?
1960 # Save into config.log some information that might help in debugging.
1965 ## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##
1970 # The following way of writing the cache mishandles newlines in values,
1972 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1973 eval ac_val=\$$ac_var
1977 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1978 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1981 _ | IFS | as_nl) ;; #(
1982 *) $as_unset $ac_var ;;
1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988 *${as_nl}ac_space=\ *)
1990 "s/'\''/'\''\\\\'\'''\''/g;
1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002 ## ----------------- ##
2003 ## Output variables. ##
2004 ## ----------------- ##
2007 for ac_var in $ac_subst_vars
2009 eval ac_val=\$$ac_var
2011 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 echo "$ac_var='\''$ac_val'\''"
2017 if test -n "$ac_subst_files"; then
2019 ## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##
2024 for ac_var in $ac_subst_files
2026 eval ac_val=\$$ac_var
2028 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 echo "$ac_var='\''$ac_val'\''"
2035 if test -s confdefs.h; then
2045 test "$ac_signal" != 0 &&
2046 echo "$as_me: caught signal $ac_signal"
2047 echo "$as_me: exit $exit_status"
2049 rm -f core *.core core.conftest.* &&
2050 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2053 for ac_signal in 1 2 13 15; do
2054 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2058 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2059 rm -f -r conftest* confdefs.h
2061 # Predefined preprocessor variables.
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 cat >>confdefs.h <<_ACEOF
2069 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2088 # Let the site file select an alternate cache file if it wants to.
2089 # Prefer explicitly selected file to automatically selected ones.
2090 if test -n "$CONFIG_SITE"; then
2091 set x "$CONFIG_SITE"
2092 elif test "x$prefix" != xNONE; then
2093 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2095 set x "$ac_default_prefix/share/config.site" \
2096 "$ac_default_prefix/etc/config.site"
2101 if test -r "$ac_site_file"; then
2102 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2103 echo "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2109 if test -r "$cache_file"; then
2110 # Some versions of bash will fail to source /dev/null (special
2111 # files actually), so we avoid doing that.
2112 if test -f "$cache_file"; then
2113 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2114 echo "$as_me: loading cache $cache_file" >&6;}
2116 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117 *) . "./$cache_file";;
2121 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2122 echo "$as_me: creating cache $cache_file" >&6;}
2126 # Check that the precious variables saved in the cache have kept the same
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131 eval ac_new_set=\$ac_env_${ac_var}_set
2132 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133 eval ac_new_val=\$ac_env_${ac_var}_value
2134 case $ac_old_set,$ac_new_set in
2136 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2140 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2141 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2145 if test "x$ac_old_val" != "x$ac_new_val"; then
2146 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2147 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2149 echo "$as_me: former value: $ac_old_val" >&2;}
2150 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2151 echo "$as_me: current value: $ac_new_val" >&2;}
2152 ac_cache_corrupted=:
2155 # Pass precious variables to config.status.
2156 if test "$ac_new_set" = set; then
2158 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 *) ac_arg=$ac_var=$ac_new_val ;;
2161 case " $ac_configure_args " in
2162 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2163 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2167 if $ac_cache_corrupted; then
2168 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2169 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2170 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2171 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2172 { (exit 1); exit 1; }; }
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2205 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2206 if test -f "$ac_dir/install-sh"; then
2208 ac_install_sh="$ac_aux_dir/install-sh -c"
2210 elif test -f "$ac_dir/install.sh"; then
2212 ac_install_sh="$ac_aux_dir/install.sh -c"
2214 elif test -f "$ac_dir/shtool"; then
2216 ac_install_sh="$ac_aux_dir/shtool install -c"
2220 if test -z "$ac_aux_dir"; then
2221 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2222 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2223 { (exit 1); exit 1; }; }
2226 # These three variables are undocumented and unsupported,
2227 # and are intended to be withdrawn in a future Autoconf release.
2228 # They can cause serious problems if a builder's source tree is in a directory
2229 # whose full name contains unusual characters.
2230 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2231 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2232 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2235 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2238 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2239 WIN32MAINDIR=${BUILD_DIR}
2240 WIN32TOPDIR=${TOP_DIR}
2250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 TRUEPRG=$ac_cv_path_TRUEPRG
2281 if test -n "$TRUEPRG"; then
2282 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2283 echo "${ECHO_T}$TRUEPRG" >&6; }
2285 { echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6; }
2290 test -n "$TRUEPRG" && break
2292 test -n "$TRUEPRG" || TRUEPRG=":"
2294 for ac_prog in false
2296 # Extract the first word of "$ac_prog", so it can be a program name with args.
2297 set dummy $ac_prog; ac_word=$2
2298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2300 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 FALSEPRG=$ac_cv_path_FALSEPRG
2327 if test -n "$FALSEPRG"; then
2328 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2329 echo "${ECHO_T}$FALSEPRG" >&6; }
2331 { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2336 test -n "$FALSEPRG" && break
2338 test -n "$FALSEPRG" || FALSEPRG=":"
2343 if test "x$BACULA" != x; then
2344 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2346 BACULA=${BACULA:-Bacula}
2347 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2348 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 echo "configuring for ${BACULA} $VERSION ($DATE)"
2354 ac_cpp='$CPP $CPPFLAGS'
2355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2397 if test -z "$ac_cv_prog_CC"; then
2399 # Extract the first word of "gcc", so it can be a program name with args.
2400 set dummy gcc; ac_word=$2
2401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$ac_ct_CC"; then
2407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2416 ac_cv_prog_ac_ct_CC="gcc"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2427 if test -n "$ac_ct_CC"; then
2428 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2429 echo "${ECHO_T}$ac_ct_CC" >&6; }
2431 { echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6; }
2435 if test "x$ac_ct_CC" = x; then
2438 case $cross_compiling:$ac_tool_warned in
2440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&5
2443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2446 ac_tool_warned=yes ;;
2454 if test -z "$CC"; then
2455 if test -n "$ac_tool_prefix"; then
2456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2457 set dummy ${ac_tool_prefix}cc; ac_word=$2
2458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$CC"; then
2464 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_prog_CC="${ac_tool_prefix}cc"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CC"; then
2485 { echo "$as_me:$LINENO: result: $CC" >&5
2486 echo "${ECHO_T}$CC" >&6; }
2488 { echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6; }
2495 if test -z "$CC"; then
2496 # Extract the first word of "cc", so it can be a program name with args.
2497 set dummy cc; ac_word=$2
2498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2515 ac_prog_rejected=yes
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test $ac_prog_rejected = yes; then
2527 # We found a bogon in the path, so make sure we never use it.
2528 set dummy $ac_cv_prog_CC
2530 if test $# != 0; then
2531 # We chose a different compiler from the bogus one.
2532 # However, it has the same basename, so the bogon will be chosen
2533 # first if we set CC to just the basename; use the full file name.
2535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2541 if test -n "$CC"; then
2542 { echo "$as_me:$LINENO: result: $CC" >&5
2543 echo "${ECHO_T}$CC" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2551 if test -z "$CC"; then
2552 if test -n "$ac_tool_prefix"; then
2553 for ac_prog in cl.exe
2555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2592 test -n "$CC" && break
2595 if test -z "$CC"; then
2597 for ac_prog in cl.exe
2599 # Extract the first word of "$ac_prog", so it can be a program name with args.
2600 set dummy $ac_prog; ac_word=$2
2601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_ac_ct_CC="$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627 if test -n "$ac_ct_CC"; then
2628 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2629 echo "${ECHO_T}$ac_ct_CC" >&6; }
2631 { echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6; }
2636 test -n "$ac_ct_CC" && break
2639 if test "x$ac_ct_CC" = x; then
2642 case $cross_compiling:$ac_tool_warned in
2644 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&5
2647 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2650 ac_tool_warned=yes ;;
2659 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2665 # Provide some information about the compiler.
2666 echo "$as_me:$LINENO: checking for C compiler version" >&5
2667 ac_compiler=`set X $ac_compile; echo $2`
2668 { (ac_try="$ac_compiler --version >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler --version >&5") 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2678 { (ac_try="$ac_compiler -v >&5"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler -v >&5") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2688 { (ac_try="$ac_compiler -V >&5"
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -V >&5") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2699 cat >conftest.$ac_ext <<_ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 ac_clean_files_save=$ac_clean_files
2715 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2716 # Try to create an executable without -o first, disregard a.out.
2717 # It will help us diagnose broken compilers, and finding out an intuition
2719 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2720 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2721 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2723 # List of possible output files, starting from the most likely.
2724 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2725 # only as a last resort. b.out is created by i960 compilers.
2726 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728 # The IRIX 6 linker writes into existing files which may not be
2729 # executable, retaining their permissions. Remove them first so a
2730 # subsequent execution test works.
2732 for ac_file in $ac_files
2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 if { (ac_try="$ac_link_default"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_link_default") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
2751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2752 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2753 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2754 # so that the user can short-circuit this test for compilers unknown to
2756 for ac_file in $ac_files ''
2758 test -f "$ac_file" || continue
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2763 # We found the default executable, but exeext='' is most
2767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 # We set ac_cv_exeext here because the later test for it is not
2772 # safe: cross compilers may not add the suffix if given an `-o'
2773 # argument, so we may need to know it at that point already.
2774 # Even if this section looks crufty: it has the advantage of
2781 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787 { echo "$as_me:$LINENO: result: $ac_file" >&5
2788 echo "${ECHO_T}$ac_file" >&6; }
2789 if test -z "$ac_file"; then
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794 See \`config.log' for more details." >&5
2795 echo "$as_me: error: C compiler cannot create executables
2796 See \`config.log' for more details." >&2;}
2797 { (exit 77); exit 77; }; }
2800 ac_exeext=$ac_cv_exeext
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2806 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807 # If not cross compiling, check that we can run a simple program.
2808 if test "$cross_compiling" != yes; then
2809 if { ac_try='./$ac_file'
2810 { (case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_try") 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2821 if test "$cross_compiling" = maybe; then
2824 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: cannot run C compiled programs.
2828 If you meant to cross compile, use \`--host'.
2829 See \`config.log' for more details." >&2;}
2830 { (exit 1); exit 1; }; }
2834 { echo "$as_me:$LINENO: result: yes" >&5
2835 echo "${ECHO_T}yes" >&6; }
2837 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2838 ac_clean_files=$ac_clean_files_save
2839 # Check that the compiler produces executables we can run. If not, either
2840 # the compiler is broken, or we cross compile.
2841 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844 echo "${ECHO_T}$cross_compiling" >&6; }
2846 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848 if { (ac_try="$ac_link"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_link") 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; then
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2879 rm -f conftest$ac_cv_exeext
2880 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2883 rm -f conftest.$ac_ext
2884 EXEEXT=$ac_cv_exeext
2886 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2888 if test "${ac_cv_objext+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2906 rm -f conftest.o conftest.obj
2907 if { (ac_try="$ac_compile"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compile") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 for ac_file in conftest.o conftest.obj conftest.*; do
2918 test -f "$ac_file" || continue;
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&2;}
2933 { (exit 1); exit 1; }; }
2936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2938 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939 echo "${ECHO_T}$ac_cv_objext" >&6; }
2940 OBJEXT=$ac_cv_objext
2942 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2944 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 cat >conftest.$ac_ext <<_ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2965 rm -f conftest.$ac_objext
2966 if { (ac_try="$ac_compile"
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2994 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2996 GCC=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CFLAGS=${CFLAGS+set}
2998 ac_save_CFLAGS=$CFLAGS
2999 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3000 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_cc_g+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_save_c_werror_flag=$ac_c_werror_flag
3005 ac_c_werror_flag=yes
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } && {
3037 test -z "$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3039 } && test -s conftest.$ac_objext; then
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 ac_c_werror_flag=$ac_save_c_werror_flag
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_c_werror_flag=$ac_save_c_werror_flag
3134 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3135 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3136 if test "$ac_test_CFLAGS" = set; then
3137 CFLAGS=$ac_save_CFLAGS
3138 elif test $ac_cv_prog_cc_g = yes; then
3139 if test "$GCC" = yes; then
3145 if test "$GCC" = yes; then
3151 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3152 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_cc_c89+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 ac_cv_prog_cc_c89=no
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3166 #include <sys/types.h>
3167 #include <sys/stat.h>
3168 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3169 struct buf { int x; };
3170 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3171 static char *e (p, i)
3177 static char *f (char * (*g) (char **, int), char **p, ...)
3182 s = g (p, va_arg (v,int));
3187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3188 function prototypes and stuff, but not '\xHH' hex character constants.
3189 These don't provoke an error unfortunately, instead are silently treated
3190 as 'x'. The following induces an error, until -std is added to get
3191 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3192 array size at least. It's necessary to write '\x00'==0 to get something
3193 that's true only with -std. */
3194 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3197 inside strings and character constants. */
3199 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201 int test (int i, double x);
3202 struct s1 {int (*f) (int a);};
3203 struct s2 {int (*f) (double a);};
3204 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3215 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3216 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218 CC="$ac_save_CC $ac_arg"
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_compile") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest.$ac_objext; then
3236 ac_cv_prog_cc_c89=$ac_arg
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3244 rm -f core conftest.err conftest.$ac_objext
3245 test "x$ac_cv_prog_cc_c89" != "xno" && break
3247 rm -f conftest.$ac_ext
3252 case "x$ac_cv_prog_cc_c89" in
3254 { echo "$as_me:$LINENO: result: none needed" >&5
3255 echo "${ECHO_T}none needed" >&6; } ;;
3257 { echo "$as_me:$LINENO: result: unsupported" >&5
3258 echo "${ECHO_T}unsupported" >&6; } ;;
3260 CC="$CC $ac_cv_prog_cc_c89"
3261 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3262 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 ac_cpp='$CXXCPP $CPPFLAGS'
3274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3277 if test -z "$CXX"; then
3278 if test -n "$CCC"; then
3281 if test -n "$ac_tool_prefix"; then
3282 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3285 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$CXX"; then
3292 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test -n "$CXX"; then
3313 { echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6; }
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3321 test -n "$CXX" && break
3324 if test -z "$CXX"; then
3326 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3332 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$ac_ct_CXX"; then
3336 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_ac_ct_CXX="$ac_prog"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3356 if test -n "$ac_ct_CXX"; then
3357 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3358 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3360 { echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6; }
3365 test -n "$ac_ct_CXX" && break
3368 if test "x$ac_ct_CXX" = x; then
3371 case $cross_compiling:$ac_tool_warned in
3373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&5
3376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3377 whose name does not start with the host triplet. If you think this
3378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3379 ac_tool_warned=yes ;;
3387 # Provide some information about the compiler.
3388 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3389 ac_compiler=`set X $ac_compile; echo $2`
3390 { (ac_try="$ac_compiler --version >&5"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compiler --version >&5") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }
3400 { (ac_try="$ac_compiler -v >&5"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compiler -v >&5") 2>&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }
3410 { (ac_try="$ac_compiler -V >&5"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_compiler -V >&5") 2>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }
3421 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3444 rm -f conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compile") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && {
3458 test -z "$ac_cxx_werror_flag" ||
3459 test ! -s conftest.err
3460 } && test -s conftest.$ac_objext; then
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3473 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3474 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3475 GXX=`test $ac_compiler_gnu = yes && echo yes`
3476 ac_test_CXXFLAGS=${CXXFLAGS+set}
3477 ac_save_CXXFLAGS=$CXXFLAGS
3478 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3479 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_cxx_g+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3484 ac_cxx_werror_flag=yes
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_cxx_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3519 ac_cv_prog_cxx_g=yes
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3525 cat >conftest.$ac_ext <<_ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_cxx_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compile") 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } && {
3593 test -z "$ac_cxx_werror_flag" ||
3594 test ! -s conftest.err
3595 } && test -s conftest.$ac_objext; then
3596 ac_cv_prog_cxx_g=yes
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3615 if test "$ac_test_CXXFLAGS" = set; then
3616 CXXFLAGS=$ac_save_CXXFLAGS
3617 elif test $ac_cv_prog_cxx_g = yes; then
3618 if test "$GXX" = yes; then
3624 if test "$GXX" = yes; then
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 if test "x$CC" != xcc; then
3637 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3638 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3640 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3641 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3643 set dummy $CC; ac_cc=`echo $2 |
3644 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3645 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3663 # Make sure it works both with $CC and with simple cc.
3664 # We do the test twice because some compilers refuse to overwrite an
3665 # existing .o file with -o, though they will create one.
3666 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3668 if { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_try") 2>&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); };
3687 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3688 if test "x$CC" != xcc; then
3689 # Test first that cc exists at all.
3690 if { ac_try='cc -c conftest.$ac_ext >&5'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3702 if { (case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_try") 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_try") 2>&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); };
3724 # cc exists but doesn't like -o.
3725 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3730 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3732 rm -f core conftest*
3735 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3736 { echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6; }
3739 { echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6; }
3742 cat >>confdefs.h <<\_ACEOF
3743 #define NO_MINUS_C_MINUS_O 1
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3755 # On Suns, sometimes $CPP names a directory.
3756 if test -n "$CPP" && test -d "$CPP"; then
3759 if test -z "$CPP"; then
3760 if test "${ac_cv_prog_CPP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 # Double quotes because CPP needs to be expanded
3764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3767 for ac_c_preproc_warn_flag in '' yes
3769 # Use a header file that comes with gcc, so configuring glibc
3770 # with a fresh cross-compiler works.
3771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 # <limits.h> exists even on freestanding compilers.
3773 # On the NeXT, cc -E runs the code through the compiler's parser,
3774 # not just through cpp. "Syntax error" is here to catch this case.
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3782 # include <limits.h>
3784 # include <assert.h>
3788 if { (ac_try="$ac_cpp conftest.$ac_ext"
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3796 grep -v '^ *+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } >/dev/null && {
3801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 # Broken: fails on valid input.
3813 rm -f conftest.err conftest.$ac_ext
3815 # OK, works on sane cases. Now check whether nonexistent headers
3816 # can be detected and how.
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <ac_nonexistent.h>
3825 if { (ac_try="$ac_cpp conftest.$ac_ext"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null && {
3838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3839 test ! -s conftest.err
3841 # Broken: success on invalid input.
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 # Passes both tests.
3852 rm -f conftest.err conftest.$ac_ext
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then
3869 { echo "$as_me:$LINENO: result: $CPP" >&5
3870 echo "${ECHO_T}$CPP" >&6; }
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3887 # include <limits.h>
3889 # include <assert.h>
3893 if { (ac_try="$ac_cpp conftest.$ac_ext"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3901 grep -v '^ *+' conftest.er1 >conftest.err
3903 cat conftest.err >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } >/dev/null && {
3906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3907 test ! -s conftest.err
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 # Broken: fails on valid input.
3918 rm -f conftest.err conftest.$ac_ext
3920 # OK, works on sane cases. Now check whether nonexistent headers
3921 # can be detected and how.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <ac_nonexistent.h>
3930 if { (ac_try="$ac_cpp conftest.$ac_ext"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } >/dev/null && {
3943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3946 # Broken: success on invalid input.
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 # Passes both tests.
3957 rm -f conftest.err conftest.$ac_ext
3960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3961 rm -f conftest.err conftest.$ac_ext
3962 if $ac_preproc_ok; then
3965 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." >&5
3967 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3968 See \`config.log' for more details." >&2;}
3969 { (exit 1); exit 1; }; }
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 # Extract the first word of "grep ggrep" to use in msg output
3985 if test -z "$GREP"; then
3986 set dummy grep ggrep; ac_prog_name=$2
3987 if test "${ac_cv_path_GREP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_path_GREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in grep ggrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4000 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4001 # Check for GNU ac_path_GREP and select it if it is found.
4002 # Check for GNU $ac_path_GREP
4003 case `"$ac_path_GREP" --version 2>&1` in
4005 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4008 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 echo 'GREP' >> "conftest.nl"
4015 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 ac_count=`expr $ac_count + 1`
4018 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_GREP="$ac_path_GREP"
4021 ac_path_GREP_max=$ac_count
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 $ac_path_GREP_found && break 3
4040 GREP="$ac_cv_path_GREP"
4041 if test -z "$GREP"; then
4042 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4044 { (exit 1); exit 1; }; }
4048 ac_cv_path_GREP=$GREP
4053 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4054 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4055 GREP="$ac_cv_path_GREP"
4058 { echo "$as_me:$LINENO: checking for egrep" >&5
4059 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4060 if test "${ac_cv_path_EGREP+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064 then ac_cv_path_EGREP="$GREP -E"
4066 # Extract the first word of "egrep" to use in msg output
4067 if test -z "$EGREP"; then
4068 set dummy egrep; ac_prog_name=$2
4069 if test "${ac_cv_path_EGREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_path_EGREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 test -z "$as_dir" && as_dir=.
4079 for ac_prog in egrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4083 # Check for GNU ac_path_EGREP and select it if it is found.
4084 # Check for GNU $ac_path_EGREP
4085 case `"$ac_path_EGREP" --version 2>&1` in
4087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 echo 'EGREP' >> "conftest.nl"
4097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099 ac_count=`expr $ac_count + 1`
4100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_EGREP="$ac_path_EGREP"
4103 ac_path_EGREP_max=$ac_count
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 $ac_path_EGREP_found && break 3
4122 EGREP="$ac_cv_path_EGREP"
4123 if test -z "$EGREP"; then
4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126 { (exit 1); exit 1; }; }
4130 ac_cv_path_EGREP=$EGREP
4136 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4137 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4138 EGREP="$ac_cv_path_EGREP"
4141 if test $ac_cv_c_compiler_gnu = yes; then
4142 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4143 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4144 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_pattern="Autoconf.*'x'"
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4159 ac_cv_prog_gcc_traditional=yes
4161 ac_cv_prog_gcc_traditional=no
4166 if test $ac_cv_prog_gcc_traditional = no; then
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4177 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4178 ac_cv_prog_gcc_traditional=yes
4184 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4185 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4186 if test $ac_cv_prog_gcc_traditional = yes; then
4187 CC="$CC -traditional"
4191 BASECC=`basename $CC`
4193 if test "x$BASECC" = xgcc; then
4194 cat >>confdefs.h <<\_ACEOF
4200 # Extract the first word of "$CXX", so it can be a program name with args.
4201 set dummy $CXX; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_path_CXX+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4232 if test -n "$CXX"; then
4233 { echo "$as_me:$LINENO: result: $CXX" >&5
4234 echo "${ECHO_T}$CXX" >&6; }
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4241 if test ! -e $CXX; then
4242 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4243 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4244 { (exit 1); exit 1; }; }
4247 # Find a good install program. We prefer a C program (faster),
4248 # so one script is as good as another. But avoid the broken or
4249 # incompatible versions:
4250 # SysV /etc/install, /usr/sbin/install
4251 # SunOS /usr/etc/install
4252 # IRIX /sbin/install
4254 # AmigaOS /C/install, which installs bootblocks on floppy discs
4255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4258 # OS/2's system install, which has a completely different semantic
4259 # ./install, which can be erroneously created by make from ./install.sh.
4260 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4261 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4262 if test -z "$INSTALL"; then
4263 if test "${ac_cv_path_install+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 # Account for people who put trailing slashes in PATH elements.
4273 ./ | .// | /cC/* | \
4274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4278 # OSF1 and SCO ODT 3.0 have their own names for install.
4279 # Don't use installbsd from OSF since it installs stuff as root
4281 for ac_prog in ginstall scoinst install; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4284 if test $ac_prog = install &&
4285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286 # AIX install. It has an incompatible calling convention.
4288 elif test $ac_prog = install &&
4289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4290 # program-specific install script used by HP pwplus--don't use.
4293 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4306 if test "${ac_cv_path_install+set}" = set; then
4307 INSTALL=$ac_cv_path_install
4309 # As a last resort, use the slow shell script. Don't cache a
4310 # value for INSTALL within a source directory, because that will
4311 # break other packages using the cache if that directory is
4312 # removed, or if the value is a relative name.
4313 INSTALL=$ac_install_sh
4316 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4317 echo "${ECHO_T}$INSTALL" >&6; }
4319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4320 # It thinks the first close brace ends the variable substitution.
4321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4327 # Extract the first word of "mv", so it can be a program name with args.
4328 set dummy mv; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_MV+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4359 if test -n "$MV"; then
4360 { echo "$as_me:$LINENO: result: $MV" >&5
4361 echo "${ECHO_T}$MV" >&6; }
4363 { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4368 # Extract the first word of "rm", so it can be a program name with args.
4369 set dummy rm; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_REMOVE+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4399 REMOVE=$ac_cv_path_REMOVE
4400 if test -n "$REMOVE"; then
4401 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4402 echo "${ECHO_T}$REMOVE" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 # Extract the first word of "cp", so it can be a program name with args.
4410 set dummy cp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4441 if test -n "$CP"; then
4442 { echo "$as_me:$LINENO: result: $CP" >&5
4443 echo "${ECHO_T}$CP" >&6; }
4445 { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4450 # Extract the first word of "sed", so it can be a program name with args.
4451 set dummy sed; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_SED+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4482 if test -n "$SED"; then
4483 { echo "$as_me:$LINENO: result: $SED" >&5
4484 echo "${ECHO_T}$SED" >&6; }
4486 { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4491 # Extract the first word of "echo", so it can be a program name with args.
4492 set dummy echo; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_ECHO+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4522 ECHO=$ac_cv_path_ECHO
4523 if test -n "$ECHO"; then
4524 { echo "$as_me:$LINENO: result: $ECHO" >&5
4525 echo "${ECHO_T}$ECHO" >&6; }
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4532 # Extract the first word of "cmp", so it can be a program name with args.
4533 set dummy cmp; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_CMP+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4564 if test -n "$CMP"; then
4565 { echo "$as_me:$LINENO: result: $CMP" >&5
4566 echo "${ECHO_T}$CMP" >&6; }
4568 { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4573 # Extract the first word of "tbl", so it can be a program name with args.
4574 set dummy tbl; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_TBL+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4605 if test -n "$TBL"; then
4606 { echo "$as_me:$LINENO: result: $TBL" >&5
4607 echo "${ECHO_T}$TBL" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 # Extract the first word of "ar", so it can be a program name with args.
4615 set dummy ar; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_AR+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4646 if test -n "$AR"; then
4647 { echo "$as_me:$LINENO: result: $AR" >&5
4648 echo "${ECHO_T}$AR" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 # Extract the first word of "openssl", so it can be a program name with args.
4656 set dummy openssl; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_OPENSSL+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4686 OPENSSL=$ac_cv_path_OPENSSL
4687 if test -n "$OPENSSL"; then
4688 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4689 echo "${ECHO_T}$OPENSSL" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 # Extract the first word of "mtx", so it can be a program name with args.
4697 set dummy mtx; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MTX+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4728 if test -n "$MTX"; then
4729 { echo "$as_me:$LINENO: result: $MTX" >&5
4730 echo "${ECHO_T}$MTX" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4737 # Extract the first word of "dd", so it can be a program name with args.
4738 set dummy dd; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_DD+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4769 if test -n "$DD"; then
4770 { echo "$as_me:$LINENO: result: $DD" >&5
4771 echo "${ECHO_T}$DD" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4778 # Extract the first word of "mkisofs", so it can be a program name with args.
4779 set dummy mkisofs; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_MKISOFS+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4809 MKISOFS=$ac_cv_path_MKISOFS
4810 if test -n "$MKISOFS"; then
4811 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4812 echo "${ECHO_T}$MKISOFS" >&6; }
4814 { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4819 # Extract the first word of "python", so it can be a program name with args.
4820 set dummy python; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_PYTHON+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4850 PYTHON=$ac_cv_path_PYTHON
4851 if test -n "$PYTHON"; then
4852 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4853 echo "${ECHO_T}$PYTHON" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 # Extract the first word of "growisofs", so it can be a program name with args.
4861 set dummy growisofs; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4891 GROWISOFS=$ac_cv_path_GROWISOFS
4892 if test -n "$GROWISOFS"; then
4893 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4894 echo "${ECHO_T}$GROWISOFS" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4902 set dummy dvd+rw-mediainfo; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 case $DVDRWMEDIAINFO in
4910 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4932 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4933 if test -n "$DVDRWMEDIAINFO"; then
4934 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4935 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4943 set dummy dvd+rw-format; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 case $DVDRWFORMAT in
4951 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4973 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4974 if test -n "$DVDRWFORMAT"; then
4975 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4976 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 # Extract the first word of "pkg-config", so it can be a program name with args.
4984 set dummy pkg-config; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5014 PKGCONFIG=$ac_cv_path_PKGCONFIG
5015 if test -n "$PKGCONFIG"; then
5016 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5017 echo "${ECHO_T}$PKGCONFIG" >&6; }
5019 { echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6; }
5024 # Extract the first word of "qmake", so it can be a program name with args.
5025 set dummy qmake; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_QMAKE+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5055 QMAKE=$ac_cv_path_QMAKE
5056 if test -n "$QMAKE"; then
5057 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5058 echo "${ECHO_T}$QMAKE" >&6; }
5060 { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5065 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5066 set dummy qmake-qt4; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5096 QMAKEQT4=$ac_cv_path_QMAKEQT4
5097 if test -n "$QMAKEQT4"; then
5098 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5099 echo "${ECHO_T}$QMAKEQT4" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5106 # Extract the first word of "gmake", so it can be a program name with args.
5107 set dummy gmake; ac_word=$2
5108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5110 if test "${ac_cv_path_GMAKE+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5137 GMAKE=$ac_cv_path_GMAKE
5138 if test -n "$GMAKE"; then
5139 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5140 echo "${ECHO_T}$GMAKE" >&6; }
5142 { echo "$as_me:$LINENO: result: no" >&5
5143 echo "${ECHO_T}no" >&6; }
5148 if test "x$WXCONFIG" = x; then
5151 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5152 set dummy ${WXCONFIG}; ac_word=$2
5153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5155 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5182 WXCONFIG=$ac_cv_path_WXCONFIG
5183 if test -n "$WXCONFIG"; then
5184 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5185 echo "${ECHO_T}$WXCONFIG" >&6; }
5187 { echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6; }
5193 # Extract the first word of "cdrecord", so it can be a program name with args.
5194 set dummy cdrecord; ac_word=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_CDRECORD+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5224 CDRECORD=$ac_cv_path_CDRECORD
5225 if test -n "$CDRECORD"; then
5226 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5227 echo "${ECHO_T}$CDRECORD" >&6; }
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5234 # Extract the first word of "pidof", so it can be a program name with args.
5235 set dummy pidof; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_PIDOF+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5265 PIDOF=$ac_cv_path_PIDOF
5266 if test -n "$PIDOF"; then
5267 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5268 echo "${ECHO_T}$PIDOF" >&6; }
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 for ac_prog in gawk mawk nawk awk
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_AWK+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test -n "$AWK"; then
5285 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_prog_AWK="$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 if test -n "$AWK"; then
5306 { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5309 { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5314 test -n "$AWK" && break
5317 # Some AWK programs fail, so test it and warn the user
5318 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5319 { if ((prog == $2) || (("(" prog ")") == $2) ||
5320 (("" prog "") == $2) ||
5321 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5323 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5324 The regex engine of $AWK is too broken to be used you
5325 might want to install GNU AWK.
5326 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5327 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5328 The regex engine of $AWK is too broken to be used you
5329 might want to install GNU AWK.
5330 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5331 { (exit 1); exit 1; }; }
5334 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5335 set dummy $THE_AWK; ac_word=$2
5336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5338 if test "${ac_cv_path_AWK+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5366 if test -n "$AWK"; then
5367 { echo "$as_me:$LINENO: result: $AWK" >&5
5368 echo "${ECHO_T}$AWK" >&6; }
5370 { echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6; }
5377 test -n "$ARFLAG" || ARFLAGS="cr"
5388 # Check whether --enable-libtool was given.
5389 if test "${enable_libtool+set}" = set; then
5390 enableval=$enable_libtool;
5391 if test x$enableval = xno; then
5400 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5401 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5406 macro_version='2.2.6'
5407 macro_revision='1.3012'
5421 ltmain="$ac_aux_dir/ltmain.sh"
5423 # Make sure we can run config.sub.
5424 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5425 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5426 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5427 { (exit 1); exit 1; }; }
5429 { echo "$as_me:$LINENO: checking build system type" >&5
5430 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5431 if test "${ac_cv_build+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_build_alias=$build_alias
5435 test "x$ac_build_alias" = x &&
5436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5437 test "x$ac_build_alias" = x &&
5438 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5439 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5440 { (exit 1); exit 1; }; }
5441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5442 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5443 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5444 { (exit 1); exit 1; }; }
5447 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5448 echo "${ECHO_T}$ac_cv_build" >&6; }
5449 case $ac_cv_build in
5451 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5452 echo "$as_me: error: invalid value of canonical build" >&2;}
5453 { (exit 1); exit 1; }; };;
5456 ac_save_IFS=$IFS; IFS='-'
5462 # Remember, the first character of IFS is used to create $*,
5463 # except with old shells:
5466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5469 { echo "$as_me:$LINENO: checking host system type" >&5
5470 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5471 if test "${ac_cv_host+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test "x$host_alias" = x; then
5475 ac_cv_host=$ac_cv_build
5477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5478 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5479 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5480 { (exit 1); exit 1; }; }
5484 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5485 echo "${ECHO_T}$ac_cv_host" >&6; }
5488 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5489 echo "$as_me: error: invalid value of canonical host" >&2;}
5490 { (exit 1); exit 1; }; };;
5493 ac_save_IFS=$IFS; IFS='-'
5499 # Remember, the first character of IFS is used to create $*,
5500 # except with old shells:
5503 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5506 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5507 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5508 if test "${ac_cv_path_SED+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5512 for ac_i in 1 2 3 4 5 6 7; do
5513 ac_script="$ac_script$as_nl$ac_script"
5515 echo "$ac_script" | sed 99q >conftest.sed
5516 $as_unset ac_script || ac_script=
5517 # Extract the first word of "sed gsed" to use in msg output
5518 if test -z "$SED"; then
5519 set dummy sed gsed; ac_prog_name=$2
5520 if test "${ac_cv_path_SED+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 ac_path_SED_found=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_prog in sed gsed; do
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5533 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5534 # Check for GNU ac_path_SED and select it if it is found.
5535 # Check for GNU $ac_path_SED
5536 case `"$ac_path_SED" --version 2>&1` in
5538 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5541 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5544 cat "conftest.in" "conftest.in" >"conftest.tmp"
5545 mv "conftest.tmp" "conftest.in"
5546 cp "conftest.in" "conftest.nl"
5547 echo '' >> "conftest.nl"
5548 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5550 ac_count=`expr $ac_count + 1`
5551 if test $ac_count -gt ${ac_path_SED_max-0}; then
5552 # Best one so far, save it but keep looking for a better one
5553 ac_cv_path_SED="$ac_path_SED"
5554 ac_path_SED_max=$ac_count
5556 # 10*(2^10) chars as input seems more than enough
5557 test $ac_count -gt 10 && break
5559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5563 $ac_path_SED_found && break 3
5573 SED="$ac_cv_path_SED"
5574 if test -z "$SED"; then
5575 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5576 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5577 { (exit 1); exit 1; }; }
5585 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5586 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5587 SED="$ac_cv_path_SED"
5590 test -z "$SED" && SED=sed
5591 Xsed="$SED -e 1s/^X//"
5603 { echo "$as_me:$LINENO: checking for fgrep" >&5
5604 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5605 if test "${ac_cv_path_FGREP+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5609 then ac_cv_path_FGREP="$GREP -F"
5611 # Extract the first word of "fgrep" to use in msg output
5612 if test -z "$FGREP"; then
5613 set dummy fgrep; ac_prog_name=$2
5614 if test "${ac_cv_path_FGREP+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 ac_path_FGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in fgrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5627 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5628 # Check for GNU ac_path_FGREP and select it if it is found.
5629 # Check for GNU $ac_path_FGREP
5630 case `"$ac_path_FGREP" --version 2>&1` in
5632 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5635 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 echo 'FGREP' >> "conftest.nl"
5642 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 ac_count=`expr $ac_count + 1`
5645 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_FGREP="$ac_path_FGREP"
5648 ac_path_FGREP_max=$ac_count
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5657 $ac_path_FGREP_found && break 3
5667 FGREP="$ac_cv_path_FGREP"
5668 if test -z "$FGREP"; then
5669 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5670 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5671 { (exit 1); exit 1; }; }
5675 ac_cv_path_FGREP=$FGREP
5681 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5682 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5683 FGREP="$ac_cv_path_FGREP"
5686 test -z "$GREP" && GREP=grep
5706 # Check whether --with-gnu-ld was given.
5707 if test "${with_gnu_ld+set}" = set; then
5708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5714 if test "$GCC" = yes; then
5715 # Check if gcc -print-prog-name=ld gives a path.
5716 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5717 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5720 # gcc leaves a trailing carriage return which upsets mingw
5721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5726 # Accept absolute paths.
5728 re_direlt='/[^/][^/]*/\.\./'
5729 # Canonicalize the pathname of ld
5730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5734 test -z "$LD" && LD="$ac_prog"
5737 # If it fails, then pretend we aren't using GCC.
5741 # If it is relative, then search for the first ld in PATH.
5745 elif test "$with_gnu_ld" = yes; then
5746 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5749 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5752 if test "${lt_cv_path_LD+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 if test -z "$LD"; then
5756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5757 for ac_dir in $PATH; do
5759 test -z "$ac_dir" && ac_dir=.
5760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5761 lt_cv_path_LD="$ac_dir/$ac_prog"
5762 # Check to see if the program is GNU ld. I'd rather use --version,
5763 # but apparently some variants of GNU ld only accept -v.
5764 # Break only if it was the GNU/non-GNU ld that we prefer.
5765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5766 *GNU* | *'with BFD'*)
5767 test "$with_gnu_ld" != no && break
5770 test "$with_gnu_ld" != yes && break
5777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5782 if test -n "$LD"; then
5783 { echo "$as_me:$LINENO: result: $LD" >&5
5784 echo "${ECHO_T}$LD" >&6; }
5786 { echo "$as_me:$LINENO: result: no" >&5
5787 echo "${ECHO_T}no" >&6; }
5789 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5790 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5791 { (exit 1); exit 1; }; }
5792 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5793 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5794 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5798 case `$LD -v 2>&1 </dev/null` in
5799 *GNU* | *'with BFD'*)
5800 lt_cv_prog_gnu_ld=yes
5803 lt_cv_prog_gnu_ld=no
5807 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5808 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5809 with_gnu_ld=$lt_cv_prog_gnu_ld
5819 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5820 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5821 if test "${lt_cv_path_NM+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 if test -n "$NM"; then
5825 # Let the user override the test.
5828 lt_nm_to_check="${ac_tool_prefix}nm"
5829 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5830 lt_nm_to_check="$lt_nm_to_check nm"
5832 for lt_tmp_nm in $lt_nm_to_check; do
5833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5836 test -z "$ac_dir" && ac_dir=.
5837 tmp_nm="$ac_dir/$lt_tmp_nm"
5838 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5839 # Check to see if the nm accepts a BSD-compat flag.
5840 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5841 # nm: unknown option "B" ignored
5842 # Tru64's nm complains that /dev/null is an invalid object file
5843 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5844 */dev/null* | *'Invalid file or object type'*)
5845 lt_cv_path_NM="$tmp_nm -B"
5849 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5851 lt_cv_path_NM="$tmp_nm -p"
5855 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5856 continue # so that we can try to find one that supports BSD flags
5865 : ${lt_cv_path_NM=no}
5868 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5869 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5870 if test "$lt_cv_path_NM" != "no"; then
5873 # Didn't find any BSD compatible name lister, look for dumpbin.
5874 if test -n "$ac_tool_prefix"; then
5875 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 if test -n "$DUMPBIN"; then
5885 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 DUMPBIN=$ac_cv_prog_DUMPBIN
5905 if test -n "$DUMPBIN"; then
5906 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5907 echo "${ECHO_T}$DUMPBIN" >&6; }
5909 { echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6; }
5914 test -n "$DUMPBIN" && break
5917 if test -z "$DUMPBIN"; then
5918 ac_ct_DUMPBIN=$DUMPBIN
5919 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5921 # Extract the first word of "$ac_prog", so it can be a program name with args.
5922 set dummy $ac_prog; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 if test -n "$ac_ct_DUMPBIN"; then
5929 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5949 if test -n "$ac_ct_DUMPBIN"; then
5950 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5951 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5953 { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5958 test -n "$ac_ct_DUMPBIN" && break
5961 if test "x$ac_ct_DUMPBIN" = x; then
5964 case $cross_compiling:$ac_tool_warned in
5966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet. If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&5
5969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970 whose name does not start with the host triplet. If you think this
5971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972 ac_tool_warned=yes ;;
5974 DUMPBIN=$ac_ct_DUMPBIN
5979 if test "$DUMPBIN" != ":"; then
5983 test -z "$NM" && NM=nm
5990 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5991 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5992 if test "${lt_cv_nm_interface+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 lt_cv_nm_interface="BSD nm"
5996 echo "int some_variable = 0;" > conftest.$ac_ext
5997 (eval echo "\"\$as_me:5997: $ac_compile\"" >&5)
5998 (eval "$ac_compile" 2>conftest.err)
5999 cat conftest.err >&5
6000 (eval echo "\"\$as_me:6000: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6001 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6002 cat conftest.err >&5
6003 (eval echo "\"\$as_me:6003: output\"" >&5)
6004 cat conftest.out >&5
6005 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6006 lt_cv_nm_interface="MS dumpbin"
6010 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6011 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6013 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6014 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6016 if test "$LN_S" = "ln -s"; then
6017 { echo "$as_me:$LINENO: result: yes" >&5
6018 echo "${ECHO_T}yes" >&6; }
6020 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6021 echo "${ECHO_T}no, using $LN_S" >&6; }
6024 # find the maximum length of command line arguments
6025 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6026 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6027 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 # On DJGPP, this test can blow up pretty badly due to problems in libc
6036 # (any single argument exceeding 2000 bytes causes a buffer overrun
6037 # during glob expansion). Even if it were fixed, the result of this
6038 # check would be larger than it should be.
6039 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6043 # Under GNU Hurd, this test is not required because there is
6044 # no limit to the length of command line arguments.
6045 # Libtool will interpret -1 as no limit whatsoever
6046 lt_cv_sys_max_cmd_len=-1;
6049 cygwin* | mingw* | cegcc*)
6050 # On Win9x/ME, this test blows up -- it succeeds, but takes
6051 # about 5 minutes as the teststring grows exponentially.
6052 # Worse, since 9x/ME are not pre-emptively multitasking,
6053 # you end up with a "frozen" computer, even though with patience
6054 # the test eventually succeeds (with a max line length of 256k).
6055 # Instead, let's just punt: use the minimum linelength reported by
6056 # all of the supported platforms: 8192 (on NT/2K/XP).
6057 lt_cv_sys_max_cmd_len=8192;
6061 # On AmigaOS with pdksh, this test takes hours, literally.
6062 # So we just punt and use a minimum line length of 8192.
6063 lt_cv_sys_max_cmd_len=8192;
6066 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6067 # This has been around since 386BSD, at least. Likely further.
6068 if test -x /sbin/sysctl; then
6069 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6070 elif test -x /usr/sbin/sysctl; then
6071 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6075 # And add a safety zone
6076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6081 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6082 lt_cv_sys_max_cmd_len=196608
6086 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6087 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6088 # nice to cause kernel panics so lets avoid the loop below.
6089 # First set a reasonable default.
6090 lt_cv_sys_max_cmd_len=16384
6092 if test -x /sbin/sysconfig; then
6093 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6094 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6099 lt_cv_sys_max_cmd_len=102400
6101 sysv5* | sco5v6* | sysv4.2uw2*)
6102 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6103 if test -n "$kargmax"; then
6104 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6106 lt_cv_sys_max_cmd_len=32768
6110 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6111 if test -n "$lt_cv_sys_max_cmd_len"; then
6112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6115 # Make teststring a little bigger before we do anything with it.
6116 # a 1K string should be a reasonable start.
6117 for i in 1 2 3 4 5 6 7 8 ; do
6118 teststring=$teststring$teststring
6120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6121 # If test is not a shell built-in, we'll probably end up computing a
6122 # maximum length that is only half of the actual maximum length, but
6124 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6125 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6126 test $i != 17 # 1/2 MB should be enough
6129 teststring=$teststring$teststring
6131 # Only check the string length outside the loop.
6132 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6134 # Add a significant safety factor because C++ compilers can tack on
6135 # massive amounts of additional arguments before passing them to the
6136 # linker. It appears as though 1/2 is a usable value.
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6144 if test -n $lt_cv_sys_max_cmd_len ; then
6145 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6146 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6148 { echo "$as_me:$LINENO: result: none" >&5
6149 echo "${ECHO_T}none" >&6; }
6151 max_cmd_len=$lt_cv_sys_max_cmd_len
6162 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6163 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6164 # Try some XSI features
6167 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6169 && eval 'test $(( 1 + 1 )) -eq 2 \
6170 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6172 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6173 echo "${ECHO_T}$xsi_shell" >&6; }
6176 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6177 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6179 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6181 && lt_shell_append=yes
6182 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6183 echo "${ECHO_T}$lt_shell_append" >&6; }
6186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6196 # test EBCDIC or ASCII
6197 case `echo X|tr X '\101'` in
6198 A) # ASCII based system
6199 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6200 lt_SP2NL='tr \040 \012'
6201 lt_NL2SP='tr \015\012 \040\040'
6203 *) # EBCDIC based system
6204 lt_SP2NL='tr \100 \n'
6205 lt_NL2SP='tr \r\n \100\100'
6217 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6218 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6219 if test "${lt_cv_ld_reload_flag+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 lt_cv_ld_reload_flag='-r'
6224 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6225 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6226 reload_flag=$lt_cv_ld_reload_flag
6227 case $reload_flag in
6229 *) reload_flag=" $reload_flag" ;;
6231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6234 if test "$GCC" = yes; then
6235 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6237 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test -n "$OBJDUMP"; then
6259 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 OBJDUMP=$ac_cv_prog_OBJDUMP
6279 if test -n "$OBJDUMP"; then
6280 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6281 echo "${ECHO_T}$OBJDUMP" >&6; }
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6289 if test -z "$ac_cv_prog_OBJDUMP"; then
6290 ac_ct_OBJDUMP=$OBJDUMP
6291 # Extract the first word of "objdump", so it can be a program name with args.
6292 set dummy objdump; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 if test -n "$ac_ct_OBJDUMP"; then
6299 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6319 if test -n "$ac_ct_OBJDUMP"; then
6320 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6321 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6323 { echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6; }
6327 if test "x$ac_ct_OBJDUMP" = x; then
6330 case $cross_compiling:$ac_tool_warned in
6332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet. If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&5
6335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6336 whose name does not start with the host triplet. If you think this
6337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6338 ac_tool_warned=yes ;;
6340 OBJDUMP=$ac_ct_OBJDUMP
6343 OBJDUMP="$ac_cv_prog_OBJDUMP"
6346 test -z "$OBJDUMP" && OBJDUMP=objdump
6356 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6357 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6358 if test "${lt_cv_deplibs_check_method+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 lt_cv_file_magic_cmd='$MAGIC_CMD'
6362 lt_cv_file_magic_test_file=
6363 lt_cv_deplibs_check_method='unknown'
6364 # Need to set the preceding variable on all platforms that support
6365 # interlibrary dependencies.
6366 # 'none' -- dependencies not supported.
6367 # `unknown' -- same as none, but documents that we really don't know.
6368 # 'pass_all' -- all dependencies passed with no checks.
6369 # 'test_compile' -- check by making test program.
6370 # 'file_magic [[regex]]' -- check by looking for files in library path
6371 # which responds to the $file_magic_cmd with a given extended regex.
6372 # If you have `file' or equivalent on your system and you're not sure
6373 # whether `pass_all' will *always* work, you probably want this one.
6377 lt_cv_deplibs_check_method=pass_all
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6386 lt_cv_file_magic_cmd='/usr/bin/file -L'
6387 lt_cv_file_magic_test_file=/shlib/libc.so
6391 # func_win32_libid is a shell function defined in ltmain.sh
6392 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6393 lt_cv_file_magic_cmd='func_win32_libid'
6397 # Base MSYS/MinGW do not provide the 'file' command needed by
6398 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6399 # unless we find 'file', for example because we are cross-compiling.
6400 if ( file / ) >/dev/null 2>&1; then
6401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6402 lt_cv_file_magic_cmd='func_win32_libid'
6404 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6405 lt_cv_file_magic_cmd='$OBJDUMP -f'
6410 # use the weaker test based on 'objdump'. See mingw*.
6411 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6412 lt_cv_file_magic_cmd='$OBJDUMP -f'
6415 darwin* | rhapsody*)
6416 lt_cv_deplibs_check_method=pass_all
6419 freebsd* | dragonfly*)
6420 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6423 # Not sure whether the presence of OpenBSD here was a mistake.
6424 # Let's accept both of them until this is cleared up.
6425 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6431 lt_cv_deplibs_check_method=pass_all
6436 lt_cv_deplibs_check_method=pass_all
6439 hpux10.20* | hpux11*)
6440 lt_cv_file_magic_cmd=/usr/bin/file
6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6444 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6447 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6448 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6452 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6458 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6462 irix5* | irix6* | nonstopux*)
6464 *-32|*"-32 ") libmagic=32-bit;;
6465 *-n32|*"-n32 ") libmagic=N32;;
6466 *-64|*"-64 ") libmagic=64-bit;;
6467 *) libmagic=never-match;;
6469 lt_cv_deplibs_check_method=pass_all
6472 # This must be Linux ELF.
6473 linux* | k*bsd*-gnu)
6474 lt_cv_deplibs_check_method=pass_all
6478 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6487 lt_cv_file_magic_cmd=/usr/bin/file
6488 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6492 lt_cv_deplibs_check_method=pass_all
6496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6503 osf3* | osf4* | osf5*)
6504 lt_cv_deplibs_check_method=pass_all
6508 lt_cv_deplibs_check_method=pass_all
6512 lt_cv_deplibs_check_method=pass_all
6515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6516 lt_cv_deplibs_check_method=pass_all
6520 case $host_vendor in
6522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6523 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6526 lt_cv_deplibs_check_method=pass_all
6529 lt_cv_file_magic_cmd='/bin/file'
6530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6533 lt_cv_file_magic_cmd='/bin/file'
6534 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6535 lt_cv_file_magic_test_file=/lib/libc.so
6538 lt_cv_deplibs_check_method=pass_all
6541 lt_cv_deplibs_check_method=pass_all
6547 lt_cv_deplibs_check_method=pass_all
6552 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6553 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6554 file_magic_cmd=$lt_cv_file_magic_cmd
6555 deplibs_check_method=$lt_cv_deplibs_check_method
6556 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_AR+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 if test -n "$AR"; then
6578 ac_cv_prog_AR="$AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_AR="${ac_tool_prefix}ar"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 if test -n "$AR"; then
6599 { echo "$as_me:$LINENO: result: $AR" >&5
6600 echo "${ECHO_T}$AR" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6608 if test -z "$ac_cv_prog_AR"; then
6610 # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 if test -n "$ac_ct_AR"; then
6618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_AR="ar"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6640 echo "${ECHO_T}$ac_ct_AR" >&6; }
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6646 if test "x$ac_ct_AR" = x; then
6649 case $cross_compiling:$ac_tool_warned in
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet. If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6665 test -z "$AR" && AR=ar
6666 test -z "$AR_FLAGS" && AR_FLAGS=cru
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}strip; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_STRIP+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 if test -n "$STRIP"; then
6687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 STRIP=$ac_cv_prog_STRIP
6707 if test -n "$STRIP"; then
6708 { echo "$as_me:$LINENO: result: $STRIP" >&5
6709 echo "${ECHO_T}$STRIP" >&6; }
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6717 if test -z "$ac_cv_prog_STRIP"; then
6719 # Extract the first word of "strip", so it can be a program name with args.
6720 set dummy strip; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 if test -n "$ac_ct_STRIP"; then
6727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_ac_ct_STRIP="strip"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6747 if test -n "$ac_ct_STRIP"; then
6748 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6749 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6755 if test "x$ac_ct_STRIP" = x; then
6758 case $cross_compiling:$ac_tool_warned in
6760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet. If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&5
6763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6764 whose name does not start with the host triplet. If you think this
6765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6766 ac_tool_warned=yes ;;
6771 STRIP="$ac_cv_prog_STRIP"
6774 test -z "$STRIP" && STRIP=:
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_prog_RANLIB+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 if test -n "$RANLIB"; then
6790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 RANLIB=$ac_cv_prog_RANLIB
6810 if test -n "$RANLIB"; then
6811 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6812 echo "${ECHO_T}$RANLIB" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6820 if test -z "$ac_cv_prog_RANLIB"; then
6821 ac_ct_RANLIB=$RANLIB
6822 # Extract the first word of "ranlib", so it can be a program name with args.
6823 set dummy ranlib; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 if test -n "$ac_ct_RANLIB"; then
6830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_ac_ct_RANLIB="ranlib"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6850 if test -n "$ac_ct_RANLIB"; then
6851 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6852 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6858 if test "x$ac_ct_RANLIB" = x; then
6861 case $cross_compiling:$ac_tool_warned in
6863 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet. If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&5
6866 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet. If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6869 ac_tool_warned=yes ;;
6871 RANLIB=$ac_ct_RANLIB
6874 RANLIB="$ac_cv_prog_RANLIB"
6877 test -z "$RANLIB" && RANLIB=:
6884 # Determine commands to create old-style static archives.
6885 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6886 old_postinstall_cmds='chmod 644 $oldlib'
6887 old_postuninstall_cmds=
6889 if test -n "$RANLIB"; then
6892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6898 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6934 # If no C compiler was specified, use CC.
6937 # If no C compiler flags were specified, use CFLAGS.
6938 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6940 # Allow CC to be a program name with arguments.
6944 # Check for command to grab the raw symbol name followed by C symbol from nm.
6945 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6946 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6947 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 # These are sane defaults that work on at least a few old systems.
6952 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6954 # Character class describing NM global symbol codes.
6955 symcode='[BCDEGRST]'
6957 # Regexp to match symbols that can be accessed directly from C.
6958 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6960 # Define system-specific variables.
6965 cygwin* | mingw* | pw32* | cegcc*)
6966 symcode='[ABCDGISTW]'
6969 if test "$host_cpu" = ia64; then
6970 symcode='[ABCDEGRST]'
6974 symcode='[BCDEGRST]'
6977 symcode='[BCDEGQRST]'
6988 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6996 # If we're using GNU nm, then use its standard symbol codes.
6997 case `$NM -V 2>&1` in
6998 *GNU* | *'with BFD'*)
6999 symcode='[ABCDGIRSTW]' ;;
7002 # Transform an extracted symbol line into a proper C declaration.
7003 # Some systems (esp. on ia64) link data and code symbols differently,
7004 # so use this general approach.
7005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7007 # Transform an extracted symbol line into symbol name and symbol address
7008 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7011 # Handle CRLF in mingw tool chain
7015 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7019 # Try without a prefix underscore, then with it.
7020 for ac_symprfx in "" "_"; do
7022 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023 symxfrm="\\1 $ac_symprfx\\2 \\2"
7025 # Write the raw and C identifiers.
7026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027 # Fake it for dumpbin and say T for any non-static function
7028 # and D for any global variable.
7029 # Also find C++ and __fastcall symbols from MSVC++,
7030 # which start with @ or ?.
7031 lt_cv_sys_global_symbol_pipe="$AWK '"\
7032 " {last_section=section; section=\$ 3};"\
7033 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7034 " \$ 0!~/External *\|/{next};"\
7035 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7036 " {if(hide[section]) next};"\
7037 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7038 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7039 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7040 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7041 " ' prfx=^$ac_symprfx"
7043 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7046 # Check to see that the pipe works correctly.
7050 cat > conftest.$ac_ext <<_LT_EOF
7055 void nm_test_func(void);
7056 void nm_test_func(void){}
7060 int main(){nm_test_var='a';nm_test_func();return(0);}
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; then
7068 # Now try to grab the symbols.
7070 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7071 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && test -s "$nlist"; then
7075 # Try sorting and uniquifying the output.
7076 if sort "$nlist" | uniq > "$nlist"T; then
7077 mv -f "$nlist"T "$nlist"
7082 # Make sure that we snagged all the symbols we need.
7083 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7084 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7085 cat <<_LT_EOF > conftest.$ac_ext
7091 # Now generate the symbol file.
7092 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094 cat <<_LT_EOF >> conftest.$ac_ext
7096 /* The mapping between symbol names and symbols. */
7101 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 { "@PROGRAM@", (void *) 0 },
7105 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7106 cat <<\_LT_EOF >> conftest.$ac_ext
7110 /* This works around a problem in FreeBSD linker */
7111 #ifdef FREEBSD_WORKAROUND
7112 static const void *lt_preloaded_setup() {
7113 return lt__PROGRAM__LTX_preloaded_symbols;
7121 # Now try linking the two files.
7122 mv conftest.$ac_objext conftstm.$ac_objext
7123 lt_save_LIBS="$LIBS"
7124 lt_save_CFLAGS="$CFLAGS"
7125 LIBS="conftstm.$ac_objext"
7126 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7134 LIBS="$lt_save_LIBS"
7135 CFLAGS="$lt_save_CFLAGS"
7137 echo "cannot find nm_test_func in $nlist" >&5
7140 echo "cannot find nm_test_var in $nlist" >&5
7143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7146 echo "$progname: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7149 rm -rf conftest* conftst*
7151 # Do not use the global_symbol_pipe unless it works.
7152 if test "$pipe_works" = yes; then
7155 lt_cv_sys_global_symbol_pipe=
7161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7162 lt_cv_sys_global_symbol_to_cdecl=
7164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7165 { echo "$as_me:$LINENO: result: failed" >&5
7166 echo "${ECHO_T}failed" >&6; }
7168 { echo "$as_me:$LINENO: result: ok" >&5
7169 echo "${ECHO_T}ok" >&6; }
7193 # Check whether --enable-libtool-lock was given.
7194 if test "${enable_libtool_lock+set}" = set; then
7195 enableval=$enable_libtool_lock;
7198 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7200 # Some flags need to be propagated to the compiler or linker for good
7204 # Find out which ABI we are using.
7205 echo 'int i;' > conftest.$ac_ext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207 (eval $ac_compile) 2>&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; then
7211 case `/usr/bin/file conftest.$ac_objext` in
7223 # Find out which ABI we are using.
7224 echo '#line 7224 "configure"' > conftest.$ac_ext
7225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226 (eval $ac_compile) 2>&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; then
7230 if test "$lt_cv_prog_gnu_ld" = yes; then
7231 case `/usr/bin/file conftest.$ac_objext` in
7233 LD="${LD-ld} -melf32bsmip"
7236 LD="${LD-ld} -melf32bmipn32"
7239 LD="${LD-ld} -melf64bmip"
7243 case `/usr/bin/file conftest.$ac_objext` in
7259 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7260 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7261 # Find out which ABI we are using.
7262 echo 'int i;' > conftest.$ac_ext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; then
7268 case `/usr/bin/file conftest.o` in
7271 x86_64-*kfreebsd*-gnu)
7272 LD="${LD-ld} -m elf_i386_fbsd"
7275 LD="${LD-ld} -m elf_i386"
7277 ppc64-*linux*|powerpc64-*linux*)
7278 LD="${LD-ld} -m elf32ppclinux"
7281 LD="${LD-ld} -m elf_s390"
7284 LD="${LD-ld} -m elf32_sparc"
7290 x86_64-*kfreebsd*-gnu)
7291 LD="${LD-ld} -m elf_x86_64_fbsd"
7294 LD="${LD-ld} -m elf_x86_64"
7296 ppc*-*linux*|powerpc*-*linux*)
7297 LD="${LD-ld} -m elf64ppc"
7299 s390*-*linux*|s390*-*tpf*)
7300 LD="${LD-ld} -m elf64_s390"
7303 LD="${LD-ld} -m elf64_sparc"
7313 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7314 SAVE_CFLAGS="$CFLAGS"
7315 CFLAGS="$CFLAGS -belf"
7316 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7317 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7318 if test "${lt_cv_cc_needs_belf+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_cpp='$CPP $CPPFLAGS'
7323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (ac_try="$ac_link"
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_link") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest$ac_exeext &&
7359 $as_test_x conftest$ac_exeext; then
7360 lt_cv_cc_needs_belf=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 lt_cv_cc_needs_belf=no
7368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7369 conftest$ac_exeext conftest.$ac_ext
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7378 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7379 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7380 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7381 CFLAGS="$SAVE_CFLAGS"
7385 # Find out which ABI we are using.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7388 (eval $ac_compile) 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; then
7392 case `/usr/bin/file conftest.o` in
7394 case $lt_cv_prog_gnu_ld in
7395 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7397 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7409 need_locks="$enable_libtool_lock"
7413 rhapsody* | darwin*)
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 if test -n "$DSYMUTIL"; then
7423 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7443 if test -n "$DSYMUTIL"; then
7444 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7445 echo "${ECHO_T}$DSYMUTIL" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7453 if test -z "$ac_cv_prog_DSYMUTIL"; then
7454 ac_ct_DSYMUTIL=$DSYMUTIL
7455 # Extract the first word of "dsymutil", so it can be a program name with args.
7456 set dummy dsymutil; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test -n "$ac_ct_DSYMUTIL"; then
7463 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7483 if test -n "$ac_ct_DSYMUTIL"; then
7484 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7485 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7491 if test "x$ac_ct_DSYMUTIL" = x; then
7494 case $cross_compiling:$ac_tool_warned in
7496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet. If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&5
7499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7500 whose name does not start with the host triplet. If you think this
7501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7502 ac_tool_warned=yes ;;
7504 DSYMUTIL=$ac_ct_DSYMUTIL
7507 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 if test -n "$NMEDIT"; then
7519 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 NMEDIT=$ac_cv_prog_NMEDIT
7539 if test -n "$NMEDIT"; then
7540 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7541 echo "${ECHO_T}$NMEDIT" >&6; }
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7549 if test -z "$ac_cv_prog_NMEDIT"; then
7550 ac_ct_NMEDIT=$NMEDIT
7551 # Extract the first word of "nmedit", so it can be a program name with args.
7552 set dummy nmedit; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 if test -n "$ac_ct_NMEDIT"; then
7559 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7579 if test -n "$ac_ct_NMEDIT"; then
7580 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7581 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7587 if test "x$ac_ct_NMEDIT" = x; then
7590 case $cross_compiling:$ac_tool_warned in
7592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet. If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&5
7595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7596 whose name does not start with the host triplet. If you think this
7597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7598 ac_tool_warned=yes ;;
7600 NMEDIT=$ac_ct_NMEDIT
7603 NMEDIT="$ac_cv_prog_NMEDIT"
7606 if test -n "$ac_tool_prefix"; then
7607 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7608 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_prog_LIPO+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 if test -n "$LIPO"; then
7615 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 LIPO=$ac_cv_prog_LIPO
7635 if test -n "$LIPO"; then
7636 { echo "$as_me:$LINENO: result: $LIPO" >&5
7637 echo "${ECHO_T}$LIPO" >&6; }
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7645 if test -z "$ac_cv_prog_LIPO"; then
7647 # Extract the first word of "lipo", so it can be a program name with args.
7648 set dummy lipo; ac_word=$2
7649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 if test -n "$ac_ct_LIPO"; then
7655 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_prog_ac_ct_LIPO="lipo"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7675 if test -n "$ac_ct_LIPO"; then
7676 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7677 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7683 if test "x$ac_ct_LIPO" = x; then
7686 case $cross_compiling:$ac_tool_warned in
7688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet. If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&5
7691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7692 whose name does not start with the host triplet. If you think this
7693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7694 ac_tool_warned=yes ;;
7699 LIPO="$ac_cv_prog_LIPO"
7702 if test -n "$ac_tool_prefix"; then
7703 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}otool; ac_word=$2
7705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7707 if test "${ac_cv_prog_OTOOL+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 if test -n "$OTOOL"; then
7711 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 OTOOL=$ac_cv_prog_OTOOL
7731 if test -n "$OTOOL"; then
7732 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7733 echo "${ECHO_T}$OTOOL" >&6; }
7735 { echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6; }
7741 if test -z "$ac_cv_prog_OTOOL"; then
7743 # Extract the first word of "otool", so it can be a program name with args.
7744 set dummy otool; ac_word=$2
7745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7747 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 if test -n "$ac_ct_OTOOL"; then
7751 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_ac_ct_OTOOL="otool"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7771 if test -n "$ac_ct_OTOOL"; then
7772 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7773 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7775 { echo "$as_me:$LINENO: result: no" >&5
7776 echo "${ECHO_T}no" >&6; }
7779 if test "x$ac_ct_OTOOL" = x; then
7782 case $cross_compiling:$ac_tool_warned in
7784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet. If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&5
7787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7788 whose name does not start with the host triplet. If you think this
7789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7790 ac_tool_warned=yes ;;
7795 OTOOL="$ac_cv_prog_OTOOL"
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 if test -n "$OTOOL64"; then
7807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 OTOOL64=$ac_cv_prog_OTOOL64
7827 if test -n "$OTOOL64"; then
7828 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7829 echo "${ECHO_T}$OTOOL64" >&6; }
7831 { echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6; }
7837 if test -z "$ac_cv_prog_OTOOL64"; then
7838 ac_ct_OTOOL64=$OTOOL64
7839 # Extract the first word of "otool64", so it can be a program name with args.
7840 set dummy otool64; ac_word=$2
7841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 if test -n "$ac_ct_OTOOL64"; then
7847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_ac_ct_OTOOL64="otool64"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7867 if test -n "$ac_ct_OTOOL64"; then
7868 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7869 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7871 { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7875 if test "x$ac_ct_OTOOL64" = x; then
7878 case $cross_compiling:$ac_tool_warned in
7880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet. If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&5
7883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7884 whose name does not start with the host triplet. If you think this
7885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7886 ac_tool_warned=yes ;;
7888 OTOOL64=$ac_ct_OTOOL64
7891 OTOOL64="$ac_cv_prog_OTOOL64"
7920 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7921 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7922 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 lt_cv_apple_cc_single_mod=no
7926 if test -z "${LT_MULTI_MODULE}"; then
7927 # By default we will add the -single_module flag. You can override
7928 # by either setting the environment variable LT_MULTI_MODULE
7929 # non-empty at configure time, or by adding -multi_module to the
7931 rm -rf libconftest.dylib*
7932 echo "int foo(void){return 1;}" > conftest.c
7933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7934 -dynamiclib -Wl,-single_module conftest.c" >&5
7935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7939 lt_cv_apple_cc_single_mod=yes
7941 cat conftest.err >&5
7943 rm -rf libconftest.dylib*
7947 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7948 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7949 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7950 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7951 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 lt_cv_ld_exported_symbols_list=no
7955 save_LDFLAGS=$LDFLAGS
7956 echo "_main" > conftest.sym
7957 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest$ac_exeext &&
7990 $as_test_x conftest$ac_exeext; then
7991 lt_cv_ld_exported_symbols_list=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 lt_cv_ld_exported_symbols_list=no
7999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8000 conftest$ac_exeext conftest.$ac_ext
8001 LDFLAGS="$save_LDFLAGS"
8004 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8005 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8007 rhapsody* | darwin1.[012])
8008 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8011 darwin*) # darwin 5.x on
8012 # if running on 10.5 or later, the deployment target defaults
8013 # to the OS version, if on x86, and 10.4, the deployment
8014 # target defaults to 10.4. Don't you love it?
8015 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8016 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8017 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8019 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8021 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8025 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8026 _lt_dar_single_mod='$single_module'
8028 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8029 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8031 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8033 if test "$DSYMUTIL" != ":"; then
8034 _lt_dsymutil='~$DSYMUTIL $lib || :'
8041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8043 if test "${ac_cv_header_stdc+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_cv_header_stdc=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 ac_cv_header_stdc=no
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 if test $ac_cv_header_stdc = yes; then
8093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8104 $EGREP "memchr" >/dev/null 2>&1; then
8107 ac_cv_header_stdc=no
8113 if test $ac_cv_header_stdc = yes; then
8114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125 $EGREP "free" >/dev/null 2>&1; then
8128 ac_cv_header_stdc=no
8134 if test $ac_cv_header_stdc = yes; then
8135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8136 if test "$cross_compiling" = yes; then
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8147 #if ((' ' & 0x0FF) == 0x020)
8148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8151 # define ISLOWER(c) \
8152 (('a' <= (c) && (c) <= 'i') \
8153 || ('j' <= (c) && (c) <= 'r') \
8154 || ('s' <= (c) && (c) <= 'z'))
8155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8163 for (i = 0; i < 256; i++)
8164 if (XOR (islower (i), ISLOWER (i))
8165 || toupper (i) != TOUPPER (i))
8170 rm -f conftest$ac_exeext
8171 if { (ac_try="$ac_link"
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_link") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8192 echo "$as_me: program exited with status $ac_status" >&5
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_cv_header_stdc=no
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8206 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8207 if test $ac_cv_header_stdc = yes; then
8209 cat >>confdefs.h <<\_ACEOF
8210 #define STDC_HEADERS 1
8215 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8226 inttypes.h stdint.h unistd.h
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8242 #include <$ac_header>
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 eval "$as_ac_Header=yes"
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 eval "$as_ac_Header=no"
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272 { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275 cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8285 for ac_header in dlfcn.h
8287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8301 #include <$ac_header>
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_compile") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest.$ac_objext; then
8320 eval "$as_ac_Header=yes"
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8325 eval "$as_ac_Header=no"
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 ac_res=`eval echo '${'$as_ac_Header'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8345 ac_cpp='$CXXCPP $CPPFLAGS'
8346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8349 if test -z "$CXX"; then
8350 if test -n "$CCC"; then
8353 if test -n "$ac_tool_prefix"; then
8354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8360 if test "${ac_cv_prog_CXX+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 if test -n "$CXX"; then
8364 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 if test -n "$CXX"; then
8385 { echo "$as_me:$LINENO: result: $CXX" >&5
8386 echo "${ECHO_T}$CXX" >&6; }
8388 { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8393 test -n "$CXX" && break
8396 if test -z "$CXX"; then
8398 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401 set dummy $ac_prog; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 if test -n "$ac_ct_CXX"; then
8408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_ac_ct_CXX="$ac_prog"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8428 if test -n "$ac_ct_CXX"; then
8429 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8430 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8432 { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8437 test -n "$ac_ct_CXX" && break
8440 if test "x$ac_ct_CXX" = x; then
8443 case $cross_compiling:$ac_tool_warned in
8445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet. If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8459 # Provide some information about the compiler.
8460 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8461 ac_compiler=`set X $ac_compile; echo $2`
8462 { (ac_try="$ac_compiler --version >&5"
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_compiler --version >&5") 2>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }
8472 { (ac_try="$ac_compiler -v >&5"
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_compiler -v >&5") 2>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }
8482 { (ac_try="$ac_compiler -V >&5"
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_compiler -V >&5") 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }
8493 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_cxx_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8546 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8547 GXX=`test $ac_compiler_gnu = yes && echo yes`
8548 ac_test_CXXFLAGS=${CXXFLAGS+set}
8549 ac_save_CXXFLAGS=$CXXFLAGS
8550 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8551 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8552 if test "${ac_cv_prog_cxx_g+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8556 ac_cxx_werror_flag=yes
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_cxx_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 ac_cv_prog_cxx_g=yes
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_cxx_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8651 rm -f conftest.$ac_objext
8652 if { (ac_try="$ac_compile"
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_cxx_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_prog_cxx_g=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8685 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8686 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8687 if test "$ac_test_CXXFLAGS" = set; then
8688 CXXFLAGS=$ac_save_CXXFLAGS
8689 elif test $ac_cv_prog_cxx_g = yes; then
8690 if test "$GXX" = yes; then
8696 if test "$GXX" = yes; then
8703 ac_cpp='$CPP $CPPFLAGS'
8704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8708 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8710 (test "X$CXX" != "Xg++"))) ; then
8712 ac_cpp='$CXXCPP $CPPFLAGS'
8713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8716 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8717 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8718 if test -z "$CXXCPP"; then
8719 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 # Double quotes because CXXCPP needs to be expanded
8723 for CXXCPP in "$CXX -E" "/lib/cpp"
8726 for ac_cxx_preproc_warn_flag in '' yes
8728 # Use a header file that comes with gcc, so configuring glibc
8729 # with a fresh cross-compiler works.
8730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 # <limits.h> exists even on freestanding compilers.
8732 # On the NeXT, cc -E runs the code through the compiler's parser,
8733 # not just through cpp. "Syntax error" is here to catch this case.
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8741 # include <limits.h>
8743 # include <assert.h>
8747 if { (ac_try="$ac_cpp conftest.$ac_ext"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } >/dev/null && {
8760 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8761 test ! -s conftest.err
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 # Broken: fails on valid input.
8772 rm -f conftest.err conftest.$ac_ext
8774 # OK, works on sane cases. Now check whether nonexistent headers
8775 # can be detected and how.
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 #include <ac_nonexistent.h>
8784 if { (ac_try="$ac_cpp conftest.$ac_ext"
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } >/dev/null && {
8797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8798 test ! -s conftest.err
8800 # Broken: success on invalid input.
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 # Passes both tests.
8811 rm -f conftest.err conftest.$ac_ext
8814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8815 rm -f conftest.err conftest.$ac_ext
8816 if $ac_preproc_ok; then
8821 ac_cv_prog_CXXCPP=$CXXCPP
8824 CXXCPP=$ac_cv_prog_CXXCPP
8826 ac_cv_prog_CXXCPP=$CXXCPP
8828 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8829 echo "${ECHO_T}$CXXCPP" >&6; }
8831 for ac_cxx_preproc_warn_flag in '' yes
8833 # Use a header file that comes with gcc, so configuring glibc
8834 # with a fresh cross-compiler works.
8835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 # <limits.h> exists even on freestanding compilers.
8837 # On the NeXT, cc -E runs the code through the compiler's parser,
8838 # not just through cpp. "Syntax error" is here to catch this case.
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8846 # include <limits.h>
8848 # include <assert.h>
8852 if { (ac_try="$ac_cpp conftest.$ac_ext"
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8860 grep -v '^ *+' conftest.er1 >conftest.err
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } >/dev/null && {
8865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8866 test ! -s conftest.err
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 # Broken: fails on valid input.
8877 rm -f conftest.err conftest.$ac_ext
8879 # OK, works on sane cases. Now check whether nonexistent headers
8880 # can be detected and how.
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887 #include <ac_nonexistent.h>
8889 if { (ac_try="$ac_cpp conftest.$ac_ext"
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null && {
8902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8903 test ! -s conftest.err
8905 # Broken: success on invalid input.
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 # Passes both tests.
8916 rm -f conftest.err conftest.$ac_ext
8919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8920 rm -f conftest.err conftest.$ac_ext
8921 if $ac_preproc_ok; then
8924 _lt_caught_CXX_error=yes
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934 _lt_caught_CXX_error=yes
8942 # Check whether --enable-shared was given.
8943 if test "${enable_shared+set}" = set; then
8944 enableval=$enable_shared; p=${PACKAGE-default}
8946 yes) enable_shared=yes ;;
8947 no) enable_shared=no ;;
8950 # Look at the argument we got. We use all the common list separators.
8951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952 for pkg in $enableval; do
8954 if test "X$pkg" = "X$p"; then
8971 # Check whether --enable-static was given.
8972 if test "${enable_static+set}" = set; then
8973 enableval=$enable_static; p=${PACKAGE-default}
8975 yes) enable_static=yes ;;
8976 no) enable_static=no ;;
8979 # Look at the argument we got. We use all the common list separators.
8980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8981 for pkg in $enableval; do
8983 if test "X$pkg" = "X$p"; then
9012 # Check whether --with-pic was given.
9013 if test "${with_pic+set}" = set; then
9014 withval=$with_pic; pic_mode="$withval"
9020 test -z "$pic_mode" && pic_mode=default
9028 # Check whether --enable-fast-install was given.
9029 if test "${enable_fast_install+set}" = set; then
9030 enableval=$enable_fast_install; p=${PACKAGE-default}
9032 yes) enable_fast_install=yes ;;
9033 no) enable_fast_install=no ;;
9035 enable_fast_install=no
9036 # Look at the argument we got. We use all the common list separators.
9037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9038 for pkg in $enableval; do
9040 if test "X$pkg" = "X$p"; then
9041 enable_fast_install=yes
9048 enable_fast_install=yes
9061 # This can be used to rebuild libtool when needed
9062 LIBTOOL_DEPS="$ltmain"
9064 # Always use our own libtool.
9065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9091 test -z "$LN_S" && LN_S="ln -s"
9106 if test -n "${ZSH_VERSION+set}" ; then
9107 setopt NO_GLOB_SUBST
9110 { echo "$as_me:$LINENO: checking for objdir" >&5
9111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9112 if test "${lt_cv_objdir+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 rm -f .libs 2>/dev/null
9116 mkdir .libs 2>/dev/null
9117 if test -d .libs; then
9120 # MS-DOS does not allow filenames that begin with a dot.
9123 rmdir .libs 2>/dev/null
9125 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9126 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9127 objdir=$lt_cv_objdir
9133 cat >>confdefs.h <<_ACEOF
9134 #define LT_OBJDIR "$lt_cv_objdir/"
9155 # AIX sometimes has problems with the GCC collect2 program. For some
9156 # reason, if we set the COLLECT_NAMES environment variable, the problems
9157 # vanish in a puff of smoke.
9158 if test "X${COLLECT_NAMES+set}" != Xset; then
9160 export COLLECT_NAMES
9165 # Sed substitution that helps us do robust quoting. It backslashifies
9166 # metacharacters that are still active within double-quoted strings.
9167 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9169 # Same as above, but do not quote variable references.
9170 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9172 # Sed substitution to delay expansion of an escaped shell variable in a
9173 # double_quote_subst'ed string.
9174 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9176 # Sed substitution to delay expansion of an escaped single quote.
9177 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9179 # Sed substitution to avoid accidental globbing in evaled expressions
9180 no_glob_subst='s/\*/\\\*/g'
9184 can_build_shared=yes
9186 # All known linkers require a `.a' archive for static linking (except MSVC,
9187 # which needs '.lib').
9190 with_gnu_ld="$lt_cv_prog_gnu_ld"
9193 old_CFLAGS="$CFLAGS"
9195 # Set sane defaults for various variables
9196 test -z "$CC" && CC=cc
9197 test -z "$LTCC" && LTCC=$CC
9198 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9199 test -z "$LD" && LD=ld
9200 test -z "$ac_objext" && ac_objext=o
9202 for cc_temp in $compiler""; do
9204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9210 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9213 # Only perform the check for file, if the check method requires it
9214 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9215 case $deplibs_check_method in
9217 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9218 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9219 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9228 lt_save_MAGIC_CMD="$MAGIC_CMD"
9229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9231 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/${ac_tool_prefix}file; then
9235 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9236 if test -n "$file_magic_test_file"; then
9237 case $deplibs_check_method in
9239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9242 $EGREP "$file_magic_regex" > /dev/null; then
9247 *** Warning: the command libtool uses to detect shared libraries,
9248 *** $file_magic_cmd, produces output that libtool cannot recognize.
9249 *** The result is that libtool may fail to recognize shared libraries
9250 *** as such. This will affect the creation of libtool libraries that
9251 *** depend on shared libraries, but programs linked with such libtool
9252 *** libraries will work regardless of this problem. Nevertheless, you
9253 *** may want to report the problem to your system manager and/or to
9254 *** bug-libtool@gnu.org
9264 MAGIC_CMD="$lt_save_MAGIC_CMD"
9269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9270 if test -n "$MAGIC_CMD"; then
9271 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9272 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9274 { echo "$as_me:$LINENO: result: no" >&5
9275 echo "${ECHO_T}no" >&6; }
9282 if test -z "$lt_cv_path_MAGIC_CMD"; then
9283 if test -n "$ac_tool_prefix"; then
9284 { echo "$as_me:$LINENO: checking for file" >&5
9285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9294 lt_save_MAGIC_CMD="$MAGIC_CMD"
9295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9297 for ac_dir in $ac_dummy; do
9299 test -z "$ac_dir" && ac_dir=.
9300 if test -f $ac_dir/file; then
9301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9302 if test -n "$file_magic_test_file"; then
9303 case $deplibs_check_method in
9305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9308 $EGREP "$file_magic_regex" > /dev/null; then
9313 *** Warning: the command libtool uses to detect shared libraries,
9314 *** $file_magic_cmd, produces output that libtool cannot recognize.
9315 *** The result is that libtool may fail to recognize shared libraries
9316 *** as such. This will affect the creation of libtool libraries that
9317 *** depend on shared libraries, but programs linked with such libtool
9318 *** libraries will work regardless of this problem. Nevertheless, you
9319 *** may want to report the problem to your system manager and/or to
9320 *** bug-libtool@gnu.org
9330 MAGIC_CMD="$lt_save_MAGIC_CMD"
9335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9336 if test -n "$MAGIC_CMD"; then
9337 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9340 { echo "$as_me:$LINENO: result: no" >&5
9341 echo "${ECHO_T}no" >&6; }
9354 # Use C for the default configuration in the libtool script
9358 ac_cpp='$CPP $CPPFLAGS'
9359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9364 # Source file extension for C test sources.
9367 # Object file extension for compiled C test sources.
9371 # Code to be used in simple compile tests
9372 lt_simple_compile_test_code="int some_variable = 0;"
9374 # Code to be used in simple link tests
9375 lt_simple_link_test_code='int main(){return(0);}'
9383 # If no C compiler was specified, use CC.
9386 # If no C compiler flags were specified, use CFLAGS.
9387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9389 # Allow CC to be a program name with arguments.
9392 # Save the default compiler, since it gets overwritten when the other
9393 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9394 compiler_DEFAULT=$CC
9396 # save warnings/boilerplate of simple test code
9397 ac_outfile=conftest.$ac_objext
9398 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9399 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9400 _lt_compiler_boilerplate=`cat conftest.err`
9403 ac_outfile=conftest.$ac_objext
9404 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9405 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9406 _lt_linker_boilerplate=`cat conftest.err`
9411 ## There is no encapsulation within the following macros, do not change
9412 ## the running order or otherwise move them around unless you know exactly
9413 ## what you are doing...
9414 if test -n "$compiler"; then
9416 lt_prog_compiler_no_builtin_flag=
9418 if test "$GCC" = yes; then
9419 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9421 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9422 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 lt_cv_prog_compiler_rtti_exceptions=no
9427 ac_outfile=conftest.$ac_objext
9428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9429 lt_compiler_flag="-fno-rtti -fno-exceptions"
9430 # Insert the option either (1) after the last *FLAGS variable, or
9431 # (2) before a word containing "conftest.", or (3) at the end.
9432 # Note that $ac_compile itself does not contain backslashes and begins
9433 # with a dollar sign (not a hyphen), so the echo should work correctly.
9434 # The option is referenced via a variable to avoid confusing sed.
9435 lt_compile=`echo "$ac_compile" | $SED \
9436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9438 -e 's:$: $lt_compiler_flag:'`
9439 (eval echo "\"\$as_me:9439: $lt_compile\"" >&5)
9440 (eval "$lt_compile" 2>conftest.err)
9442 cat conftest.err >&5
9443 echo "$as_me:9443: \$? = $ac_status" >&5
9444 if (exit $ac_status) && test -s "$ac_outfile"; then
9445 # The compiler can only warn and ignore the option if not recognized
9446 # So say no if there are warnings other than the usual output.
9447 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9450 lt_cv_prog_compiler_rtti_exceptions=yes
9456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9457 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9472 lt_prog_compiler_wl=
9473 lt_prog_compiler_pic=
9474 lt_prog_compiler_static=
9476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9479 if test "$GCC" = yes; then
9480 lt_prog_compiler_wl='-Wl,'
9481 lt_prog_compiler_static='-static'
9485 # All AIX code is PIC.
9486 if test "$host_cpu" = ia64; then
9487 # AIX 5 now supports IA64 processor
9488 lt_prog_compiler_static='-Bstatic'
9495 # see comment about AmigaOS4 .so support
9496 lt_prog_compiler_pic='-fPIC'
9499 # FIXME: we need at least 68020 code to build shared libraries, but
9500 # adding the `-m68020' flag to GCC prevents building anything better,
9502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9508 # PIC is the default for these OSes.
9511 mingw* | cygwin* | pw32* | os2* | cegcc*)
9512 # This hack is so that the source file can tell whether it is being
9513 # built for inclusion in a dll (and should export symbols for example).
9514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9515 # (--disable-auto-import) libraries
9516 lt_prog_compiler_pic='-DDLL_EXPORT'
9519 darwin* | rhapsody*)
9520 # PIC is the default on this platform
9521 # Common symbols not allowed in MH_DYLIB files
9522 lt_prog_compiler_pic='-fno-common'
9526 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9527 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9528 # sets the default TLS model and affects inlining.
9534 lt_prog_compiler_pic='-fPIC'
9540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9541 # Instead, we relocate shared libraries at runtime.
9545 # Just because we use GCC doesn't mean we suddenly get shared libraries
9546 # on systems that don't support them.
9547 lt_prog_compiler_can_build_shared=no
9552 # QNX uses GNU C++, but need to define -shared option too, otherwise
9554 lt_prog_compiler_pic='-fPIC -shared'
9558 if test -d /usr/nec; then
9559 lt_prog_compiler_pic=-Kconform_pic
9564 lt_prog_compiler_pic='-fPIC'
9568 # PORTME Check for flag to pass linker flags through the system compiler.
9571 lt_prog_compiler_wl='-Wl,'
9572 if test "$host_cpu" = ia64; then
9573 # AIX 5 now supports IA64 processor
9574 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9580 mingw* | cygwin* | pw32* | os2* | cegcc*)
9581 # This hack is so that the source file can tell whether it is being
9582 # built for inclusion in a dll (and should export symbols for example).
9583 lt_prog_compiler_pic='-DDLL_EXPORT'
9586 hpux9* | hpux10* | hpux11*)
9587 lt_prog_compiler_wl='-Wl,'
9588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9595 lt_prog_compiler_pic='+Z'
9598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9599 lt_prog_compiler_static='${wl}-a ${wl}archive'
9602 irix5* | irix6* | nonstopux*)
9603 lt_prog_compiler_wl='-Wl,'
9604 # PIC (with -KPIC) is the default.
9605 lt_prog_compiler_static='-non_shared'
9608 linux* | k*bsd*-gnu)
9609 case $cc_basename in
9610 # old Intel for x86_64 which still supported -KPIC.
9612 lt_prog_compiler_wl='-Wl,'
9613 lt_prog_compiler_pic='-KPIC'
9614 lt_prog_compiler_static='-static'
9616 # icc used to be incompatible with GCC.
9617 # ICC 10 doesn't accept -KPIC any more.
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='-fPIC'
9621 lt_prog_compiler_static='-static'
9623 # Lahey Fortran 8.1.
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_pic='--shared'
9627 lt_prog_compiler_static='--static'
9629 pgcc* | pgf77* | pgf90* | pgf95*)
9630 # Portland Group compilers (*not* the Pentium gcc compiler,
9631 # which looks to be a dead project)
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_pic='-fpic'
9634 lt_prog_compiler_static='-Bstatic'
9637 lt_prog_compiler_wl='-Wl,'
9638 # All Alpha code is PIC.
9639 lt_prog_compiler_static='-non_shared'
9642 # IBM XL C 8.0/Fortran 10.1 on PPC
9643 lt_prog_compiler_wl='-Wl,'
9644 lt_prog_compiler_pic='-qpic'
9645 lt_prog_compiler_static='-qstaticlink'
9648 case `$CC -V 2>&1 | sed 5q` in
9651 lt_prog_compiler_pic='-KPIC'
9652 lt_prog_compiler_static='-Bstatic'
9653 lt_prog_compiler_wl='-Wl,'
9656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9657 lt_prog_compiler_pic='-KPIC'
9658 lt_prog_compiler_static='-Bstatic'
9659 lt_prog_compiler_wl=''
9667 lt_prog_compiler_pic='-KPIC'
9668 lt_prog_compiler_static='-Bstatic'
9672 # QNX uses GNU C++, but need to define -shared option too, otherwise
9674 lt_prog_compiler_pic='-fPIC -shared'
9677 osf3* | osf4* | osf5*)
9678 lt_prog_compiler_wl='-Wl,'
9679 # All OSF/1 code is PIC.
9680 lt_prog_compiler_static='-non_shared'
9684 lt_prog_compiler_static='-non_shared'
9688 lt_prog_compiler_pic='-KPIC'
9689 lt_prog_compiler_static='-Bstatic'
9690 case $cc_basename in
9692 lt_prog_compiler_wl='-Qoption ld ';;
9694 lt_prog_compiler_wl='-Wl,';;
9699 lt_prog_compiler_wl='-Qoption ld '
9700 lt_prog_compiler_pic='-PIC'
9701 lt_prog_compiler_static='-Bstatic'
9704 sysv4 | sysv4.2uw2* | sysv4.3*)
9705 lt_prog_compiler_wl='-Wl,'
9706 lt_prog_compiler_pic='-KPIC'
9707 lt_prog_compiler_static='-Bstatic'
9711 if test -d /usr/nec ;then
9712 lt_prog_compiler_pic='-Kconform_pic'
9713 lt_prog_compiler_static='-Bstatic'
9717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9718 lt_prog_compiler_wl='-Wl,'
9719 lt_prog_compiler_pic='-KPIC'
9720 lt_prog_compiler_static='-Bstatic'
9724 lt_prog_compiler_wl='-Wl,'
9725 lt_prog_compiler_can_build_shared=no
9729 lt_prog_compiler_pic='-pic'
9730 lt_prog_compiler_static='-Bstatic'
9734 lt_prog_compiler_can_build_shared=no
9740 # For platforms which do not support PIC, -DPIC is meaningless:
9742 lt_prog_compiler_pic=
9745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9748 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9749 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9757 # Check to make sure the PIC flag actually works.
9759 if test -n "$lt_prog_compiler_pic"; then
9760 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 lt_cv_prog_compiler_pic_works=no
9766 ac_outfile=conftest.$ac_objext
9767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9768 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9769 # Insert the option either (1) after the last *FLAGS variable, or
9770 # (2) before a word containing "conftest.", or (3) at the end.
9771 # Note that $ac_compile itself does not contain backslashes and begins
9772 # with a dollar sign (not a hyphen), so the echo should work correctly.
9773 # The option is referenced via a variable to avoid confusing sed.
9774 lt_compile=`echo "$ac_compile" | $SED \
9775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9777 -e 's:$: $lt_compiler_flag:'`
9778 (eval echo "\"\$as_me:9778: $lt_compile\"" >&5)
9779 (eval "$lt_compile" 2>conftest.err)
9781 cat conftest.err >&5
9782 echo "$as_me:9782: \$? = $ac_status" >&5
9783 if (exit $ac_status) && test -s "$ac_outfile"; then
9784 # The compiler can only warn and ignore the option if not recognized
9785 # So say no if there are warnings other than the usual output.
9786 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9789 lt_cv_prog_compiler_pic_works=yes
9795 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9796 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9798 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9799 case $lt_prog_compiler_pic in
9801 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9804 lt_prog_compiler_pic=
9805 lt_prog_compiler_can_build_shared=no
9816 # Check to make sure the static flag actually works.
9818 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9819 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9820 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9821 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 lt_cv_prog_compiler_static_works=no
9825 save_LDFLAGS="$LDFLAGS"
9826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9829 # The linker can only warn and ignore the option if not recognized
9830 # So say no if there are warnings
9831 if test -s conftest.err; then
9832 # Append any errors to the config.log.
9833 cat conftest.err 1>&5
9834 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836 if diff conftest.exp conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_static_works=yes
9840 lt_cv_prog_compiler_static_works=yes
9844 LDFLAGS="$save_LDFLAGS"
9847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9848 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9850 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9853 lt_prog_compiler_static=
9862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9864 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 lt_cv_prog_compiler_c_o=no
9868 $RM -r conftest 2>/dev/null
9872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9874 lt_compiler_flag="-o out/conftest2.$ac_objext"
9875 # Insert the option either (1) after the last *FLAGS variable, or
9876 # (2) before a word containing "conftest.", or (3) at the end.
9877 # Note that $ac_compile itself does not contain backslashes and begins
9878 # with a dollar sign (not a hyphen), so the echo should work correctly.
9879 lt_compile=`echo "$ac_compile" | $SED \
9880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9882 -e 's:$: $lt_compiler_flag:'`
9883 (eval echo "\"\$as_me:9883: $lt_compile\"" >&5)
9884 (eval "$lt_compile" 2>out/conftest.err)
9886 cat out/conftest.err >&5
9887 echo "$as_me:9887: \$? = $ac_status" >&5
9888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9890 # The compiler can only warn and ignore the option if not recognized
9891 # So say no if there are warnings
9892 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9895 lt_cv_prog_compiler_c_o=yes
9900 # SGI C++ compiler will create directory out/ii_files/ for
9901 # template instantiation
9902 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9903 $RM out/* && rmdir out
9909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9917 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9918 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9919 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 lt_cv_prog_compiler_c_o=no
9923 $RM -r conftest 2>/dev/null
9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929 lt_compiler_flag="-o out/conftest2.$ac_objext"
9930 # Insert the option either (1) after the last *FLAGS variable, or
9931 # (2) before a word containing "conftest.", or (3) at the end.
9932 # Note that $ac_compile itself does not contain backslashes and begins
9933 # with a dollar sign (not a hyphen), so the echo should work correctly.
9934 lt_compile=`echo "$ac_compile" | $SED \
9935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937 -e 's:$: $lt_compiler_flag:'`
9938 (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939 (eval "$lt_compile" 2>out/conftest.err)
9941 cat out/conftest.err >&5
9942 echo "$as_me:9942: \$? = $ac_status" >&5
9943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9945 # The compiler can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950 lt_cv_prog_compiler_c_o=yes
9955 # SGI C++ compiler will create directory out/ii_files/ for
9956 # template instantiation
9957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958 $RM out/* && rmdir out
9964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9965 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9970 hard_links="nottested"
9971 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9972 # do not overwrite the value of need_locks provided by the user
9973 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9974 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9979 ln conftest.a conftest.b 2>&5 || hard_links=no
9980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9981 { echo "$as_me:$LINENO: result: $hard_links" >&5
9982 echo "${ECHO_T}$hard_links" >&6; }
9983 if test "$hard_links" = no; then
9984 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9985 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9997 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9998 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10001 allow_undefined_flag=
10002 always_export_symbols=no
10004 archive_expsym_cmds=
10005 compiler_needs_object=no
10006 enable_shared_with_static_runtimes=no
10007 export_dynamic_flag_spec=
10008 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10009 hardcode_automatic=no
10011 hardcode_direct_absolute=no
10012 hardcode_libdir_flag_spec=
10013 hardcode_libdir_flag_spec_ld=
10014 hardcode_libdir_separator=
10015 hardcode_minus_L=no
10016 hardcode_shlibpath_var=unsupported
10018 link_all_deplibs=unknown
10020 module_expsym_cmds=
10021 old_archive_from_new_cmds=
10022 old_archive_from_expsyms_cmds=
10023 thread_safe_flag_spec=
10024 whole_archive_flag_spec=
10025 # include_expsyms should be a list of space-separated symbols to be *always*
10026 # included in the symbol list
10028 # exclude_expsyms can be an extended regexp of symbols to exclude
10029 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10030 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10031 # as well as any symbol that contains `d'.
10032 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10033 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10034 # platforms (ab)use it in PIC code, but their linkers get confused if
10035 # the symbol is explicitly referenced. Since portable code cannot
10036 # rely on this symbol name, it's probably fine to never include it in
10037 # preloaded symbol tables.
10038 # Exclude shared library initialization/finalization symbols.
10039 extract_expsyms_cmds=
10042 cygwin* | mingw* | pw32* | cegcc*)
10043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10044 # When not using gcc, we currently assume that we are using
10045 # Microsoft Visual C++.
10046 if test "$GCC" != yes; then
10051 # we just hope/assume this is gcc and not c89 (= MSVC++)
10060 if test "$with_gnu_ld" = yes; then
10061 # If archive_cmds runs LD, not CC, wlarc should be empty
10064 # Set some defaults for GNU ld with shared library support. These
10065 # are reset later if shared libraries are not supported. Putting them
10066 # here allows them to be overridden if necessary.
10067 runpath_var=LD_RUN_PATH
10068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10069 export_dynamic_flag_spec='${wl}--export-dynamic'
10070 # ancient GNU ld didn't support --whole-archive et. al.
10071 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10074 whole_archive_flag_spec=
10076 supports_anon_versioning=no
10077 case `$LD -v 2>&1` in
10078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10081 *\ 2.11.*) ;; # other 2.11 versions
10082 *) supports_anon_versioning=yes ;;
10085 # See if GNU ld supports shared libraries.
10088 # On AIX/PPC, the GNU linker is very broken
10089 if test "$host_cpu" != ia64; then
10093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10094 *** to be unable to reliably create shared libraries on AIX.
10095 *** Therefore, libtool is disabling shared libraries support. If you
10096 *** really care for shared libraries, you may want to modify your PATH
10097 *** so that a non-GNU linker is found, and then restart.
10106 # see comment about AmigaOS4 .so support
10107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108 archive_expsym_cmds=''
10111 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_minus_L=yes
10119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10120 allow_undefined_flag=unsupported
10121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10122 # support --undefined. This deserves some investigation. FIXME
10123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10129 cygwin* | mingw* | pw32* | cegcc*)
10130 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10131 # as there is no search path for DLLs.
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 allow_undefined_flag=unsupported
10134 always_export_symbols=no
10135 enable_shared_with_static_runtimes=yes
10136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140 # If the export-symbols file already is a .def file (1st line
10141 # is EXPORTS), use it as is; otherwise, prepend...
10142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10143 cp $export_symbols $output_objdir/$soname.def;
10145 echo EXPORTS > $output_objdir/$soname.def;
10146 cat $export_symbols >> $output_objdir/$soname.def;
10148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10156 hardcode_shlibpath_var=no
10157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158 export_dynamic_flag_spec='${wl}-E'
10159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10160 # Instead, shared libraries are loaded at an image base (0x10000000 by
10161 # default) and relocated if they conflict, which is a slow very memory
10162 # consuming and fragmenting process. To avoid this, we pick a random,
10163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10166 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10169 gnu* | linux* | tpf* | k*bsd*-gnu)
10171 if test "$host_os" = linux-dietlibc; then
10172 case $cc_basename in
10173 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10176 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10177 && test "$tmp_diet" = no
10180 tmp_sharedflag='-shared'
10181 case $cc_basename,$host_cpu in
10182 pgcc*) # Portland Group C compiler
10183 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10184 tmp_addflag=' $pic_flag'
10186 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10187 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10188 tmp_addflag=' $pic_flag -Mnomain' ;;
10189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10190 tmp_addflag=' -i_dynamic' ;;
10191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10192 tmp_addflag=' -i_dynamic -nofor_main' ;;
10193 ifc* | ifort*) # Intel Fortran compiler
10194 tmp_addflag=' -nofor_main' ;;
10195 lf95*) # Lahey Fortran 8.1
10196 whole_archive_flag_spec=
10197 tmp_sharedflag='--shared' ;;
10198 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10199 tmp_sharedflag='-qmkshrobj'
10202 case `$CC -V 2>&1 | sed 5q` in
10203 *Sun\ C*) # Sun C 5.9
10204 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10205 compiler_needs_object=yes
10206 tmp_sharedflag='-G' ;;
10207 *Sun\ F*) # Sun Fortran 8.3
10208 tmp_sharedflag='-G' ;;
10210 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212 if test "x$supports_anon_versioning" = xyes; then
10213 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10215 echo "local: *; };" >> $output_objdir/$libname.ver~
10216 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10219 case $cc_basename in
10221 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10222 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10223 hardcode_libdir_flag_spec=
10224 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10225 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10226 if test "x$supports_anon_versioning" = xyes; then
10227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10229 echo "local: *; };" >> $output_objdir/$libname.ver~
10230 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10241 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10250 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10254 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10255 *** create shared libraries on Solaris systems. Therefore, libtool
10256 *** is disabling shared libraries support. We urge you to upgrade GNU
10257 *** binutils to release 2.9.1 or newer. Another option is to modify
10258 *** your PATH or compiler configuration so that the native linker is
10259 *** used, and then restart.
10262 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10271 case `$LD -v 2>&1` in
10272 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10276 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10277 *** reliably create shared libraries on SCO systems. Therefore, libtool
10278 *** is disabling shared libraries support. We urge you to upgrade GNU
10279 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10280 *** your PATH or compiler configuration so that the native linker is
10281 *** used, and then restart.
10286 # For security reasons, it is highly recommended that you always
10287 # use absolute paths for naming shared libraries, and exclude the
10288 # DT_RUNPATH tag from executables and libraries. But doing so
10289 # requires that you compile everything twice, which is a pain.
10290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10302 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=yes
10305 hardcode_shlibpath_var=no
10309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10318 if test "$ld_shlibs" = no; then
10320 hardcode_libdir_flag_spec=
10321 export_dynamic_flag_spec=
10322 whole_archive_flag_spec=
10325 # PORTME fill in a description of your system's linker (not GNU ld)
10328 allow_undefined_flag=unsupported
10329 always_export_symbols=yes
10330 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10331 # Note: this linker hardcodes the directories in LIBPATH if there
10332 # are no directories specified by -L.
10333 hardcode_minus_L=yes
10334 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10335 # Neither direct hardcoding nor static linking is supported with a
10337 hardcode_direct=unsupported
10342 if test "$host_cpu" = ia64; then
10343 # On IA64, the linker does run time linking by default, so we don't
10344 # have to do anything special.
10345 aix_use_runtimelinking=no
10346 exp_sym_flag='-Bexport'
10349 # If we're using GNU nm, then we don't want the "-C" option.
10350 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10352 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10354 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10356 aix_use_runtimelinking=no
10358 # Test if we are trying to use run time linking or normal
10359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10360 # need to do runtime linking.
10361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362 for ld_flag in $LDFLAGS; do
10363 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10364 aix_use_runtimelinking=yes
10371 exp_sym_flag='-bexport'
10372 no_entry_flag='-bnoentry'
10375 # When large executables or shared objects are built, AIX ld can
10376 # have problems creating the table of contents. If linking a library
10377 # or program results in "error TOC overflow" add -mminimal-toc to
10378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10382 hardcode_direct=yes
10383 hardcode_direct_absolute=yes
10384 hardcode_libdir_separator=':'
10385 link_all_deplibs=yes
10386 file_list_spec='${wl}-f,'
10388 if test "$GCC" = yes; then
10389 case $host_os in aix4.[012]|aix4.[012].*)
10390 # We only want to do this on AIX 4.2 and lower, the check
10391 # below for broken collect2 doesn't work under 4.3+
10392 collect2name=`${CC} -print-prog-name=collect2`
10393 if test -f "$collect2name" &&
10394 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10396 # We have reworked collect2
10399 # We have old collect2
10400 hardcode_direct=unsupported
10401 # It fails to find uninstalled libraries when the uninstalled
10402 # path is not listed in the libpath. Setting hardcode_minus_L
10403 # to unsupported forces relinking
10404 hardcode_minus_L=yes
10405 hardcode_libdir_flag_spec='-L$libdir'
10406 hardcode_libdir_separator=
10410 shared_flag='-shared'
10411 if test "$aix_use_runtimelinking" = yes; then
10412 shared_flag="$shared_flag "'${wl}-G'
10416 if test "$host_cpu" = ia64; then
10417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10418 # chokes on -Wl,-G. The following line is correct:
10421 if test "$aix_use_runtimelinking" = yes; then
10422 shared_flag='${wl}-G'
10424 shared_flag='${wl}-bM:SRE'
10429 export_dynamic_flag_spec='${wl}-bexpall'
10430 # It seems that -bexpall does not export symbols beginning with
10431 # underscore (_), so it is better to generate a list of symbols to export.
10432 always_export_symbols=yes
10433 if test "$aix_use_runtimelinking" = yes; then
10434 # Warning - without using the other runtime loading flags (-brtl),
10435 # -berok will link without error, but may produce a broken library.
10436 allow_undefined_flag='-berok'
10437 # Determine the default libpath from the value encoded in an
10438 # empty executable.
10439 cat >conftest.$ac_ext <<_ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest$ac_exeext &&
10471 $as_test_x conftest$ac_exeext; then
10473 lt_aix_libpath_sed='
10474 /Import File Strings/,/^$/ {
10480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10481 # Check for a 64-bit object if we didn't find anything.
10482 if test -z "$aix_libpath"; then
10483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10497 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10499 if test "$host_cpu" = ia64; then
10500 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10501 allow_undefined_flag="-z nodefs"
10502 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10504 # Determine the default libpath from the value encoded in an
10505 # empty executable.
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>conftest.er1
10530 grep -v '^ *+' conftest.er1 >conftest.err
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && {
10535 test -z "$ac_c_werror_flag" ||
10536 test ! -s conftest.err
10537 } && test -s conftest$ac_exeext &&
10538 $as_test_x conftest$ac_exeext; then
10540 lt_aix_libpath_sed='
10541 /Import File Strings/,/^$/ {
10547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 # Check for a 64-bit object if we didn't find anything.
10549 if test -z "$aix_libpath"; then
10550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10560 conftest$ac_exeext conftest.$ac_ext
10561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10564 # Warning - without using the other run time loading flags,
10565 # -berok will link without error, but may produce a broken library.
10566 no_undefined_flag=' ${wl}-bernotok'
10567 allow_undefined_flag=' ${wl}-berok'
10568 # Exported symbols can be pulled into shared objects from archives
10569 whole_archive_flag_spec='$convenience'
10570 archive_cmds_need_lc=yes
10571 # This is similar to how AIX traditionally builds its shared libraries.
10572 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10580 # see comment about AmigaOS4 .so support
10581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10582 archive_expsym_cmds=''
10585 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10586 hardcode_libdir_flag_spec='-L$libdir'
10587 hardcode_minus_L=yes
10593 export_dynamic_flag_spec=-rdynamic
10596 cygwin* | mingw* | pw32* | cegcc*)
10597 # When not using gcc, we currently assume that we are using
10598 # Microsoft Visual C++.
10599 # hardcode_libdir_flag_spec is actually meaningless, as there is
10600 # no search path for DLLs.
10601 hardcode_libdir_flag_spec=' '
10602 allow_undefined_flag=unsupported
10603 # Tell ltmain to make .lib files, not .a files.
10605 # Tell ltmain to make .dll files, not .so files.
10607 # FIXME: Setting linknames here is a bad hack.
10608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10609 # The linker will automatically build a .lib file if we build a DLL.
10610 old_archive_from_new_cmds='true'
10611 # FIXME: Should let the user specify the lib program.
10612 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10613 fix_srcfile_path='`cygpath -w "$srcfile"`'
10614 enable_shared_with_static_runtimes=yes
10617 darwin* | rhapsody*)
10620 archive_cmds_need_lc=no
10622 hardcode_automatic=yes
10623 hardcode_shlibpath_var=unsupported
10624 whole_archive_flag_spec=''
10625 link_all_deplibs=yes
10626 allow_undefined_flag="$_lt_dar_allow_undefined"
10627 case $cc_basename in
10628 ifort*) _lt_dar_can_shared=yes ;;
10629 *) _lt_dar_can_shared=$GCC ;;
10631 if test "$_lt_dar_can_shared" = "yes"; then
10632 output_verbose_link_cmd=echo
10633 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10634 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10635 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10636 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646 hardcode_libdir_flag_spec='-L$libdir'
10647 hardcode_shlibpath_var=no
10654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10655 # support. Future versions do this automatically, but an explicit c++rt0.o
10656 # does not break anything, and helps significantly (at the cost of a little
10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10660 hardcode_libdir_flag_spec='-R$libdir'
10661 hardcode_direct=yes
10662 hardcode_shlibpath_var=no
10665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10668 hardcode_direct=yes
10669 hardcode_minus_L=yes
10670 hardcode_shlibpath_var=no
10673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10674 freebsd* | dragonfly*)
10675 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10676 hardcode_libdir_flag_spec='-R$libdir'
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10682 if test "$GCC" = yes; then
10683 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10685 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10688 hardcode_libdir_separator=:
10689 hardcode_direct=yes
10691 # hardcode_minus_L: Not really in the search PATH,
10692 # but as the default location of the library.
10693 hardcode_minus_L=yes
10694 export_dynamic_flag_spec='${wl}-E'
10698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10703 if test "$with_gnu_ld" = no; then
10704 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10705 hardcode_libdir_flag_spec_ld='+b $libdir'
10706 hardcode_libdir_separator=:
10707 hardcode_direct=yes
10708 hardcode_direct_absolute=yes
10709 export_dynamic_flag_spec='${wl}-E'
10710 # hardcode_minus_L: Not really in the search PATH,
10711 # but as the default location of the library.
10712 hardcode_minus_L=yes
10717 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10720 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10742 if test "$with_gnu_ld" = no; then
10743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10744 hardcode_libdir_separator=:
10749 hardcode_shlibpath_var=no
10752 hardcode_direct=yes
10753 hardcode_direct_absolute=yes
10754 export_dynamic_flag_spec='${wl}-E'
10756 # hardcode_minus_L: Not really in the search PATH,
10757 # but as the default location of the library.
10758 hardcode_minus_L=yes
10764 irix5* | irix6* | nonstopux*)
10765 if test "$GCC" = yes; then
10766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10767 # Try to use the -exported_symbol ld option, if it does not
10768 # work, assume that -exports_file does not work either and
10769 # implicitly export all symbols.
10770 save_LDFLAGS="$LDFLAGS"
10771 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10772 cat >conftest.$ac_ext <<_ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_link") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest$ac_exeext &&
10792 $as_test_x conftest$ac_exeext; then
10793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LDFLAGS="$save_LDFLAGS"
10806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10809 archive_cmds_need_lc='no'
10810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811 hardcode_libdir_separator=:
10813 link_all_deplibs=yes
10817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10820 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10822 hardcode_libdir_flag_spec='-R$libdir'
10823 hardcode_direct=yes
10824 hardcode_shlibpath_var=no
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_direct=yes
10830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831 hardcode_libdir_separator=:
10832 hardcode_shlibpath_var=no
10839 if test -f /usr/libexec/ld.so; then
10840 hardcode_direct=yes
10841 hardcode_shlibpath_var=no
10842 hardcode_direct_absolute=yes
10843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10847 export_dynamic_flag_spec='${wl}-E'
10850 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_libdir_flag_spec='-R$libdir'
10855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10866 hardcode_libdir_flag_spec='-L$libdir'
10867 hardcode_minus_L=yes
10868 allow_undefined_flag=unsupported
10869 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10870 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10874 if test "$GCC" = yes; then
10875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10876 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10878 allow_undefined_flag=' -expect_unresolved \*'
10879 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10881 archive_cmds_need_lc='no'
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10883 hardcode_libdir_separator=:
10886 osf4* | osf5*) # as osf3* with the addition of -msym flag
10887 if test "$GCC" = yes; then
10888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10889 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10892 allow_undefined_flag=' -expect_unresolved \*'
10893 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10894 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10895 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10897 # Both c and cxx compiler support -rpath directly
10898 hardcode_libdir_flag_spec='-rpath $libdir'
10900 archive_cmds_need_lc='no'
10901 hardcode_libdir_separator=:
10905 no_undefined_flag=' -z defs'
10906 if test "$GCC" = yes; then
10908 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10910 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10912 case `$CC -V 2>&1` in
10915 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10921 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10927 hardcode_libdir_flag_spec='-R$libdir'
10928 hardcode_shlibpath_var=no
10930 solaris2.[0-5] | solaris2.[0-5].*) ;;
10932 # The compiler driver will combine and reorder linker options,
10933 # but understands `-z linker_flag'. GCC discards it without `$wl',
10934 # but is careful enough not to reorder.
10935 # Supported since Solaris 2.6 (maybe 2.5.1?)
10936 if test "$GCC" = yes; then
10937 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10939 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10943 link_all_deplibs=yes
10947 if test "x$host_vendor" = xsequent; then
10948 # Use $CC to link under sequent, because it throws in some extra .o
10949 # files that make .init and .fini sections work.
10950 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_libdir_flag_spec='-L$libdir'
10955 hardcode_direct=yes
10956 hardcode_minus_L=yes
10957 hardcode_shlibpath_var=no
10961 case $host_vendor in
10963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=yes # is this really true???
10967 ## LD is ld it makes a PLAMLIB
10968 ## CC just makes a GrossModule.
10969 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10970 reload_cmds='$CC -r -o $output$reload_objs'
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10978 runpath_var='LD_RUN_PATH'
10979 hardcode_shlibpath_var=no
10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_shlibpath_var=no
10985 export_dynamic_flag_spec='-Bexport'
10989 if test -d /usr/nec; then
10990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_shlibpath_var=no
10992 runpath_var=LD_RUN_PATH
10993 hardcode_runpath_var=yes
10998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10999 no_undefined_flag='${wl}-z,text'
11000 archive_cmds_need_lc=no
11001 hardcode_shlibpath_var=no
11002 runpath_var='LD_RUN_PATH'
11004 if test "$GCC" = yes; then
11005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 sysv5* | sco3.2v5* | sco5v6*)
11014 # Note: We can NOT use -z defs as we might desire, because we do not
11015 # link with -lc, and that would cause any symbols used from libc to
11016 # always be unresolved, which means just about no library would
11017 # ever link correctly. If we're not using GNU ld we use -z text
11018 # though, which does catch some bad symbols but isn't as heavy-handed
11020 no_undefined_flag='${wl}-z,text'
11021 allow_undefined_flag='${wl}-z,nodefs'
11022 archive_cmds_need_lc=no
11023 hardcode_shlibpath_var=no
11024 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11025 hardcode_libdir_separator=':'
11026 link_all_deplibs=yes
11027 export_dynamic_flag_spec='${wl}-Bexport'
11028 runpath_var='LD_RUN_PATH'
11030 if test "$GCC" = yes; then
11031 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_libdir_flag_spec='-L$libdir'
11042 hardcode_shlibpath_var=no
11050 if test x$host_vendor = xsni; then
11052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11053 export_dynamic_flag_spec='${wl}-Blargedynsym'
11059 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11060 echo "${ECHO_T}$ld_shlibs" >&6; }
11061 test "$ld_shlibs" = no && can_build_shared=no
11063 with_gnu_ld=$with_gnu_ld
11080 # Do we need to explicitly link libc?
11082 case "x$archive_cmds_need_lc" in
11084 # Assume -lc should be added
11085 archive_cmds_need_lc=yes
11087 if test "$enable_shared" = yes && test "$GCC" = yes; then
11088 case $archive_cmds in
11090 # FIXME: we may have to deal with multi-command sequences.
11093 # Test whether the compiler implicitly links with -lc since on some
11094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11095 # to ld, don't add -lc before -lgcc.
11096 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } 2>conftest.err; then
11108 libobjs=conftest.$ac_objext
11110 wl=$lt_prog_compiler_wl
11111 pic_flag=$lt_prog_compiler_pic
11117 lt_save_allow_undefined_flag=$allow_undefined_flag
11118 allow_undefined_flag=
11119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11120 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }
11125 archive_cmds_need_lc=no
11127 archive_cmds_need_lc=yes
11129 allow_undefined_flag=$lt_save_allow_undefined_flag
11131 cat conftest.err 1>&5
11134 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11135 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11298 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11299 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11301 if test "$GCC" = yes; then
11303 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11304 *) lt_awk_arg="/^libraries:/" ;;
11306 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11307 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11308 # if the path contains ";" then we assume it to be the separator
11309 # otherwise default to the standard path separator (i.e. ":") - it is
11310 # assumed that no part of a normal pathname contains ";" but that should
11311 # okay in the real world where ";" in dirpaths is itself problematic.
11312 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11314 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11316 # Ok, now we have the path, separated by spaces, we can step through it
11317 # and add multilib dir if necessary.
11318 lt_tmp_lt_search_path_spec=
11319 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11320 for lt_sys_path in $lt_search_path_spec; do
11321 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11324 test -d "$lt_sys_path" && \
11325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11328 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11329 BEGIN {RS=" "; FS="/|\n";} {
11332 for (lt_i = NF; lt_i > 0; lt_i--) {
11333 if ($lt_i != "" && $lt_i != ".") {
11334 if ($lt_i == "..") {
11337 if (lt_count == 0) {
11338 lt_foo="/" $lt_i lt_foo;
11345 if (lt_foo != "") { lt_freq[lt_foo]++; }
11346 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11348 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11352 library_names_spec=
11353 libname_spec='lib$name'
11357 postuninstall_cmds=
11361 shlibpath_overrides_runpath=unknown
11363 dynamic_linker="$host_os ld.so"
11364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11365 need_lib_prefix=unknown
11366 hardcode_into_libs=no
11368 # when you set need_version to no, make sure it does not cause -set_version
11369 # flags to be left without arguments
11370 need_version=unknown
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11376 shlibpath_var=LIBPATH
11378 # AIX 3 has no versioning support, so we append a major version to the name.
11379 soname_spec='${libname}${release}${shared_ext}$major'
11386 hardcode_into_libs=yes
11387 if test "$host_cpu" = ia64; then
11388 # AIX 5 supports IA64
11389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11390 shlibpath_var=LD_LIBRARY_PATH
11392 # With GCC up to 2.95.x, collect2 would create an import file
11393 # for dependence libraries. The import file would start with
11394 # the line `#! .'. This would cause the generated library to
11395 # depend on `.', always an invalid library. This was fixed in
11396 # development snapshots of GCC prior to 3.0.
11398 aix4 | aix4.[01] | aix4.[01].*)
11399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11404 can_build_shared=no
11408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11409 # soname into executable. Probably we can add versioning support to
11410 # collect2, so additional links can be useful in future.
11411 if test "$aix_use_runtimelinking" = yes; then
11412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11413 # instead of lib<name>.a to let people know that these are not
11414 # typical AIX shared libraries.
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 # We preserve .a as extension for shared libraries through AIX4.2
11418 # and later when we are not doing run time linking.
11419 library_names_spec='${libname}${release}.a $libname.a'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11422 shlibpath_var=LIBPATH
11429 # Since July 2007 AmigaOS4 officially supports .so libraries.
11430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 library_names_spec='$libname.ixlibrary $libname.a'
11435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11436 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11442 library_names_spec='${libname}${shared_ext}'
11443 dynamic_linker="$host_os ld.so"
11444 shlibpath_var=LIBRARY_PATH
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11456 # the default ld.so.conf also contains /usr/contrib/lib and
11457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11458 # libtool to hard-code these into programs
11461 cygwin* | mingw* | pw32* | cegcc*)
11462 version_type=windows
11467 case $GCC,$host_os in
11468 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11469 library_names_spec='$libname.dll.a'
11470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11471 postinstall_cmds='base_file=`basename \${file}`~
11472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11473 dldir=$destdir/`dirname \$dlpath`~
11474 test -d \$dldir || mkdir -p \$dldir~
11475 $install_prog $dir/$dlname \$dldir/$dlname~
11476 chmod a+x \$dldir/$dlname~
11477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11481 dlpath=$dir/\$dldll~
11483 shlibpath_overrides_runpath=yes
11487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11489 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11492 # MinGW DLLs use traditional 'lib' prefix
11493 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11495 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11496 # It is most probably a Windows format PATH printed by
11497 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11498 # path with ; separators, and with drive letters. We can handle the
11499 # drive letters (cygwin fileutils understands them), so leave them,
11500 # especially as we might pass files found there to a mingw objdump,
11501 # which wouldn't understand a cygwinified path. Ahh.
11502 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11508 # pw32 DLLs use 'pw' prefix rather than 'lib'
11509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11518 dynamic_linker='Win32 ld.exe'
11519 # FIXME: first we should search . and the directory the executable is in
11523 darwin* | rhapsody*)
11524 dynamic_linker="$host_os dyld"
11525 version_type=darwin
11528 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11529 soname_spec='${libname}${release}${major}$shared_ext'
11530 shlibpath_overrides_runpath=yes
11531 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11551 freebsd* | dragonfly*)
11552 # DragonFly does not have aout. When/if they implement a new
11553 # versioning mechanism, adjust this.
11554 if test -x /usr/bin/objformat; then
11555 objformat=`/usr/bin/objformat`
11558 freebsd[123]*) objformat=aout ;;
11559 *) objformat=elf ;;
11562 version_type=freebsd-$objformat
11563 case $version_type in
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11574 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=yes
11579 freebsd3.[01]* | freebsdelf3.[01]*)
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11583 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11584 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11585 shlibpath_overrides_runpath=no
11586 hardcode_into_libs=yes
11588 *) # from 4.6 on, and DragonFly
11589 shlibpath_overrides_runpath=yes
11590 hardcode_into_libs=yes
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 hardcode_into_libs=yes
11605 hpux9* | hpux10* | hpux11*)
11606 # Give a soname corresponding to the major version so that dld.sl refuses to
11607 # link against other versions.
11614 hardcode_into_libs=yes
11615 dynamic_linker="$host_os dld.so"
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 if test "X$HPUX_IA64_MODE" = X32; then
11621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11629 hardcode_into_libs=yes
11630 dynamic_linker="$host_os dld.sl"
11631 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11636 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11640 dynamic_linker="$host_os dld.sl"
11641 shlibpath_var=SHLIB_PATH
11642 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11647 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11648 postinstall_cmds='chmod 555 $lib'
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=no
11660 hardcode_into_libs=yes
11663 irix5* | irix6* | nonstopux*)
11665 nonstopux*) version_type=nonstopux ;;
11667 if test "$lt_cv_prog_gnu_ld" = yes; then
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11678 irix5* | nonstopux*)
11679 libsuff= shlibsuff=
11682 case $LD in # libtool.m4 will add one of these switches to LD
11683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11684 libsuff= shlibsuff= libmagic=32-bit;;
11685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11686 libsuff=32 shlibsuff=N32 libmagic=N32;;
11687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11689 *) libsuff= shlibsuff= libmagic=never-match;;
11693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11694 shlibpath_overrides_runpath=no
11695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11697 hardcode_into_libs=yes
11700 # No shared lib support for Linux oldld, aout, or coff.
11701 linux*oldld* | linux*aout* | linux*coff*)
11705 # This must be Linux ELF.
11706 linux* | k*bsd*-gnu)
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=no
11715 # Some binutils ld are patched to set DT_RUNPATH
11716 save_LDFLAGS=$LDFLAGS
11717 save_libdir=$libdir
11718 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest$ac_exeext &&
11752 $as_test_x conftest$ac_exeext; then
11753 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11754 shlibpath_overrides_runpath=yes
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LDFLAGS=$save_LDFLAGS
11767 libdir=$save_libdir
11769 # This implies no fast_install, which is unacceptable.
11770 # Some rework will be needed to allow for fast_install
11771 # before this can be enabled.
11772 hardcode_into_libs=yes
11774 # Append ld.so.conf contents to the search path
11775 if test -f /etc/ld.so.conf; then
11776 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11780 # We used to test for /lib/ld.so.1 and disable shared libraries on
11781 # powerpc, because MkLinux only supported shared libraries with the
11782 # GNU dynamic linker. Since this was broken with cross compilers,
11783 # most powerpc-linux boxes support dynamic linking these days and
11784 # people can always --disable-shared, the test was removed, and we
11785 # assume the GNU/Linux dynamic linker is in use.
11786 dynamic_linker='GNU/Linux ld.so'
11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11796 dynamic_linker='NetBSD (a.out) ld.so'
11798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11799 soname_spec='${libname}${release}${shared_ext}$major'
11800 dynamic_linker='NetBSD ld.elf_so'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 shlibpath_overrides_runpath=yes
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 soname_spec='${libname}${release}${shared_ext}$major'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822 hardcode_into_libs=yes
11823 dynamic_linker='ldqnx.so'
11828 sys_lib_dlsearch_path_spec="/usr/lib"
11830 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11832 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11833 *) need_version=no ;;
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837 shlibpath_var=LD_LIBRARY_PATH
11838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11840 openbsd2.[89] | openbsd2.[89].*)
11841 shlibpath_overrides_runpath=no
11844 shlibpath_overrides_runpath=yes
11848 shlibpath_overrides_runpath=yes
11853 libname_spec='$name'
11856 library_names_spec='$libname${shared_ext} $libname.a'
11857 dynamic_linker='OS/2 ld.exe'
11858 shlibpath_var=LIBPATH
11861 osf3* | osf4* | osf5*)
11865 soname_spec='${libname}${release}${shared_ext}$major'
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867 shlibpath_var=LD_LIBRARY_PATH
11868 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11869 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes
11884 hardcode_into_libs=yes
11885 # ldd complains unless libraries are executable
11886 postinstall_cmds='chmod +x $lib'
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11892 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11895 if test "$with_gnu_ld" = yes; then
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 case $host_vendor in
11908 shlibpath_overrides_runpath=no
11910 runpath_var=LD_RUN_PATH
11918 shlibpath_overrides_runpath=no
11919 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11925 if test -d /usr/nec ;then
11927 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11928 soname_spec='$libname${shared_ext}.$major'
11929 shlibpath_var=LD_LIBRARY_PATH
11933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11934 version_type=freebsd-elf
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 shlibpath_overrides_runpath=yes
11941 hardcode_into_libs=yes
11942 if test "$with_gnu_ld" = yes; then
11943 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11945 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11952 sys_lib_dlsearch_path_spec='/usr/lib'
11956 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 shlibpath_var=LD_LIBRARY_PATH
11962 shlibpath_overrides_runpath=no
11963 hardcode_into_libs=yes
11968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 shlibpath_var=LD_LIBRARY_PATH
11977 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11978 echo "${ECHO_T}$dynamic_linker" >&6; }
11979 test "$dynamic_linker" = no && can_build_shared=no
11981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11982 if test "$GCC" = yes; then
11983 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11987 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11990 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12079 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12082 if test -n "$hardcode_libdir_flag_spec" ||
12083 test -n "$runpath_var" ||
12084 test "X$hardcode_automatic" = "Xyes" ; then
12086 # We can hardcode non-existent directories.
12087 if test "$hardcode_direct" != no &&
12088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089 # have to relink, otherwise we might link with an installed library
12090 # when we should be linking with a yet-to-be-installed one
12091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12092 test "$hardcode_minus_L" != no; then
12093 # Linking always hardcodes the temporary library directory.
12094 hardcode_action=relink
12096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097 hardcode_action=immediate
12100 # We cannot hardcode anything, or else we can only hardcode existing
12102 hardcode_action=unsupported
12104 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12105 echo "${ECHO_T}$hardcode_action" >&6; }
12107 if test "$hardcode_action" = relink ||
12108 test "$inherit_rpath" = yes; then
12109 # Fast installation is not supported
12110 enable_fast_install=no
12111 elif test "$shlibpath_overrides_runpath" = yes ||
12112 test "$enable_shared" = no; then
12113 # Fast installation is not necessary
12114 enable_fast_install=needless
12122 if test "x$enable_dlopen" != xyes; then
12123 enable_dlopen=unknown
12124 enable_dlopen_self=unknown
12125 enable_dlopen_self_static=unknown
12132 lt_cv_dlopen="load_add_on"
12134 lt_cv_dlopen_self=yes
12137 mingw* | pw32* | cegcc*)
12138 lt_cv_dlopen="LoadLibrary"
12143 lt_cv_dlopen="dlopen"
12148 # if libdl is installed we need to link against it
12149 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12150 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12156 cat >conftest.$ac_ext <<_ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (ac_try="$ac_link"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 ac_cv_lib_dl_dlopen=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_dl_dlopen=no
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12210 if test $ac_cv_lib_dl_dlopen = yes; then
12211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12214 lt_cv_dlopen="dyld"
12216 lt_cv_dlopen_self=yes
12223 { echo "$as_me:$LINENO: checking for shl_load" >&5
12224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12225 if test "${ac_cv_func_shl_load+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 cat >conftest.$ac_ext <<_ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define shl_load innocuous_shl_load
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char shl_load (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12244 # include <limits.h>
12246 # include <assert.h>
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12258 /* The GNU C library defines this for functions which it implements
12259 to always fail with ENOSYS. Some functions are actually named
12260 something starting with __ and the normal name is an alias. */
12261 #if defined __stub_shl_load || defined __stub___shl_load
12268 return shl_load ();
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291 ac_cv_func_shl_load=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_func_shl_load=no
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300 conftest$ac_exeext conftest.$ac_ext
12302 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12303 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12304 if test $ac_cv_func_shl_load = yes; then
12305 lt_cv_dlopen="shl_load"
12307 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12308 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_check_lib_save_LIBS=$LIBS
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12331 return shl_load ();
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext &&
12353 $as_test_x conftest$ac_exeext; then
12354 ac_cv_lib_dld_shl_load=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_dld_shl_load=no
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12366 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12368 if test $ac_cv_lib_dld_shl_load = yes; then
12369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12371 { echo "$as_me:$LINENO: checking for dlopen" >&5
12372 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12373 if test "${ac_cv_func_dlopen+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12384 #define dlopen innocuous_dlopen
12386 /* System header to define __stub macros and hopefully few prototypes,
12387 which can conflict with char dlopen (); below.
12388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 <limits.h> exists even on freestanding compilers. */
12392 # include <limits.h>
12394 # include <assert.h>
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12406 /* The GNU C library defines this for functions which it implements
12407 to always fail with ENOSYS. Some functions are actually named
12408 something starting with __ and the normal name is an alias. */
12409 #if defined __stub_dlopen || defined __stub___dlopen
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext &&
12438 $as_test_x conftest$ac_exeext; then
12439 ac_cv_func_dlopen=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_func_dlopen=no
12447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12448 conftest$ac_exeext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12452 if test $ac_cv_func_dlopen = yes; then
12453 lt_cv_dlopen="dlopen"
12455 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 ac_check_lib_save_LIBS=$LIBS
12462 cat >conftest.$ac_ext <<_ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>conftest.er1
12493 grep -v '^ *+' conftest.er1 >conftest.err
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } && {
12498 test -z "$ac_c_werror_flag" ||
12499 test ! -s conftest.err
12500 } && test -s conftest$ac_exeext &&
12501 $as_test_x conftest$ac_exeext; then
12502 ac_cv_lib_dl_dlopen=yes
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12507 ac_cv_lib_dl_dlopen=no
12510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12514 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12515 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12516 if test $ac_cv_lib_dl_dlopen = yes; then
12517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12519 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12520 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12521 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-lsvld $LIBS"
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12533 /* Override any GCC internal prototype to avoid an error.
12534 Use char because int might match the return type of a GCC
12535 builtin and then its argument prototype would still apply. */
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext &&
12565 $as_test_x conftest$ac_exeext; then
12566 ac_cv_lib_svld_dlopen=yes
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_cv_lib_svld_dlopen=no
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12580 if test $ac_cv_lib_svld_dlopen = yes; then
12581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12583 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 ac_check_lib_save_LIBS=$LIBS
12590 cat >conftest.$ac_ext <<_ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12597 /* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12607 return dld_link ();
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_link") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest$ac_exeext &&
12629 $as_test_x conftest$ac_exeext; then
12630 ac_cv_lib_dld_dld_link=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ac_cv_lib_dld_dld_link=no
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12642 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12643 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12644 if test $ac_cv_lib_dld_dld_link = yes; then
12645 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12666 if test "x$lt_cv_dlopen" != xno; then
12672 case $lt_cv_dlopen in
12674 save_CPPFLAGS="$CPPFLAGS"
12675 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12677 save_LDFLAGS="$LDFLAGS"
12678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12681 LIBS="$lt_cv_dlopen_libs $LIBS"
12683 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12684 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12685 if test "${lt_cv_dlopen_self+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 if test "$cross_compiling" = yes; then :
12689 lt_cv_dlopen_self=cross
12691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12692 lt_status=$lt_dlunknown
12693 cat > conftest.$ac_ext <<_LT_EOF
12694 #line 12694 "configure"
12695 #include "confdefs.h"
12704 # define LT_DLGLOBAL RTLD_GLOBAL
12707 # define LT_DLGLOBAL DL_GLOBAL
12709 # define LT_DLGLOBAL 0
12713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12714 find out it does not work in some platform. */
12715 #ifndef LT_DLLAZY_OR_NOW
12717 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12720 # define LT_DLLAZY_OR_NOW DL_LAZY
12723 # define LT_DLLAZY_OR_NOW RTLD_NOW
12726 # define LT_DLLAZY_OR_NOW DL_NOW
12728 # define LT_DLLAZY_OR_NOW 0
12735 void fnord() { int i=42;}
12738 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12739 int status = $lt_dlunknown;
12743 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12744 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12745 /* dlclose (self); */
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12758 (./conftest; exit; ) >&5 2>/dev/null
12760 case x$lt_status in
12761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12763 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12766 # compilation failed
12767 lt_cv_dlopen_self=no
12774 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12775 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12777 if test "x$lt_cv_dlopen_self" = xyes; then
12778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12779 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12780 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12781 if test "${lt_cv_dlopen_self_static+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 if test "$cross_compiling" = yes; then :
12785 lt_cv_dlopen_self_static=cross
12787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12788 lt_status=$lt_dlunknown
12789 cat > conftest.$ac_ext <<_LT_EOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12800 # define LT_DLGLOBAL RTLD_GLOBAL
12803 # define LT_DLGLOBAL DL_GLOBAL
12805 # define LT_DLGLOBAL 0
12809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12810 find out it does not work in some platform. */
12811 #ifndef LT_DLLAZY_OR_NOW
12813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12816 # define LT_DLLAZY_OR_NOW DL_LAZY
12819 # define LT_DLLAZY_OR_NOW RTLD_NOW
12822 # define LT_DLLAZY_OR_NOW DL_NOW
12824 # define LT_DLLAZY_OR_NOW 0
12831 void fnord() { int i=42;}
12834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12835 int status = $lt_dlunknown;
12839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12841 /* dlclose (self); */
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12854 (./conftest; exit; ) >&5 2>/dev/null
12856 case x$lt_status in
12857 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12858 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12859 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12862 # compilation failed
12863 lt_cv_dlopen_self_static=no
12870 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12874 CPPFLAGS="$save_CPPFLAGS"
12875 LDFLAGS="$save_LDFLAGS"
12880 case $lt_cv_dlopen_self in
12881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12882 *) enable_dlopen_self=unknown ;;
12885 case $lt_cv_dlopen_self_static in
12886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12887 *) enable_dlopen_self_static=unknown ;;
12909 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12910 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12912 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12913 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12914 { echo "$as_me:$LINENO: result: yes" >&5
12915 echo "${ECHO_T}yes" >&6; }
12917 # FIXME - insert some real tests, host_os isn't really good enough
12920 if test -n "$STRIP" ; then
12921 striplib="$STRIP -x"
12922 old_striplib="$STRIP -S"
12923 { echo "$as_me:$LINENO: result: yes" >&5
12924 echo "${ECHO_T}yes" >&6; }
12926 { echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6; }
12931 { echo "$as_me:$LINENO: result: no" >&5
12932 echo "${ECHO_T}no" >&6; }
12948 # Report which library types will actually be built
12949 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12951 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12952 echo "${ECHO_T}$can_build_shared" >&6; }
12954 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12956 test "$can_build_shared" = "no" && enable_shared=no
12958 # On AIX, shared libraries and static libraries use the same namespace, and
12959 # are all built from PIC.
12962 test "$enable_shared" = yes && enable_static=no
12963 if test -n "$RANLIB"; then
12964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12965 postinstall_cmds='$RANLIB $lib'
12970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12971 test "$enable_shared" = yes && enable_static=no
12975 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12976 echo "${ECHO_T}$enable_shared" >&6; }
12978 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12980 # Make sure either enable_shared or enable_static is yes.
12981 test "$enable_shared" = yes || enable_static=yes
12982 { echo "$as_me:$LINENO: result: $enable_static" >&5
12983 echo "${ECHO_T}$enable_static" >&6; }
12990 ac_cpp='$CPP $CPPFLAGS'
12991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12999 ac_cpp='$CXXCPP $CPPFLAGS'
13000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13004 archive_cmds_need_lc_CXX=no
13005 allow_undefined_flag_CXX=
13006 always_export_symbols_CXX=no
13007 archive_expsym_cmds_CXX=
13008 compiler_needs_object_CXX=no
13009 export_dynamic_flag_spec_CXX=
13010 hardcode_direct_CXX=no
13011 hardcode_direct_absolute_CXX=no
13012 hardcode_libdir_flag_spec_CXX=
13013 hardcode_libdir_flag_spec_ld_CXX=
13014 hardcode_libdir_separator_CXX=
13015 hardcode_minus_L_CXX=no
13016 hardcode_shlibpath_var_CXX=unsupported
13017 hardcode_automatic_CXX=no
13018 inherit_rpath_CXX=no
13020 module_expsym_cmds_CXX=
13021 link_all_deplibs_CXX=unknown
13022 old_archive_cmds_CXX=$old_archive_cmds
13023 no_undefined_flag_CXX=
13024 whole_archive_flag_spec_CXX=
13025 enable_shared_with_static_runtimes_CXX=no
13027 # Source file extension for C++ test sources.
13030 # Object file extension for compiled C++ test sources.
13034 # No sense in running all these tests if we already determined that
13035 # the CXX compiler isn't working. Some variables (like enable_shared)
13036 # are currently assumed to apply to all compilers on this platform,
13037 # and will be corrupted by setting them based on a non-working compiler.
13038 if test "$_lt_caught_CXX_error" != yes; then
13039 # Code to be used in simple compile tests
13040 lt_simple_compile_test_code="int some_variable = 0;"
13042 # Code to be used in simple link tests
13043 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13045 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13052 # If no C compiler was specified, use CC.
13055 # If no C compiler flags were specified, use CFLAGS.
13056 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13058 # Allow CC to be a program name with arguments.
13062 # save warnings/boilerplate of simple test code
13063 ac_outfile=conftest.$ac_objext
13064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13066 _lt_compiler_boilerplate=`cat conftest.err`
13069 ac_outfile=conftest.$ac_objext
13070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13072 _lt_linker_boilerplate=`cat conftest.err`
13076 # Allow CC to be a program name with arguments.
13081 lt_save_with_gnu_ld=$with_gnu_ld
13082 lt_save_path_LD=$lt_cv_path_LD
13083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13086 $as_unset lt_cv_prog_gnu_ld
13088 if test -n "${lt_cv_path_LDCXX+set}"; then
13089 lt_cv_path_LD=$lt_cv_path_LDCXX
13091 $as_unset lt_cv_path_LD
13093 test -z "${LDCXX+set}" || LD=$LDCXX
13097 for cc_temp in $compiler""; do
13099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13105 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13108 if test -n "$compiler"; then
13109 # We don't want -fno-exception when compiling C++ code, so set the
13110 # no_builtin_flag separately
13111 if test "$GXX" = yes; then
13112 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13114 lt_prog_compiler_no_builtin_flag_CXX=
13117 if test "$GXX" = yes; then
13118 # Set up default GNU C++ configuration
13122 # Check whether --with-gnu-ld was given.
13123 if test "${with_gnu_ld+set}" = set; then
13124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13130 if test "$GCC" = yes; then
13131 # Check if gcc -print-prog-name=ld gives a path.
13132 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13133 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13136 # gcc leaves a trailing carriage return which upsets mingw
13137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13142 # Accept absolute paths.
13144 re_direlt='/[^/][^/]*/\.\./'
13145 # Canonicalize the pathname of ld
13146 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13147 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13148 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13150 test -z "$LD" && LD="$ac_prog"
13153 # If it fails, then pretend we aren't using GCC.
13157 # If it is relative, then search for the first ld in PATH.
13158 with_gnu_ld=unknown
13161 elif test "$with_gnu_ld" = yes; then
13162 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13163 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13165 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13166 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13168 if test "${lt_cv_path_LD+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 if test -z "$LD"; then
13172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13173 for ac_dir in $PATH; do
13175 test -z "$ac_dir" && ac_dir=.
13176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13177 lt_cv_path_LD="$ac_dir/$ac_prog"
13178 # Check to see if the program is GNU ld. I'd rather use --version,
13179 # but apparently some variants of GNU ld only accept -v.
13180 # Break only if it was the GNU/non-GNU ld that we prefer.
13181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13182 *GNU* | *'with BFD'*)
13183 test "$with_gnu_ld" != no && break
13186 test "$with_gnu_ld" != yes && break
13193 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13197 LD="$lt_cv_path_LD"
13198 if test -n "$LD"; then
13199 { echo "$as_me:$LINENO: result: $LD" >&5
13200 echo "${ECHO_T}$LD" >&6; }
13202 { echo "$as_me:$LINENO: result: no" >&5
13203 echo "${ECHO_T}no" >&6; }
13205 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13206 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13207 { (exit 1); exit 1; }; }
13208 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13209 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13210 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13214 case `$LD -v 2>&1 </dev/null` in
13215 *GNU* | *'with BFD'*)
13216 lt_cv_prog_gnu_ld=yes
13219 lt_cv_prog_gnu_ld=no
13223 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13224 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13225 with_gnu_ld=$lt_cv_prog_gnu_ld
13233 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13234 # archiving commands below assume that GNU ld is being used.
13235 if test "$with_gnu_ld" = yes; then
13236 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13237 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13239 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13240 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13242 # If archive_cmds runs LD, not CC, wlarc should be empty
13243 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13244 # investigate it a little bit more. (MM)
13247 # ancient GNU ld didn't support --whole-archive et. al.
13248 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13249 $GREP 'no-whole-archive' > /dev/null; then
13250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13252 whole_archive_flag_spec_CXX=
13258 # A generic and very simple default shared library creation
13259 # command for GNU C++ for the case where it uses the native
13260 # linker, instead of GNU ld. If possible, this setting should
13261 # overridden to take advantage of the native linker features on
13262 # the platform it is being used on.
13263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13266 # Commands to make compiler produce verbose output that lists
13267 # what "hidden" libraries, object files and flags are used when
13268 # linking a shared library.
13269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13277 # PORTME: fill in a description of your system's C++ link characteristics
13278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13283 # FIXME: insert proper C++ library support
13287 if test "$host_cpu" = ia64; then
13288 # On IA64, the linker does run time linking by default, so we don't
13289 # have to do anything special.
13290 aix_use_runtimelinking=no
13291 exp_sym_flag='-Bexport'
13294 aix_use_runtimelinking=no
13296 # Test if we are trying to use run time linking or normal
13297 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13298 # need to do runtime linking.
13299 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13300 for ld_flag in $LDFLAGS; do
13303 aix_use_runtimelinking=yes
13311 exp_sym_flag='-bexport'
13312 no_entry_flag='-bnoentry'
13315 # When large executables or shared objects are built, AIX ld can
13316 # have problems creating the table of contents. If linking a library
13317 # or program results in "error TOC overflow" add -mminimal-toc to
13318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13321 archive_cmds_CXX=''
13322 hardcode_direct_CXX=yes
13323 hardcode_direct_absolute_CXX=yes
13324 hardcode_libdir_separator_CXX=':'
13325 link_all_deplibs_CXX=yes
13326 file_list_spec_CXX='${wl}-f,'
13328 if test "$GXX" = yes; then
13329 case $host_os in aix4.[012]|aix4.[012].*)
13330 # We only want to do this on AIX 4.2 and lower, the check
13331 # below for broken collect2 doesn't work under 4.3+
13332 collect2name=`${CC} -print-prog-name=collect2`
13333 if test -f "$collect2name" &&
13334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13336 # We have reworked collect2
13339 # We have old collect2
13340 hardcode_direct_CXX=unsupported
13341 # It fails to find uninstalled libraries when the uninstalled
13342 # path is not listed in the libpath. Setting hardcode_minus_L
13343 # to unsupported forces relinking
13344 hardcode_minus_L_CXX=yes
13345 hardcode_libdir_flag_spec_CXX='-L$libdir'
13346 hardcode_libdir_separator_CXX=
13349 shared_flag='-shared'
13350 if test "$aix_use_runtimelinking" = yes; then
13351 shared_flag="$shared_flag "'${wl}-G'
13355 if test "$host_cpu" = ia64; then
13356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13357 # chokes on -Wl,-G. The following line is correct:
13360 if test "$aix_use_runtimelinking" = yes; then
13361 shared_flag='${wl}-G'
13363 shared_flag='${wl}-bM:SRE'
13368 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13369 # It seems that -bexpall does not export symbols beginning with
13370 # underscore (_), so it is better to generate a list of symbols to
13372 always_export_symbols_CXX=yes
13373 if test "$aix_use_runtimelinking" = yes; then
13374 # Warning - without using the other runtime loading flags (-brtl),
13375 # -berok will link without error, but may produce a broken library.
13376 allow_undefined_flag_CXX='-berok'
13377 # Determine the default libpath from the value encoded in an empty
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_link") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_cxx_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest$ac_exeext &&
13411 $as_test_x conftest$ac_exeext; then
13413 lt_aix_libpath_sed='
13414 /Import File Strings/,/^$/ {
13420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13421 # Check for a 64-bit object if we didn't find anything.
13422 if test -z "$aix_libpath"; then
13423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433 conftest$ac_exeext conftest.$ac_ext
13434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13438 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13440 if test "$host_cpu" = ia64; then
13441 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13442 allow_undefined_flag_CXX="-z nodefs"
13443 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13445 # Determine the default libpath from the value encoded in an
13446 # empty executable.
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && {
13476 test -z "$ac_cxx_werror_flag" ||
13477 test ! -s conftest.err
13478 } && test -s conftest$ac_exeext &&
13479 $as_test_x conftest$ac_exeext; then
13481 lt_aix_libpath_sed='
13482 /Import File Strings/,/^$/ {
13488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13489 # Check for a 64-bit object if we didn't find anything.
13490 if test -z "$aix_libpath"; then
13491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13504 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13505 # Warning - without using the other run time loading flags,
13506 # -berok will link without error, but may produce a broken library.
13507 no_undefined_flag_CXX=' ${wl}-bernotok'
13508 allow_undefined_flag_CXX=' ${wl}-berok'
13509 # Exported symbols can be pulled into shared objects from archives
13510 whole_archive_flag_spec_CXX='$convenience'
13511 archive_cmds_need_lc_CXX=yes
13512 # This is similar to how AIX traditionally builds its shared
13514 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13521 allow_undefined_flag_CXX=unsupported
13522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13523 # support --undefined. This deserves some investigation. FIXME
13524 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531 case $cc_basename in
13533 # FIXME: insert proper C++ library support
13539 cygwin* | mingw* | pw32* | cegcc*)
13540 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13541 # as there is no search path for DLLs.
13542 hardcode_libdir_flag_spec_CXX='-L$libdir'
13543 allow_undefined_flag_CXX=unsupported
13544 always_export_symbols_CXX=no
13545 enable_shared_with_static_runtimes_CXX=yes
13547 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13548 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13549 # If the export-symbols file already is a .def file (1st line
13550 # is EXPORTS), use it as is; otherwise, prepend...
13551 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13552 cp $export_symbols $output_objdir/$soname.def;
13554 echo EXPORTS > $output_objdir/$soname.def;
13555 cat $export_symbols >> $output_objdir/$soname.def;
13557 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13562 darwin* | rhapsody*)
13565 archive_cmds_need_lc_CXX=no
13566 hardcode_direct_CXX=no
13567 hardcode_automatic_CXX=yes
13568 hardcode_shlibpath_var_CXX=unsupported
13569 whole_archive_flag_spec_CXX=''
13570 link_all_deplibs_CXX=yes
13571 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13572 case $cc_basename in
13573 ifort*) _lt_dar_can_shared=yes ;;
13574 *) _lt_dar_can_shared=$GCC ;;
13576 if test "$_lt_dar_can_shared" = "yes"; then
13577 output_verbose_link_cmd=echo
13578 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13579 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13580 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13581 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13582 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13583 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13584 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13594 case $cc_basename in
13596 # FIXME: insert proper C++ library support
13600 # Green Hills C++ Compiler
13601 # FIXME: insert proper C++ library support
13605 # FIXME: insert proper C++ library support
13612 # C++ shared libraries reported to be fairly broken before
13618 archive_cmds_need_lc_CXX=no
13621 freebsd* | dragonfly*)
13622 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13631 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13632 hardcode_libdir_separator_CXX=:
13633 export_dynamic_flag_spec_CXX='${wl}-E'
13634 hardcode_direct_CXX=yes
13635 hardcode_minus_L_CXX=yes # Not in the search PATH,
13636 # but as the default
13637 # location of the library.
13639 case $cc_basename in
13641 # FIXME: insert proper C++ library support
13645 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13646 # Commands to make compiler produce verbose output that lists
13647 # what "hidden" libraries, object files and flags are used when
13648 # linking a shared library.
13650 # There doesn't appear to be a way to prevent this compiler from
13651 # explicitly linking system object files so we need to strip them
13652 # from the output so that they don't get included in the library
13654 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13657 if test "$GXX" = yes; then
13658 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13660 # FIXME: insert proper C++ library support
13668 if test $with_gnu_ld = no; then
13669 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13670 hardcode_libdir_separator_CXX=:
13676 export_dynamic_flag_spec_CXX='${wl}-E'
13682 hardcode_direct_CXX=no
13683 hardcode_shlibpath_var_CXX=no
13686 hardcode_direct_CXX=yes
13687 hardcode_direct_absolute_CXX=yes
13688 hardcode_minus_L_CXX=yes # Not in the search PATH,
13689 # but as the default
13690 # location of the library.
13694 case $cc_basename in
13696 # FIXME: insert proper C++ library support
13702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13711 # Commands to make compiler produce verbose output that lists
13712 # what "hidden" libraries, object files and flags are used when
13713 # linking a shared library.
13715 # There doesn't appear to be a way to prevent this compiler from
13716 # explicitly linking system object files so we need to strip them
13717 # from the output so that they don't get included in the library
13719 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13722 if test "$GXX" = yes; then
13723 if test $with_gnu_ld = no; then
13726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13729 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13732 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13737 # FIXME: insert proper C++ library support
13745 hardcode_direct_CXX=no
13746 hardcode_shlibpath_var_CXX=no
13747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748 export_dynamic_flag_spec_CXX='${wl}-E'
13749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13750 # Instead, shared libraries are loaded at an image base (0x10000000 by
13751 # default) and relocated if they conflict, which is a slow very memory
13752 # consuming and fragmenting process. To avoid this, we pick a random,
13753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13755 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13756 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13759 case $cc_basename in
13762 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13764 # Archives containing C++ object files must be created using
13765 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13766 # necessary to make sure instantiated templates are included
13768 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13771 if test "$GXX" = yes; then
13772 if test "$with_gnu_ld" = no; then
13773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13778 link_all_deplibs_CXX=yes
13781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13782 hardcode_libdir_separator_CXX=:
13783 inherit_rpath_CXX=yes
13786 linux* | k*bsd*-gnu)
13787 case $cc_basename in
13789 # Kuck and Associates, Inc. (KAI) C++ Compiler
13791 # KCC will only create a shared library if the output file
13792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13793 # to its proper name (with version) after linking.
13794 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13795 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13796 # Commands to make compiler produce verbose output that lists
13797 # what "hidden" libraries, object files and flags are used when
13798 # linking a shared library.
13800 # There doesn't appear to be a way to prevent this compiler from
13801 # explicitly linking system object files so we need to strip them
13802 # from the output so that they don't get included in the library
13804 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809 # Archives containing C++ object files must be created using
13810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13816 # version 8.0 and above of icpc choke on multiply defined symbols
13817 # if we add $predep_objects and $postdep_objects, however 7.1 and
13818 # earlier do not add the objects themselves.
13819 case `$CC -V 2>&1` in
13821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13824 *) # Version 8.0 or newer
13827 ia64*) tmp_idyn=' -i_dynamic';;
13829 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833 archive_cmds_need_lc_CXX=no
13834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13836 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13839 # Portland Group C++ compiler
13841 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13842 prelink_cmds_CXX='tpldir=Template.dir~
13844 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13845 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13846 old_archive_cmds_CXX='tpldir=Template.dir~
13848 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13849 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13851 archive_cmds_CXX='tpldir=Template.dir~
13853 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13854 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13855 archive_expsym_cmds_CXX='tpldir=Template.dir~
13857 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13858 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13860 *) # Version 6 will use weak symbols
13861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13862 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13866 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13867 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13868 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13873 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13875 runpath_var=LD_RUN_PATH
13876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13877 hardcode_libdir_separator_CXX=:
13879 # Commands to make compiler produce verbose output that lists
13880 # what "hidden" libraries, object files and flags are used when
13881 # linking a shared library.
13883 # There doesn't appear to be a way to prevent this compiler from
13884 # explicitly linking system object files so we need to strip them
13885 # from the output so that they don't get included in the library
13887 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13890 # IBM XL 8.0 on PPC, with GNU ld
13891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13893 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894 if test "x$supports_anon_versioning" = xyes; then
13895 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13897 echo "local: *; };" >> $output_objdir/$libname.ver~
13898 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13902 case `$CC -V 2>&1 | sed 5q` in
13905 no_undefined_flag_CXX=' -zdefs'
13906 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13907 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13908 hardcode_libdir_flag_spec_CXX='-R$libdir'
13909 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13910 compiler_needs_object_CXX=yes
13912 # Not sure whether something based on
13913 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13915 output_verbose_link_cmd='echo'
13917 # Archives containing C++ object files must be created using
13918 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13919 # necessary to make sure instantiated templates are included
13921 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13929 # FIXME: insert proper C++ library support
13934 # FIXME: insert proper C++ library support
13939 case $cc_basename in
13941 # FIXME: insert proper C++ library support
13945 # FIXME: insert proper C++ library support
13952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13953 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13955 hardcode_libdir_flag_spec_CXX='-R$libdir'
13956 hardcode_direct_CXX=yes
13957 hardcode_shlibpath_var_CXX=no
13959 # Workaround some broken pre-1.5 toolchains
13960 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13968 # C++ shared libraries are fairly broken
13973 if test -f /usr/libexec/ld.so; then
13974 hardcode_direct_CXX=yes
13975 hardcode_shlibpath_var_CXX=no
13976 hardcode_direct_absolute_CXX=yes
13977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13980 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13981 export_dynamic_flag_spec_CXX='${wl}-E'
13982 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13984 output_verbose_link_cmd=echo
13990 osf3* | osf4* | osf5*)
13991 case $cc_basename in
13993 # Kuck and Associates, Inc. (KAI) C++ Compiler
13995 # KCC will only create a shared library if the output file
13996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13997 # to its proper name (with version) after linking.
13998 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14000 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14001 hardcode_libdir_separator_CXX=:
14003 # Archives containing C++ object files must be created using
14004 # the KAI C++ compiler.
14006 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14007 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14011 # Rational C++ 2.4.1
14012 # FIXME: insert proper C++ library support
14018 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14019 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14020 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14023 allow_undefined_flag_CXX=' -expect_unresolved \*'
14024 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14025 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14026 echo "-hidden">> $lib.exp~
14027 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14029 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14033 hardcode_libdir_separator_CXX=:
14035 # Commands to make compiler produce verbose output that lists
14036 # what "hidden" libraries, object files and flags are used when
14037 # linking a shared library.
14039 # There doesn't appear to be a way to prevent this compiler from
14040 # explicitly linking system object files so we need to strip them
14041 # from the output so that they don't get included in the library
14043 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14046 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14047 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14050 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14053 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14058 hardcode_libdir_separator_CXX=:
14060 # Commands to make compiler produce verbose output that lists
14061 # what "hidden" libraries, object files and flags are used when
14062 # linking a shared library.
14063 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14066 # FIXME: insert proper C++ library support
14074 # FIXME: insert proper C++ library support
14079 case $cc_basename in
14082 # FIXME: insert proper C++ library support
14087 # FIXME: insert proper C++ library support
14091 # FIXME: insert proper C++ library support
14098 case $cc_basename in
14100 # Sun C++ 4.2, 5.x and Centerline C++
14101 archive_cmds_need_lc_CXX=yes
14102 no_undefined_flag_CXX=' -zdefs'
14103 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14105 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14107 hardcode_libdir_flag_spec_CXX='-R$libdir'
14108 hardcode_shlibpath_var_CXX=no
14110 solaris2.[0-5] | solaris2.[0-5].*) ;;
14112 # The compiler driver will combine and reorder linker options,
14113 # but understands `-z linker_flag'.
14114 # Supported since Solaris 2.6 (maybe 2.5.1?)
14115 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14118 link_all_deplibs_CXX=yes
14120 output_verbose_link_cmd='echo'
14122 # Archives containing C++ object files must be created using
14123 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14124 # necessary to make sure instantiated templates are included
14126 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14129 # Green Hills C++ Compiler
14130 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14132 # The C++ compiler must be used to create the archive.
14133 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14136 # GNU C++ compiler with Solaris linker
14137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14138 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14139 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14140 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14141 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14144 # Commands to make compiler produce verbose output that lists
14145 # what "hidden" libraries, object files and flags are used when
14146 # linking a shared library.
14147 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14149 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14151 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14152 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14153 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14155 # Commands to make compiler produce verbose output that lists
14156 # what "hidden" libraries, object files and flags are used when
14157 # linking a shared library.
14158 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14161 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14163 solaris2.[0-5] | solaris2.[0-5].*) ;;
14165 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14173 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14174 no_undefined_flag_CXX='${wl}-z,text'
14175 archive_cmds_need_lc_CXX=no
14176 hardcode_shlibpath_var_CXX=no
14177 runpath_var='LD_RUN_PATH'
14179 case $cc_basename in
14181 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14185 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14191 sysv5* | sco3.2v5* | sco5v6*)
14192 # Note: We can NOT use -z defs as we might desire, because we do not
14193 # link with -lc, and that would cause any symbols used from libc to
14194 # always be unresolved, which means just about no library would
14195 # ever link correctly. If we're not using GNU ld we use -z text
14196 # though, which does catch some bad symbols but isn't as heavy-handed
14198 no_undefined_flag_CXX='${wl}-z,text'
14199 allow_undefined_flag_CXX='${wl}-z,nodefs'
14200 archive_cmds_need_lc_CXX=no
14201 hardcode_shlibpath_var_CXX=no
14202 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14203 hardcode_libdir_separator_CXX=':'
14204 link_all_deplibs_CXX=yes
14205 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14206 runpath_var='LD_RUN_PATH'
14208 case $cc_basename in
14210 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14214 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14221 case $cc_basename in
14223 # NonStop-UX NCC 3.20
14224 # FIXME: insert proper C++ library support
14228 # FIXME: insert proper C++ library support
14235 # FIXME: insert proper C++ library support
14240 # FIXME: insert proper C++ library support
14245 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14246 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14247 test "$ld_shlibs_CXX" = no && can_build_shared=no
14253 ## There is no encapsulation within the following macros, do not change
14254 ## the running order or otherwise move them around unless you know exactly
14255 ## what you are doing...
14256 # Dependencies to place before and after the object being linked:
14257 predep_objects_CXX=
14258 postdep_objects_CXX=
14261 compiler_lib_search_path_CXX=
14263 cat > conftest.$ac_ext <<_LT_EOF
14267 Foo (void) { a = 0; }
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; then
14278 # Parse the compiler output and extract the necessary
14279 # objects, libraries and library flags.
14281 # Sentinel used to keep track of whether or not we are before
14282 # the conftest object file.
14283 pre_test_object_deps_done=no
14285 for p in `eval "$output_verbose_link_cmd"`; do
14289 # Some compilers place space between "-{L,R}" and the path.
14290 # Remove the space.
14291 if test $p = "-L" ||
14292 test $p = "-R"; then
14299 if test "$pre_test_object_deps_done" = no; then
14302 # Internal compiler library paths should come after those
14303 # provided the user. The postdeps already come after the
14304 # user supplied libs so there is no need to process them.
14305 if test -z "$compiler_lib_search_path_CXX"; then
14306 compiler_lib_search_path_CXX="${prev}${p}"
14308 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14311 # The "-l" case would never come before the object being
14312 # linked, so don't bother handling this case.
14315 if test -z "$postdeps_CXX"; then
14316 postdeps_CXX="${prev}${p}"
14318 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14324 # This assumes that the test object file only shows up
14325 # once in the compiler output.
14326 if test "$p" = "conftest.$objext"; then
14327 pre_test_object_deps_done=yes
14331 if test "$pre_test_object_deps_done" = no; then
14332 if test -z "$predep_objects_CXX"; then
14333 predep_objects_CXX="$p"
14335 predep_objects_CXX="$predep_objects_CXX $p"
14338 if test -z "$postdep_objects_CXX"; then
14339 postdep_objects_CXX="$p"
14341 postdep_objects_CXX="$postdep_objects_CXX $p"
14346 *) ;; # Ignore the rest.
14354 echo "libtool.m4: error: problem compiling CXX test program"
14357 $RM -f confest.$objext
14359 # PORTME: override above test on systems where it is broken
14362 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14363 # hack all around it, let's just trust "g++" to DTRT.
14364 predep_objects_CXX=
14365 postdep_objects_CXX=
14370 case `$CC -V 2>&1 | sed 5q` in
14374 # The more standards-conforming stlport4 library is
14375 # incompatible with the Cstd library. Avoid specifying
14376 # it if it's in CXXFLAGS. Ignore libCrun as
14377 # -library=stlport4 depends on it.
14378 case " $CXX $CXXFLAGS " in
14379 *" -library=stlport4 "*)
14380 solaris_use_stlport4=yes
14384 if test "$solaris_use_stlport4" != yes; then
14385 postdeps_CXX='-library=Cstd -library=Crun'
14392 case $cc_basename in
14394 # The more standards-conforming stlport4 library is
14395 # incompatible with the Cstd library. Avoid specifying
14396 # it if it's in CXXFLAGS. Ignore libCrun as
14397 # -library=stlport4 depends on it.
14398 case " $CXX $CXXFLAGS " in
14399 *" -library=stlport4 "*)
14400 solaris_use_stlport4=yes
14404 # Adding this requires a known-good setup of shared libraries for
14405 # Sun compiler versions before 5.6, else PIC objects from an old
14406 # archive will be linked into the output, leading to subtle bugs.
14407 if test "$solaris_use_stlport4" != yes; then
14408 postdeps_CXX='-library=Cstd -library=Crun'
14416 case " $postdeps_CXX " in
14417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14419 compiler_lib_search_dirs_CXX=
14420 if test -n "${compiler_lib_search_path_CXX}"; then
14421 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14454 lt_prog_compiler_wl_CXX=
14455 lt_prog_compiler_pic_CXX=
14456 lt_prog_compiler_static_CXX=
14458 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14459 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14461 # C++ specific cases for pic, static, wl, etc.
14462 if test "$GXX" = yes; then
14463 lt_prog_compiler_wl_CXX='-Wl,'
14464 lt_prog_compiler_static_CXX='-static'
14468 # All AIX code is PIC.
14469 if test "$host_cpu" = ia64; then
14470 # AIX 5 now supports IA64 processor
14471 lt_prog_compiler_static_CXX='-Bstatic'
14478 # see comment about AmigaOS4 .so support
14479 lt_prog_compiler_pic_CXX='-fPIC'
14482 # FIXME: we need at least 68020 code to build shared libraries, but
14483 # adding the `-m68020' flag to GCC prevents building anything better,
14485 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14490 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491 # PIC is the default for these OSes.
14493 mingw* | cygwin* | os2* | pw32* | cegcc*)
14494 # This hack is so that the source file can tell whether it is being
14495 # built for inclusion in a dll (and should export symbols for example).
14496 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14497 # (--disable-auto-import) libraries
14498 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14500 darwin* | rhapsody*)
14501 # PIC is the default on this platform
14502 # Common symbols not allowed in MH_DYLIB files
14503 lt_prog_compiler_pic_CXX='-fno-common'
14506 # DJGPP does not support shared libraries at all
14507 lt_prog_compiler_pic_CXX=
14510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14511 # Instead, we relocate shared libraries at runtime.
14514 if test -d /usr/nec; then
14515 lt_prog_compiler_pic_CXX=-Kconform_pic
14519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14521 # sets the default TLS model and affects inlining.
14526 lt_prog_compiler_pic_CXX='-fPIC'
14531 # QNX uses GNU C++, but need to define -shared option too, otherwise
14532 # it will coredump.
14533 lt_prog_compiler_pic_CXX='-fPIC -shared'
14536 lt_prog_compiler_pic_CXX='-fPIC'
14542 # All AIX code is PIC.
14543 if test "$host_cpu" = ia64; then
14544 # AIX 5 now supports IA64 processor
14545 lt_prog_compiler_static_CXX='-Bstatic'
14547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14551 case $cc_basename in
14553 # Green Hills C++ Compiler
14554 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14559 case $cc_basename in
14561 lt_prog_compiler_pic_CXX='-KPIC'
14564 # Green Hills C++ Compiler
14565 lt_prog_compiler_pic_CXX='-pic'
14571 freebsd* | dragonfly*)
14572 # FreeBSD uses GNU C++
14574 hpux9* | hpux10* | hpux11*)
14575 case $cc_basename in
14577 lt_prog_compiler_wl_CXX='-Wl,'
14578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14579 if test "$host_cpu" != ia64; then
14580 lt_prog_compiler_pic_CXX='+Z'
14584 lt_prog_compiler_wl_CXX='-Wl,'
14585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14591 lt_prog_compiler_pic_CXX='+Z'
14600 # This is c89, which is MS Visual C++ (no shared libs)
14601 # Anyone wants to do a port?
14603 irix5* | irix6* | nonstopux*)
14604 case $cc_basename in
14606 lt_prog_compiler_wl_CXX='-Wl,'
14607 lt_prog_compiler_static_CXX='-non_shared'
14608 # CC pic flag -KPIC is the default.
14614 linux* | k*bsd*-gnu)
14615 case $cc_basename in
14618 lt_prog_compiler_wl_CXX='--backend -Wl,'
14619 lt_prog_compiler_pic_CXX='-fPIC'
14622 # old Intel C++ for x86_64 which still supported -KPIC.
14623 lt_prog_compiler_wl_CXX='-Wl,'
14624 lt_prog_compiler_pic_CXX='-KPIC'
14625 lt_prog_compiler_static_CXX='-static'
14628 # Intel C++, used to be incompatible with GCC.
14629 # ICC 10 doesn't accept -KPIC any more.
14630 lt_prog_compiler_wl_CXX='-Wl,'
14631 lt_prog_compiler_pic_CXX='-fPIC'
14632 lt_prog_compiler_static_CXX='-static'
14635 # Portland Group C++ compiler
14636 lt_prog_compiler_wl_CXX='-Wl,'
14637 lt_prog_compiler_pic_CXX='-fpic'
14638 lt_prog_compiler_static_CXX='-Bstatic'
14642 # Make sure the PIC flag is empty. It appears that all Alpha
14643 # Linux and Compaq Tru64 Unix objects are PIC.
14644 lt_prog_compiler_pic_CXX=
14645 lt_prog_compiler_static_CXX='-non_shared'
14648 # IBM XL 8.0 on PPC
14649 lt_prog_compiler_wl_CXX='-Wl,'
14650 lt_prog_compiler_pic_CXX='-qpic'
14651 lt_prog_compiler_static_CXX='-qstaticlink'
14654 case `$CC -V 2>&1 | sed 5q` in
14657 lt_prog_compiler_pic_CXX='-KPIC'
14658 lt_prog_compiler_static_CXX='-Bstatic'
14659 lt_prog_compiler_wl_CXX='-Qoption ld '
14670 case $cc_basename in
14672 lt_prog_compiler_pic_CXX='-W c,exportall'
14681 # QNX uses GNU C++, but need to define -shared option too, otherwise
14682 # it will coredump.
14683 lt_prog_compiler_pic_CXX='-fPIC -shared'
14685 osf3* | osf4* | osf5*)
14686 case $cc_basename in
14688 lt_prog_compiler_wl_CXX='--backend -Wl,'
14691 # Rational C++ 2.4.1
14692 lt_prog_compiler_pic_CXX='-pic'
14695 # Digital/Compaq C++
14696 lt_prog_compiler_wl_CXX='-Wl,'
14697 # Make sure the PIC flag is empty. It appears that all Alpha
14698 # Linux and Compaq Tru64 Unix objects are PIC.
14699 lt_prog_compiler_pic_CXX=
14700 lt_prog_compiler_static_CXX='-non_shared'
14709 case $cc_basename in
14711 # Sun C++ 4.2, 5.x and Centerline C++
14712 lt_prog_compiler_pic_CXX='-KPIC'
14713 lt_prog_compiler_static_CXX='-Bstatic'
14714 lt_prog_compiler_wl_CXX='-Qoption ld '
14717 # Green Hills C++ Compiler
14718 lt_prog_compiler_pic_CXX='-PIC'
14725 case $cc_basename in
14728 lt_prog_compiler_pic_CXX='-pic'
14729 lt_prog_compiler_static_CXX='-Bstatic'
14733 lt_prog_compiler_pic_CXX='-pic'
14739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14740 case $cc_basename in
14742 lt_prog_compiler_wl_CXX='-Wl,'
14743 lt_prog_compiler_pic_CXX='-KPIC'
14744 lt_prog_compiler_static_CXX='-Bstatic'
14749 case $cc_basename in
14751 # NonStop-UX NCC 3.20
14752 lt_prog_compiler_pic_CXX='-KPIC'
14761 lt_prog_compiler_can_build_shared_CXX=no
14767 # For platforms which do not support PIC, -DPIC is meaningless:
14769 lt_prog_compiler_pic_CXX=
14772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14775 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14776 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14781 # Check to make sure the PIC flag actually works.
14783 if test -n "$lt_prog_compiler_pic_CXX"; then
14784 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14786 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 lt_cv_prog_compiler_pic_works_CXX=no
14790 ac_outfile=conftest.$ac_objext
14791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14793 # Insert the option either (1) after the last *FLAGS variable, or
14794 # (2) before a word containing "conftest.", or (3) at the end.
14795 # Note that $ac_compile itself does not contain backslashes and begins
14796 # with a dollar sign (not a hyphen), so the echo should work correctly.
14797 # The option is referenced via a variable to avoid confusing sed.
14798 lt_compile=`echo "$ac_compile" | $SED \
14799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801 -e 's:$: $lt_compiler_flag:'`
14802 (eval echo "\"\$as_me:14802: $lt_compile\"" >&5)
14803 (eval "$lt_compile" 2>conftest.err)
14805 cat conftest.err >&5
14806 echo "$as_me:14806: \$? = $ac_status" >&5
14807 if (exit $ac_status) && test -s "$ac_outfile"; then
14808 # The compiler can only warn and ignore the option if not recognized
14809 # So say no if there are warnings other than the usual output.
14810 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14813 lt_cv_prog_compiler_pic_works_CXX=yes
14819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14823 case $lt_prog_compiler_pic_CXX in
14825 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14828 lt_prog_compiler_pic_CXX=
14829 lt_prog_compiler_can_build_shared_CXX=no
14837 # Check to make sure the static flag actually works.
14839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14840 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14841 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14842 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 lt_cv_prog_compiler_static_works_CXX=no
14846 save_LDFLAGS="$LDFLAGS"
14847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14850 # The linker can only warn and ignore the option if not recognized
14851 # So say no if there are warnings
14852 if test -s conftest.err; then
14853 # Append any errors to the config.log.
14854 cat conftest.err 1>&5
14855 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14857 if diff conftest.exp conftest.er2 >/dev/null; then
14858 lt_cv_prog_compiler_static_works_CXX=yes
14861 lt_cv_prog_compiler_static_works_CXX=yes
14865 LDFLAGS="$save_LDFLAGS"
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14874 lt_prog_compiler_static_CXX=
14880 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 lt_cv_prog_compiler_c_o_CXX=no
14886 $RM -r conftest 2>/dev/null
14890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14892 lt_compiler_flag="-o out/conftest2.$ac_objext"
14893 # Insert the option either (1) after the last *FLAGS variable, or
14894 # (2) before a word containing "conftest.", or (3) at the end.
14895 # Note that $ac_compile itself does not contain backslashes and begins
14896 # with a dollar sign (not a hyphen), so the echo should work correctly.
14897 lt_compile=`echo "$ac_compile" | $SED \
14898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14900 -e 's:$: $lt_compiler_flag:'`
14901 (eval echo "\"\$as_me:14901: $lt_compile\"" >&5)
14902 (eval "$lt_compile" 2>out/conftest.err)
14904 cat out/conftest.err >&5
14905 echo "$as_me:14905: \$? = $ac_status" >&5
14906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14908 # The compiler can only warn and ignore the option if not recognized
14909 # So say no if there are warnings
14910 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14913 lt_cv_prog_compiler_c_o_CXX=yes
14918 # SGI C++ compiler will create directory out/ii_files/ for
14919 # template instantiation
14920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14921 $RM out/* && rmdir out
14927 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14932 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 lt_cv_prog_compiler_c_o_CXX=no
14938 $RM -r conftest 2>/dev/null
14942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944 lt_compiler_flag="-o out/conftest2.$ac_objext"
14945 # Insert the option either (1) after the last *FLAGS variable, or
14946 # (2) before a word containing "conftest.", or (3) at the end.
14947 # Note that $ac_compile itself does not contain backslashes and begins
14948 # with a dollar sign (not a hyphen), so the echo should work correctly.
14949 lt_compile=`echo "$ac_compile" | $SED \
14950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14952 -e 's:$: $lt_compiler_flag:'`
14953 (eval echo "\"\$as_me:14953: $lt_compile\"" >&5)
14954 (eval "$lt_compile" 2>out/conftest.err)
14956 cat out/conftest.err >&5
14957 echo "$as_me:14957: \$? = $ac_status" >&5
14958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14960 # The compiler can only warn and ignore the option if not recognized
14961 # So say no if there are warnings
14962 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14965 lt_cv_prog_compiler_c_o_CXX=yes
14970 # SGI C++ compiler will create directory out/ii_files/ for
14971 # template instantiation
14972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14973 $RM out/* && rmdir out
14979 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14980 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14985 hard_links="nottested"
14986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14987 # do not overwrite the value of need_locks provided by the user
14988 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14994 ln conftest.a conftest.b 2>&5 || hard_links=no
14995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14996 { echo "$as_me:$LINENO: result: $hard_links" >&5
14997 echo "${ECHO_T}$hard_links" >&6; }
14998 if test "$hard_links" = no; then
14999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15009 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15015 # If we're using GNU nm, then we don't want the "-C" option.
15016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15018 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15020 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15024 export_symbols_cmds_CXX="$ltdll_cmds"
15026 cygwin* | mingw* | cegcc*)
15027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15030 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15033 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15035 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15036 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15037 test "$ld_shlibs_CXX" = no && can_build_shared=no
15039 with_gnu_ld_CXX=$with_gnu_ld
15047 # Do we need to explicitly link libc?
15049 case "x$archive_cmds_need_lc_CXX" in
15051 # Assume -lc should be added
15052 archive_cmds_need_lc_CXX=yes
15054 if test "$enable_shared" = yes && test "$GCC" = yes; then
15055 case $archive_cmds_CXX in
15057 # FIXME: we may have to deal with multi-command sequences.
15060 # Test whether the compiler implicitly links with -lc since on some
15061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15062 # to ld, don't add -lc before -lgcc.
15063 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15064 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069 (eval $ac_compile) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } 2>conftest.err; then
15075 libobjs=conftest.$ac_objext
15077 wl=$lt_prog_compiler_wl_CXX
15078 pic_flag=$lt_prog_compiler_pic_CXX
15084 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15085 allow_undefined_flag_CXX=
15086 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15087 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }
15092 archive_cmds_need_lc_CXX=no
15094 archive_cmds_need_lc_CXX=yes
15096 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15098 cat conftest.err 1>&5
15101 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15102 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15172 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15175 library_names_spec=
15176 libname_spec='lib$name'
15180 postuninstall_cmds=
15184 shlibpath_overrides_runpath=unknown
15186 dynamic_linker="$host_os ld.so"
15187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15188 need_lib_prefix=unknown
15189 hardcode_into_libs=no
15191 # when you set need_version to no, make sure it does not cause -set_version
15192 # flags to be left without arguments
15193 need_version=unknown
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15199 shlibpath_var=LIBPATH
15201 # AIX 3 has no versioning support, so we append a major version to the name.
15202 soname_spec='${libname}${release}${shared_ext}$major'
15209 hardcode_into_libs=yes
15210 if test "$host_cpu" = ia64; then
15211 # AIX 5 supports IA64
15212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15213 shlibpath_var=LD_LIBRARY_PATH
15215 # With GCC up to 2.95.x, collect2 would create an import file
15216 # for dependence libraries. The import file would start with
15217 # the line `#! .'. This would cause the generated library to
15218 # depend on `.', always an invalid library. This was fixed in
15219 # development snapshots of GCC prior to 3.0.
15221 aix4 | aix4.[01] | aix4.[01].*)
15222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15224 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15227 can_build_shared=no
15231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15232 # soname into executable. Probably we can add versioning support to
15233 # collect2, so additional links can be useful in future.
15234 if test "$aix_use_runtimelinking" = yes; then
15235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15236 # instead of lib<name>.a to let people know that these are not
15237 # typical AIX shared libraries.
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240 # We preserve .a as extension for shared libraries through AIX4.2
15241 # and later when we are not doing run time linking.
15242 library_names_spec='${libname}${release}.a $libname.a'
15243 soname_spec='${libname}${release}${shared_ext}$major'
15245 shlibpath_var=LIBPATH
15252 # Since July 2007 AmigaOS4 officially supports .so libraries.
15253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15257 library_names_spec='$libname.ixlibrary $libname.a'
15258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15259 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15265 library_names_spec='${libname}${shared_ext}'
15266 dynamic_linker="$host_os ld.so"
15267 shlibpath_var=LIBRARY_PATH
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15279 # the default ld.so.conf also contains /usr/contrib/lib and
15280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15281 # libtool to hard-code these into programs
15284 cygwin* | mingw* | pw32* | cegcc*)
15285 version_type=windows
15290 case $GCC,$host_os in
15291 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15292 library_names_spec='$libname.dll.a'
15293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15294 postinstall_cmds='base_file=`basename \${file}`~
15295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15296 dldir=$destdir/`dirname \$dlpath`~
15297 test -d \$dldir || mkdir -p \$dldir~
15298 $install_prog $dir/$dlname \$dldir/$dlname~
15299 chmod a+x \$dldir/$dlname~
15300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15304 dlpath=$dir/\$dldll~
15306 shlibpath_overrides_runpath=yes
15310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15312 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15315 # MinGW DLLs use traditional 'lib' prefix
15316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15317 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15318 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15319 # It is most probably a Windows format PATH printed by
15320 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15321 # path with ; separators, and with drive letters. We can handle the
15322 # drive letters (cygwin fileutils understands them), so leave them,
15323 # especially as we might pass files found there to a mingw objdump,
15324 # which wouldn't understand a cygwinified path. Ahh.
15325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15331 # pw32 DLLs use 'pw' prefix rather than 'lib'
15332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15341 dynamic_linker='Win32 ld.exe'
15342 # FIXME: first we should search . and the directory the executable is in
15346 darwin* | rhapsody*)
15347 dynamic_linker="$host_os dyld"
15348 version_type=darwin
15351 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15352 soname_spec='${libname}${release}${major}$shared_ext'
15353 shlibpath_overrides_runpath=yes
15354 shlibpath_var=DYLD_LIBRARY_PATH
15355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15373 freebsd* | dragonfly*)
15374 # DragonFly does not have aout. When/if they implement a new
15375 # versioning mechanism, adjust this.
15376 if test -x /usr/bin/objformat; then
15377 objformat=`/usr/bin/objformat`
15380 freebsd[123]*) objformat=aout ;;
15381 *) objformat=elf ;;
15384 version_type=freebsd-$objformat
15385 case $version_type in
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15396 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes
15401 freebsd3.[01]* | freebsdelf3.[01]*)
15402 shlibpath_overrides_runpath=yes
15403 hardcode_into_libs=yes
15405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15407 shlibpath_overrides_runpath=no
15408 hardcode_into_libs=yes
15410 *) # from 4.6 on, and DragonFly
15411 shlibpath_overrides_runpath=yes
15412 hardcode_into_libs=yes
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15424 hardcode_into_libs=yes
15427 hpux9* | hpux10* | hpux11*)
15428 # Give a soname corresponding to the major version so that dld.sl refuses to
15429 # link against other versions.
15436 hardcode_into_libs=yes
15437 dynamic_linker="$host_os dld.so"
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 if test "X$HPUX_IA64_MODE" = X32; then
15443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15445 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451 hardcode_into_libs=yes
15452 dynamic_linker="$host_os dld.sl"
15453 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462 dynamic_linker="$host_os dld.sl"
15463 shlibpath_var=SHLIB_PATH
15464 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15470 postinstall_cmds='chmod 555 $lib'
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 shlibpath_overrides_runpath=no
15482 hardcode_into_libs=yes
15485 irix5* | irix6* | nonstopux*)
15487 nonstopux*) version_type=nonstopux ;;
15489 if test "$lt_cv_prog_gnu_ld" = yes; then
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15500 irix5* | nonstopux*)
15501 libsuff= shlibsuff=
15504 case $LD in # libtool.m4 will add one of these switches to LD
15505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15506 libsuff= shlibsuff= libmagic=32-bit;;
15507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15508 libsuff=32 shlibsuff=N32 libmagic=N32;;
15509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15511 *) libsuff= shlibsuff= libmagic=never-match;;
15515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15516 shlibpath_overrides_runpath=no
15517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15519 hardcode_into_libs=yes
15522 # No shared lib support for Linux oldld, aout, or coff.
15523 linux*oldld* | linux*aout* | linux*coff*)
15527 # This must be Linux ELF.
15528 linux* | k*bsd*-gnu)
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535 shlibpath_var=LD_LIBRARY_PATH
15536 shlibpath_overrides_runpath=no
15537 # Some binutils ld are patched to set DT_RUNPATH
15538 save_LDFLAGS=$LDFLAGS
15539 save_libdir=$libdir
15540 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15541 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_link") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && {
15571 test -z "$ac_cxx_werror_flag" ||
15572 test ! -s conftest.err
15573 } && test -s conftest$ac_exeext &&
15574 $as_test_x conftest$ac_exeext; then
15575 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15576 shlibpath_overrides_runpath=yes
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15587 conftest$ac_exeext conftest.$ac_ext
15588 LDFLAGS=$save_LDFLAGS
15589 libdir=$save_libdir
15591 # This implies no fast_install, which is unacceptable.
15592 # Some rework will be needed to allow for fast_install
15593 # before this can be enabled.
15594 hardcode_into_libs=yes
15596 # Append ld.so.conf contents to the search path
15597 if test -f /etc/ld.so.conf; then
15598 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15602 # We used to test for /lib/ld.so.1 and disable shared libraries on
15603 # powerpc, because MkLinux only supported shared libraries with the
15604 # GNU dynamic linker. Since this was broken with cross compilers,
15605 # most powerpc-linux boxes support dynamic linking these days and
15606 # people can always --disable-shared, the test was removed, and we
15607 # assume the GNU/Linux dynamic linker is in use.
15608 dynamic_linker='GNU/Linux ld.so'
15615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618 dynamic_linker='NetBSD (a.out) ld.so'
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 dynamic_linker='NetBSD ld.elf_so'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=yes
15626 hardcode_into_libs=yes
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 shlibpath_overrides_runpath=yes
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 shlibpath_overrides_runpath=no
15644 hardcode_into_libs=yes
15645 dynamic_linker='ldqnx.so'
15650 sys_lib_dlsearch_path_spec="/usr/lib"
15652 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15654 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15655 *) need_version=no ;;
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15662 openbsd2.[89] | openbsd2.[89].*)
15663 shlibpath_overrides_runpath=no
15666 shlibpath_overrides_runpath=yes
15670 shlibpath_overrides_runpath=yes
15675 libname_spec='$name'
15678 library_names_spec='$libname${shared_ext} $libname.a'
15679 dynamic_linker='OS/2 ld.exe'
15680 shlibpath_var=LIBPATH
15683 osf3* | osf4* | osf5*)
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15691 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15707 # ldd complains unless libraries are executable
15708 postinstall_cmds='chmod +x $lib'
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 shlibpath_overrides_runpath=yes
15717 if test "$with_gnu_ld" = yes; then
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726 soname_spec='${libname}${release}${shared_ext}$major'
15727 shlibpath_var=LD_LIBRARY_PATH
15728 case $host_vendor in
15730 shlibpath_overrides_runpath=no
15732 runpath_var=LD_RUN_PATH
15740 shlibpath_overrides_runpath=no
15741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15747 if test -d /usr/nec ;then
15749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15750 soname_spec='$libname${shared_ext}.$major'
15751 shlibpath_var=LD_LIBRARY_PATH
15755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15756 version_type=freebsd-elf
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15764 if test "$with_gnu_ld" = yes; then
15765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15774 sys_lib_dlsearch_path_spec='/usr/lib'
15778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 shlibpath_overrides_runpath=no
15785 hardcode_into_libs=yes
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 shlibpath_var=LD_LIBRARY_PATH
15799 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15800 echo "${ECHO_T}$dynamic_linker" >&6; }
15801 test "$dynamic_linker" = no && can_build_shared=no
15803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15804 if test "$GCC" = yes; then
15805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15850 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15851 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15852 hardcode_action_CXX=
15853 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15854 test -n "$runpath_var_CXX" ||
15855 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15857 # We can hardcode non-existent directories.
15858 if test "$hardcode_direct_CXX" != no &&
15859 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15860 # have to relink, otherwise we might link with an installed library
15861 # when we should be linking with a yet-to-be-installed one
15862 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15863 test "$hardcode_minus_L_CXX" != no; then
15864 # Linking always hardcodes the temporary library directory.
15865 hardcode_action_CXX=relink
15867 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15868 hardcode_action_CXX=immediate
15871 # We cannot hardcode anything, or else we can only hardcode existing
15873 hardcode_action_CXX=unsupported
15875 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15876 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15878 if test "$hardcode_action_CXX" = relink ||
15879 test "$inherit_rpath_CXX" = yes; then
15880 # Fast installation is not supported
15881 enable_fast_install=no
15882 elif test "$shlibpath_overrides_runpath" = yes ||
15883 test "$enable_shared" = no; then
15884 # Fast installation is not necessary
15885 enable_fast_install=needless
15894 fi # test -n "$compiler"
15900 with_gnu_ld=$lt_save_with_gnu_ld
15901 lt_cv_path_LDCXX=$lt_cv_path_LD
15902 lt_cv_path_LD=$lt_save_path_LD
15903 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15904 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15905 fi # test "$_lt_caught_CXX_error" != yes
15908 ac_cpp='$CPP $CPPFLAGS'
15909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15925 ac_config_commands="$ac_config_commands libtool"
15930 # Only expand once:
15935 if test x$use_libtool != xno; then
15936 DEFAULT_OBJECT_TYPE=".lo"
15937 DEFAULT_ARCHIVE_TYPE=".la"
15938 DEFAULT_SHARED_OBJECT_TYPE=".la"
15939 LIBTOOL="\$(LIBTOOL)"
15940 LIBTOOL_INSTALL_TARGET="libtool-install"
15941 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15942 LIBTOOL_CLEAN_TARGET="libtool-clean"
15943 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15945 DEFAULT_OBJECT_TYPE=".o"
15946 DEFAULT_ARCHIVE_TYPE=".a"
15947 DEFAULT_SHARED_OBJECT_TYPE=".so"
15948 LIBTOOL="# \$(LIBTOOL)"
15949 LIBTOOL_INSTALL_TARGET=""
15950 LIBTOOL_UNINSTALL_TARGET=""
15951 LIBTOOL_CLEAN_TARGET=""
15952 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15964 # Check whether --enable-includes was given.
15965 if test "${enable_includes+set}" = set; then
15966 enableval=$enable_includes;
15967 if test x$enableval = xyes; then
15968 install_includes=yes
15976 if test x$use_libtool != xno -a x$install_includes = xyes; then
15977 INCLUDE_INSTALL_TARGET="install-includes"
15978 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15980 INCLUDE_INSTALL_TARGET=""
15981 INCLUDE_UNINSTALL_TARGET=""
15987 { echo "$as_me:$LINENO: checking host system type" >&5
15988 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15989 if test "${ac_cv_host+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 if test "x$host_alias" = x; then
15993 ac_cv_host=$ac_cv_build
15995 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15996 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15997 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15998 { (exit 1); exit 1; }; }
16002 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16003 echo "${ECHO_T}$ac_cv_host" >&6; }
16004 case $ac_cv_host in
16006 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16007 echo "$as_me: error: invalid value of canonical host" >&2;}
16008 { (exit 1); exit 1; }; };;
16011 ac_save_IFS=$IFS; IFS='-'
16017 # Remember, the first character of IFS is used to create $*,
16018 # except with old shells:
16021 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16025 *cygwin* ) CYGWIN=yes;;
16029 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16035 HAVE_SUN_OS_FALSE='#'
16037 HAVE_SUN_OS_TRUE='#'
16040 cat >>confdefs.h <<\_ACEOF
16041 #define HAVE_SUN_OS 1
16049 HAVE_SUN_OS_FALSE='#'
16051 HAVE_SUN_OS_TRUE='#'
16056 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16062 HAVE_OSF1_OS_FALSE='#'
16064 HAVE_OSF1_OS_TRUE='#'
16065 HAVE_OSF1_OS_FALSE=
16067 cat >>confdefs.h <<\_ACEOF
16068 #define HAVE_OSF1_OS 1
16076 HAVE_OSF1_OS_FALSE='#'
16078 HAVE_OSF1_OS_TRUE='#'
16079 HAVE_OSF1_OS_FALSE=
16083 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16089 HAVE_AIX_OS_FALSE='#'
16091 HAVE_AIX_OS_TRUE='#'
16094 cat >>confdefs.h <<\_ACEOF
16095 #define HAVE_AIX_OS 1
16103 HAVE_AIX_OS_FALSE='#'
16105 HAVE_AIX_OS_TRUE='#'
16110 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16116 HAVE_HPUX_OS_FALSE='#'
16118 HAVE_HPUX_OS_TRUE='#'
16119 HAVE_HPUX_OS_FALSE=
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE_HPUX_OS 1
16130 HAVE_HPUX_OS_FALSE='#'
16132 HAVE_HPUX_OS_TRUE='#'
16133 HAVE_HPUX_OS_FALSE=
16137 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16142 HAVE_LINUX_OS_TRUE=
16143 HAVE_LINUX_OS_FALSE='#'
16145 HAVE_LINUX_OS_TRUE='#'
16146 HAVE_LINUX_OS_FALSE=
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_LINUX_OS 1
16156 HAVE_LINUX_OS_TRUE=
16157 HAVE_LINUX_OS_FALSE='#'
16159 HAVE_LINUX_OS_TRUE='#'
16160 HAVE_LINUX_OS_FALSE=
16164 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16169 HAVE_FREEBSD_OS_TRUE=
16170 HAVE_FREEBSD_OS_FALSE='#'
16172 HAVE_FREEBSD_OS_TRUE='#'
16173 HAVE_FREEBSD_OS_FALSE=
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_FREEBSD_OS 1
16183 HAVE_FREEBSD_OS_TRUE=
16184 HAVE_FREEBSD_OS_FALSE='#'
16186 HAVE_FREEBSD_OS_TRUE='#'
16187 HAVE_FREEBSD_OS_FALSE=
16191 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16196 HAVE_NETBSD_OS_TRUE=
16197 HAVE_NETBSD_OS_FALSE='#'
16199 HAVE_NETBSD_OS_TRUE='#'
16200 HAVE_NETBSD_OS_FALSE=
16202 cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_NETBSD_OS 1
16210 HAVE_NETBSD_OS_TRUE=
16211 HAVE_NETBSD_OS_FALSE='#'
16213 HAVE_NETBSD_OS_TRUE='#'
16214 HAVE_NETBSD_OS_FALSE=
16218 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16223 HAVE_OPENBSD_OS_TRUE=
16224 HAVE_OPENBSD_OS_FALSE='#'
16226 HAVE_OPENBSD_OS_TRUE='#'
16227 HAVE_OPENBSD_OS_FALSE=
16229 cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_OPENBSD_OS 1
16237 HAVE_OPENBSD_OS_TRUE=
16238 HAVE_OPENBSD_OS_FALSE='#'
16240 HAVE_OPENBSD_OS_TRUE='#'
16241 HAVE_OPENBSD_OS_FALSE=
16245 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16251 HAVE_BSDI_OS_FALSE='#'
16253 HAVE_BSDI_OS_TRUE='#'
16254 HAVE_BSDI_OS_FALSE=
16256 cat >>confdefs.h <<\_ACEOF
16257 #define HAVE_BSDI_OS 1
16265 HAVE_BSDI_OS_FALSE='#'
16267 HAVE_BSDI_OS_TRUE='#'
16268 HAVE_BSDI_OS_FALSE=
16272 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16278 HAVE_SGI_OS_FALSE='#'
16280 HAVE_SGI_OS_TRUE='#'
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_SGI_OS 1
16292 HAVE_SGI_OS_FALSE='#'
16294 HAVE_SGI_OS_TRUE='#'
16299 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16305 HAVE_IRIX_OS_FALSE='#'
16307 HAVE_IRIX_OS_TRUE='#'
16308 HAVE_IRIX_OS_FALSE=
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_IRIX_OS 1
16319 HAVE_IRIX_OS_FALSE='#'
16321 HAVE_IRIX_OS_TRUE='#'
16322 HAVE_IRIX_OS_FALSE=
16326 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16331 HAVE_DARWIN_OS_TRUE=
16332 HAVE_DARWIN_OS_FALSE='#'
16334 HAVE_DARWIN_OS_TRUE='#'
16335 HAVE_DARWIN_OS_FALSE=
16337 cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_DARWIN_OS 1
16345 HAVE_DARWIN_OS_TRUE=
16346 HAVE_DARWIN_OS_FALSE='#'
16348 HAVE_DARWIN_OS_TRUE='#'
16349 HAVE_DARWIN_OS_FALSE=
16354 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16355 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16356 if test "x$DISTNAME" != "x"
16358 echo "distname set to $DISTNAME"
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16383 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16386 elif test -f /etc/SuSE-release
16389 elif test -d /etc/SuSEconfig
16392 elif test -f /etc/mandrake-release
16395 elif test -f /etc/whitebox-release
16398 elif test -f /etc/redhat-release
16401 elif test -f /etc/gentoo-release
16404 elif test -f /etc/debian_version
16407 elif test -f /etc/slackware-version
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16413 elif test -f /etc/engarde-version
16416 elif test "$CYGWIN" = yes
16419 cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.make <<\_ACEOF
16439 @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443 *@@@%%%=?*=@@@%%%*)
16444 eval ac_cv_prog_make_${ac_make}_set=yes;;
16446 eval ac_cv_prog_make_${ac_make}_set=no;;
16448 rm -f conftest.make
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451 { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457 SET_MAKE="MAKE=${MAKE-make}"
16463 if test -n "$ac_aux_dir"; then
16464 case "$ac_aux_dir" in
16465 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16469 if test -z "$MKINSTALLDIRS"; then
16470 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16475 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477 # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479 enableval=$enable_nls; USE_NLS=$enableval
16484 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 echo "#! /bin/sh" >conf$$.sh
16496 echo "exit 0" >>conf$$.sh
16498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514 ac_executable_p="test -x"
16516 ac_executable_p="test -f"
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16532 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533 for ac_dir in $PATH; do
16535 test -z "$ac_dir" && ac_dir=.
16536 for ac_exec_ext in '' $ac_executable_extensions; do
16537 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16548 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16557 { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607 echo "#! /bin/sh" >conf$$.sh
16608 echo "exit 0" >>conf$$.sh
16610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626 ac_executable_p="test -x"
16628 ac_executable_p="test -f"
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 case "$XGETTEXT" in
16641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16644 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645 for ac_dir in $PATH; do
16647 test -z "$ac_dir" && ac_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16653 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679 echo "#! /bin/sh" >conf$$.sh
16680 echo "exit 0" >>conf$$.sh
16682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698 ac_executable_p="test -x"
16700 ac_executable_p="test -f"
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 case "$MSGMERGE" in
16713 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717 for ac_dir in $PATH; do
16719 test -z "$ac_dir" && ac_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16731 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16745 if test "$GMSGFMT" != ":"; then
16746 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16750 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16757 if test "$XGETTEXT" != ":"; then
16758 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16762 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16769 ac_config_commands="$ac_config_commands default-1"
16773 if test "X$prefix" = "XNONE"; then
16774 acl_final_prefix="$ac_default_prefix"
16776 acl_final_prefix="$prefix"
16778 if test "X$exec_prefix" = "XNONE"; then
16779 acl_final_exec_prefix='${prefix}'
16781 acl_final_exec_prefix="$exec_prefix"
16783 acl_save_prefix="$prefix"
16784 prefix="$acl_final_prefix"
16785 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786 prefix="$acl_save_prefix"
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799 echo "#! /bin/sh" >conf$$.sh
16800 echo "exit 0" >>conf$$.sh
16802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16810 if test "$GCC" = yes; then
16811 # Check if gcc -print-prog-name=ld gives a path.
16812 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16816 # gcc leaves a trailing carriage return which upsets mingw
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16822 # Accept absolute paths.
16823 [\\/]* | [A-Za-z]:[\\/]*)
16824 re_direlt='/[^/][^/]*/\.\./'
16825 # Canonicalize the path of ld
16826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830 test -z "$LD" && LD="$ac_prog"
16833 # If it fails, then pretend we aren't using GCC.
16837 # If it is relative, then search for the first ld in PATH.
16838 with_gnu_ld=unknown
16841 elif test "$with_gnu_ld" = yes; then
16842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_path_LD+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 if test -z "$LD"; then
16852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853 for ac_dir in $PATH; do
16854 test -z "$ac_dir" && ac_dir=.
16855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856 acl_cv_path_LD="$ac_dir/$ac_prog"
16857 # Check to see if the program is GNU ld. I'd rather use --version,
16858 # but apparently some GNU ld's only accept -v.
16859 # Break only if it was the GNU/non-GNU ld that we prefer.
16860 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861 *GNU* | *'with BFD'*)
16862 test "$with_gnu_ld" != no && break ;;
16864 test "$with_gnu_ld" != yes && break ;;
16870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876 { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16879 { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884 { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893 acl_cv_prog_gnu_ld=yes ;;
16895 acl_cv_prog_gnu_ld=no ;;
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16905 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914 rm -f ./conftest.sh
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921 libext="$acl_cv_libext"
16922 shlibext="$acl_cv_shlibext"
16923 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925 hardcode_direct="$acl_cv_hardcode_direct"
16926 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927 # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929 enableval=$enable_rpath; :
16943 acl_save_prefix="$prefix"
16944 prefix="$acl_final_prefix"
16945 acl_save_exec_prefix="$exec_prefix"
16946 exec_prefix="$acl_final_exec_prefix"
16948 eval additional_includedir=\"$includedir\"
16949 eval additional_libdir=\"$libdir\"
16951 exec_prefix="$acl_save_exec_prefix"
16952 prefix="$acl_save_prefix"
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957 withval=$with_libiconv_prefix;
16958 if test "X$withval" = "Xno"; then
16961 if test "X$withval" = "X"; then
16963 acl_save_prefix="$prefix"
16964 prefix="$acl_final_prefix"
16965 acl_save_exec_prefix="$exec_prefix"
16966 exec_prefix="$acl_final_exec_prefix"
16968 eval additional_includedir=\"$includedir\"
16969 eval additional_libdir=\"$libdir\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16975 additional_includedir="$withval/include"
16976 additional_libdir="$withval/lib"
16987 names_already_handled=
16988 names_next_round='iconv '
16989 while test -n "$names_next_round"; do
16990 names_this_round="$names_next_round"
16992 for name in $names_this_round; do
16994 for n in $names_already_handled; do
16995 if test "$n" = "$name"; then
16996 already_handled=yes
17000 if test -z "$already_handled"; then
17001 names_already_handled="$names_already_handled $name"
17002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003 eval value=\"\$HAVE_LIB$uppername\"
17004 if test -n "$value"; then
17005 if test "$value" = yes; then
17006 eval value=\"\$LIB$uppername\"
17007 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008 eval value=\"\$LTLIB$uppername\"
17009 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17018 if test $use_additional = yes; then
17019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020 found_dir="$additional_libdir"
17021 found_so="$additional_libdir/lib$name.$shlibext"
17022 if test -f "$additional_libdir/lib$name.la"; then
17023 found_la="$additional_libdir/lib$name.la"
17026 if test -f "$additional_libdir/lib$name.$libext"; then
17027 found_dir="$additional_libdir"
17028 found_a="$additional_libdir/lib$name.$libext"
17029 if test -f "$additional_libdir/lib$name.la"; then
17030 found_la="$additional_libdir/lib$name.la"
17035 if test "X$found_dir" = "X"; then
17036 for x in $LDFLAGS $LTLIBICONV; do
17038 acl_save_prefix="$prefix"
17039 prefix="$acl_final_prefix"
17040 acl_save_exec_prefix="$exec_prefix"
17041 exec_prefix="$acl_final_exec_prefix"
17043 exec_prefix="$acl_save_exec_prefix"
17044 prefix="$acl_save_prefix"
17048 dir=`echo "X$x" | sed -e 's/^X-L//'`
17049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051 found_so="$dir/lib$name.$shlibext"
17052 if test -f "$dir/lib$name.la"; then
17053 found_la="$dir/lib$name.la"
17056 if test -f "$dir/lib$name.$libext"; then
17058 found_a="$dir/lib$name.$libext"
17059 if test -f "$dir/lib$name.la"; then
17060 found_la="$dir/lib$name.la"
17066 if test "X$found_dir" != "X"; then
17071 if test "X$found_dir" != "X"; then
17072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073 if test "X$found_so" != "X"; then
17074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17078 for x in $ltrpathdirs; do
17079 if test "X$x" = "X$found_dir"; then
17084 if test -z "$haveit"; then
17085 ltrpathdirs="$ltrpathdirs $found_dir"
17087 if test "$hardcode_direct" = yes; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093 for x in $rpathdirs; do
17094 if test "X$x" = "X$found_dir"; then
17099 if test -z "$haveit"; then
17100 rpathdirs="$rpathdirs $found_dir"
17104 for x in $LDFLAGS $LIBICONV; do
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17114 if test "X$x" = "X-L$found_dir"; then
17119 if test -z "$haveit"; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122 if test "$hardcode_minus_L" != no; then
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17131 if test "X$found_a" != "X"; then
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17137 additional_includedir=
17138 case "$found_dir" in
17140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141 additional_includedir="$basedir/include"
17144 if test "X$additional_includedir" != "X"; then
17145 if test "X$additional_includedir" != "X/usr/include"; then
17147 if test "X$additional_includedir" = "X/usr/local/include"; then
17148 if test -n "$GCC"; then
17150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17154 if test -z "$haveit"; then
17155 for x in $CPPFLAGS $INCICONV; do
17157 acl_save_prefix="$prefix"
17158 prefix="$acl_final_prefix"
17159 acl_save_exec_prefix="$exec_prefix"
17160 exec_prefix="$acl_final_exec_prefix"
17162 exec_prefix="$acl_save_exec_prefix"
17163 prefix="$acl_save_prefix"
17165 if test "X$x" = "X-I$additional_includedir"; then
17170 if test -z "$haveit"; then
17171 if test -d "$additional_includedir"; then
17172 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17178 if test -n "$found_la"; then
17179 save_libdir="$libdir"
17180 case "$found_la" in
17181 */* | *\\*) . "$found_la" ;;
17182 *) . "./$found_la" ;;
17184 libdir="$save_libdir"
17185 for dep in $dependency_libs; do
17188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189 if test "X$additional_libdir" != "X/usr/lib"; then
17191 if test "X$additional_libdir" = "X/usr/local/lib"; then
17192 if test -n "$GCC"; then
17194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17198 if test -z "$haveit"; then
17200 for x in $LDFLAGS $LIBICONV; do
17202 acl_save_prefix="$prefix"
17203 prefix="$acl_final_prefix"
17204 acl_save_exec_prefix="$exec_prefix"
17205 exec_prefix="$acl_final_exec_prefix"
17207 exec_prefix="$acl_save_exec_prefix"
17208 prefix="$acl_save_prefix"
17210 if test "X$x" = "X-L$additional_libdir"; then
17215 if test -z "$haveit"; then
17216 if test -d "$additional_libdir"; then
17217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17221 for x in $LDFLAGS $LTLIBICONV; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17231 if test "X$x" = "X-L$additional_libdir"; then
17236 if test -z "$haveit"; then
17237 if test -d "$additional_libdir"; then
17238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246 if test "$enable_rpath" != no; then
17248 for x in $rpathdirs; do
17249 if test "X$x" = "X$dir"; then
17254 if test -z "$haveit"; then
17255 rpathdirs="$rpathdirs $dir"
17258 for x in $ltrpathdirs; do
17259 if test "X$x" = "X$dir"; then
17264 if test -z "$haveit"; then
17265 ltrpathdirs="$ltrpathdirs $dir"
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17290 if test "X$rpathdirs" != "X"; then
17291 if test -n "$hardcode_libdir_separator"; then
17293 for found_dir in $rpathdirs; do
17294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296 acl_save_libdir="$libdir"
17298 eval flag=\"$hardcode_libdir_flag_spec\"
17299 libdir="$acl_save_libdir"
17300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302 for found_dir in $rpathdirs; do
17303 acl_save_libdir="$libdir"
17304 libdir="$found_dir"
17305 eval flag=\"$hardcode_libdir_flag_spec\"
17306 libdir="$acl_save_libdir"
17307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17311 if test "X$ltrpathdirs" != "X"; then
17312 for found_dir in $ltrpathdirs; do
17313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17334 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 gt_save_CPPFLAGS="$CPPFLAGS"
17340 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341 gt_save_LIBS="$LIBS"
17342 LIBS="$LIBS -framework CoreFoundation"
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #include <CFPreferences.h>
17353 CFPreferencesCopyAppValue(NULL, NULL)
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext &&
17375 $as_test_x conftest$ac_exeext; then
17376 gt_cv_func_CFPreferencesCopyAppValue=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 gt_cv_func_CFPreferencesCopyAppValue=no
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385 conftest$ac_exeext conftest.$ac_ext
17386 CPPFLAGS="$gt_save_CPPFLAGS"
17387 LIBS="$gt_save_LIBS"
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17398 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 gt_save_CPPFLAGS="$CPPFLAGS"
17404 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405 gt_save_LIBS="$LIBS"
17406 LIBS="$LIBS -framework CoreFoundation"
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 #include <CFLocale.h>
17417 CFLocaleCopyCurrent();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 gt_cv_func_CFLocaleCopyCurrent=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 gt_cv_func_CFLocaleCopyCurrent=no
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 CPPFLAGS="$gt_save_CPPFLAGS"
17451 LIBS="$gt_save_LIBS"
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17463 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17470 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472 # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474 enableval=$enable_nls; USE_NLS=$enableval
17479 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17489 if test "$USE_NLS" = "yes"; then
17490 gt_use_preinstalled_gnugettext=no
17497 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest$ac_exeext &&
17537 $as_test_x conftest$ac_exeext; then
17538 gt_cv_func_gnugettext1_libc=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 gt_cv_func_gnugettext1_libc=no
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547 conftest$ac_exeext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17558 am_save_CPPFLAGS="$CPPFLAGS"
17560 for element in $INCICONV; do
17562 for x in $CPPFLAGS; do
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17572 if test "X$x" = "X$element"; then
17577 if test -z "$haveit"; then
17578 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583 { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 am_cv_func_iconv="no, consider installing GNU libiconv"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <stdlib.h>
17602 iconv_t cd = iconv_open("","");
17603 iconv(cd,NULL,NULL,NULL,NULL);
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 am_cv_func_iconv=yes
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17637 if test "$am_cv_func_iconv" != yes; then
17638 am_save_LIBS="$LIBS"
17639 LIBS="$LIBS $LIBICONV"
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <stdlib.h>
17651 iconv_t cd = iconv_open("","");
17652 iconv(cd,NULL,NULL,NULL,NULL);
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 am_cv_lib_iconv=yes
17677 am_cv_func_iconv=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS="$am_save_LIBS"
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693 if test "$am_cv_func_iconv" = yes; then
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17700 if test "$am_cv_lib_iconv" = yes; then
17701 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17706 CPPFLAGS="$am_save_CPPFLAGS"
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17723 eval additional_includedir=\"$includedir\"
17724 eval additional_libdir=\"$libdir\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732 withval=$with_libintl_prefix;
17733 if test "X$withval" = "Xno"; then
17736 if test "X$withval" = "X"; then
17738 acl_save_prefix="$prefix"
17739 prefix="$acl_final_prefix"
17740 acl_save_exec_prefix="$exec_prefix"
17741 exec_prefix="$acl_final_exec_prefix"
17743 eval additional_includedir=\"$includedir\"
17744 eval additional_libdir=\"$libdir\"
17746 exec_prefix="$acl_save_exec_prefix"
17747 prefix="$acl_save_prefix"
17750 additional_includedir="$withval/include"
17751 additional_libdir="$withval/lib"
17762 names_already_handled=
17763 names_next_round='intl '
17764 while test -n "$names_next_round"; do
17765 names_this_round="$names_next_round"
17767 for name in $names_this_round; do
17769 for n in $names_already_handled; do
17770 if test "$n" = "$name"; then
17771 already_handled=yes
17775 if test -z "$already_handled"; then
17776 names_already_handled="$names_already_handled $name"
17777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778 eval value=\"\$HAVE_LIB$uppername\"
17779 if test -n "$value"; then
17780 if test "$value" = yes; then
17781 eval value=\"\$LIB$uppername\"
17782 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783 eval value=\"\$LTLIB$uppername\"
17784 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17793 if test $use_additional = yes; then
17794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795 found_dir="$additional_libdir"
17796 found_so="$additional_libdir/lib$name.$shlibext"
17797 if test -f "$additional_libdir/lib$name.la"; then
17798 found_la="$additional_libdir/lib$name.la"
17801 if test -f "$additional_libdir/lib$name.$libext"; then
17802 found_dir="$additional_libdir"
17803 found_a="$additional_libdir/lib$name.$libext"
17804 if test -f "$additional_libdir/lib$name.la"; then
17805 found_la="$additional_libdir/lib$name.la"
17810 if test "X$found_dir" = "X"; then
17811 for x in $LDFLAGS $LTLIBINTL; do
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17823 dir=`echo "X$x" | sed -e 's/^X-L//'`
17824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826 found_so="$dir/lib$name.$shlibext"
17827 if test -f "$dir/lib$name.la"; then
17828 found_la="$dir/lib$name.la"
17831 if test -f "$dir/lib$name.$libext"; then
17833 found_a="$dir/lib$name.$libext"
17834 if test -f "$dir/lib$name.la"; then
17835 found_la="$dir/lib$name.la"
17841 if test "X$found_dir" != "X"; then
17846 if test "X$found_dir" != "X"; then
17847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848 if test "X$found_so" != "X"; then
17849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17853 for x in $ltrpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 ltrpathdirs="$ltrpathdirs $found_dir"
17862 if test "$hardcode_direct" = yes; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868 for x in $rpathdirs; do
17869 if test "X$x" = "X$found_dir"; then
17874 if test -z "$haveit"; then
17875 rpathdirs="$rpathdirs $found_dir"
17879 for x in $LDFLAGS $LIBINTL; do
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17889 if test "X$x" = "X-L$found_dir"; then
17894 if test -z "$haveit"; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897 if test "$hardcode_minus_L" != no; then
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17906 if test "X$found_a" != "X"; then
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17912 additional_includedir=
17913 case "$found_dir" in
17915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916 additional_includedir="$basedir/include"
17919 if test "X$additional_includedir" != "X"; then
17920 if test "X$additional_includedir" != "X/usr/include"; then
17922 if test "X$additional_includedir" = "X/usr/local/include"; then
17923 if test -n "$GCC"; then
17925 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929 if test -z "$haveit"; then
17930 for x in $CPPFLAGS $INCINTL; do
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17940 if test "X$x" = "X-I$additional_includedir"; then
17945 if test -z "$haveit"; then
17946 if test -d "$additional_includedir"; then
17947 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17953 if test -n "$found_la"; then
17954 save_libdir="$libdir"
17955 case "$found_la" in
17956 */* | *\\*) . "$found_la" ;;
17957 *) . "./$found_la" ;;
17959 libdir="$save_libdir"
17960 for dep in $dependency_libs; do
17963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964 if test "X$additional_libdir" != "X/usr/lib"; then
17966 if test "X$additional_libdir" = "X/usr/local/lib"; then
17967 if test -n "$GCC"; then
17969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17973 if test -z "$haveit"; then
17975 for x in $LDFLAGS $LIBINTL; do
17977 acl_save_prefix="$prefix"
17978 prefix="$acl_final_prefix"
17979 acl_save_exec_prefix="$exec_prefix"
17980 exec_prefix="$acl_final_exec_prefix"
17982 exec_prefix="$acl_save_exec_prefix"
17983 prefix="$acl_save_prefix"
17985 if test "X$x" = "X-L$additional_libdir"; then
17990 if test -z "$haveit"; then
17991 if test -d "$additional_libdir"; then
17992 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17996 for x in $LDFLAGS $LTLIBINTL; do
17998 acl_save_prefix="$prefix"
17999 prefix="$acl_final_prefix"
18000 acl_save_exec_prefix="$exec_prefix"
18001 exec_prefix="$acl_final_exec_prefix"
18003 exec_prefix="$acl_save_exec_prefix"
18004 prefix="$acl_save_prefix"
18006 if test "X$x" = "X-L$additional_libdir"; then
18011 if test -z "$haveit"; then
18012 if test -d "$additional_libdir"; then
18013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021 if test "$enable_rpath" != no; then
18023 for x in $rpathdirs; do
18024 if test "X$x" = "X$dir"; then
18029 if test -z "$haveit"; then
18030 rpathdirs="$rpathdirs $dir"
18033 for x in $ltrpathdirs; do
18034 if test "X$x" = "X$dir"; then
18039 if test -z "$haveit"; then
18040 ltrpathdirs="$ltrpathdirs $dir"
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18058 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18065 if test "X$rpathdirs" != "X"; then
18066 if test -n "$hardcode_libdir_separator"; then
18068 for found_dir in $rpathdirs; do
18069 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071 acl_save_libdir="$libdir"
18073 eval flag=\"$hardcode_libdir_flag_spec\"
18074 libdir="$acl_save_libdir"
18075 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077 for found_dir in $rpathdirs; do
18078 acl_save_libdir="$libdir"
18079 libdir="$found_dir"
18080 eval flag=\"$hardcode_libdir_flag_spec\"
18081 libdir="$acl_save_libdir"
18082 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18086 if test "X$ltrpathdirs" != "X"; then
18087 for found_dir in $ltrpathdirs; do
18088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18092 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 gt_save_CPPFLAGS="$CPPFLAGS"
18098 CPPFLAGS="$CPPFLAGS $INCINTL"
18099 gt_save_LIBS="$LIBS"
18100 LIBS="$LIBS $LIBINTL"
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18113 const char *_nl_expand_alias (const char *);
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 gt_cv_func_gnugettext1_libintl=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 gt_cv_func_gnugettext1_libintl=no
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152 LIBS="$LIBS $LIBICONV"
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18165 const char *_nl_expand_alias (const char *);
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 LIBINTL="$LIBINTL $LIBICONV"
18194 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195 gt_cv_func_gnugettext1_libintl=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 conftest$ac_exeext conftest.$ac_ext
18207 CPPFLAGS="$gt_save_CPPFLAGS"
18208 LIBS="$gt_save_LIBS"
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18214 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216 && test "$PACKAGE" != gettext-runtime \
18217 && test "$PACKAGE" != gettext-tools; }; then
18218 gt_use_preinstalled_gnugettext=yes
18227 if test -n "$INTL_MACOSX_LIBS"; then
18228 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18235 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18247 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251 if test "$USE_NLS" = "yes"; then
18252 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256 gt_source="external libintl"
18261 gt_source="included intl directory"
18263 { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18267 if test "$USE_NLS" = "yes"; then
18269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18276 for element in $INCINTL; do
18278 for x in $CPPFLAGS; do
18280 acl_save_prefix="$prefix"
18281 prefix="$acl_final_prefix"
18282 acl_save_exec_prefix="$exec_prefix"
18283 exec_prefix="$acl_final_exec_prefix"
18285 exec_prefix="$acl_save_exec_prefix"
18286 prefix="$acl_save_prefix"
18288 if test "X$x" = "X$element"; then
18293 if test -z "$haveit"; then
18294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18317 INTLLIBS="$LIBINTL"
18325 if test x${prefix} = xNONE ; then
18326 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18327 sysconfdir=/etc/bacula
18330 if test `eval echo ${libdir}` = NONE/lib ; then
18334 if test `eval echo ${includedir}` = NONE/include ; then
18335 includedir=/usr/include
18338 if test `eval echo ${datarootdir}` = NONE/share ; then
18339 datarootdir=/usr/share
18344 if test x${exec_prefix} = xNONE ; then
18345 exec_prefix=${prefix}
18348 sysconfdir=`eval echo ${sysconfdir}`
18349 datarootdir=`eval echo ${datarootdir}`
18350 docdir=`eval echo ${docdir}`
18351 htmldir=`eval echo ${htmldir}`
18352 libdir=`eval echo ${libdir}`
18353 includedir=`eval echo ${includedir}`
18354 localedir=`eval echo ${datarootdir}/locale`
18355 cat >>confdefs.h <<_ACEOF
18356 #define SYSCONFDIR "$sysconfdir"
18359 cat >>confdefs.h <<_ACEOF
18360 #define LOCALEDIR "$localedir"
18364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18365 sbindir=${exec_prefix}/sbin
18367 sbindir=`eval echo ${sbindir}`
18369 if test x$mandir = x'${prefix}/man' ; then
18370 mandir=/usr/share/man
18373 if test x$htmldir = x${docdir} ; then
18374 htmldir=`eval echo ${docdir}bacula/html`
18377 if test x$docdir = x'/usr/share/doc/' ; then
18378 docdir=`eval echo ${docdir}bacula`
18382 for ac_prog in msgfmt
18384 # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_path_MSGFMT+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18400 test -z "$as_dir" && as_dir=.
18401 for ac_exec_ext in '' $ac_executable_extensions; do
18402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18403 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18414 MSGFMT=$ac_cv_path_MSGFMT
18415 if test -n "$MSGFMT"; then
18416 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18417 echo "${ECHO_T}$MSGFMT" >&6; }
18419 { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18424 test -n "$MSGFMT" && break
18426 test -n "$MSGFMT" || MSGFMT="no"
18428 if test "$MSGFMT" = "no"
18430 echo 'msgfmt program not found, disabling NLS !'
18432 USE_INCLUDED_LIBINTL=no
18435 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18436 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18437 if test "${ac_cv_gnu_library_2+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18447 #include <features.h>
18448 #ifdef __GNU_LIBRARY__
18449 #if (__GLIBC__ >= 2)
18455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18456 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18457 ac_cv_gnu_library_2=yes
18459 ac_cv_gnu_library_2=no
18466 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18467 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18469 GLIBC2="$ac_cv_gnu_library_2"
18472 if test -n "$ac_tool_prefix"; then
18473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_prog_RANLIB+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 if test -n "$RANLIB"; then
18481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18500 RANLIB=$ac_cv_prog_RANLIB
18501 if test -n "$RANLIB"; then
18502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18503 echo "${ECHO_T}$RANLIB" >&6; }
18505 { echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6; }
18511 if test -z "$ac_cv_prog_RANLIB"; then
18512 ac_ct_RANLIB=$RANLIB
18513 # Extract the first word of "ranlib", so it can be a program name with args.
18514 set dummy ranlib; ac_word=$2
18515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 if test -n "$ac_ct_RANLIB"; then
18521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18527 test -z "$as_dir" && as_dir=.
18528 for ac_exec_ext in '' $ac_executable_extensions; do
18529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18530 ac_cv_prog_ac_ct_RANLIB="ranlib"
18531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18541 if test -n "$ac_ct_RANLIB"; then
18542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18545 { echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6; }
18549 if test "x$ac_ct_RANLIB" = x; then
18552 case $cross_compiling:$ac_tool_warned in
18554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18555 whose name does not start with the host triplet. If you think this
18556 configuration is useful to you, please write to autoconf@gnu.org." >&5
18557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18558 whose name does not start with the host triplet. If you think this
18559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18560 ac_tool_warned=yes ;;
18562 RANLIB=$ac_ct_RANLIB
18565 RANLIB="$ac_cv_prog_RANLIB"
18569 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18570 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lcposix $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18593 return strerror ();
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } && {
18612 test -z "$ac_c_werror_flag" ||
18613 test ! -s conftest.err
18614 } && test -s conftest$ac_exeext &&
18615 $as_test_x conftest$ac_exeext; then
18616 ac_cv_lib_cposix_strerror=yes
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ac_cv_lib_cposix_strerror=no
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18629 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18630 if test $ac_cv_lib_cposix_strerror = yes; then
18631 LIBS="$LIBS -lcposix"
18636 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18638 if test "${ac_cv_c_const+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 cat >conftest.$ac_ext <<_ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18651 /* FIXME: Include the comments suggested by Paul. */
18652 #ifndef __cplusplus
18653 /* Ultrix mips cc rejects this. */
18654 typedef int charset[2];
18656 /* SunOS 4.1.1 cc rejects this. */
18657 char const *const *pcpcc;
18659 /* NEC SVR4.0.2 mips cc rejects this. */
18660 struct point {int x, y;};
18661 static struct point const zero = {0,0};
18662 /* AIX XL C 1.02.0.0 rejects this.
18663 It does not let you subtract one const X* pointer from another in
18664 an arm of an if-expression whose if-part is not a constant
18666 const char *g = "string";
18667 pcpcc = &g + (g ? g-g : 0);
18668 /* HPUX 7.0 cc rejects these. */
18670 ppc = (char**) pcpcc;
18671 pcpcc = (char const *const *) ppc;
18672 { /* SCO 3.2v4 cc rejects this. */
18674 char const *s = 0 ? (char *) 0 : (char const *) 0;
18679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18680 int x[] = {25, 17};
18681 const int *foo = &x[0];
18684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18685 typedef const int *iptr;
18689 { /* AIX XL C 1.02.0.0 rejects this saying
18690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18691 struct s { int j; const int *ap[3]; };
18692 struct s *b; b->j = 5;
18694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18695 const int foo = 10;
18696 if (!foo) return 0;
18698 return !cs[0] && !zero.x;
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_compile") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest.$ac_objext; then
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18733 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18734 if test $ac_cv_c_const = no; then
18736 cat >>confdefs.h <<\_ACEOF
18743 { echo "$as_me:$LINENO: checking for signed" >&5
18744 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18745 if test "${bh_cv_c_signed+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_compile") 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest.$ac_objext; then
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18791 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18792 if test $bh_cv_c_signed = no; then
18794 cat >>confdefs.h <<\_ACEOF
18800 { echo "$as_me:$LINENO: checking for inline" >&5
18801 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18802 if test "${ac_cv_c_inline+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 for ac_kw in inline __inline__ __inline; do
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 #ifndef __cplusplus
18815 static $ac_kw foo_t static_foo () {return 0; }
18816 $ac_kw foo_t foo () {return 0; }
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_compile") 2>conftest.er1
18829 grep -v '^ *+' conftest.er1 >conftest.err
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } && {
18834 test -z "$ac_c_werror_flag" ||
18835 test ! -s conftest.err
18836 } && test -s conftest.$ac_objext; then
18837 ac_cv_c_inline=$ac_kw
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846 test "$ac_cv_c_inline" != no && break
18850 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18851 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18854 case $ac_cv_c_inline in
18857 case $ac_cv_c_inline in
18859 *) ac_val=$ac_cv_c_inline;;
18861 cat >>confdefs.h <<_ACEOF
18862 #ifndef __cplusplus
18863 #define inline $ac_val
18869 { echo "$as_me:$LINENO: checking for off_t" >&5
18870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18871 if test "${ac_cv_type_off_t+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 $ac_includes_default
18881 typedef off_t ac__type_new_;
18885 if ((ac__type_new_ *) 0)
18887 if (sizeof (ac__type_new_))
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_compile") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest.$ac_objext; then
18910 ac_cv_type_off_t=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_cv_type_off_t=no
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18921 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18922 if test $ac_cv_type_off_t = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define off_t long int
18932 { echo "$as_me:$LINENO: checking for size_t" >&5
18933 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18934 if test "${ac_cv_type_size_t+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 $ac_includes_default
18944 typedef size_t ac__type_new_;
18948 if ((ac__type_new_ *) 0)
18950 if (sizeof (ac__type_new_))
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.$ac_objext; then
18973 ac_cv_type_size_t=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_cv_type_size_t=no
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18984 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18985 if test $ac_cv_type_size_t = yes; then
18989 cat >>confdefs.h <<_ACEOF
18990 #define size_t unsigned int
18996 { echo "$as_me:$LINENO: checking for long long" >&5
18997 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18998 if test "${ac_cv_type_long_long+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 long long ll = 1LL; int i = 63;
19011 long long llmax = (long long) -1;
19012 return ll << i | ll >> i | llmax / ll | llmax % ll;
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 ac_cv_type_long_long=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_type_long_long=no
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19046 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19047 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19048 if test $ac_cv_type_long_long = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_LONG 1
19057 { echo "$as_me:$LINENO: checking for long double" >&5
19058 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_long_double+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 if test "$GCC" = yes; then
19063 gt_cv_c_long_double=yes
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19072 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19073 long double foo = 0.0;
19074 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19075 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_compile") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest.$ac_objext; then
19102 gt_cv_c_long_double=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 gt_cv_c_long_double=no
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19114 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19115 if test $gt_cv_c_long_double = yes; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_LONG_DOUBLE 1
19124 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19125 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19126 if test "${gt_cv_c_wchar_t+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 #include <stddef.h>
19136 wchar_t foo = (wchar_t)'\0';
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 gt_cv_c_wchar_t=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19173 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19174 if test $gt_cv_c_wchar_t = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_WCHAR_T 1
19183 { echo "$as_me:$LINENO: checking for wint_t" >&5
19184 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19185 if test "${gt_cv_c_wint_t+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19195 wint_t foo = (wchar_t)'\0';
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_compile") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } && {
19218 test -z "$ac_c_werror_flag" ||
19219 test ! -s conftest.err
19220 } && test -s conftest.$ac_objext; then
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19232 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19233 if test $gt_cv_c_wint_t = yes; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_WINT_T 1
19242 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19243 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19244 if test "${gl_cv_header_inttypes_h+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 #include <sys/types.h>
19254 #include <inttypes.h>
19258 uintmax_t i = (uintmax_t) -1;
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_compile") 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && {
19277 test -z "$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19279 } && test -s conftest.$ac_objext; then
19280 gl_cv_header_inttypes_h=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 gl_cv_header_inttypes_h=no
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19291 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19292 if test $gl_cv_header_inttypes_h = yes; then
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19301 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19302 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19303 if test "${gl_cv_header_stdint_h+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <sys/types.h>
19313 #include <stdint.h>
19317 uintmax_t i = (uintmax_t) -1;
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest.$ac_objext; then
19339 gl_cv_header_stdint_h=yes
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 gl_cv_header_stdint_h=no
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19350 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19351 if test $gl_cv_header_stdint_h = yes; then
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_STDINT_H_WITH_UINTMAX 1
19362 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19363 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19364 if test "${gt_cv_c_intmax_t+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 #include <stddef.h>
19375 #include <stdlib.h>
19376 #if HAVE_STDINT_H_WITH_UINTMAX
19377 #include <stdint.h>
19379 #if HAVE_INTTYPES_H_WITH_UINTMAX
19380 #include <inttypes.h>
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 gt_cv_c_intmax_t=yes
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 gt_cv_c_intmax_t=no
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19419 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19420 if test $gt_cv_c_intmax_t = yes; then
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_INTMAX_T 1
19430 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19431 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19432 if test "${gt_cv_func_printf_posix+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 if test "$cross_compiling" = yes; then
19438 cat >conftest.$ac_ext <<_ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19445 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "notposix" >/dev/null 2>&1; then
19452 gt_cv_func_printf_posix="guessing no"
19454 gt_cv_func_printf_posix="guessing yes"
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19468 #include <string.h>
19469 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19470 dollar expansion (possibly an autoconf bug). */
19471 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19472 static char buf[100];
19475 sprintf (buf, format, 33, 55);
19476 return (strcmp (buf, "55 33") != 0);
19479 rm -f conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_link") 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19490 { (case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_try") 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 gt_cv_func_printf_posix=yes
19501 echo "$as_me: program exited with status $ac_status" >&5
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ( exit $ac_status )
19506 gt_cv_func_printf_posix=no
19508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19514 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19515 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19516 case $gt_cv_func_printf_posix in
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_POSIX_PRINTF 1
19526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19527 # for constant arguments. Useless!
19528 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19529 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19530 if test "${ac_cv_working_alloca_h+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 #include <alloca.h>
19543 char *p = (char *) alloca (2 * sizeof (int));
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_link") 2>conftest.er1
19558 grep -v '^ *+' conftest.er1 >conftest.err
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest$ac_exeext &&
19566 $as_test_x conftest$ac_exeext; then
19567 ac_cv_working_alloca_h=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_working_alloca_h=no
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576 conftest$ac_exeext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19579 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19580 if test $ac_cv_working_alloca_h = yes; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ALLOCA_H 1
19588 { echo "$as_me:$LINENO: checking for alloca" >&5
19589 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_alloca_works+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 # define alloca __builtin_alloca
19603 # include <malloc.h>
19604 # define alloca _alloca
19606 # ifdef HAVE_ALLOCA_H
19607 # include <alloca.h>
19612 # ifndef alloca /* predefined by HP cc +Olibcalls */
19623 char *p = (char *) alloca (1);
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext &&
19646 $as_test_x conftest$ac_exeext; then
19647 ac_cv_func_alloca_works=yes
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ac_cv_func_alloca_works=no
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656 conftest$ac_exeext conftest.$ac_ext
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19661 if test $ac_cv_func_alloca_works = yes; then
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ALLOCA 1
19668 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19669 # that cause trouble. Some versions do not even contain alloca or
19670 # contain a buggy version. If you still want to use their alloca,
19671 # use ar to extract alloca.o from them instead of compiling alloca.c.
19673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19675 cat >>confdefs.h <<\_ACEOF
19680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19682 if test "${ac_cv_os_cray+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #if defined CRAY && ! defined CRAY2
19698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19699 $EGREP "webecray" >/dev/null 2>&1; then
19707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19709 if test $ac_cv_os_cray = yes; then
19710 for ac_func in _getb67 GETB67 getb67; do
19711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725 #define $ac_func innocuous_$ac_func
19727 /* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char $ac_func (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19733 # include <limits.h>
19735 # include <assert.h>
19740 /* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
19747 /* The GNU C library defines this for functions which it implements
19748 to always fail with ENOSYS. Some functions are actually named
19749 something starting with __ and the normal name is an alias. */
19750 #if defined __stub_$ac_func || defined __stub___$ac_func
19757 return $ac_func ();
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
19780 eval "$as_ac_var=yes"
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 eval "$as_ac_var=no"
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789 conftest$ac_exeext conftest.$ac_ext
19791 ac_res=`eval echo '${'$as_ac_var'}'`
19792 { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19796 cat >>confdefs.h <<_ACEOF
19797 #define CRAY_STACKSEG_END $ac_func
19806 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19807 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19808 if test "${ac_cv_c_stack_direction+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 if test "$cross_compiling" = yes; then
19812 ac_cv_c_stack_direction=0
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19822 find_stack_direction ()
19824 static char *addr = 0;
19829 return find_stack_direction ();
19832 return (&dummy > addr) ? 1 : -1;
19838 return find_stack_direction () < 0;
19841 rm -f conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_link") 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_c_stack_direction=1
19863 echo "$as_me: program exited with status $ac_status" >&5
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ( exit $ac_status )
19868 ac_cv_c_stack_direction=-1
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19876 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19878 cat >>confdefs.h <<_ACEOF
19879 #define STACK_DIRECTION $ac_cv_c_stack_direction
19887 for ac_header in stdlib.h unistd.h
19889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_res=`eval echo '${'$as_ac_Header'}'`
19897 { echo "$as_me:$LINENO: result: $ac_res" >&5
19898 echo "${ECHO_T}$ac_res" >&6; }
19900 # Is the header compilable?
19901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 $ac_includes_default
19910 #include <$ac_header>
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_compile") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest.$ac_objext; then
19929 ac_header_compiler=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_compiler=no
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6; }
19941 # Is the header present?
19942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <$ac_header>
19952 if { (ac_try="$ac_cpp conftest.$ac_ext"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } >/dev/null && {
19965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19968 ac_header_preproc=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_header_preproc=no
19976 rm -f conftest.err conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6; }
19980 # So? What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19987 ac_header_preproc=yes
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 eval "$as_ac_Header=\$ac_header_preproc"
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013 { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20018 cat >>confdefs.h <<_ACEOF
20019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027 for ac_func in getpagesize
20029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20043 #define $ac_func innocuous_$ac_func
20045 /* System header to define __stub macros and hopefully few prototypes,
20046 which can conflict with char $ac_func (); below.
20047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048 <limits.h> exists even on freestanding compilers. */
20051 # include <limits.h>
20053 # include <assert.h>
20058 /* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20065 /* The GNU C library defines this for functions which it implements
20066 to always fail with ENOSYS. Some functions are actually named
20067 something starting with __ and the normal name is an alias. */
20068 #if defined __stub_$ac_func || defined __stub___$ac_func
20075 return $ac_func ();
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_link") 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest$ac_exeext &&
20097 $as_test_x conftest$ac_exeext; then
20098 eval "$as_ac_var=yes"
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 eval "$as_ac_var=no"
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107 conftest$ac_exeext conftest.$ac_ext
20109 ac_res=`eval echo '${'$as_ac_var'}'`
20110 { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113 cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20120 { echo "$as_me:$LINENO: checking for working mmap" >&5
20121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 if test "$cross_compiling" = yes; then
20126 ac_cv_func_mmap_fixed_mapped=no
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 $ac_includes_default
20135 /* malloc might have been renamed as rpl_malloc. */
20138 /* Thanks to Mike Haertel and Jim Avera for this test.
20139 Here is a matrix of mmap possibilities:
20140 mmap private not fixed
20141 mmap private fixed at somewhere currently unmapped
20142 mmap private fixed at somewhere already mapped
20143 mmap shared not fixed
20144 mmap shared fixed at somewhere currently unmapped
20145 mmap shared fixed at somewhere already mapped
20146 For private mappings, we should verify that changes cannot be read()
20147 back from the file, nor mmap's back from the file at a different
20148 address. (There have been systems where private was not correctly
20149 implemented like the infamous i386 svr4.0, and systems where the
20150 VM page cache was not coherent with the file system buffer cache
20151 like early versions of FreeBSD and possibly contemporary NetBSD.)
20152 For shared mappings, we should conversely verify that changes get
20153 propagated back to all the places they're supposed to be.
20155 Grep wants private fixed already mapped.
20156 The main things grep needs to know about mmap are:
20157 * does it exist and is it safe to write into the mmap'd area
20158 * how to use it (BSD variants) */
20161 #include <sys/mman.h>
20163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20167 /* This mess was copied from the GNU getpagesize.h. */
20168 #ifndef HAVE_GETPAGESIZE
20169 /* Assume that all systems that can run configure have sys/param.h. */
20170 # ifndef HAVE_SYS_PARAM_H
20171 # define HAVE_SYS_PARAM_H 1
20174 # ifdef _SC_PAGESIZE
20175 # define getpagesize() sysconf(_SC_PAGESIZE)
20176 # else /* no _SC_PAGESIZE */
20177 # ifdef HAVE_SYS_PARAM_H
20178 # include <sys/param.h>
20179 # ifdef EXEC_PAGESIZE
20180 # define getpagesize() EXEC_PAGESIZE
20181 # else /* no EXEC_PAGESIZE */
20183 # define getpagesize() NBPG * CLSIZE
20186 # endif /* no CLSIZE */
20187 # else /* no NBPG */
20189 # define getpagesize() NBPC
20190 # else /* no NBPC */
20192 # define getpagesize() PAGESIZE
20193 # endif /* PAGESIZE */
20194 # endif /* no NBPC */
20195 # endif /* no NBPG */
20196 # endif /* no EXEC_PAGESIZE */
20197 # else /* no HAVE_SYS_PARAM_H */
20198 # define getpagesize() 8192 /* punt totally */
20199 # endif /* no HAVE_SYS_PARAM_H */
20200 # endif /* no _SC_PAGESIZE */
20202 #endif /* no HAVE_GETPAGESIZE */
20207 char *data, *data2, *data3;
20211 pagesize = getpagesize ();
20213 /* First, make a file with some known garbage in it. */
20214 data = (char *) malloc (pagesize);
20217 for (i = 0; i < pagesize; ++i)
20218 *(data + i) = rand ();
20220 fd = creat ("conftest.mmap", 0600);
20223 if (write (fd, data, pagesize) != pagesize)
20227 /* Next, try to mmap the file at a fixed address which already has
20228 something else allocated at it. If we can, also make sure that
20229 we see the same garbage. */
20230 fd = open ("conftest.mmap", O_RDWR);
20233 data2 = (char *) malloc (2 * pagesize);
20236 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20237 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20238 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20240 for (i = 0; i < pagesize; ++i)
20241 if (*(data + i) != *(data2 + i))
20244 /* Finally, make sure that changes to the mapped area do not
20245 percolate back to the file as seen by read(). (This is a bug on
20246 some variants of i386 svr4.0.) */
20247 for (i = 0; i < pagesize; ++i)
20248 *(data2 + i) = *(data2 + i) + 1;
20249 data3 = (char *) malloc (pagesize);
20252 if (read (fd, data3, pagesize) != pagesize)
20254 for (i = 0; i < pagesize; ++i)
20255 if (*(data + i) != *(data3 + i))
20261 rm -f conftest$ac_exeext
20262 if { (ac_try="$ac_link"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_link") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272 { (case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_try") 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_cv_func_mmap_fixed_mapped=yes
20283 echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ( exit $ac_status )
20288 ac_cv_func_mmap_fixed_mapped=no
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20296 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_MMAP 1
20304 rm -f conftest.mmap
20307 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20308 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20309 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 #include <features.h>
20320 #ifdef __GNU_LIBRARY__
20321 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20329 ac_cv_gnu_library_2_1=yes
20331 ac_cv_gnu_library_2_1=no
20338 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20339 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20341 GLIBC21="$ac_cv_gnu_library_2_1"
20346 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20347 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20348 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 if test "$cross_compiling" = yes; then
20354 # Guess based on the CPU.
20355 case "$host_cpu" in
20356 alpha* | i3456786 | m68k | s390*)
20357 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20359 gt_cv_int_divbyzero_sigfpe="guessing no";;
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20370 #include <stdlib.h>
20371 #include <signal.h>
20375 sigfpe_handler (int sig)
20377 sigfpe_handler (sig) int sig;
20380 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20381 exit (sig != SIGFPE);
20391 signal (SIGFPE, sigfpe_handler);
20392 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20393 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20394 signal (SIGTRAP, sigfpe_handler);
20396 /* Linux/SPARC yields signal SIGILL. */
20397 #if defined (__sparc__) && defined (__linux__)
20398 signal (SIGILL, sigfpe_handler);
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 gt_cv_int_divbyzero_sigfpe=yes
20429 echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ( exit $ac_status )
20434 gt_cv_int_divbyzero_sigfpe=no
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20443 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20444 case "$gt_cv_int_divbyzero_sigfpe" in
20449 cat >>confdefs.h <<_ACEOF
20450 #define INTDIV0_RAISES_SIGFPE $value
20455 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20456 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20457 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 unsigned long long ull = 1ULL; int i = 63;
20470 unsigned long long ullmax = (unsigned long long) -1;
20471 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_link") 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest$ac_exeext &&
20493 $as_test_x conftest$ac_exeext; then
20494 ac_cv_type_unsigned_long_long=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_type_unsigned_long_long=no
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503 conftest$ac_exeext conftest.$ac_ext
20505 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20506 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20507 if test $ac_cv_type_unsigned_long_long = yes; then
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_UNSIGNED_LONG_LONG 1
20518 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20520 test $ac_cv_type_unsigned_long_long = yes \
20521 && ac_type='unsigned long long' \
20522 || ac_type='unsigned long'
20524 cat >>confdefs.h <<_ACEOF
20525 #define uintmax_t $ac_type
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_UINTMAX_T 1
20537 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20538 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20539 if test "${gt_cv_header_inttypes_h+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 cat >conftest.$ac_ext <<_ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20549 #include <sys/types.h>
20550 #include <inttypes.h>
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_compile") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest.$ac_objext; then
20576 gt_cv_header_inttypes_h=yes
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 gt_cv_header_inttypes_h=no
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20588 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20589 if test $gt_cv_header_inttypes_h = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_INTTYPES_H 1
20599 if test $gt_cv_header_inttypes_h = yes; then
20600 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20601 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20602 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 #include <inttypes.h>
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.$ac_objext; then
20642 gt_cv_inttypes_pri_broken=no
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 gt_cv_inttypes_pri_broken=yes
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20656 if test "$gt_cv_inttypes_pri_broken" = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define PRI_MACROS_BROKEN 1
20666 for ac_header in stdint.h
20668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 ac_res=`eval echo '${'$as_ac_Header'}'`
20676 { echo "$as_me:$LINENO: result: $ac_res" >&5
20677 echo "${ECHO_T}$ac_res" >&6; }
20679 # Is the header compilable?
20680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20689 #include <$ac_header>
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20700 grep -v '^ *+' conftest.er1 >conftest.err
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && {
20705 test -z "$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 } && test -s conftest.$ac_objext; then
20708 ac_header_compiler=yes
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ac_header_compiler=no
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718 echo "${ECHO_T}$ac_header_compiler" >&6; }
20720 # Is the header present?
20721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <$ac_header>
20731 if { (ac_try="$ac_cpp conftest.$ac_ext"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } >/dev/null && {
20744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20745 test ! -s conftest.err
20747 ac_header_preproc=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_header_preproc=no
20755 rm -f conftest.err conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20757 echo "${ECHO_T}$ac_header_preproc" >&6; }
20759 # So? What about this header?
20760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20766 ac_header_preproc=yes
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 eval "$as_ac_Header=\$ac_header_preproc"
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792 { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20797 cat >>confdefs.h <<_ACEOF
20798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20805 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20806 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20815 #include <limits.h>
20817 #include <stdint.h>
20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825 $EGREP "Found it" >/dev/null 2>&1; then
20830 if test -z "$result"; then
20831 if test "$cross_compiling" = yes; then
20832 # Depending upon the size, compute the lo and hi bounds.
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 #include <stddef.h>
20843 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 #include <stddef.h>
20879 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_hi=$ac_mid; break
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_lo=`expr $ac_mid + 1`
20909 if test $ac_lo -le $ac_mid; then
20913 ac_mid=`expr 2 '*' $ac_mid + 1`
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <stddef.h>
20932 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <stddef.h>
20968 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20992 ac_lo=$ac_mid; break
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_hi=`expr '(' $ac_mid ')' - 1`
20998 if test $ac_mid -le $ac_hi; then
21002 ac_mid=`expr 2 '*' $ac_mid`
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 # Binary search between lo and hi bounds.
21019 while test "x$ac_lo" != "x$ac_hi"; do
21020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21027 #include <stddef.h>
21031 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_lo=`expr '(' $ac_mid ')' + 1`
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21066 ?*) res_hi=$ac_lo;;
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <stddef.h>
21077 static long int longval () { return ~(size_t)0 / 10; }
21078 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21080 #include <stdlib.h>
21085 FILE *f = fopen ("conftest.val", "w");
21088 if ((~(size_t)0 / 10) < 0)
21090 long int i = longval ();
21091 if (i != (~(size_t)0 / 10))
21093 fprintf (f, "%ld\n", i);
21097 unsigned long int i = ulongval ();
21098 if (i != (~(size_t)0 / 10))
21100 fprintf (f, "%lu\n", i);
21102 return ferror (f) || fclose (f) != 0;
21108 rm -f conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_link") 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119 { (case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_try") 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 res_hi=`cat conftest.val`
21130 echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ( exit $ac_status )
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21141 if test "$cross_compiling" = yes; then
21142 # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <stddef.h>
21153 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <stddef.h>
21189 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21213 ac_hi=$ac_mid; break
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_lo=`expr $ac_mid + 1`
21219 if test $ac_lo -le $ac_mid; then
21223 ac_mid=`expr 2 '*' $ac_mid + 1`
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <stddef.h>
21242 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <stddef.h>
21278 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 ac_lo=$ac_mid; break
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_hi=`expr '(' $ac_mid ')' - 1`
21308 if test $ac_mid -le $ac_hi; then
21312 ac_mid=`expr 2 '*' $ac_mid`
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 # Binary search between lo and hi bounds.
21329 while test "x$ac_lo" != "x$ac_hi"; do
21330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <stddef.h>
21341 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_compile") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest.$ac_objext; then
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_lo=`expr '(' $ac_mid ')' + 1`
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 ?*) res_lo=$ac_lo;;
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 #include <stddef.h>
21387 static long int longval () { return ~(size_t)0 % 10; }
21388 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21390 #include <stdlib.h>
21395 FILE *f = fopen ("conftest.val", "w");
21398 if ((~(size_t)0 % 10) < 0)
21400 long int i = longval ();
21401 if (i != (~(size_t)0 % 10))
21403 fprintf (f, "%ld\n", i);
21407 unsigned long int i = ulongval ();
21408 if (i != (~(size_t)0 % 10))
21410 fprintf (f, "%lu\n", i);
21412 return ferror (f) || fclose (f) != 0;
21418 rm -f conftest$ac_exeext
21419 if { (ac_try="$ac_link"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_link") 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_try") 2>&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 res_lo=`cat conftest.val`
21440 echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ( exit $ac_status )
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21451 if test "$cross_compiling" = yes; then
21452 # Depending upon the size, compute the lo and hi bounds.
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <stddef.h>
21463 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_compile") 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest.$ac_objext; then
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <stddef.h>
21499 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_compile") 2>conftest.er1
21515 grep -v '^ *+' conftest.er1 >conftest.err
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest.$ac_objext; then
21523 ac_hi=$ac_mid; break
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21528 ac_lo=`expr $ac_mid + 1`
21529 if test $ac_lo -le $ac_mid; then
21533 ac_mid=`expr 2 '*' $ac_mid + 1`
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <stddef.h>
21552 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_compile") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest.$ac_objext; then
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <stddef.h>
21588 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_lo=$ac_mid; break
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_hi=`expr '(' $ac_mid ')' - 1`
21618 if test $ac_mid -le $ac_hi; then
21622 ac_mid=`expr 2 '*' $ac_mid`
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 # Binary search between lo and hi bounds.
21639 while test "x$ac_lo" != "x$ac_hi"; do
21640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <stddef.h>
21651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_lo=`expr '(' $ac_mid ')' + 1`
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 ?*) fits_in_uint=$ac_lo;;
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <stddef.h>
21697 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21700 #include <stdlib.h>
21705 FILE *f = fopen ("conftest.val", "w");
21708 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21710 long int i = longval ();
21711 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21713 fprintf (f, "%ld\n", i);
21717 unsigned long int i = ulongval ();
21718 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21720 fprintf (f, "%lu\n", i);
21722 return ferror (f) || fclose (f) != 0;
21728 rm -f conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732 *) ac_try_echo=$ac_try;;
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735 (eval "$ac_link") 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21739 { (case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_try") 2>&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 fits_in_uint=`cat conftest.val`
21750 echo "$as_me: program exited with status $ac_status" >&5
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ( exit $ac_status )
21757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21761 if test "$fits_in_uint" = 1; then
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 #include <stddef.h>
21770 extern unsigned long foo;
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_compile") 2>conftest.er1
21789 grep -v '^ *+' conftest.er1 >conftest.err
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && {
21794 test -z "$ac_c_werror_flag" ||
21795 test ! -s conftest.err
21796 } && test -s conftest.$ac_objext; then
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 if test -z "$result"; then
21808 if test "$fits_in_uint" = 1; then
21809 result="$res_hi$res_lo"U
21811 result="$res_hi$res_lo"UL
21814 result='~(size_t)0'
21817 { echo "$as_me:$LINENO: result: $result" >&5
21818 echo "${ECHO_T}$result" >&6; }
21819 if test "$result" != yes; then
21821 cat >>confdefs.h <<_ACEOF
21822 #define SIZE_MAX $result
21831 for ac_header in stdint.h
21833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841 { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21844 # Is the header compilable?
21845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 $ac_includes_default
21854 #include <$ac_header>
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_compile") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest.$ac_objext; then
21873 ac_header_compiler=yes
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21878 ac_header_compiler=no
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21883 echo "${ECHO_T}$ac_header_compiler" >&6; }
21885 # Is the header present?
21886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 #include <$ac_header>
21896 if { (ac_try="$ac_cpp conftest.$ac_ext"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } >/dev/null && {
21909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21910 test ! -s conftest.err
21912 ac_header_preproc=yes
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ac_header_preproc=no
21920 rm -f conftest.err conftest.$ac_ext
21921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21922 echo "${ECHO_T}$ac_header_preproc" >&6; }
21924 # So? What about this header?
21925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21931 ac_header_preproc=yes
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 eval "$as_ac_Header=\$ac_header_preproc"
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957 { echo "$as_me:$LINENO: result: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21978 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 typedef ptrdiff_t ac__type_new_;
21993 if ((ac__type_new_ *) 0)
21995 if (sizeof (ac__type_new_))
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest.$ac_objext; then
22018 ac_cv_type_ptrdiff_t=yes
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_type_ptrdiff_t=no
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22029 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22030 if test $ac_cv_type_ptrdiff_t = yes; then
22034 cat >>confdefs.h <<\_ACEOF
22035 #define ptrdiff_t long
22051 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22052 stdlib.h string.h unistd.h sys/param.h
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062 { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22065 # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <$ac_header>
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_header_compiler=yes
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_compiler=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 #include <$ac_header>
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22133 ac_header_preproc=yes
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_header_preproc=no
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 eval "$as_ac_Header=\$ac_header_preproc"
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178 { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183 cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233 #define $ac_func innocuous_$ac_func
22235 /* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
22241 # include <limits.h>
22243 # include <assert.h>
22248 /* Override any GCC internal prototype to avoid an error.
22249 Use char because int might match the return type of a GCC
22250 builtin and then its argument prototype would still apply. */
22255 /* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22265 return $ac_func ();
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_link") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext &&
22287 $as_test_x conftest$ac_exeext; then
22288 eval "$as_ac_var=yes"
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 eval "$as_ac_var=no"
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297 conftest$ac_exeext conftest.$ac_ext
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300 { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22312 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22313 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22314 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22329 char *p = (char *) _snprintf;
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22345 grep -v '^ *+' conftest.er1 >conftest.err
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_cv_have_decl__snprintf=yes
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_have_decl__snprintf=no
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22364 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22365 if test $ac_cv_have_decl__snprintf = yes; then
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_DECL__SNPRINTF $gt_value
22377 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22378 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22379 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 cat >conftest.$ac_ext <<_ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22394 char *p = (char *) _snwprintf;
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_compile") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest.$ac_objext; then
22418 ac_cv_have_decl__snwprintf=yes
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_cv_have_decl__snwprintf=no
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22429 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22430 if test $ac_cv_have_decl__snwprintf = yes; then
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_DECL__SNWPRINTF $gt_value
22443 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22444 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22445 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22459 #ifndef feof_unlocked
22460 char *p = (char *) feof_unlocked;
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22476 grep -v '^ *+' conftest.er1 >conftest.err
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_have_decl_feof_unlocked=yes
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_cv_have_decl_feof_unlocked=no
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22495 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22496 if test $ac_cv_have_decl_feof_unlocked = yes; then
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22508 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22509 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22510 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22524 #ifndef fgets_unlocked
22525 char *p = (char *) fgets_unlocked;
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_compile") 2>conftest.er1
22541 grep -v '^ *+' conftest.er1 >conftest.err
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest.$ac_objext; then
22549 ac_cv_have_decl_fgets_unlocked=yes
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ac_cv_have_decl_fgets_unlocked=no
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22560 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22561 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22573 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22574 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22575 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22589 #ifndef getc_unlocked
22590 char *p = (char *) getc_unlocked;
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_have_decl_getc_unlocked=yes
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_have_decl_getc_unlocked=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22625 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22626 if test $ac_cv_have_decl_getc_unlocked = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22638 case $gt_cv_func_printf_posix in
22639 *yes) HAVE_POSIX_PRINTF=1 ;;
22640 *) HAVE_POSIX_PRINTF=0 ;;
22643 if test "$ac_cv_func_asprintf" = yes; then
22649 if test "$ac_cv_func_snprintf" = yes; then
22655 if test "$ac_cv_func_wprintf" = yes; then
22667 am_save_CPPFLAGS="$CPPFLAGS"
22669 for element in $INCICONV; do
22671 for x in $CPPFLAGS; do
22673 acl_save_prefix="$prefix"
22674 prefix="$acl_final_prefix"
22675 acl_save_exec_prefix="$exec_prefix"
22676 exec_prefix="$acl_final_exec_prefix"
22678 exec_prefix="$acl_save_exec_prefix"
22679 prefix="$acl_save_prefix"
22681 if test "X$x" = "X$element"; then
22686 if test -z "$haveit"; then
22687 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22692 { echo "$as_me:$LINENO: checking for iconv" >&5
22693 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22694 if test "${am_cv_func_iconv+set}" = set; then
22695 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 am_cv_func_iconv="no, consider installing GNU libiconv"
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 #include <stdlib.h>
22711 iconv_t cd = iconv_open("","");
22712 iconv(cd,NULL,NULL,NULL,NULL);
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722 *) ac_try_echo=$ac_try;;
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725 (eval "$ac_link") 2>conftest.er1
22727 grep -v '^ *+' conftest.er1 >conftest.err
22729 cat conftest.err >&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } && {
22732 test -z "$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22734 } && test -s conftest$ac_exeext &&
22735 $as_test_x conftest$ac_exeext; then
22736 am_cv_func_iconv=yes
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745 conftest$ac_exeext conftest.$ac_ext
22746 if test "$am_cv_func_iconv" != yes; then
22747 am_save_LIBS="$LIBS"
22748 LIBS="$LIBS $LIBICONV"
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 #include <stdlib.h>
22760 iconv_t cd = iconv_open("","");
22761 iconv(cd,NULL,NULL,NULL,NULL);
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774 (eval "$ac_link") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest$ac_exeext &&
22784 $as_test_x conftest$ac_exeext; then
22785 am_cv_lib_iconv=yes
22786 am_cv_func_iconv=yes
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795 conftest$ac_exeext conftest.$ac_ext
22796 LIBS="$am_save_LIBS"
22800 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22801 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22802 if test "$am_cv_func_iconv" = yes; then
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_ICONV 1
22809 if test "$am_cv_lib_iconv" = yes; then
22810 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22811 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22812 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22813 echo "${ECHO_T}$LIBICONV" >&6; }
22815 CPPFLAGS="$am_save_CPPFLAGS"
22822 if test "$am_cv_func_iconv" = yes; then
22823 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22825 if test "${am_cv_proto_iconv+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22836 #include <stdlib.h>
22842 #if defined(__STDC__) || defined(__cplusplus)
22843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 am_cv_proto_iconv_arg1=""
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 am_cv_proto_iconv_arg1="const"
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22885 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22886 { echo "$as_me:$LINENO: result: ${ac_t:-
22887 }$am_cv_proto_iconv" >&5
22888 echo "${ECHO_T}${ac_t:-
22889 }$am_cv_proto_iconv" >&6; }
22891 cat >>confdefs.h <<_ACEOF
22892 #define ICONV_CONST $am_cv_proto_iconv_arg1
22898 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22900 if test "${am_cv_langinfo_codeset+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 #include <langinfo.h>
22913 char* cs = nl_langinfo(CODESET);
22918 rm -f conftest.$ac_objext conftest$ac_exeext
22919 if { (ac_try="$ac_link"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925 (eval "$ac_link") 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest$ac_exeext &&
22935 $as_test_x conftest$ac_exeext; then
22936 am_cv_langinfo_codeset=yes
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 am_cv_langinfo_codeset=no
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945 conftest$ac_exeext conftest.$ac_ext
22948 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22949 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22950 if test $am_cv_langinfo_codeset = yes; then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LANGINFO_CODESET 1
22958 if test $ac_cv_header_locale_h = yes; then
22960 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22961 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22962 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 #include <locale.h>
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_link") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest$ac_exeext &&
22997 $as_test_x conftest$ac_exeext; then
22998 gt_cv_val_LC_MESSAGES=yes
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 gt_cv_val_LC_MESSAGES=no
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007 conftest$ac_exeext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23010 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23011 if test $gt_cv_val_LC_MESSAGES = yes; then
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LC_MESSAGES 1
23021 if test -n "$INTL_MACOSX_LIBS"; then
23022 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23025 for ac_prog in bison
23027 # Extract the first word of "$ac_prog", so it can be a program name with args.
23028 set dummy $ac_prog; ac_word=$2
23029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 if test -n "$INTLBISON"; then
23035 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23038 for as_dir in $PATH
23041 test -z "$as_dir" && as_dir=.
23042 for ac_exec_ext in '' $ac_executable_extensions; do
23043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23044 ac_cv_prog_INTLBISON="$ac_prog"
23045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23054 INTLBISON=$ac_cv_prog_INTLBISON
23055 if test -n "$INTLBISON"; then
23056 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23057 echo "${ECHO_T}$INTLBISON" >&6; }
23059 { echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6; }
23064 test -n "$INTLBISON" && break
23067 if test -z "$INTLBISON"; then
23070 { echo "$as_me:$LINENO: checking version of bison" >&5
23071 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23072 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23073 case $ac_prog_version in
23074 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23075 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23076 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23077 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23079 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23080 echo "${ECHO_T}$ac_prog_version" >&6; }
23082 if test $ac_verc_fail = yes; then
23101 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23102 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23103 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 gt_save_CPPFLAGS="$CPPFLAGS"
23107 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23108 gt_save_LIBS="$LIBS"
23109 LIBS="$LIBS -framework CoreFoundation"
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <CFPreferences.h>
23120 CFPreferencesCopyAppValue(NULL, NULL)
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_link") 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest$ac_exeext &&
23142 $as_test_x conftest$ac_exeext; then
23143 gt_cv_func_CFPreferencesCopyAppValue=yes
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 gt_cv_func_CFPreferencesCopyAppValue=no
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152 conftest$ac_exeext conftest.$ac_ext
23153 CPPFLAGS="$gt_save_CPPFLAGS"
23154 LIBS="$gt_save_LIBS"
23156 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23157 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23158 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23165 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23166 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23167 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 gt_save_CPPFLAGS="$CPPFLAGS"
23171 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23172 gt_save_LIBS="$LIBS"
23173 LIBS="$LIBS -framework CoreFoundation"
23174 cat >conftest.$ac_ext <<_ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <CFLocale.h>
23184 CFLocaleCopyCurrent();
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest$ac_exeext &&
23206 $as_test_x conftest$ac_exeext; then
23207 gt_cv_func_CFLocaleCopyCurrent=yes
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 gt_cv_func_CFLocaleCopyCurrent=no
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216 conftest$ac_exeext conftest.$ac_ext
23217 CPPFLAGS="$gt_save_CPPFLAGS"
23218 LIBS="$gt_save_LIBS"
23220 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23221 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23222 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_CFLOCALECOPYCURRENT 1
23230 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23231 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23237 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23239 # Check whether --enable-nls was given.
23240 if test "${enable_nls+set}" = set; then
23241 enableval=$enable_nls; USE_NLS=$enableval
23246 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23247 echo "${ECHO_T}$USE_NLS" >&6; }
23252 BUILD_INCLUDED_LIBINTL=no
23253 USE_INCLUDED_LIBINTL=no
23259 if test "$USE_NLS" = "yes"; then
23260 gt_use_preinstalled_gnugettext=no
23262 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23263 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23265 # Check whether --with-included-gettext was given.
23266 if test "${with_included_gettext+set}" = set; then
23267 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23269 nls_cv_force_use_gnu_gettext=no
23272 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23273 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23275 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23276 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23283 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23284 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23285 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23286 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23294 #include <libintl.h>
23295 extern int _nl_msg_cat_cntr;
23296 extern int *_nl_domain_bindings;
23300 bindtextdomain ("", "");
23301 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313 (eval "$ac_link") 2>conftest.er1
23315 grep -v '^ *+' conftest.er1 >conftest.err
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } && {
23320 test -z "$ac_c_werror_flag" ||
23321 test ! -s conftest.err
23322 } && test -s conftest$ac_exeext &&
23323 $as_test_x conftest$ac_exeext; then
23324 gt_cv_func_gnugettext1_libc=yes
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 gt_cv_func_gnugettext1_libc=no
23332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333 conftest$ac_exeext conftest.$ac_ext
23335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23338 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23344 acl_save_prefix="$prefix"
23345 prefix="$acl_final_prefix"
23346 acl_save_exec_prefix="$exec_prefix"
23347 exec_prefix="$acl_final_exec_prefix"
23349 eval additional_includedir=\"$includedir\"
23350 eval additional_libdir=\"$libdir\"
23352 exec_prefix="$acl_save_exec_prefix"
23353 prefix="$acl_save_prefix"
23356 # Check whether --with-libintl-prefix was given.
23357 if test "${with_libintl_prefix+set}" = set; then
23358 withval=$with_libintl_prefix;
23359 if test "X$withval" = "Xno"; then
23362 if test "X$withval" = "X"; then
23364 acl_save_prefix="$prefix"
23365 prefix="$acl_final_prefix"
23366 acl_save_exec_prefix="$exec_prefix"
23367 exec_prefix="$acl_final_exec_prefix"
23369 eval additional_includedir=\"$includedir\"
23370 eval additional_libdir=\"$libdir\"
23372 exec_prefix="$acl_save_exec_prefix"
23373 prefix="$acl_save_prefix"
23376 additional_includedir="$withval/include"
23377 additional_libdir="$withval/lib"
23388 names_already_handled=
23389 names_next_round='intl '
23390 while test -n "$names_next_round"; do
23391 names_this_round="$names_next_round"
23393 for name in $names_this_round; do
23395 for n in $names_already_handled; do
23396 if test "$n" = "$name"; then
23397 already_handled=yes
23401 if test -z "$already_handled"; then
23402 names_already_handled="$names_already_handled $name"
23403 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23404 eval value=\"\$HAVE_LIB$uppername\"
23405 if test -n "$value"; then
23406 if test "$value" = yes; then
23407 eval value=\"\$LIB$uppername\"
23408 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23409 eval value=\"\$LTLIB$uppername\"
23410 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23419 if test $use_additional = yes; then
23420 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23421 found_dir="$additional_libdir"
23422 found_so="$additional_libdir/lib$name.$shlibext"
23423 if test -f "$additional_libdir/lib$name.la"; then
23424 found_la="$additional_libdir/lib$name.la"
23427 if test -f "$additional_libdir/lib$name.$libext"; then
23428 found_dir="$additional_libdir"
23429 found_a="$additional_libdir/lib$name.$libext"
23430 if test -f "$additional_libdir/lib$name.la"; then
23431 found_la="$additional_libdir/lib$name.la"
23436 if test "X$found_dir" = "X"; then
23437 for x in $LDFLAGS $LTLIBINTL; do
23439 acl_save_prefix="$prefix"
23440 prefix="$acl_final_prefix"
23441 acl_save_exec_prefix="$exec_prefix"
23442 exec_prefix="$acl_final_exec_prefix"
23444 exec_prefix="$acl_save_exec_prefix"
23445 prefix="$acl_save_prefix"
23449 dir=`echo "X$x" | sed -e 's/^X-L//'`
23450 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23452 found_so="$dir/lib$name.$shlibext"
23453 if test -f "$dir/lib$name.la"; then
23454 found_la="$dir/lib$name.la"
23457 if test -f "$dir/lib$name.$libext"; then
23459 found_a="$dir/lib$name.$libext"
23460 if test -f "$dir/lib$name.la"; then
23461 found_la="$dir/lib$name.la"
23467 if test "X$found_dir" != "X"; then
23472 if test "X$found_dir" != "X"; then
23473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23474 if test "X$found_so" != "X"; then
23475 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23476 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23479 for x in $ltrpathdirs; do
23480 if test "X$x" = "X$found_dir"; then
23485 if test -z "$haveit"; then
23486 ltrpathdirs="$ltrpathdirs $found_dir"
23488 if test "$hardcode_direct" = yes; then
23489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23491 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23494 for x in $rpathdirs; do
23495 if test "X$x" = "X$found_dir"; then
23500 if test -z "$haveit"; then
23501 rpathdirs="$rpathdirs $found_dir"
23505 for x in $LDFLAGS $LIBINTL; do
23507 acl_save_prefix="$prefix"
23508 prefix="$acl_final_prefix"
23509 acl_save_exec_prefix="$exec_prefix"
23510 exec_prefix="$acl_final_exec_prefix"
23512 exec_prefix="$acl_save_exec_prefix"
23513 prefix="$acl_save_prefix"
23515 if test "X$x" = "X-L$found_dir"; then
23520 if test -z "$haveit"; then
23521 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23523 if test "$hardcode_minus_L" != no; then
23524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23526 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23532 if test "X$found_a" != "X"; then
23533 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23538 additional_includedir=
23539 case "$found_dir" in
23541 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23542 additional_includedir="$basedir/include"
23545 if test "X$additional_includedir" != "X"; then
23546 if test "X$additional_includedir" != "X/usr/include"; then
23548 if test "X$additional_includedir" = "X/usr/local/include"; then
23549 if test -n "$GCC"; then
23551 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23555 if test -z "$haveit"; then
23556 for x in $CPPFLAGS $INCINTL; do
23558 acl_save_prefix="$prefix"
23559 prefix="$acl_final_prefix"
23560 acl_save_exec_prefix="$exec_prefix"
23561 exec_prefix="$acl_final_exec_prefix"
23563 exec_prefix="$acl_save_exec_prefix"
23564 prefix="$acl_save_prefix"
23566 if test "X$x" = "X-I$additional_includedir"; then
23571 if test -z "$haveit"; then
23572 if test -d "$additional_includedir"; then
23573 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23579 if test -n "$found_la"; then
23580 save_libdir="$libdir"
23581 case "$found_la" in
23582 */* | *\\*) . "$found_la" ;;
23583 *) . "./$found_la" ;;
23585 libdir="$save_libdir"
23586 for dep in $dependency_libs; do
23589 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23590 if test "X$additional_libdir" != "X/usr/lib"; then
23592 if test "X$additional_libdir" = "X/usr/local/lib"; then
23593 if test -n "$GCC"; then
23595 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23599 if test -z "$haveit"; then
23601 for x in $LDFLAGS $LIBINTL; do
23603 acl_save_prefix="$prefix"
23604 prefix="$acl_final_prefix"
23605 acl_save_exec_prefix="$exec_prefix"
23606 exec_prefix="$acl_final_exec_prefix"
23608 exec_prefix="$acl_save_exec_prefix"
23609 prefix="$acl_save_prefix"
23611 if test "X$x" = "X-L$additional_libdir"; then
23616 if test -z "$haveit"; then
23617 if test -d "$additional_libdir"; then
23618 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23622 for x in $LDFLAGS $LTLIBINTL; do
23624 acl_save_prefix="$prefix"
23625 prefix="$acl_final_prefix"
23626 acl_save_exec_prefix="$exec_prefix"
23627 exec_prefix="$acl_final_exec_prefix"
23629 exec_prefix="$acl_save_exec_prefix"
23630 prefix="$acl_save_prefix"
23632 if test "X$x" = "X-L$additional_libdir"; then
23637 if test -z "$haveit"; then
23638 if test -d "$additional_libdir"; then
23639 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23646 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23647 if test "$enable_rpath" != no; then
23649 for x in $rpathdirs; do
23650 if test "X$x" = "X$dir"; then
23655 if test -z "$haveit"; then
23656 rpathdirs="$rpathdirs $dir"
23659 for x in $ltrpathdirs; do
23660 if test "X$x" = "X$dir"; then
23665 if test -z "$haveit"; then
23666 ltrpathdirs="$ltrpathdirs $dir"
23671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23677 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23678 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23684 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23691 if test "X$rpathdirs" != "X"; then
23692 if test -n "$hardcode_libdir_separator"; then
23694 for found_dir in $rpathdirs; do
23695 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23697 acl_save_libdir="$libdir"
23699 eval flag=\"$hardcode_libdir_flag_spec\"
23700 libdir="$acl_save_libdir"
23701 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23703 for found_dir in $rpathdirs; do
23704 acl_save_libdir="$libdir"
23705 libdir="$found_dir"
23706 eval flag=\"$hardcode_libdir_flag_spec\"
23707 libdir="$acl_save_libdir"
23708 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23712 if test "X$ltrpathdirs" != "X"; then
23713 for found_dir in $ltrpathdirs; do
23714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23718 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23719 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23720 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 gt_save_CPPFLAGS="$CPPFLAGS"
23724 CPPFLAGS="$CPPFLAGS $INCINTL"
23725 gt_save_LIBS="$LIBS"
23726 LIBS="$LIBS $LIBINTL"
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 #include <libintl.h>
23734 extern int _nl_msg_cat_cntr;
23739 const char *_nl_expand_alias (const char *);
23743 bindtextdomain ("", "");
23744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753 *) ac_try_echo=$ac_try;;
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756 (eval "$ac_link") 2>conftest.er1
23758 grep -v '^ *+' conftest.er1 >conftest.err
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && {
23763 test -z "$ac_c_werror_flag" ||
23764 test ! -s conftest.err
23765 } && test -s conftest$ac_exeext &&
23766 $as_test_x conftest$ac_exeext; then
23767 gt_cv_func_gnugettext1_libintl=yes
23769 echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23772 gt_cv_func_gnugettext1_libintl=no
23775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23776 conftest$ac_exeext conftest.$ac_ext
23777 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23778 LIBS="$LIBS $LIBICONV"
23779 cat >conftest.$ac_ext <<_ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 #include <libintl.h>
23786 extern int _nl_msg_cat_cntr;
23791 const char *_nl_expand_alias (const char *);
23795 bindtextdomain ("", "");
23796 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_link") 2>conftest.er1
23810 grep -v '^ *+' conftest.er1 >conftest.err
23812 cat conftest.err >&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } && {
23815 test -z "$ac_c_werror_flag" ||
23816 test ! -s conftest.err
23817 } && test -s conftest$ac_exeext &&
23818 $as_test_x conftest$ac_exeext; then
23819 LIBINTL="$LIBINTL $LIBICONV"
23820 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23821 gt_cv_func_gnugettext1_libintl=yes
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831 conftest$ac_exeext conftest.$ac_ext
23833 CPPFLAGS="$gt_save_CPPFLAGS"
23834 LIBS="$gt_save_LIBS"
23836 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23837 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23840 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23841 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23842 && test "$PACKAGE" != gettext-runtime \
23843 && test "$PACKAGE" != gettext-tools; }; then
23844 gt_use_preinstalled_gnugettext=yes
23852 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23853 nls_cv_use_gnu_gettext=yes
23857 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23858 BUILD_INCLUDED_LIBINTL=yes
23859 USE_INCLUDED_LIBINTL=yes
23860 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23861 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23862 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23866 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23867 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23872 if test -n "$INTL_MACOSX_LIBS"; then
23873 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23874 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23875 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23876 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23880 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define ENABLE_NLS 1
23892 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23893 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23894 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23895 echo "${ECHO_T}$USE_NLS" >&6; }
23896 if test "$USE_NLS" = "yes"; then
23897 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23898 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23899 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901 gt_source="external libintl"
23906 gt_source="included intl directory"
23908 { echo "$as_me:$LINENO: result: $gt_source" >&5
23909 echo "${ECHO_T}$gt_source" >&6; }
23912 if test "$USE_NLS" = "yes"; then
23914 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23915 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23916 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23917 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23918 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23919 echo "${ECHO_T}$LIBINTL" >&6; }
23921 for element in $INCINTL; do
23923 for x in $CPPFLAGS; do
23925 acl_save_prefix="$prefix"
23926 prefix="$acl_final_prefix"
23927 acl_save_exec_prefix="$exec_prefix"
23928 exec_prefix="$acl_final_exec_prefix"
23930 exec_prefix="$acl_save_exec_prefix"
23931 prefix="$acl_save_prefix"
23933 if test "X$x" = "X$element"; then
23938 if test -z "$haveit"; then
23939 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_GETTEXT 1
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_DCGETTEXT 1
23961 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23962 BUILD_INCLUDED_LIBINTL=yes
23969 nls_cv_header_intl=
23970 nls_cv_header_libgt=
23982 if test "$USE_INCLUDED_LIBINTL" = yes; then
23983 INTLOBJS="\$(GETTOBJS)"
23987 INTL_LIBTOOL_SUFFIX_PREFIX=
23991 INTLLIBS="$LIBINTL"
24003 support_postgresql=no
24005 support_smartalloc=yes
24006 support_readline=yes
24010 support_wx_console=no
24011 support_tray_monitor=no
24016 support_static_tools=no
24017 support_static_fd=no
24018 support_static_sd=no
24019 support_static_dir=no
24020 support_static_cons=no
24022 build_client_only=no
24031 # Check whether --enable-gnome was given.
24032 if test "${enable_gnome+set}" = set; then
24033 enableval=$enable_gnome;
24034 if test x$enableval = xyes; then
24043 if test x$support_gnome = xyes; then
24044 abc=`$PKGCONFIG --exists libgnomeui-2.0`
24046 if test $pkg = 0; then
24047 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24048 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24049 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24050 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24055 GNOME_DIR=src/gnome2-console
24056 gnome_version="Version 2.x"
24058 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24059 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24060 { (exit 1); exit 1; }; }
24065 # Check whether --enable-bat was given.
24066 if test "${enable_bat+set}" = set; then
24067 enableval=$enable_bat;
24068 if test x$enableval = xyes; then
24070 cat >>confdefs.h <<\_ACEOF
24082 if test x$support_bat = xyes; then
24083 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24085 if test $pkg = 0; then
24086 BAT_DIR=src/qt-console
24088 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24089 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24090 { (exit 1); exit 1; }; }
24100 if test x$support_bat = xyes; then
24101 { echo "$as_me:$LINENO: checking for qwt support" >&5
24102 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24104 # Check whether --with-qwt was given.
24105 if test "${with_qwt+set}" = set; then
24107 case "$with_qwt" in
24112 if test -f ${with_qwt}/include/qwt.h; then
24113 QWT_INC="${with_qwt}/include"
24114 QWT_LDFLAGS="-L${with_qwt}/lib"
24125 if test $no_qwt = no; then
24126 if test x$QWT_INC = x; then
24127 for root in /usr /usr/local; do
24128 for ver in qwt qwt5 qwt-qt4; do
24129 if test -f ${root}/include/${ver}/qwt.h; then
24130 QWT_INC="${root}/include/${ver}"
24131 if test -d ${root}/lib64/; then
24132 QWT_LDFLAGS="-L${root}/lib64"
24133 elif test -d ${root}/lib/64/; then
24134 QWT_LDFLAGS="-L${root}/64"
24136 QWT_LDFLAGS="-L${root}/lib"
24147 if test x$QWT_INC = x; then
24148 { echo "$as_me:$LINENO: result: no" >&5
24149 echo "${ECHO_T}no" >&6; }
24152 cat >>confdefs.h <<\_ACEOF
24156 { echo "$as_me:$LINENO: result: yes" >&5
24157 echo "${ECHO_T}yes" >&6; }
24167 # Check whether --enable-bwx-console was given.
24168 if test "${enable_bwx_console+set}" = set; then
24169 enableval=$enable_bwx_console;
24170 if test x$enableval = xyes; then
24171 support_wx_console=yes
24179 if test x$support_wx_console = xyes; then
24180 abc=`$WXCONFIG $WXFLAGS --cppflags`
24182 if test $pkg = 0; then
24183 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24184 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24185 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24189 WX_DIR="src/wx-console"
24192 echo "wx-config program not found. bwx-console disabled."
24194 support_wx_console=no
24199 # Check whether --enable-tray-monitor was given.
24200 if test "${enable_tray_monitor+set}" = set; then
24201 enableval=$enable_tray_monitor;
24202 if test x$enableval = xyes; then
24203 support_tray_monitor=yes
24211 if test x$support_tray_monitor = xyes; then
24212 abc=`$PKGCONFIG --exists gtk+-2.0`
24214 if test $pkg = 0; then
24215 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24216 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24219 TRAY_MONITOR_DIR=src/tray-monitor
24220 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24222 if test $pkg = 0; then
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_GTK_2_4 1
24233 # Check whether --enable-smartalloc was given.
24234 if test "${enable_smartalloc+set}" = set; then
24235 enableval=$enable_smartalloc;
24236 if test x$enableval = xno; then
24237 support_smartalloc=no
24244 if test x$support_smartalloc = xyes; then
24246 cat >>confdefs.h <<\_ACEOF
24247 #define SMARTALLOC 1
24252 # Check whether --enable-lockmgr was given.
24253 if test "${enable_lockmgr+set}" = set; then
24254 enableval=$enable_lockmgr;
24255 if test x$enableval = xyes; then
24256 support_lockmgr=yes
24263 if test x$support_lockmgr = xyes; then
24265 cat >>confdefs.h <<\_ACEOF
24266 #define _USE_LOCKMGR 1
24272 # Check whether --enable-static-tools was given.
24273 if test "${enable_static_tools+set}" = set; then
24274 enableval=$enable_static_tools;
24275 if test x$enableval = xyes; then
24276 if test x$use_libtool = xyes; then
24277 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24278 please rerun configure with --disable-libtool" >&5
24279 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24280 please rerun configure with --disable-libtool" >&2;}
24281 { (exit 1); exit 1; }; }
24283 support_static_tools=yes
24291 if test x$support_static_tools = xyes; then
24292 TTOOL_LDFLAGS="-static"
24296 # Check whether --enable-static-fd was given.
24297 if test "${enable_static_fd+set}" = set; then
24298 enableval=$enable_static_fd;
24299 if test x$enableval = xyes; then
24300 if test x$use_libtool = xyes; then
24301 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24302 please rerun configure with --disable-libtool" >&5
24303 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24304 please rerun configure with --disable-libtool" >&2;}
24305 { (exit 1); exit 1; }; }
24307 support_static_fd=yes
24315 if test x$support_static_fd = xyes; then
24316 STATIC_FD="static-bacula-fd"
24320 # Check whether --enable-static-sd was given.
24321 if test "${enable_static_sd+set}" = set; then
24322 enableval=$enable_static_sd;
24323 if test x$enableval = xyes; then
24324 if test x$use_libtool = xyes; then
24325 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24326 please rerun configure with --disable-libtool" >&5
24327 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24328 please rerun configure with --disable-libtool" >&2;}
24329 { (exit 1); exit 1; }; }
24331 support_static_sd=yes
24339 if test x$support_static_sd = xyes; then
24340 STATIC_SD="static-bacula-sd"
24344 # Check whether --enable-static-dir was given.
24345 if test "${enable_static_dir+set}" = set; then
24346 enableval=$enable_static_dir;
24347 if test x$enableval = xyes; then
24348 if test x$use_libtool = xyes; then
24349 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24350 please rerun configure with --disable-libtool" >&5
24351 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24352 please rerun configure with --disable-libtool" >&2;}
24353 { (exit 1); exit 1; }; }
24355 support_static_dir=yes
24363 if test x$support_static_dir = xyes; then
24364 STATIC_DIR="static-bacula-dir"
24368 # Check whether --enable-static-cons was given.
24369 if test "${enable_static_cons+set}" = set; then
24370 enableval=$enable_static_cons;
24371 if test x$enableval = xyes; then
24372 if test x$use_libtool = xyes; then
24373 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24374 please rerun configure with --disable-libtool" >&5
24375 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24376 please rerun configure with --disable-libtool" >&2;}
24377 { (exit 1); exit 1; }; }
24379 support_static_cons=yes
24389 if test x$support_static_cons = xyes; then
24390 STATIC_CONS="static-bconsole"
24391 STATIC_GNOME_CONS="static-bgnome-console"
24392 STATIC_WX_CONS="static-bwx-console"
24398 # Check whether --enable-client-only was given.
24399 if test "${enable_client_only+set}" = set; then
24400 enableval=$enable_client_only;
24401 if test x$enableval = xyes; then
24402 build_client_only=yes
24410 if test x$build_client_only = xno; then
24417 # Check whether --enable-build-dird was given.
24418 if test "${enable_build_dird+set}" = set; then
24419 enableval=$enable_build_dird;
24420 if test x$enableval = xno; then
24427 if test x$build_dird = xyes; then
24428 DIRD_DIR="src/dird"
24429 DIR_TOOLS="DIRTOOLS"
24432 DIR_TOOLS="NODIRTOOLS"
24437 # Check whether --enable-build-stored was given.
24438 if test "${enable_build_stored+set}" = set; then
24439 enableval=$enable_build_stored;
24440 if test x$enableval = xno; then
24447 if test x$build_stored = xyes; then
24448 STORED_DIR="src/stored"
24454 # Check whether --enable-conio was given.
24455 if test "${enable_conio+set}" = set; then
24456 enableval=$enable_conio;
24457 if test x$enableval = xno; then
24467 # Check whether --enable-ipv6 was given.
24468 if test "${enable_ipv6+set}" = set; then
24469 enableval=$enable_ipv6;
24470 if test x$enableval = xno; then
24478 if test x$support_ipv6 = xyes; then
24479 cat >conftest.$ac_ext <<_ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h. */
24485 #include <sys/types.h>
24486 #include <sys/socket.h>
24487 #include <netinet/in.h>
24491 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24496 rm -f conftest.$ac_objext conftest$ac_exeext
24497 if { (ac_try="$ac_link"
24498 case "(($ac_try" in
24499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24500 *) ac_try_echo=$ac_try;;
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_link") 2>conftest.er1
24505 grep -v '^ *+' conftest.er1 >conftest.err
24507 cat conftest.err >&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } && {
24510 test -z "$ac_c_werror_flag" ||
24511 test ! -s conftest.err
24512 } && test -s conftest$ac_exeext &&
24513 $as_test_x conftest$ac_exeext; then
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24523 conftest$ac_exeext conftest.$ac_ext
24526 if test x$support_ipv6 = xyes; then
24528 cat >>confdefs.h <<\_ACEOF
24529 #define HAVE_IPV6 1
24535 if test x$support_conio = xyes; then
24536 if test "${ac_cv_header_termcap_h+set}" = set; then
24537 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24538 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24539 if test "${ac_cv_header_termcap_h+set}" = set; then
24540 echo $ECHO_N "(cached) $ECHO_C" >&6
24542 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24543 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24545 # Is the header compilable?
24546 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24547 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24554 $ac_includes_default
24555 #include <termcap.h>
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_compile") 2>conftest.er1
24566 grep -v '^ *+' conftest.er1 >conftest.err
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && {
24571 test -z "$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 } && test -s conftest.$ac_objext; then
24574 ac_header_compiler=yes
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24579 ac_header_compiler=no
24582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24584 echo "${ECHO_T}$ac_header_compiler" >&6; }
24586 # Is the header present?
24587 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24588 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24589 cat >conftest.$ac_ext <<_ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24595 #include <termcap.h>
24597 if { (ac_try="$ac_cpp conftest.$ac_ext"
24598 case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24605 grep -v '^ *+' conftest.er1 >conftest.err
24607 cat conftest.err >&5
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } >/dev/null && {
24610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24613 ac_header_preproc=yes
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 ac_header_preproc=no
24621 rm -f conftest.err conftest.$ac_ext
24622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24623 echo "${ECHO_T}$ac_header_preproc" >&6; }
24625 # So? What about this header?
24626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24628 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24629 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24631 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24632 ac_header_preproc=yes
24635 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24636 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24637 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24638 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24639 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24640 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24641 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24642 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24643 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24644 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24646 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24650 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24651 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24652 if test "${ac_cv_header_termcap_h+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24655 ac_cv_header_termcap_h=$ac_header_preproc
24657 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24658 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24661 if test $ac_cv_header_termcap_h = yes; then
24662 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24663 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24664 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24665 echo $ECHO_N "(cached) $ECHO_C" >&6
24667 ac_check_lib_save_LIBS=$LIBS
24668 LIBS="-ltermcap $LIBS"
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24676 /* Override any GCC internal prototype to avoid an error.
24677 Use char because int might match the return type of a GCC
24678 builtin and then its argument prototype would still apply. */
24691 rm -f conftest.$ac_objext conftest$ac_exeext
24692 if { (ac_try="$ac_link"
24693 case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_link") 2>conftest.er1
24700 grep -v '^ *+' conftest.er1 >conftest.err
24702 cat conftest.err >&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && {
24705 test -z "$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24707 } && test -s conftest$ac_exeext &&
24708 $as_test_x conftest$ac_exeext; then
24709 ac_cv_lib_termcap_tgetent=yes
24711 echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24714 ac_cv_lib_termcap_tgetent=no
24717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24718 conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24721 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24722 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24723 if test $ac_cv_lib_termcap_tgetent = yes; then
24724 CONS_LIBS="-ltermcap"
24728 support_readline=no
24730 cat >>confdefs.h <<\_ACEOF
24731 #define HAVE_CONIO 1
24736 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24737 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24738 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24739 echo $ECHO_N "(cached) $ECHO_C" >&6
24741 ac_check_lib_save_LIBS=$LIBS
24742 LIBS="-lncurses $LIBS"
24743 cat >conftest.$ac_ext <<_ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24750 /* Override any GCC internal prototype to avoid an error.
24751 Use char because int might match the return type of a GCC
24752 builtin and then its argument prototype would still apply. */
24765 rm -f conftest.$ac_objext conftest$ac_exeext
24766 if { (ac_try="$ac_link"
24767 case "(($ac_try" in
24768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769 *) ac_try_echo=$ac_try;;
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772 (eval "$ac_link") 2>conftest.er1
24774 grep -v '^ *+' conftest.er1 >conftest.err
24776 cat conftest.err >&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } && {
24779 test -z "$ac_c_werror_flag" ||
24780 test ! -s conftest.err
24781 } && test -s conftest$ac_exeext &&
24782 $as_test_x conftest$ac_exeext; then
24783 ac_cv_lib_ncurses_tgetent=yes
24785 echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24788 ac_cv_lib_ncurses_tgetent=no
24791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24792 conftest$ac_exeext conftest.$ac_ext
24793 LIBS=$ac_check_lib_save_LIBS
24795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24796 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24797 if test $ac_cv_lib_ncurses_tgetent = yes; then
24798 CONS_LIBS="-lncurses"
24802 support_readline=no
24804 cat >>confdefs.h <<\_ACEOF
24805 #define HAVE_CONIO 1
24818 for ac_header in curses.h
24820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24825 echo $ECHO_N "(cached) $ECHO_C" >&6
24827 ac_res=`eval echo '${'$as_ac_Header'}'`
24828 { echo "$as_me:$LINENO: result: $ac_res" >&5
24829 echo "${ECHO_T}$ac_res" >&6; }
24831 # Is the header compilable?
24832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24834 cat >conftest.$ac_ext <<_ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 $ac_includes_default
24841 #include <$ac_header>
24843 rm -f conftest.$ac_objext
24844 if { (ac_try="$ac_compile"
24845 case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 ac_header_compiler=yes
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_header_compiler=no
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24870 echo "${ECHO_T}$ac_header_compiler" >&6; }
24872 # Is the header present?
24873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24875 cat >conftest.$ac_ext <<_ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h. */
24881 #include <$ac_header>
24883 if { (ac_try="$ac_cpp conftest.$ac_ext"
24884 case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24891 grep -v '^ *+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } >/dev/null && {
24896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24897 test ! -s conftest.err
24899 ac_header_preproc=yes
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24904 ac_header_preproc=no
24907 rm -f conftest.err conftest.$ac_ext
24908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909 echo "${ECHO_T}$ac_header_preproc" >&6; }
24911 # So? What about this header?
24912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918 ac_header_preproc=yes
24921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24939 echo $ECHO_N "(cached) $ECHO_C" >&6
24941 eval "$as_ac_Header=\$ac_header_preproc"
24943 ac_res=`eval echo '${'$as_ac_Header'}'`
24944 { echo "$as_me:$LINENO: result: $ac_res" >&5
24945 echo "${ECHO_T}$ac_res" >&6; }
24948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24949 cat >>confdefs.h <<_ACEOF
24950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24957 { echo "$as_me:$LINENO: checking for term.h" >&5
24958 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24959 if test "${ac_cv_header_term_h+set}" = set; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24969 #include <curses.h>
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979 *) ac_try_echo=$ac_try;;
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982 (eval "$ac_compile") 2>conftest.er1
24984 grep -v '^ *+' conftest.er1 >conftest.err
24986 cat conftest.err >&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); } && {
24989 test -z "$ac_c_werror_flag" ||
24990 test ! -s conftest.err
24991 } && test -s conftest.$ac_objext; then
24992 ac_cv_header_term_h=yes
24994 echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24997 ac_cv_header_term_h=no
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25003 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25004 if test $ac_cv_header_term_h = yes; then
25005 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25006 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25007 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 ac_check_lib_save_LIBS=$LIBS
25011 LIBS="-lcurses $LIBS"
25012 cat >conftest.$ac_ext <<_ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25019 /* Override any GCC internal prototype to avoid an error.
25020 Use char because int might match the return type of a GCC
25021 builtin and then its argument prototype would still apply. */
25034 rm -f conftest.$ac_objext conftest$ac_exeext
25035 if { (ac_try="$ac_link"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041 (eval "$ac_link") 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } && {
25048 test -z "$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 } && test -s conftest$ac_exeext &&
25051 $as_test_x conftest$ac_exeext; then
25052 ac_cv_lib_curses_tgetent=yes
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ac_cv_lib_curses_tgetent=no
25060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25061 conftest$ac_exeext conftest.$ac_ext
25062 LIBS=$ac_check_lib_save_LIBS
25064 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25065 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25066 if test $ac_cv_lib_curses_tgetent = yes; then
25067 CONS_LIBS="-lcurses"
25071 support_readline=no
25073 cat >>confdefs.h <<\_ACEOF
25074 #define HAVE_CONIO 1
25082 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25093 # Check whether --enable-readline was given.
25094 if test "${enable_readline+set}" = set; then
25095 enableval=$enable_readline;
25096 if test x$enableval = xno; then
25097 support_readline=no
25106 if test x$support_readline = xyes; then
25108 # Check whether --with-readline was given.
25109 if test "${with_readline+set}" = set; then
25110 withval=$with_readline;
25111 case "$with_readline" in
25116 if test -f ${with_readline}/readline.h; then
25117 CONS_INC="-I${with_readline}"
25118 CONS_LDFLAGS="-L$with_readline"
25119 elif test -f ${with_readline}/include/readline/readline.h; then
25120 CONS_INC="-I${with_readline}/include/readline"
25121 CONS_LDFLAGS="-L${with_readline}/lib"
25122 with_readline="${with_readline}/include/readline"
25124 with_readline="/usr/include/readline"
25127 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25129 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25130 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25132 echo $ECHO_N "(cached) $ECHO_C" >&6
25134 ac_res=`eval echo '${'$as_ac_Header'}'`
25135 { echo "$as_me:$LINENO: result: $ac_res" >&5
25136 echo "${ECHO_T}$ac_res" >&6; }
25138 # Is the header compilable?
25139 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25140 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25141 cat >conftest.$ac_ext <<_ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 $ac_includes_default
25148 #include <${with_readline}/readline.h>
25150 rm -f conftest.$ac_objext
25151 if { (ac_try="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157 (eval "$ac_compile") 2>conftest.er1
25159 grep -v '^ *+' conftest.er1 >conftest.err
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest.$ac_objext; then
25167 ac_header_compiler=yes
25169 echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25172 ac_header_compiler=no
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25177 echo "${ECHO_T}$ac_header_compiler" >&6; }
25179 # Is the header present?
25180 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25181 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 #include <${with_readline}/readline.h>
25190 if { (ac_try="$ac_cpp conftest.$ac_ext"
25191 case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25198 grep -v '^ *+' conftest.er1 >conftest.err
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } >/dev/null && {
25203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25204 test ! -s conftest.err
25206 ac_header_preproc=yes
25208 echo "$as_me: failed program was:" >&5
25209 sed 's/^/| /' conftest.$ac_ext >&5
25211 ac_header_preproc=no
25214 rm -f conftest.err conftest.$ac_ext
25215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25216 echo "${ECHO_T}$ac_header_preproc" >&6; }
25218 # So? What about this header?
25219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25221 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25222 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25223 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25224 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25225 ac_header_preproc=yes
25228 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25229 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25230 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25231 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25232 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25243 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25244 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25246 echo $ECHO_N "(cached) $ECHO_C" >&6
25248 eval "$as_ac_Header=\$ac_header_preproc"
25250 ac_res=`eval echo '${'$as_ac_Header'}'`
25251 { echo "$as_me:$LINENO: result: $ac_res" >&5
25252 echo "${ECHO_T}$ac_res" >&6; }
25255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25258 cat >>confdefs.h <<\_ACEOF
25259 #define HAVE_READLINE 1
25262 CONS_LIBS="-lreadline -lhistory -ltermcap"
25268 echo "readline.h not found. readline turned off ..."
25280 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25281 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25282 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25283 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25284 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25287 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25289 # Is the header compilable?
25290 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25291 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25292 cat >conftest.$ac_ext <<_ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 $ac_includes_default
25299 #include </usr/include/readline/readline.h>
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_compile") 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && {
25315 test -z "$ac_c_werror_flag" ||
25316 test ! -s conftest.err
25317 } && test -s conftest.$ac_objext; then
25318 ac_header_compiler=yes
25320 echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25323 ac_header_compiler=no
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25328 echo "${ECHO_T}$ac_header_compiler" >&6; }
25330 # Is the header present?
25331 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25332 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 #include </usr/include/readline/readline.h>
25341 if { (ac_try="$ac_cpp conftest.$ac_ext"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } >/dev/null && {
25354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25355 test ! -s conftest.err
25357 ac_header_preproc=yes
25359 echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_header_preproc=no
25365 rm -f conftest.err conftest.$ac_ext
25366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25367 echo "${ECHO_T}$ac_header_preproc" >&6; }
25369 # So? What about this header?
25370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25372 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25373 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25374 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25375 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25376 ac_header_preproc=yes
25379 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25380 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25381 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25382 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25383 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25394 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25395 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25396 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25399 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25401 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25402 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25405 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_READLINE 1
25413 CONS_INC="-I/usr/include/readline"
25414 CONS_LIBS="-lreadline -ltermcap"
25418 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25420 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25421 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25423 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 ac_res=`eval echo '${'$as_ac_Header'}'`
25426 { echo "$as_me:$LINENO: result: $ac_res" >&5
25427 echo "${ECHO_T}$ac_res" >&6; }
25429 # Is the header compilable?
25430 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25431 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25439 #include <${TOP_DIR}/depkgs/readline/readline.h>
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_compile") 2>conftest.er1
25450 grep -v '^ *+' conftest.er1 >conftest.err
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } && {
25455 test -z "$ac_c_werror_flag" ||
25456 test ! -s conftest.err
25457 } && test -s conftest.$ac_objext; then
25458 ac_header_compiler=yes
25460 echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25463 ac_header_compiler=no
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25468 echo "${ECHO_T}$ac_header_compiler" >&6; }
25470 # Is the header present?
25471 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25472 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25473 cat >conftest.$ac_ext <<_ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h. */
25479 #include <${TOP_DIR}/depkgs/readline/readline.h>
25481 if { (ac_try="$ac_cpp conftest.$ac_ext"
25482 case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25489 grep -v '^ *+' conftest.er1 >conftest.err
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } >/dev/null && {
25494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25497 ac_header_preproc=yes
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 ac_header_preproc=no
25505 rm -f conftest.err conftest.$ac_ext
25506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25507 echo "${ECHO_T}$ac_header_preproc" >&6; }
25509 # So? What about this header?
25510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25512 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25513 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25514 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25515 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25516 ac_header_preproc=yes
25519 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25520 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25521 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25522 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25523 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25534 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25535 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 eval "$as_ac_Header=\$ac_header_preproc"
25541 ac_res=`eval echo '${'$as_ac_Header'}'`
25542 { echo "$as_me:$LINENO: result: $ac_res" >&5
25543 echo "${ECHO_T}$ac_res" >&6; }
25546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25549 cat >>confdefs.h <<\_ACEOF
25550 #define HAVE_READLINE 1
25554 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25555 CONS_LIBS="-lreadline -lhistory -ltermcap"
25556 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25557 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25562 echo "readline.h not found. readline turned off ..."
25589 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25590 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25591 if test "${ac_cv_header_stat_broken+set}" = set; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25594 cat >conftest.$ac_ext <<_ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h. */
25600 #include <sys/types.h>
25601 #include <sys/stat.h>
25603 #if defined S_ISBLK && defined S_IFDIR
25604 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25607 #if defined S_ISBLK && defined S_IFCHR
25608 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25611 #if defined S_ISLNK && defined S_IFREG
25612 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25615 #if defined S_ISSOCK && defined S_IFREG
25616 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25620 rm -f conftest.$ac_objext
25621 if { (ac_try="$ac_compile"
25622 case "(($ac_try" in
25623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624 *) ac_try_echo=$ac_try;;
25626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25627 (eval "$ac_compile") 2>conftest.er1
25629 grep -v '^ *+' conftest.er1 >conftest.err
25631 cat conftest.err >&5
25632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); } && {
25634 test -z "$ac_c_werror_flag" ||
25635 test ! -s conftest.err
25636 } && test -s conftest.$ac_objext; then
25637 ac_cv_header_stat_broken=no
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25642 ac_cv_header_stat_broken=yes
25645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25648 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25649 if test $ac_cv_header_stat_broken = yes; then
25651 cat >>confdefs.h <<\_ACEOF
25652 #define STAT_MACROS_BROKEN 1
25662 ac_header_dirent=no
25663 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25664 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25665 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25666 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
25670 cat >conftest.$ac_ext <<_ACEOF
25673 cat confdefs.h >>conftest.$ac_ext
25674 cat >>conftest.$ac_ext <<_ACEOF
25675 /* end confdefs.h. */
25676 #include <sys/types.h>
25688 rm -f conftest.$ac_objext
25689 if { (ac_try="$ac_compile"
25690 case "(($ac_try" in
25691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692 *) ac_try_echo=$ac_try;;
25694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25695 (eval "$ac_compile") 2>conftest.er1
25697 grep -v '^ *+' conftest.er1 >conftest.err
25699 cat conftest.err >&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); } && {
25702 test -z "$ac_c_werror_flag" ||
25703 test ! -s conftest.err
25704 } && test -s conftest.$ac_objext; then
25705 eval "$as_ac_Header=yes"
25707 echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25710 eval "$as_ac_Header=no"
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 ac_res=`eval echo '${'$as_ac_Header'}'`
25716 { echo "$as_me:$LINENO: result: $ac_res" >&5
25717 echo "${ECHO_T}$ac_res" >&6; }
25718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25719 cat >>confdefs.h <<_ACEOF
25720 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25723 ac_header_dirent=$ac_hdr; break
25727 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25728 if test $ac_header_dirent = dirent.h; then
25729 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25731 if test "${ac_cv_search_opendir+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25734 ac_func_search_save_LIBS=$LIBS
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25742 /* Override any GCC internal prototype to avoid an error.
25743 Use char because int might match the return type of a GCC
25744 builtin and then its argument prototype would still apply. */
25757 for ac_lib in '' dir; do
25758 if test -z "$ac_lib"; then
25759 ac_res="none required"
25762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25764 rm -f conftest.$ac_objext conftest$ac_exeext
25765 if { (ac_try="$ac_link"
25766 case "(($ac_try" in
25767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768 *) ac_try_echo=$ac_try;;
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771 (eval "$ac_link") 2>conftest.er1
25773 grep -v '^ *+' conftest.er1 >conftest.err
25775 cat conftest.err >&5
25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777 (exit $ac_status); } && {
25778 test -z "$ac_c_werror_flag" ||
25779 test ! -s conftest.err
25780 } && test -s conftest$ac_exeext &&
25781 $as_test_x conftest$ac_exeext; then
25782 ac_cv_search_opendir=$ac_res
25784 echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25792 if test "${ac_cv_search_opendir+set}" = set; then
25796 if test "${ac_cv_search_opendir+set}" = set; then
25799 ac_cv_search_opendir=no
25801 rm conftest.$ac_ext
25802 LIBS=$ac_func_search_save_LIBS
25804 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25805 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25806 ac_res=$ac_cv_search_opendir
25807 if test "$ac_res" != no; then
25808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25813 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25814 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25815 if test "${ac_cv_search_opendir+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25818 ac_func_search_save_LIBS=$LIBS
25819 cat >conftest.$ac_ext <<_ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h. */
25826 /* Override any GCC internal prototype to avoid an error.
25827 Use char because int might match the return type of a GCC
25828 builtin and then its argument prototype would still apply. */
25841 for ac_lib in '' x; do
25842 if test -z "$ac_lib"; then
25843 ac_res="none required"
25846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25848 rm -f conftest.$ac_objext conftest$ac_exeext
25849 if { (ac_try="$ac_link"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_link") 2>conftest.er1
25857 grep -v '^ *+' conftest.er1 >conftest.err
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } && {
25862 test -z "$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 } && test -s conftest$ac_exeext &&
25865 $as_test_x conftest$ac_exeext; then
25866 ac_cv_search_opendir=$ac_res
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25876 if test "${ac_cv_search_opendir+set}" = set; then
25880 if test "${ac_cv_search_opendir+set}" = set; then
25883 ac_cv_search_opendir=no
25885 rm conftest.$ac_ext
25886 LIBS=$ac_func_search_save_LIBS
25888 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25889 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25890 ac_res=$ac_cv_search_opendir
25891 if test "$ac_res" != no; then
25892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25905 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25908 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25910 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25913 cat >conftest.$ac_ext <<_ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h. */
25919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25921 #define $ac_func innocuous_$ac_func
25923 /* System header to define __stub macros and hopefully few prototypes,
25924 which can conflict with char $ac_func (); below.
25925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25926 <limits.h> exists even on freestanding compilers. */
25929 # include <limits.h>
25931 # include <assert.h>
25936 /* Override any GCC internal prototype to avoid an error.
25937 Use char because int might match the return type of a GCC
25938 builtin and then its argument prototype would still apply. */
25943 /* The GNU C library defines this for functions which it implements
25944 to always fail with ENOSYS. Some functions are actually named
25945 something starting with __ and the normal name is an alias. */
25946 #if defined __stub_$ac_func || defined __stub___$ac_func
25953 return $ac_func ();
25958 rm -f conftest.$ac_objext conftest$ac_exeext
25959 if { (ac_try="$ac_link"
25960 case "(($ac_try" in
25961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25965 (eval "$ac_link") 2>conftest.er1
25967 grep -v '^ *+' conftest.er1 >conftest.err
25969 cat conftest.err >&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && {
25972 test -z "$ac_c_werror_flag" ||
25973 test ! -s conftest.err
25974 } && test -s conftest$ac_exeext &&
25975 $as_test_x conftest$ac_exeext; then
25976 eval "$as_ac_var=yes"
25978 echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25981 eval "$as_ac_var=no"
25984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25985 conftest$ac_exeext conftest.$ac_ext
25987 ac_res=`eval echo '${'$as_ac_var'}'`
25988 { echo "$as_me:$LINENO: result: $ac_res" >&5
25989 echo "${ECHO_T}$ac_res" >&6; }
25990 if test `eval echo '${'$as_ac_var'}'` = yes; then
25991 cat >>confdefs.h <<_ACEOF
25992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26000 for ac_func in nanosleep nl_langinfo
26002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26016 #define $ac_func innocuous_$ac_func
26018 /* System header to define __stub macros and hopefully few prototypes,
26019 which can conflict with char $ac_func (); below.
26020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26021 <limits.h> exists even on freestanding compilers. */
26024 # include <limits.h>
26026 # include <assert.h>
26031 /* Override any GCC internal prototype to avoid an error.
26032 Use char because int might match the return type of a GCC
26033 builtin and then its argument prototype would still apply. */
26038 /* The GNU C library defines this for functions which it implements
26039 to always fail with ENOSYS. Some functions are actually named
26040 something starting with __ and the normal name is an alias. */
26041 #if defined __stub_$ac_func || defined __stub___$ac_func
26048 return $ac_func ();
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest$ac_exeext &&
26070 $as_test_x conftest$ac_exeext; then
26071 eval "$as_ac_var=yes"
26073 echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26076 eval "$as_ac_var=no"
26079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26080 conftest$ac_exeext conftest.$ac_ext
26082 ac_res=`eval echo '${'$as_ac_var'}'`
26083 { echo "$as_me:$LINENO: result: $ac_res" >&5
26084 echo "${ECHO_T}$ac_res" >&6; }
26085 if test `eval echo '${'$as_ac_var'}'` = yes; then
26086 cat >>confdefs.h <<_ACEOF
26087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26094 for ac_header in varargs.h
26096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26103 ac_res=`eval echo '${'$as_ac_Header'}'`
26104 { echo "$as_me:$LINENO: result: $ac_res" >&5
26105 echo "${ECHO_T}$ac_res" >&6; }
26107 # Is the header compilable?
26108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26116 $ac_includes_default
26117 #include <$ac_header>
26119 rm -f conftest.$ac_objext
26120 if { (ac_try="$ac_compile"
26121 case "(($ac_try" in
26122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26123 *) ac_try_echo=$ac_try;;
26125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26126 (eval "$ac_compile") 2>conftest.er1
26128 grep -v '^ *+' conftest.er1 >conftest.err
26130 cat conftest.err >&5
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); } && {
26133 test -z "$ac_c_werror_flag" ||
26134 test ! -s conftest.err
26135 } && test -s conftest.$ac_objext; then
26136 ac_header_compiler=yes
26138 echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 ac_header_compiler=no
26144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26146 echo "${ECHO_T}$ac_header_compiler" >&6; }
26148 # Is the header present?
26149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26151 cat >conftest.$ac_ext <<_ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h. */
26157 #include <$ac_header>
26159 if { (ac_try="$ac_cpp conftest.$ac_ext"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26167 grep -v '^ *+' conftest.er1 >conftest.err
26169 cat conftest.err >&5
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); } >/dev/null && {
26172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26173 test ! -s conftest.err
26175 ac_header_preproc=yes
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26180 ac_header_preproc=no
26183 rm -f conftest.err conftest.$ac_ext
26184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26185 echo "${ECHO_T}$ac_header_preproc" >&6; }
26187 # So? What about this header?
26188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26194 ac_header_preproc=yes
26197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26217 eval "$as_ac_Header=\$ac_header_preproc"
26219 ac_res=`eval echo '${'$as_ac_Header'}'`
26220 { echo "$as_me:$LINENO: result: $ac_res" >&5
26221 echo "${ECHO_T}$ac_res" >&6; }
26224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26225 cat >>confdefs.h <<_ACEOF
26226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26235 { echo "$as_me:$LINENO: checking for Python support" >&5
26236 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26238 # Check whether --with-python was given.
26239 if test "${with_python+set}" = set; then
26240 withval=$with_python;
26243 if test "$withval" != "no"; then
26244 if test "$withval" = "yes"; then
26245 for python_root in /usr /usr/local /usr/sfw; do
26246 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26247 if test -f $python_root/include/${ver}/Python.h; then
26248 PYTHON_INCDIR=-I$python_root/include/${ver}
26249 if test -d $python_root/lib64/${ver}/config; then
26250 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26252 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26259 if test x$PYTHON_INCDIR = x; then
26260 if test -f $prefix/include/Python.h; then
26261 PYTHON_INCDIR=-I$prefix/include
26262 if test -d $prefix/lib64/config; then
26263 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26265 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26268 { echo "$as_me:$LINENO: result: no" >&5
26269 echo "${ECHO_T}no" >&6; }
26270 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26271 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26272 { (exit 1); exit 1; }; }
26276 if test -f $withval/Python.h; then
26277 PYTHON_INCDIR=-I$withval
26278 PYTHON_LIBS="-L$withval/config -lpython"
26279 elif test -f $withval/include/Python.h; then
26280 PYTHON_INCDIR=-I$withval/include
26281 if test -d $withval/lib64/config; then
26282 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26284 PYTHON_LIBS="-L$withval/lib/config -lpython"
26286 elif test -f $withval/include/python/Python.h; then
26287 PYTHON_INCDIR=-I$withval/include/python
26288 if test -d $withval/lib64/python/config; then
26289 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26291 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26294 { echo "$as_me:$LINENO: result: no" >&5
26295 echo "${ECHO_T}no" >&6; }
26296 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26297 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26298 { (exit 1); exit 1; }; }
26302 cat >>confdefs.h <<\_ACEOF
26303 #define HAVE_PYTHON 1
26306 { echo "$as_me:$LINENO: result: yes" >&5
26307 echo "${ECHO_T}yes" >&6; }
26309 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26310 echo "$as_me: checking for more Python libs" >&6;}
26311 saved_LIBS="$LIBS"; LIBS=
26312 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26313 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26314 if test "${ac_cv_search_shm_open+set}" = set; then
26315 echo $ECHO_N "(cached) $ECHO_C" >&6
26317 ac_func_search_save_LIBS=$LIBS
26318 cat >conftest.$ac_ext <<_ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h. */
26325 /* Override any GCC internal prototype to avoid an error.
26326 Use char because int might match the return type of a GCC
26327 builtin and then its argument prototype would still apply. */
26335 return shm_open ();
26340 for ac_lib in '' rt; do
26341 if test -z "$ac_lib"; then
26342 ac_res="none required"
26345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (ac_try="$ac_link"
26349 case "(($ac_try" in
26350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26351 *) ac_try_echo=$ac_try;;
26353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26354 (eval "$ac_link") 2>conftest.er1
26356 grep -v '^ *+' conftest.er1 >conftest.err
26358 cat conftest.err >&5
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); } && {
26361 test -z "$ac_c_werror_flag" ||
26362 test ! -s conftest.err
26363 } && test -s conftest$ac_exeext &&
26364 $as_test_x conftest$ac_exeext; then
26365 ac_cv_search_shm_open=$ac_res
26367 echo "$as_me: failed program was:" >&5
26368 sed 's/^/| /' conftest.$ac_ext >&5
26373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26375 if test "${ac_cv_search_shm_open+set}" = set; then
26379 if test "${ac_cv_search_shm_open+set}" = set; then
26382 ac_cv_search_shm_open=no
26384 rm conftest.$ac_ext
26385 LIBS=$ac_func_search_save_LIBS
26387 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26388 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26389 ac_res=$ac_cv_search_shm_open
26390 if test "$ac_res" != no; then
26391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26396 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26397 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26398 if test "${ac_cv_lib_util_openpty+set}" = set; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26401 ac_check_lib_save_LIBS=$LIBS
26402 LIBS="-lutil $LIBS"
26403 cat >conftest.$ac_ext <<_ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26410 /* Override any GCC internal prototype to avoid an error.
26411 Use char because int might match the return type of a GCC
26412 builtin and then its argument prototype would still apply. */
26425 rm -f conftest.$ac_objext conftest$ac_exeext
26426 if { (ac_try="$ac_link"
26427 case "(($ac_try" in
26428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26429 *) ac_try_echo=$ac_try;;
26431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26432 (eval "$ac_link") 2>conftest.er1
26434 grep -v '^ *+' conftest.er1 >conftest.err
26436 cat conftest.err >&5
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); } && {
26439 test -z "$ac_c_werror_flag" ||
26440 test ! -s conftest.err
26441 } && test -s conftest$ac_exeext &&
26442 $as_test_x conftest$ac_exeext; then
26443 ac_cv_lib_util_openpty=yes
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 ac_cv_lib_util_openpty=no
26451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26452 conftest$ac_exeext conftest.$ac_ext
26453 LIBS=$ac_check_lib_save_LIBS
26455 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26456 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26457 if test $ac_cv_lib_util_openpty = yes; then
26458 cat >>confdefs.h <<_ACEOF
26459 #define HAVE_LIBUTIL 1
26462 LIBS="-lutil $LIBS"
26466 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26469 { echo "$as_me:$LINENO: result: no" >&5
26470 echo "${ECHO_T}no" >&6; }
26475 { echo "$as_me:$LINENO: result: no" >&5
26476 echo "${ECHO_T}no" >&6; }
26484 { echo "$as_me:$LINENO: checking for socket" >&5
26485 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26486 if test "${ac_cv_func_socket+set}" = set; then
26487 echo $ECHO_N "(cached) $ECHO_C" >&6
26489 cat >conftest.$ac_ext <<_ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h. */
26495 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26497 #define socket innocuous_socket
26499 /* System header to define __stub macros and hopefully few prototypes,
26500 which can conflict with char socket (); below.
26501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26502 <limits.h> exists even on freestanding compilers. */
26505 # include <limits.h>
26507 # include <assert.h>
26512 /* Override any GCC internal prototype to avoid an error.
26513 Use char because int might match the return type of a GCC
26514 builtin and then its argument prototype would still apply. */
26519 /* The GNU C library defines this for functions which it implements
26520 to always fail with ENOSYS. Some functions are actually named
26521 something starting with __ and the normal name is an alias. */
26522 #if defined __stub_socket || defined __stub___socket
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (ac_try="$ac_link"
26536 case "(($ac_try" in
26537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26538 *) ac_try_echo=$ac_try;;
26540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26541 (eval "$ac_link") 2>conftest.er1
26543 grep -v '^ *+' conftest.er1 >conftest.err
26545 cat conftest.err >&5
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } && {
26548 test -z "$ac_c_werror_flag" ||
26549 test ! -s conftest.err
26550 } && test -s conftest$ac_exeext &&
26551 $as_test_x conftest$ac_exeext; then
26552 ac_cv_func_socket=yes
26554 echo "$as_me: failed program was:" >&5
26555 sed 's/^/| /' conftest.$ac_ext >&5
26557 ac_cv_func_socket=no
26560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26561 conftest$ac_exeext conftest.$ac_ext
26563 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26564 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26565 if test $ac_cv_func_socket = yes; then
26566 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26567 echo "${ECHO_T}using libc's socket" >&6; }
26570 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26571 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26572 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26573 echo $ECHO_N "(cached) $ECHO_C" >&6
26575 ac_check_lib_save_LIBS=$LIBS
26576 LIBS="-lxnet $LIBS"
26577 cat >conftest.$ac_ext <<_ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26584 /* Override any GCC internal prototype to avoid an error.
26585 Use char because int might match the return type of a GCC
26586 builtin and then its argument prototype would still apply. */
26599 rm -f conftest.$ac_objext conftest$ac_exeext
26600 if { (ac_try="$ac_link"
26601 case "(($ac_try" in
26602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26603 *) ac_try_echo=$ac_try;;
26605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26606 (eval "$ac_link") 2>conftest.er1
26608 grep -v '^ *+' conftest.er1 >conftest.err
26610 cat conftest.err >&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } && {
26613 test -z "$ac_c_werror_flag" ||
26614 test ! -s conftest.err
26615 } && test -s conftest$ac_exeext &&
26616 $as_test_x conftest$ac_exeext; then
26617 ac_cv_lib_xnet_socket=yes
26619 echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26622 ac_cv_lib_xnet_socket=no
26625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26626 conftest$ac_exeext conftest.$ac_ext
26627 LIBS=$ac_check_lib_save_LIBS
26629 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26630 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26631 if test $ac_cv_lib_xnet_socket = yes; then
26632 cat >>confdefs.h <<_ACEOF
26633 #define HAVE_LIBXNET 1
26636 LIBS="-lxnet $LIBS"
26641 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26642 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26643 if test "${ac_cv_lib_socket_socket+set}" = set; then
26644 echo $ECHO_N "(cached) $ECHO_C" >&6
26646 ac_check_lib_save_LIBS=$LIBS
26647 LIBS="-lsocket $LIBS"
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26655 /* Override any GCC internal prototype to avoid an error.
26656 Use char because int might match the return type of a GCC
26657 builtin and then its argument prototype would still apply. */
26670 rm -f conftest.$ac_objext conftest$ac_exeext
26671 if { (ac_try="$ac_link"
26672 case "(($ac_try" in
26673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674 *) ac_try_echo=$ac_try;;
26676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26677 (eval "$ac_link") 2>conftest.er1
26679 grep -v '^ *+' conftest.er1 >conftest.err
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } && {
26684 test -z "$ac_c_werror_flag" ||
26685 test ! -s conftest.err
26686 } && test -s conftest$ac_exeext &&
26687 $as_test_x conftest$ac_exeext; then
26688 ac_cv_lib_socket_socket=yes
26690 echo "$as_me: failed program was:" >&5
26691 sed 's/^/| /' conftest.$ac_ext >&5
26693 ac_cv_lib_socket_socket=no
26696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26697 conftest$ac_exeext conftest.$ac_ext
26698 LIBS=$ac_check_lib_save_LIBS
26700 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26701 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26702 if test $ac_cv_lib_socket_socket = yes; then
26703 cat >>confdefs.h <<_ACEOF
26704 #define HAVE_LIBSOCKET 1
26707 LIBS="-lsocket $LIBS"
26712 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26713 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26714 if test "${ac_cv_lib_inet_socket+set}" = set; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26717 ac_check_lib_save_LIBS=$LIBS
26718 LIBS="-linet $LIBS"
26719 cat >conftest.$ac_ext <<_ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h. */
26726 /* Override any GCC internal prototype to avoid an error.
26727 Use char because int might match the return type of a GCC
26728 builtin and then its argument prototype would still apply. */
26741 rm -f conftest.$ac_objext conftest$ac_exeext
26742 if { (ac_try="$ac_link"
26743 case "(($ac_try" in
26744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26745 *) ac_try_echo=$ac_try;;
26747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26748 (eval "$ac_link") 2>conftest.er1
26750 grep -v '^ *+' conftest.er1 >conftest.err
26752 cat conftest.err >&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); } && {
26755 test -z "$ac_c_werror_flag" ||
26756 test ! -s conftest.err
26757 } && test -s conftest$ac_exeext &&
26758 $as_test_x conftest$ac_exeext; then
26759 ac_cv_lib_inet_socket=yes
26761 echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26764 ac_cv_lib_inet_socket=no
26767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26768 conftest$ac_exeext conftest.$ac_ext
26769 LIBS=$ac_check_lib_save_LIBS
26771 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26772 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26773 if test $ac_cv_lib_inet_socket = yes; then
26774 cat >>confdefs.h <<_ACEOF
26775 #define HAVE_LIBINET 1
26778 LIBS="-linet $LIBS"
26788 # Check whether --with-tcp-wrappers was given.
26789 if test "${with_tcp_wrappers+set}" = set; then
26790 withval=$with_tcp_wrappers;
26791 if test "x$withval" != "xno" ; then
26793 LIBS="$saved_LIBS -lwrap"
26794 { echo "$as_me:$LINENO: checking for libwrap" >&5
26795 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26796 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26797 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26798 if test "${ac_cv_search_nanosleep+set}" = set; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26801 ac_func_search_save_LIBS=$LIBS
26802 cat >conftest.$ac_ext <<_ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h. */
26809 /* Override any GCC internal prototype to avoid an error.
26810 Use char because int might match the return type of a GCC
26811 builtin and then its argument prototype would still apply. */
26819 return nanosleep ();
26824 for ac_lib in '' rt; do
26825 if test -z "$ac_lib"; then
26826 ac_res="none required"
26829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26831 rm -f conftest.$ac_objext conftest$ac_exeext
26832 if { (ac_try="$ac_link"
26833 case "(($ac_try" in
26834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835 *) ac_try_echo=$ac_try;;
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838 (eval "$ac_link") 2>conftest.er1
26840 grep -v '^ *+' conftest.er1 >conftest.err
26842 cat conftest.err >&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } && {
26845 test -z "$ac_c_werror_flag" ||
26846 test ! -s conftest.err
26847 } && test -s conftest$ac_exeext &&
26848 $as_test_x conftest$ac_exeext; then
26849 ac_cv_search_nanosleep=$ac_res
26851 echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26859 if test "${ac_cv_search_nanosleep+set}" = set; then
26863 if test "${ac_cv_search_nanosleep+set}" = set; then
26866 ac_cv_search_nanosleep=no
26868 rm conftest.$ac_ext
26869 LIBS=$ac_func_search_save_LIBS
26871 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26872 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26873 ac_res=$ac_cv_search_nanosleep
26874 if test "$ac_res" != no; then
26875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26879 cat >conftest.$ac_ext <<_ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26886 #include <sys/types.h>
26888 int deny_severity = 0;
26889 int allow_severity = 0;
26890 struct request_info *req;
26902 rm -f conftest.$ac_objext conftest$ac_exeext
26903 if { (ac_try="$ac_link"
26904 case "(($ac_try" in
26905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26906 *) ac_try_echo=$ac_try;;
26908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26909 (eval "$ac_link") 2>conftest.er1
26911 grep -v '^ *+' conftest.er1 >conftest.err
26913 cat conftest.err >&5
26914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); } && {
26916 test -z "$ac_c_werror_flag" ||
26917 test ! -s conftest.err
26918 } && test -s conftest$ac_exeext &&
26919 $as_test_x conftest$ac_exeext; then
26921 { echo "$as_me:$LINENO: result: yes" >&5
26922 echo "${ECHO_T}yes" >&6; }
26924 cat >>confdefs.h <<\_ACEOF
26925 #define HAVE_LIBWRAP 1
26933 echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26937 LIBS="$saved_LIBS -lwrap -lnsl"
26938 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26939 cat >conftest.$ac_ext <<_ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26946 #include <sys/types.h>
26948 int deny_severity = 0;
26949 int allow_severity = 0;
26950 struct request_info *req;
26962 rm -f conftest.$ac_objext conftest$ac_exeext
26963 if { (ac_try="$ac_link"
26964 case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_link") 2>conftest.er1
26971 grep -v '^ *+' conftest.er1 >conftest.err
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } && {
26976 test -z "$ac_c_werror_flag" ||
26977 test ! -s conftest.err
26978 } && test -s conftest$ac_exeext &&
26979 $as_test_x conftest$ac_exeext; then
26981 { echo "$as_me:$LINENO: result: yes" >&5
26982 echo "${ECHO_T}yes" >&6; }
26984 cat >>confdefs.h <<\_ACEOF
26985 #define HAVE_LIBWRAP 1
26993 echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.$ac_ext >&5
26997 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26998 echo "$as_me: error: *** libwrap missing" >&2;}
26999 { (exit 1); exit 1; }; }
27004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27005 conftest$ac_exeext conftest.$ac_ext
27010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27011 conftest$ac_exeext conftest.$ac_ext
27018 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27019 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27021 # Check whether --with-openssl was given.
27022 if test "${with_openssl+set}" = set; then
27023 withval=$with_openssl;
27024 with_openssl_directory=${withval}
27030 if test "x$with_openssl_directory" != "xno"; then
27031 OPENSSL_LIBS="-lssl -lcrypto"
27034 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27036 # Make sure the $with_openssl_directory also makes sense
27038 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27039 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27040 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27044 saved_LIBS="${LIBS}"
27045 saved_CFLAGS="${CFLAGS}"
27046 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27047 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27049 cat >conftest.$ac_ext <<_ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h. */
27056 #include <openssl/ssl.h>
27062 CRYPTO_set_id_callback(NULL);
27068 rm -f conftest.$ac_objext conftest$ac_exeext
27069 if { (ac_try="$ac_link"
27070 case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_link") 2>conftest.er1
27077 grep -v '^ *+' conftest.er1 >conftest.err
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } && {
27082 test -z "$ac_c_werror_flag" ||
27083 test ! -s conftest.err
27084 } && test -s conftest$ac_exeext &&
27085 $as_test_x conftest$ac_exeext; then
27088 support_crypto="yes"
27091 echo "$as_me: failed program was:" >&5
27092 sed 's/^/| /' conftest.$ac_ext >&5
27100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27101 conftest$ac_exeext conftest.$ac_ext
27103 cat >conftest.$ac_ext <<_ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27110 #include <openssl/evp.h>
27122 rm -f conftest.$ac_objext conftest$ac_exeext
27123 if { (ac_try="$ac_link"
27124 case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129 (eval "$ac_link") 2>conftest.er1
27131 grep -v '^ *+' conftest.er1 >conftest.err
27133 cat conftest.err >&5
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); } && {
27136 test -z "$ac_c_werror_flag" ||
27137 test ! -s conftest.err
27138 } && test -s conftest$ac_exeext &&
27139 $as_test_x conftest$ac_exeext; then
27141 ac_cv_openssl_sha2="yes"
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27148 ac_cv_openssl_sha2="no"
27153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27154 conftest$ac_exeext conftest.$ac_ext
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27163 #include <openssl/evp.h>
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>conftest.er1
27184 grep -v '^ *+' conftest.er1 >conftest.err
27186 cat conftest.err >&5
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); } && {
27189 test -z "$ac_c_werror_flag" ||
27190 test ! -s conftest.err
27191 } && test -s conftest$ac_exeext &&
27192 $as_test_x conftest$ac_exeext; then
27194 ac_cv_openssl_export="no"
27197 echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27201 ac_cv_openssl_export="yes"
27206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27207 conftest$ac_exeext conftest.$ac_ext
27209 LIBS="${saved_LIBS}"
27210 CFLAGS="${saved_CFLAGS}"
27212 if test "$support_tls" = "yes"; then
27214 cat >>confdefs.h <<\_ACEOF
27215 #define HAVE_OPENSSL 1
27219 cat >>confdefs.h <<\_ACEOF
27224 cat >>confdefs.h <<\_ACEOF
27225 #define HAVE_CRYPTO 1
27230 if test "$ac_cv_openssl_sha2" = "yes"; then
27232 cat >>confdefs.h <<\_ACEOF
27233 #define HAVE_SHA2 1
27238 if test "$ac_cv_openssl_export" = "yes"; then
27240 cat >>confdefs.h <<\_ACEOF
27241 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27247 support_crypto="no"
27252 { echo "$as_me:$LINENO: result: $support_tls" >&5
27253 echo "${ECHO_T}$support_tls" >&6; }
27257 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27258 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27259 if test "${ac_cv_search_dlopen+set}" = set; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 ac_func_search_save_LIBS=$LIBS
27263 cat >conftest.$ac_ext <<_ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h. */
27270 /* Override any GCC internal prototype to avoid an error.
27271 Use char because int might match the return type of a GCC
27272 builtin and then its argument prototype would still apply. */
27285 for ac_lib in '' dl; do
27286 if test -z "$ac_lib"; then
27287 ac_res="none required"
27290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27292 rm -f conftest.$ac_objext conftest$ac_exeext
27293 if { (ac_try="$ac_link"
27294 case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_link") 2>conftest.er1
27301 grep -v '^ *+' conftest.er1 >conftest.err
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } && {
27306 test -z "$ac_c_werror_flag" ||
27307 test ! -s conftest.err
27308 } && test -s conftest$ac_exeext &&
27309 $as_test_x conftest$ac_exeext; then
27310 ac_cv_search_dlopen=$ac_res
27312 echo "$as_me: failed program was:" >&5
27313 sed 's/^/| /' conftest.$ac_ext >&5
27318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27320 if test "${ac_cv_search_dlopen+set}" = set; then
27324 if test "${ac_cv_search_dlopen+set}" = set; then
27327 ac_cv_search_dlopen=no
27329 rm conftest.$ac_ext
27330 LIBS=$ac_func_search_save_LIBS
27332 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27333 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27334 ac_res=$ac_cv_search_dlopen
27335 if test "$ac_res" != no; then
27336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27341 working_dir=`eval echo ${prefix}/var/bacula/working`
27343 # Check whether --with-working-dir was given.
27344 if test "${with_working_dir+set}" = set; then
27345 withval=$with_working_dir;
27346 if test "x$withval" != "xno" ; then
27347 working_dir=$withval
27358 # Check whether --with-archivedir was given.
27359 if test "${with_archivedir+set}" = set; then
27360 withval=$with_archivedir;
27361 if test "x$withval" != "xno" ; then
27362 archivedir=$withval
27371 basename=`hostname`
27373 # Check whether --with-basename was given.
27374 if test "${with_basename+set}" = set; then
27375 withval=$with_basename;
27376 if test "x$withval" != "xno" ; then
27387 scriptdir=`eval echo ${sysconfdir}`
27389 # Check whether --with-scriptdir was given.
27390 if test "${with_scriptdir+set}" = set; then
27391 withval=$with_scriptdir;
27392 if test "x$withval" != "xno" ; then
27405 # Check whether --with-bsrdir was given.
27406 if test "${with_bsrdir+set}" = set; then
27407 withval=$with_bsrdir;
27408 if test "x$withval" != "xno" ; then
27420 # Check whether --with-logdir was given.
27421 if test "${with_logdir+set}" = set; then
27422 withval=$with_logdir;
27423 if test "x$withval" != "xno" ; then
27434 # ------------------------------------------
27435 # Where to place plugindir (plugin files)
27436 # ------------------------------------------
27437 plugindir=`eval echo ${libdir}`
27439 # Check whether --with-plugindir was given.
27440 if test "${with_plugindir+set}" = set; then
27441 withval=$with_plugindir;
27442 if test "x$withval" != "xno" ; then
27452 dump_email=root@localhost
27454 # Check whether --with-dump-email was given.
27455 if test "${with_dump_email+set}" = set; then
27456 withval=$with_dump_email;
27457 if test "x$withval" != "xno" ; then
27458 dump_email=$withval
27467 job_email=root@localhost
27469 # Check whether --with-job-email was given.
27470 if test "${with_job_email+set}" = set; then
27471 withval=$with_job_email;
27472 if test "x$withval" != "xno" ; then
27482 smtp_host=localhost
27484 # Check whether --with-smtp_host was given.
27485 if test "${with_smtp_host+set}" = set; then
27486 withval=$with_smtp_host;
27487 if test "x$withval" != "xno" ; then
27499 # Check whether --with-pid-dir was given.
27500 if test "${with_pid_dir+set}" = set; then
27501 withval=$with_pid_dir;
27502 if test "x$withval" != "xno" ; then
27510 cat >>confdefs.h <<_ACEOF
27511 #define _PATH_BACULA_PIDDIR "$piddir"
27516 subsysdir=/var/run/subsys
27517 if test -d /var/run/subsys; then
27518 subsysdir=/var/run/subsys
27519 elif test -d /var/lock/subsys; then
27520 subsysdir=/var/lock/subsys
27522 subsysdir=/var/run/subsys
27525 # Check whether --with-subsys-dir was given.
27526 if test "${with_subsys_dir+set}" = set; then
27527 withval=$with_subsys_dir;
27528 if test "x$withval" != "xno" ; then
27540 # Check whether --with-baseport was given.
27541 if test "${with_baseport+set}" = set; then
27542 withval=$with_baseport;
27543 if test "x$withval" != "xno" ; then
27552 dir_port=`expr $baseport`
27553 fd_port=`expr $baseport + 1`
27554 sd_port=`expr $fd_port + 1`
27562 # Check whether --with-dir-password was given.
27563 if test "${with_dir_password+set}" = set; then
27564 withval=$with_dir_password;
27565 if test "x$withval" != "xno" ; then
27566 dir_password=$withval
27573 if test "x$dir_password" = "x" ; then
27574 if test "x$OPENSSL" = "xnone" ; then
27575 key=`autoconf/randpass 33`
27577 key=`openssl rand -base64 33`
27584 # Check whether --with-fd-password was given.
27585 if test "${with_fd_password+set}" = set; then
27586 withval=$with_fd_password;
27587 if test "x$withval" != "xno" ; then
27588 fd_password=$withval
27595 if test "x$fd_password" = "x" ; then
27596 if test "x$OPENSSL" = "xnone" ; then
27597 key=`autoconf/randpass 37`
27599 key=`openssl rand -base64 33`
27606 # Check whether --with-sd-password was given.
27607 if test "${with_sd_password+set}" = set; then
27608 withval=$with_sd_password;
27609 if test "x$withval" != "xno" ; then
27610 sd_password=$withval
27617 if test "x$sd_password" = "x" ; then
27618 if test "x$OPENSSL" = "xnone" ; then
27619 key=`autoconf/randpass 41`
27621 key=`openssl rand -base64 33`
27628 # Check whether --with-mon-dir-password was given.
27629 if test "${with_mon_dir_password+set}" = set; then
27630 withval=$with_mon_dir_password;
27631 if test "x$withval" != "xno" ; then
27632 mon_dir_password=$withval
27639 if test "x$mon_dir_password" = "x" ; then
27640 if test "x$OPENSSL" = "xnone" ; then
27641 key=`autoconf/randpass 33`
27643 key=`openssl rand -base64 33`
27645 mon_dir_password=$key
27650 # Check whether --with-mon-fd-password was given.
27651 if test "${with_mon_fd_password+set}" = set; then
27652 withval=$with_mon_fd_password;
27653 if test "x$withval" != "xno" ; then
27654 mon_fd_password=$withval
27661 if test "x$mon_fd_password" = "x" ; then
27662 if test "x$OPENSSL" = "xnone" ; then
27663 key=`autoconf/randpass 37`
27665 key=`openssl rand -base64 33`
27667 mon_fd_password=$key
27672 # Check whether --with-mon-sd-password was given.
27673 if test "${with_mon_sd_password+set}" = set; then
27674 withval=$with_mon_sd_password;
27675 if test "x$withval" != "xno" ; then
27676 mon_sd_password=$withval
27683 if test "x$mon_sd_password" = "x" ; then
27684 if test "x$OPENSSL" = "xnone" ; then
27685 key=`autoconf/randpass 41`
27687 key=`openssl rand -base64 33`
27689 mon_sd_password=$key
27701 # Check whether --with-db_name was given.
27702 if test "${with_db_name+set}" = set; then
27703 withval=$with_db_name;
27704 if test "x$withval" != "x" ; then
27715 # Check whether --with-db_user was given.
27716 if test "${with_db_user+set}" = set; then
27717 withval=$with_db_user;
27718 if test "x$withval" != "x" ; then
27729 # Check whether --with-db_password was given.
27730 if test "${with_db_password+set}" = set; then
27731 withval=$with_db_password;
27732 if test "x$withval" != "x" ; then
27733 db_password=$withval
27743 # Check whether --with-db_port was given.
27744 if test "${with_db_port+set}" = set; then
27745 withval=$with_db_port;
27746 if test "x$withval" != "x" ; then
27756 # Handle users and groups for each daemon
27760 # Check whether --with-dir_user was given.
27761 if test "${with_dir_user+set}" = set; then
27762 withval=$with_dir_user;
27763 if test "x$withval" != "x" ; then
27773 # Check whether --with-dir_group was given.
27774 if test "${with_dir_group+set}" = set; then
27775 withval=$with_dir_group;
27776 if test "x$withval" != "x" ; then
27786 # Check whether --with-sd_user was given.
27787 if test "${with_sd_user+set}" = set; then
27788 withval=$with_sd_user;
27789 if test "x$withval" != "x" ; then
27799 # Check whether --with-sd_group was given.
27800 if test "${with_sd_group+set}" = set; then
27801 withval=$with_sd_group;
27802 if test "x$withval" != "x" ; then
27812 # Check whether --with-fd_user was given.
27813 if test "${with_fd_user+set}" = set; then
27814 withval=$with_fd_user;
27815 if test "x$withval" != "x" ; then
27825 # Check whether --with-fd_group was given.
27826 if test "${with_fd_group+set}" = set; then
27827 withval=$with_fd_group;
27828 if test "x$withval" != "x" ; then
27845 # Check whether --with-sbin-perm was given.
27846 if test "${with_sbin_perm+set}" = set; then
27847 withval=$with_sbin_perm;
27848 if test "x$withval" != "x" ; then
27861 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27862 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27864 # Check whether --with-postgresql was given.
27865 if test "${with_postgresql+set}" = set; then
27866 withval=$with_postgresql;
27867 if test "$withval" != "no"; then
27868 if test "$db_found" = "yes"; then
27869 { echo "$as_me:$LINENO: result: error" >&5
27870 echo "${ECHO_T}error" >&6; }
27871 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27872 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27873 { (exit 1); exit 1; }; };
27875 if test "$withval" = "yes"; then
27876 PG_CONFIG=`which pg_config`
27877 if test -n "$PG_CONFIG";then
27878 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27879 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27880 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27881 elif test -f /usr/local/include/libpq-fe.h; then
27882 POSTGRESQL_INCDIR=/usr/local/include
27883 if test -d /usr/local/lib64; then
27884 POSTGRESQL_LIBDIR=/usr/local/lib64
27886 POSTGRESQL_LIBDIR=/usr/local/lib
27888 POSTGRESQL_BINDIR=/usr/local/bin
27889 elif test -f /usr/include/libpq-fe.h; then
27890 POSTGRESQL_INCDIR=/usr/include
27891 if test -d /usr/lib64; then
27892 POSTGRESQL_LIBDIR=/usr/lib64
27894 POSTGRESQL_LIBDIR=/usr/lib
27896 POSTGRESQL_BINDIR=/usr/bin
27897 elif test -f /usr/include/pgsql/libpq-fe.h; then
27898 POSTGRESQL_INCDIR=/usr/include/pgsql
27899 if test -d /usr/lib64/pgsql; then
27900 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27902 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27904 POSTGRESQL_BINDIR=/usr/bin
27905 elif test -f /usr/include/postgresql/libpq-fe.h; then
27906 POSTGRESQL_INCDIR=/usr/include/postgresql
27907 if test -d /usr/lib64/postgresql; then
27908 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27910 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27912 POSTGRESQL_BINDIR=/usr/bin
27914 { echo "$as_me:$LINENO: result: no" >&5
27915 echo "${ECHO_T}no" >&6; }
27916 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27917 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27918 { (exit 1); exit 1; }; }
27920 elif test -f $withval/include/libpq-fe.h; then
27921 POSTGRESQL_INCDIR=$withval/include
27922 POSTGRESQL_LIBDIR=$withval/lib
27923 POSTGRESQL_BINDIR=$withval/bin
27924 elif test -f $withval/include/postgresql/libpq-fe.h; then
27925 POSTGRESQL_INCDIR=$withval/include/postgresql
27926 if test -d $withval/lib64; then
27927 POSTGRESQL_LIBDIR=$withval/lib64
27929 POSTGRESQL_LIBDIR=$withval/lib
27931 POSTGRESQL_BINDIR=$withval/bin
27933 { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27935 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27936 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27937 { (exit 1); exit 1; }; }
27939 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27940 { echo "$as_me:$LINENO: checking for crypt" >&5
27941 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27942 if test "${ac_cv_func_crypt+set}" = set; then
27943 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 cat >conftest.$ac_ext <<_ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27951 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27953 #define crypt innocuous_crypt
27955 /* System header to define __stub macros and hopefully few prototypes,
27956 which can conflict with char crypt (); below.
27957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27958 <limits.h> exists even on freestanding compilers. */
27961 # include <limits.h>
27963 # include <assert.h>
27968 /* Override any GCC internal prototype to avoid an error.
27969 Use char because int might match the return type of a GCC
27970 builtin and then its argument prototype would still apply. */
27975 /* The GNU C library defines this for functions which it implements
27976 to always fail with ENOSYS. Some functions are actually named
27977 something starting with __ and the normal name is an alias. */
27978 #if defined __stub_crypt || defined __stub___crypt
27990 rm -f conftest.$ac_objext conftest$ac_exeext
27991 if { (ac_try="$ac_link"
27992 case "(($ac_try" in
27993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994 *) ac_try_echo=$ac_try;;
27996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997 (eval "$ac_link") 2>conftest.er1
27999 grep -v '^ *+' conftest.er1 >conftest.err
28001 cat conftest.err >&5
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } && {
28004 test -z "$ac_c_werror_flag" ||
28005 test ! -s conftest.err
28006 } && test -s conftest$ac_exeext &&
28007 $as_test_x conftest$ac_exeext; then
28008 ac_cv_func_crypt=yes
28010 echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28013 ac_cv_func_crypt=no
28016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28017 conftest$ac_exeext conftest.$ac_ext
28019 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28020 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28021 if test $ac_cv_func_crypt = yes; then
28024 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28025 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28026 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28029 ac_check_lib_save_LIBS=$LIBS
28030 LIBS="-lcrypt $LIBS"
28031 cat >conftest.$ac_ext <<_ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28038 /* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (ac_try="$ac_link"
28055 case "(($ac_try" in
28056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28057 *) ac_try_echo=$ac_try;;
28059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28060 (eval "$ac_link") 2>conftest.er1
28062 grep -v '^ *+' conftest.er1 >conftest.err
28064 cat conftest.err >&5
28065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066 (exit $ac_status); } && {
28067 test -z "$ac_c_werror_flag" ||
28068 test ! -s conftest.err
28069 } && test -s conftest$ac_exeext &&
28070 $as_test_x conftest$ac_exeext; then
28071 ac_cv_lib_crypt_crypt=yes
28073 echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28076 ac_cv_lib_crypt_crypt=no
28079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28080 conftest$ac_exeext conftest.$ac_ext
28081 LIBS=$ac_check_lib_save_LIBS
28083 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28084 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28085 if test $ac_cv_lib_crypt_crypt = yes; then
28086 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28091 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28092 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28093 SQL_BINDIR=$POSTGRESQL_BINDIR
28094 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28096 cat >>confdefs.h <<\_ACEOF
28097 #define HAVE_POSTGRESQL 1
28100 { echo "$as_me:$LINENO: result: yes" >&5
28101 echo "${ECHO_T}yes" >&6; }
28103 support_postgresql=yes
28107 { echo "$as_me:$LINENO: result: no" >&5
28108 echo "${ECHO_T}no" >&6; }
28113 { echo "$as_me:$LINENO: result: no" >&5
28114 echo "${ECHO_T}no" >&6; }
28126 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28127 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28129 # Check whether --with-mysql was given.
28130 if test "${with_mysql+set}" = set; then
28131 withval=$with_mysql;
28132 if test "$withval" != "no"; then
28133 if test "$withval" = "yes"; then
28134 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28135 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28136 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28137 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28138 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28140 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28142 MYSQL_BINDIR=/usr/local/mysql/bin
28143 elif test -f /usr/include/mysql/mysql.h; then
28144 MYSQL_INCDIR=/usr/include/mysql
28145 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28146 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28147 MYSQL_LIBDIR=/usr/lib64/mysql
28148 elif test -f /usr/lib64/libmysqlclient_r.a \
28149 -o -f /usr/lib64/libmysqlclient_r.so; then
28150 MYSQL_LIBDIR=/usr/lib64
28151 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28152 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28153 MYSQL_LIBDIR=/usr/lib/mysql
28155 MYSQL_LIBDIR=/usr/lib
28157 MYSQL_BINDIR=/usr/bin
28158 elif test -f /usr/include/mysql.h; then
28159 MYSQL_INCDIR=/usr/include
28160 if test -f /usr/lib64/libmysqlclient_r.a \
28161 -o -f /usr/lib64/libmysqlclient_r.so; then
28162 MYSQL_LIBDIR=/usr/lib64
28164 MYSQL_LIBDIR=/usr/lib
28166 MYSQL_BINDIR=/usr/bin
28167 elif test -f /usr/local/include/mysql/mysql.h; then
28168 MYSQL_INCDIR=/usr/local/include/mysql
28169 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28170 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28171 MYSQL_LIBDIR=/usr/local/lib64/mysql
28173 MYSQL_LIBDIR=/usr/local/lib/mysql
28175 MYSQL_BINDIR=/usr/local/bin
28176 elif test -f /usr/local/include/mysql.h; then
28177 MYSQL_INCDIR=/usr/local/include
28178 if test -f /usr/local/lib64/libmysqlclient_r.a \
28179 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28180 MYSQL_LIBDIR=/usr/local/lib64
28182 MYSQL_LIBDIR=/usr/local/lib
28184 MYSQL_BINDIR=/usr/local/bin
28186 { echo "$as_me:$LINENO: result: no" >&5
28187 echo "${ECHO_T}no" >&6; }
28188 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28189 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28190 { (exit 1); exit 1; }; }
28193 if test -f $withval/include/mysql/mysql.h; then
28194 MYSQL_INCDIR=$withval/include/mysql
28195 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28196 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28197 MYSQL_LIBDIR=$withval/lib64/mysql
28198 elif test -f $withval/lib64/libmysqlclient_r.a \
28199 -o -f $withval/lib64/libmysqlclient_r.so; then
28200 MYSQL_LIBDIR=$withval/lib64
28201 elif test -f $withval/lib/libmysqlclient_r.a \
28202 -o -f $withval/lib/libmysqlclient_r.so; then
28203 MYSQL_LIBDIR=$withval/lib
28205 MYSQL_LIBDIR=$withval/lib/mysql
28207 MYSQL_BINDIR=$withval/bin
28208 elif test -f $withval/include/mysql.h; then
28209 MYSQL_INCDIR=$withval/include
28210 if test -f $withval/lib64/libmysqlclient_r.a \
28211 -o -f $withval/lib64/libmysqlclient_r.so; then
28212 MYSQL_LIBDIR=$withval/lib64
28214 MYSQL_LIBDIR=$withval/lib
28216 MYSQL_BINDIR=$withval/bin
28218 { echo "$as_me:$LINENO: result: no" >&5
28219 echo "${ECHO_T}no" >&6; }
28220 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28221 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28222 { (exit 1); exit 1; }; }
28225 SQL_INCLUDE=-I$MYSQL_INCDIR
28226 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28227 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28228 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28229 cat >>confdefs.h <<\_ACEOF
28230 #define HAVE_THREAD_SAFE_MYSQL 1
28234 SQL_BINDIR=$MYSQL_BINDIR
28235 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28237 cat >>confdefs.h <<\_ACEOF
28238 #define HAVE_MYSQL 1
28241 { echo "$as_me:$LINENO: result: yes" >&5
28242 echo "${ECHO_T}yes" >&6; }
28249 { echo "$as_me:$LINENO: result: no" >&5
28250 echo "${ECHO_T}no" >&6; }
28258 # Check whether --with-embedded-mysql was given.
28259 if test "${with_embedded_mysql+set}" = set; then
28260 withval=$with_embedded_mysql;
28261 if test "$withval" != "no"; then
28262 if test "$withval" = "yes"; then
28263 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28264 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28265 if test -d /usr/local/mysql/lib64/mysql; then
28266 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28268 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28270 MYSQL_BINDIR=/usr/local/mysql/bin
28271 elif test -f /usr/include/mysql/mysql.h; then
28272 MYSQL_INCDIR=/usr/include/mysql
28273 if test -d /usr/lib64/mysql; then
28274 MYSQL_LIBDIR=/usr/lib64/mysql
28276 MYSQL_LIBDIR=/usr/lib/mysql
28278 MYSQL_BINDIR=/usr/bin
28279 elif test -f /usr/include/mysql.h; then
28280 MYSQL_INCDIR=/usr/include
28281 if test -d /usr/lib64; then
28282 MYSQL_LIBDIR=/usr/lib64
28284 MYSQL_LIBDIR=/usr/lib
28286 MYSQL_BINDIR=/usr/bin
28287 elif test -f /usr/local/include/mysql/mysql.h; then
28288 MYSQL_INCDIR=/usr/local/include/mysql
28289 if test -d /usr/local/lib64/mysql; then
28290 MYSQL_LIBDIR=/usr/local/lib64/mysql
28292 MYSQL_LIBDIR=/usr/local/lib/mysql
28294 MYSQL_BINDIR=/usr/local/bin
28295 elif test -f /usr/local/include/mysql.h; then
28296 MYSQL_INCDIR=/usr/local/include
28297 if test -d /usr/local/lib64; then
28298 MYSQL_LIBDIR=/usr/local/lib64
28300 MYSQL_LIBDIR=/usr/local/lib
28302 MYSQL_BINDIR=/usr/local/bin
28304 { echo "$as_me:$LINENO: result: no" >&5
28305 echo "${ECHO_T}no" >&6; }
28306 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28307 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28308 { (exit 1); exit 1; }; }
28311 if test -f $withval/include/mysql/mysql.h; then
28312 MYSQL_INCDIR=$withval/include/mysql
28313 if test -d $withval/lib64/mysql; then
28314 MYSQL_LIBDIR=$withval/lib64/mysql
28316 MYSQL_LIBDIR=$withval/lib/mysql
28318 MYSQL_BINDIR=$withval/bin
28319 elif test -f $withval/include/mysql.h; then
28320 MYSQL_INCDIR=$withval/include
28321 if test -d $withval/lib64; then
28322 MYSQL_LIBDIR=$withval/lib64
28324 MYSQL_LIBDIR=$withval/lib
28326 MYSQL_BINDIR=$withval/bin
28328 { echo "$as_me:$LINENO: result: no" >&5
28329 echo "${ECHO_T}no" >&6; }
28330 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28331 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28332 { (exit 1); exit 1; }; }
28335 SQL_INCLUDE=-I$MYSQL_INCDIR
28336 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28337 SQL_BINDIR=$MYSQL_BINDIR
28338 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28340 cat >>confdefs.h <<\_ACEOF
28341 #define HAVE_MYSQL 1
28344 cat >>confdefs.h <<\_ACEOF
28345 #define HAVE_EMBEDDED_MYSQL 1
28348 { echo "$as_me:$LINENO: result: yes" >&5
28349 echo "${ECHO_T}yes" >&6; }
28356 { echo "$as_me:$LINENO: result: no" >&5
28357 echo "${ECHO_T}no" >&6; }
28373 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28374 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28376 # Check whether --with-sqlite3 was given.
28377 if test "${with_sqlite3+set}" = set; then
28378 withval=$with_sqlite3;
28379 if test "$withval" != "no"; then
28380 if test "$withval" = "yes"; then
28381 if test -f /usr/local/include/sqlite3.h; then
28382 SQLITE_INCDIR=/usr/local/include
28383 if test -d /usr/local/lib64; then
28384 SQLITE_LIBDIR=/usr/local/lib64
28386 SQLITE_LIBDIR=/usr/local/lib
28388 SQLITE_BINDIR=/usr/local/bin
28389 elif test -f /usr/include/sqlite3.h; then
28390 SQLITE_INCDIR=/usr/include
28391 if test -d /usr/lib64; then
28392 SQLITE_LIBDIR=/usr/lib64
28394 SQLITE_LIBDIR=/usr/lib
28396 SQLITE_BINDIR=/usr/bin
28397 elif test -f $prefix/include/sqlite3.h; then
28398 SQLITE_INCDIR=$prefix/include
28399 if test -d $prefix/lib64; then
28400 SQLITE_LIBDIR=$prefix/lib64
28402 SQLITE_LIBDIR=$prefix/lib
28404 SQLITE_BINDIR=$prefix/bin
28406 { echo "$as_me:$LINENO: result: no" >&5
28407 echo "${ECHO_T}no" >&6; }
28408 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28409 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28410 { (exit 1); exit 1; }; }
28413 if test -f $withval/sqlite3.h; then
28414 SQLITE_INCDIR=$withval
28415 SQLITE_LIBDIR=$withval
28416 SQLITE_BINDIR=$withval
28417 elif test -f $withval/include/sqlite3.h; then
28418 SQLITE_INCDIR=$withval/include
28419 if test -d $withval/lib64; then
28420 SQLITE_LIBDIR=$withval/lib64
28422 SQLITE_LIBDIR=$withval/lib
28424 SQLITE_BINDIR=$withval/bin
28426 { echo "$as_me:$LINENO: result: no" >&5
28427 echo "${ECHO_T}no" >&6; }
28428 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28429 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28430 { (exit 1); exit 1; }; }
28433 SQL_INCLUDE=-I$SQLITE_INCDIR
28434 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28435 SQL_BINDIR=$SQLITE_BINDIR
28436 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28438 cat >>confdefs.h <<\_ACEOF
28439 #define HAVE_SQLITE3 1
28442 { echo "$as_me:$LINENO: result: yes" >&5
28443 echo "${ECHO_T}yes" >&6; }
28445 support_sqlite3=yes
28450 { echo "$as_me:$LINENO: result: no" >&5
28451 echo "${ECHO_T}no" >&6; }
28456 { echo "$as_me:$LINENO: result: no" >&5
28457 echo "${ECHO_T}no" >&6; }
28469 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28470 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28472 # Check whether --with-sqlite was given.
28473 if test "${with_sqlite+set}" = set; then
28474 withval=$with_sqlite;
28475 if test "$withval" != "no"; then
28476 if test "$withval" = "yes"; then
28477 if test -f /usr/local/include/sqlite.h; then
28478 SQLITE_INCDIR=/usr/local/include
28479 if test -d /usr/local/lib64; then
28480 SQLITE_LIBDIR=/usr/local/lib64
28482 SQLITE_LIBDIR=/usr/local/lib
28484 SQLITE_BINDIR=/usr/local/bin
28485 elif test -f /usr/include/sqlite.h; then
28486 SQLITE_INCDIR=/usr/include
28487 if test -d /usr/lib64; then
28488 SQLITE_LIBDIR=/usr/lib64
28490 SQLITE_LIBDIR=/usr/lib
28492 SQLITE_BINDIR=/usr/bin
28493 elif test -f $prefix/include/sqlite.h; then
28494 SQLITE_INCDIR=$prefix/include
28495 if test -d $prefix/lib64; then
28496 SQLITE_LIBDIR=$prefix/lib64
28498 SQLITE_LIBDIR=$prefix/lib
28500 SQLITE_BINDIR=$prefix/bin
28502 { echo "$as_me:$LINENO: result: no" >&5
28503 echo "${ECHO_T}no" >&6; }
28504 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28505 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28506 { (exit 1); exit 1; }; }
28509 if test -f $withval/sqlite.h; then
28510 SQLITE_INCDIR=$withval
28511 SQLITE_LIBDIR=$withval
28512 SQLITE_BINDIR=$withval
28513 elif test -f $withval/include/sqlite.h; then
28514 SQLITE_INCDIR=$withval/include
28515 if test -d $withval/lib64; then
28516 SQLITE_LIBDIR=$withval/lib64
28518 SQLITE_LIBDIR=$withval/lib
28520 SQLITE_BINDIR=$withval/bin
28522 { echo "$as_me:$LINENO: result: no" >&5
28523 echo "${ECHO_T}no" >&6; }
28524 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28525 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28526 { (exit 1); exit 1; }; }
28529 SQL_INCLUDE=-I$SQLITE_INCDIR
28530 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28531 SQL_BINDIR=$SQLITE_BINDIR
28532 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_SQLITE 1
28538 { echo "$as_me:$LINENO: result: yes" >&5
28539 echo "${ECHO_T}yes" >&6; }
28546 { echo "$as_me:$LINENO: result: no" >&5
28547 echo "${ECHO_T}no" >&6; }
28552 { echo "$as_me:$LINENO: result: no" >&5
28553 echo "${ECHO_T}no" >&6; }
28565 { echo "$as_me:$LINENO: checking for DBI support" >&5
28566 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28568 # Check whether --with-dbi was given.
28569 if test "${with_dbi+set}" = set; then
28571 if test "$withval" != "no"; then
28572 if test "$withval" = "yes"; then
28573 if test -f /usr/local/include/dbi/dbi.h; then
28574 DBI_INCDIR=/usr/local/dbi/include
28575 if test -d /usr/local/lib64; then
28576 DBI_LIBDIR=/usr/local/lib64
28578 DBI_LIBDIR=/usr/local/lib
28580 DBI_BINDIR=/usr/local/bin
28581 elif test -f /usr/include/dbi/dbi.h; then
28582 DBI_INCDIR=/usr/include
28583 if test -d /usr/lib64; then
28584 DBI_LIBDIR=/usr/lib64
28586 DBI_LIBDIR=/usr/lib
28588 DBI_BINDIR=/usr/bin
28589 elif test -f $prefix/include/dbi/dbi.h; then
28590 DBI_INCDIR=$prefix/include
28591 if test -d $prefix/lib64; then
28592 DBI_LIBDIR=$prefix/lib64
28594 DBI_LIBDIR=$prefix/lib
28596 DBI_BINDIR=$prefix/bin
28598 { echo "$as_me:$LINENO: result: no" >&5
28599 echo "${ECHO_T}no" >&6; }
28600 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28601 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28602 { (exit 1); exit 1; }; }
28604 if test -d /usr/local/lib/dbd; then
28605 DRIVERDIR=/usr/local/lib/dbd
28606 if test -d /usr/local/lib64/dbd; then
28607 DRIVERDIR=/usr/local/lib64/dbd
28609 DRIVERDIR=/usr/local/lib/dbd
28611 elif test -d /usr/lib/dbd; then
28612 DRIVERDIR=/usr/lib/dbd
28613 if test -d /usr/lib64/dbd; then
28614 DRIVERDIR=/usr/lib64/dbd
28616 DRIVERDIR=/usr/lib/dbd
28618 elif test -d $prefix/lib/dbd; then
28619 if test -d $prefix/lib64/dbd; then
28620 DRIVERDIR=$prefix/lib64/dbd
28622 DRIVERDIR=$prefix/lib/dbd
28625 { echo "$as_me:$LINENO: result: no" >&5
28626 echo "${ECHO_T}no" >&6; }
28627 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28628 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28629 { (exit 1); exit 1; }; }
28632 if test -f $withval/dbi.h; then
28633 DBI_INCDIR=$withval
28634 DBI_LIBDIR=$withval
28635 DBI_BINDIR=$withval
28636 elif test -f $withval/include/dbi/dbi.h; then
28637 DBI_INCDIR=$withval/include
28638 if test -d $withval/lib64; then
28639 DBI_LIBDIR=$withval/lib64
28641 DBI_LIBDIR=$withval/lib
28643 DBI_BINDIR=$withval/bin
28645 { echo "$as_me:$LINENO: result: no" >&5
28646 echo "${ECHO_T}no" >&6; }
28647 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28648 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28649 { (exit 1); exit 1; }; }
28651 if test -d $withval/dbd; then
28652 DRIVERDIR=$withval/dbd
28653 elif test -d $withval/lib/; then
28654 if test -d $withval/lib64/dbd; then
28655 DRIVERDIR=$withval/lib64/dbd
28657 DRIVERDIR=$withval/lib/dbd
28660 { echo "$as_me:$LINENO: result: no" >&5
28661 echo "${ECHO_T}no" >&6; }
28662 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28663 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28664 { (exit 1); exit 1; }; }
28667 SQL_INCLUDE=-I$DBI_INCDIR
28668 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28669 SQL_BINDIR=$DBI_BINDIR
28670 SQL_LIB=$DBI_LIBDIR/libdbi.a
28671 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28674 cat >>confdefs.h <<\_ACEOF
28678 { echo "$as_me:$LINENO: result: yes" >&5
28679 echo "${ECHO_T}yes" >&6; }
28687 { echo "$as_me:$LINENO: result: no" >&5
28688 echo "${ECHO_T}no" >&6; }
28693 { echo "$as_me:$LINENO: result: no" >&5
28694 echo "${ECHO_T}no" >&6; }
28709 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28710 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28712 # Check whether --with-dbi-driver was given.
28713 if test "${with_dbi_driver+set}" = set; then
28714 withval=$with_dbi_driver;
28715 if test "$withval" != "no"; then
28719 if test -f /usr/local/mysql/bin/mysql; then
28720 SQL_BINDIR=/usr/local/mysql/bin
28721 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28722 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28723 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28725 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28727 elif test -f /usr/bin/mysql; then
28728 SQL_BINDIR=/usr/bin
28729 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28730 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28731 SQL_LIBDIR=/usr/lib64/mysql
28732 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28733 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28734 SQL_LIBDIR=/usr/lib/mysql
28736 SQL_LIBDIR=/usr/lib
28738 elif test -f /usr/local/bin/mysql; then
28739 SQL_BINDIR=/usr/local/bin
28740 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28741 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28742 SQL_LIBDIR=/usr/local/lib64/mysql
28743 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28744 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28745 SQL_LIBDIR=/usr/local/lib/mysql
28747 SQL_LIBDIR=/usr/local/lib
28749 elif test -f $withval/bin/mysql; then
28750 SQL_BINDIR=$withval/bin
28751 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28752 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28753 SQL_LIBDIR=$withval/lib64/mysql
28754 elif test -f $withval/lib64/libmysqlclient_r.a \
28755 -o -f $withval/lib64/libmysqlclient_r.so; then
28756 SQL_LIBDIR=$withval/lib64
28757 elif test -f $withval/lib/libmysqlclient_r.a \
28758 -o -f $withval/lib/libmysqlclient_r.so; then
28759 SQL_LIBDIR=$withval/lib/
28761 SQL_LIBDIR=$withval/lib/mysql
28764 { echo "$as_me:$LINENO: result: no" >&5
28765 echo "${ECHO_T}no" >&6; }
28766 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28767 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28768 { (exit 1); exit 1; }; }
28770 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28771 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28773 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28777 db_prog="postgresql"
28778 PG_CONFIG=`which pg_config`
28779 if test -n "$PG_CONFIG"; then
28780 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28781 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28782 elif test -f /usr/local/bin/psql; then
28783 SQL_BINDIR=/usr/local/bin
28784 if test -d /usr/local/lib64; then
28785 SQL_LIBDIR=/usr/local/lib64
28787 SQL_LIBDIR=/usr/local/lib
28789 elif test -f /usr/bin/psql; then
28790 SQL_BINDIR=/usr/local/bin
28791 if test -d /usr/lib64/postgresql; then
28792 SQL_LIBDIR=/usr/lib64/postgresql
28793 elif test -d /usr/lib/postgresql; then
28794 SQL_LIBDIR=/usr/lib/postgresql
28795 elif test -d /usr/lib64; then
28796 SQL_LIBDIR=/usr/lib64
28798 SQL_LIBDIR=/usr/lib
28800 elif test -f $withval/bin/psql; then
28801 SQL_BINDIR=$withval/bin
28802 if test -d $withval/lib64; then
28803 SQL_LIBDIR=$withval/lib64
28805 SQL_LIBDIR=$withval/lib
28808 { echo "$as_me:$LINENO: result: no" >&5
28809 echo "${ECHO_T}no" >&6; }
28810 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28811 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28812 { (exit 1); exit 1; }; }
28814 if test -f $SQL_LIBDIR/libpq.so; then
28815 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28817 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28822 if test -f /usr/local/bin/sqlite; then
28823 SQL_BINDIR=/usr/local/bin
28824 if test -d /usr/local/lib64; then
28825 SQL_LIBDIR=/usr/local/lib64
28827 SQL_LIBDIR=/usr/local/lib
28829 elif test -f /usr/bin/sqlite; then
28830 SQL_BINDIR=/usr/bin
28831 if test -d /usr/lib64; then
28832 SQL_LIBDIR=/usr/lib64
28834 SQL_LIBDIR=/usr/lib
28836 elif test -f $withval/bin/sqlite; then
28837 SQL_BINDIR=$withval/bin
28838 if test -d $withval/lib64; then
28839 SQL_LIBDIR=$withval/lib64
28841 SQL_LIBDIR=$withval/lib
28844 { echo "$as_me:$LINENO: result: no" >&5
28845 echo "${ECHO_T}no" >&6; }
28846 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28847 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28848 { (exit 1); exit 1; }; }
28850 if test -f $SQL_LIBDIR/libsqlite.so; then
28851 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28853 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28858 if test -f /usr/local/bin/sqlite3; then
28859 SQL_BINDIR=/usr/local/bin
28860 if test -d /usr/local/lib64; then
28861 SQL_LIBDIR=/usr/local/lib64
28863 SQL_LIBDIR=/usr/local/lib
28865 elif test -f /usr/bin/sqlite3; then
28866 SQL_BINDIR=/usr/bin
28867 if test -d /usr/lib64; then
28868 SQL_LIBDIR=/usr/lib64
28870 SQL_LIBDIR=/usr/lib
28872 elif test -f $withval/bin/sqlite3; then
28873 SQL_BINDIR=$withval/bin
28874 if test -d $withval/lib64; then
28875 SQL_LIBDIR=$withval/lib64
28877 SQL_LIBDIR=$withval/lib
28880 { echo "$as_me:$LINENO: result: no" >&5
28881 echo "${ECHO_T}no" >&6; }
28882 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28883 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28884 { (exit 1); exit 1; }; }
28886 if test -f $SQL_LIBDIR/libsqlite3.so; then
28887 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28889 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28893 { echo "$as_me:$LINENO: result: no" >&5
28894 echo "${ECHO_T}no" >&6; }
28895 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28896 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28897 { (exit 1); exit 1; }; }
28901 { echo "$as_me:$LINENO: result: yes" >&5
28902 echo "${ECHO_T}yes" >&6; }
28905 { echo "$as_me:$LINENO: result: no" >&5
28906 echo "${ECHO_T}no" >&6; }
28911 { echo "$as_me:$LINENO: result: no" >&5
28912 echo "${ECHO_T}no" >&6; }
28925 support_batch_insert=no
28926 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28928 if test $pkg = 0; then
28929 support_batch_insert=yes
28930 # Check whether --enable-batch-insert was given.
28931 if test "${enable_batch_insert+set}" = set; then
28932 enableval=$enable_batch_insert;
28933 if test x$enableval = xno; then
28934 support_batch_insert=no
28936 support_batch_insert=yes
28944 if test x$DB_TYPE = xpostgresql; then
28945 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28947 if test $pkg != 0; then
28948 support_batch_insert=no
28952 if test x$DB_TYPE = xdbi; then
28956 if test $DB_PROG = postgresql; then
28957 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28961 if test $DB_PROG = mysql; then
28962 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28966 if test $DB_PROG = sqlite3; then
28967 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28971 if test $pkg = 0; then
28972 # Check whether --enable-batch-insert was given.
28973 if test "${enable_batch_insert+set}" = set; then
28974 enableval=$enable_batch_insert;
28975 if test x$enableval = xno; then
28976 support_batch_insert=no
28978 support_batch_insert=yes
28991 if test $support_batch_insert = yes ; then
28993 cat >>confdefs.h <<\_ACEOF
28994 #define HAVE_BATCH_FILE_INSERT 1
28999 cat >>confdefs.h <<\_ACEOF
29000 #define PROTOTYPES 1
29004 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29005 if test -z "$CCOPTS"; then
29006 CCOPTS='-g -O2 -Wall'
29013 largefile_support="no"
29015 # Check whether --enable-largefile was given.
29016 if test "${enable_largefile+set}" = set; then
29017 enableval=$enable_largefile;
29020 if test "$enable_largefile" != no; then
29021 if test -n "$ac_tool_prefix"; then
29022 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29023 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29026 if test "${ac_cv_prog_GETCONF+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29029 if test -n "$GETCONF"; then
29030 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29033 for as_dir in $PATH
29036 test -z "$as_dir" && as_dir=.
29037 for ac_exec_ext in '' $ac_executable_extensions; do
29038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29039 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29049 GETCONF=$ac_cv_prog_GETCONF
29050 if test -n "$GETCONF"; then
29051 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29052 echo "${ECHO_T}$GETCONF" >&6; }
29054 { echo "$as_me:$LINENO: result: no" >&5
29055 echo "${ECHO_T}no" >&6; }
29060 if test -z "$ac_cv_prog_GETCONF"; then
29061 ac_ct_GETCONF=$GETCONF
29062 # Extract the first word of "getconf", so it can be a program name with args.
29063 set dummy getconf; ac_word=$2
29064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29066 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29067 echo $ECHO_N "(cached) $ECHO_C" >&6
29069 if test -n "$ac_ct_GETCONF"; then
29070 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29073 for as_dir in $PATH
29076 test -z "$as_dir" && as_dir=.
29077 for ac_exec_ext in '' $ac_executable_extensions; do
29078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29079 ac_cv_prog_ac_ct_GETCONF="getconf"
29080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29089 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29090 if test -n "$ac_ct_GETCONF"; then
29091 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29092 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29094 { echo "$as_me:$LINENO: result: no" >&5
29095 echo "${ECHO_T}no" >&6; }
29098 if test "x$ac_ct_GETCONF" = x; then
29101 case $cross_compiling:$ac_tool_warned in
29103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29104 whose name does not start with the host triplet. If you think this
29105 configuration is useful to you, please write to autoconf@gnu.org." >&5
29106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29107 whose name does not start with the host triplet. If you think this
29108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29109 ac_tool_warned=yes ;;
29111 GETCONF=$ac_ct_GETCONF
29114 GETCONF="$ac_cv_prog_GETCONF"
29117 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29118 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29119 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29122 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29123 ac_cv_sys_largefile_CFLAGS=no
29125 # IRIX 6.2 and later require cc -n32.
29126 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29127 if test "$GCC" != yes; then
29128 ac_cv_sys_largefile_CFLAGS=-n32
29131 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29132 cat >conftest.$ac_ext <<_ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h. */
29147 rm -f conftest.$ac_objext conftest$ac_exeext
29148 if { (ac_try="$ac_link"
29149 case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_link") 2>conftest.er1
29156 grep -v '^ *+' conftest.er1 >conftest.err
29158 cat conftest.err >&5
29159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160 (exit $ac_status); } && {
29161 test -z "$ac_c_werror_flag" ||
29162 test ! -s conftest.err
29163 } && test -s conftest$ac_exeext &&
29164 $as_test_x conftest$ac_exeext; then
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ac_cv_sys_largefile_CFLAGS=no
29173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29174 conftest$ac_exeext conftest.$ac_ext
29179 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29180 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29181 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29182 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29183 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29184 echo $ECHO_N "(cached) $ECHO_C" >&6
29186 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29187 ac_cv_sys_largefile_LDFLAGS=no
29191 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29192 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29193 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29194 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29195 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29199 ac_cv_sys_largefile_LIBS=no
29203 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29204 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29206 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29209 -D_FILE_OFFSET_BITS=*) ;;
29210 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29211 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29216 case "$CPPFLAGS" in
29217 '') CPPFLAGS="$ac_flag" ;;
29218 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29226 '') CFLAGS="$ac_flag" ;;
29227 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29232 case "$ac_cv_sys_largefile_LDFLAGS" in
29236 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29237 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29240 case "$ac_cv_sys_largefile_LIBS" in
29244 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29245 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29248 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29249 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29250 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29251 echo $ECHO_N "(cached) $ECHO_C" >&6
29253 ac_cv_sys_file_offset_bits=no
29254 ac_cv_sys_file_offset_bits=64
29255 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29257 -D_FILE_OFFSET_BITS)
29258 ac_cv_sys_file_offset_bits=1 ;;
29259 -D_FILE_OFFSET_BITS=*)
29260 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29265 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29267 if test "$ac_cv_sys_file_offset_bits" != no; then
29269 cat >>confdefs.h <<_ACEOF
29270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29274 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29275 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29276 if test "${ac_cv_sys_largefile_source+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29279 ac_cv_sys_largefile_source=no
29280 ac_cv_sys_largefile_source=1
29281 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29283 -D_LARGEFILE_SOURCE)
29284 ac_cv_sys_largefile_source=1 ;;
29285 -D_LARGEFILE_SOURCE=*)
29286 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29291 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29292 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29293 if test "$ac_cv_sys_largefile_source" != no; then
29295 cat >>confdefs.h <<_ACEOF
29296 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29300 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29301 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29302 if test "${ac_cv_sys_large_files+set}" = set; then
29303 echo $ECHO_N "(cached) $ECHO_C" >&6
29305 ac_cv_sys_large_files=no
29306 ac_cv_sys_large_files=1
29307 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29310 ac_cv_sys_large_files=1 ;;
29312 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29317 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29318 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29319 if test "$ac_cv_sys_large_files" != no; then
29321 cat >>confdefs.h <<_ACEOF
29322 #define _LARGE_FILES $ac_cv_sys_large_files
29329 { echo "$as_me:$LINENO: checking for X" >&5
29330 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29333 # Check whether --with-x was given.
29334 if test "${with_x+set}" = set; then
29338 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29339 if test "x$with_x" = xno; then
29340 # The user explicitly disabled X.
29343 case $x_includes,$x_libraries in #(
29344 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29345 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29346 { (exit 1); exit 1; }; };; #(
29347 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29348 echo $ECHO_N "(cached) $ECHO_C" >&6
29350 # One or both of the vars are not set, and there is no cached value.
29351 ac_x_includes=no ac_x_libraries=no
29352 rm -f -r conftest.dir
29353 if mkdir conftest.dir; then
29355 cat >Imakefile <<'_ACEOF'
29357 @echo incroot='${INCROOT}'
29359 @echo usrlibdir='${USRLIBDIR}'
29361 @echo libdir='${LIBDIR}'
29363 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29364 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29365 for ac_var in incroot usrlibdir libdir; do
29366 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29368 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29369 for ac_extension in a so sl; do
29370 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29371 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29372 ac_im_usrlibdir=$ac_im_libdir; break
29375 # Screen out bogus values from the imake configuration. They are
29376 # bogus both because they are the default anyway, and because
29377 # using them would break gcc on systems where it needs fixed includes.
29378 case $ac_im_incroot in
29379 /usr/include) ac_x_includes= ;;
29380 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29382 case $ac_im_usrlibdir in
29383 /usr/lib | /lib) ;;
29384 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29388 rm -f -r conftest.dir
29391 # Standard set of common directories for X headers.
29392 # Check X11 before X11Rn because it is often a symlink to the current release.
29404 /usr/local/X11/include
29405 /usr/local/X11R6/include
29406 /usr/local/X11R5/include
29407 /usr/local/X11R4/include
29409 /usr/local/include/X11
29410 /usr/local/include/X11R6
29411 /usr/local/include/X11R5
29412 /usr/local/include/X11R4
29416 /usr/XFree86/include/X11
29420 /usr/unsupported/include
29421 /usr/athena/include
29422 /usr/local/x11r5/include
29423 /usr/lpp/Xamples/include
29425 /usr/openwin/include
29426 /usr/openwin/share/include'
29428 if test "$ac_x_includes" = no; then
29429 # Guess where to find include files, by looking for Xlib.h.
29430 # First, try using that file with no special directory specified.
29431 cat >conftest.$ac_ext <<_ACEOF
29434 cat confdefs.h >>conftest.$ac_ext
29435 cat >>conftest.$ac_ext <<_ACEOF
29436 /* end confdefs.h. */
29437 #include <X11/Xlib.h>
29439 if { (ac_try="$ac_cpp conftest.$ac_ext"
29440 case "(($ac_try" in
29441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442 *) ac_try_echo=$ac_try;;
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29447 grep -v '^ *+' conftest.er1 >conftest.err
29449 cat conftest.err >&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } >/dev/null && {
29452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29453 test ! -s conftest.err
29455 # We can compile using X headers with no special include directory.
29458 echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29461 for ac_dir in $ac_x_header_dirs; do
29462 if test -r "$ac_dir/X11/Xlib.h"; then
29463 ac_x_includes=$ac_dir
29469 rm -f conftest.err conftest.$ac_ext
29470 fi # $ac_x_includes = no
29472 if test "$ac_x_libraries" = no; then
29473 # Check for the libraries.
29474 # See if we find them without any special options.
29475 # Don't add to $LIBS permanently.
29478 cat >conftest.$ac_ext <<_ACEOF
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h. */
29484 #include <X11/Xlib.h>
29493 rm -f conftest.$ac_objext conftest$ac_exeext
29494 if { (ac_try="$ac_link"
29495 case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_link") 2>conftest.er1
29502 grep -v '^ *+' conftest.er1 >conftest.err
29504 cat conftest.err >&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } && {
29507 test -z "$ac_c_werror_flag" ||
29508 test ! -s conftest.err
29509 } && test -s conftest$ac_exeext &&
29510 $as_test_x conftest$ac_exeext; then
29512 # We can link X programs with no special library path.
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29519 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29521 # Don't even attempt the hair of trying to link an X program!
29522 for ac_extension in a so sl; do
29523 if test -r "$ac_dir/libX11.$ac_extension"; then
29524 ac_x_libraries=$ac_dir
29531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29532 conftest$ac_exeext conftest.$ac_ext
29533 fi # $ac_x_libraries = no
29535 case $ac_x_includes,$ac_x_libraries in #(
29536 no,* | *,no | *\'*)
29537 # Didn't find X, or a directory has "'" in its name.
29538 ac_cv_have_x="have_x=no";; #(
29540 # Record where we found X for the cache.
29541 ac_cv_have_x="have_x=yes\
29542 ac_x_includes='$ac_x_includes'\
29543 ac_x_libraries='$ac_x_libraries'"
29549 eval "$ac_cv_have_x"
29552 if test "$have_x" != yes; then
29553 { echo "$as_me:$LINENO: result: $have_x" >&5
29554 echo "${ECHO_T}$have_x" >&6; }
29557 # If each of the values was on the command line, it overrides each guess.
29558 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29559 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29560 # Update the cache value to reflect the command line values.
29561 ac_cv_have_x="have_x=yes\
29562 ac_x_includes='$x_includes'\
29563 ac_x_libraries='$x_libraries'"
29564 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29565 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29568 if test "$no_x" = yes; then
29569 # Not all programs may use this symbol, but it does not hurt to define it.
29571 cat >>confdefs.h <<\_ACEOF
29572 #define X_DISPLAY_MISSING 1
29575 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29577 if test -n "$x_includes"; then
29578 X_CFLAGS="$X_CFLAGS -I$x_includes"
29581 # It would also be nice to do this for all -L options, not just this one.
29582 if test -n "$x_libraries"; then
29583 X_LIBS="$X_LIBS -L$x_libraries"
29584 # For Solaris; some versions of Sun CC require a space after -R and
29585 # others require no space. Words are not sufficient . . . .
29586 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29587 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29588 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29589 ac_xsave_c_werror_flag=$ac_c_werror_flag
29590 ac_c_werror_flag=yes
29591 cat >conftest.$ac_ext <<_ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h. */
29606 rm -f conftest.$ac_objext conftest$ac_exeext
29607 if { (ac_try="$ac_link"
29608 case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_link") 2>conftest.er1
29615 grep -v '^ *+' conftest.er1 >conftest.err
29617 cat conftest.err >&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); } && {
29620 test -z "$ac_c_werror_flag" ||
29621 test ! -s conftest.err
29622 } && test -s conftest$ac_exeext &&
29623 $as_test_x conftest$ac_exeext; then
29624 { echo "$as_me:$LINENO: result: no" >&5
29625 echo "${ECHO_T}no" >&6; }
29626 X_LIBS="$X_LIBS -R$x_libraries"
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29631 LIBS="$ac_xsave_LIBS -R $x_libraries"
29632 cat >conftest.$ac_ext <<_ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h. */
29647 rm -f conftest.$ac_objext conftest$ac_exeext
29648 if { (ac_try="$ac_link"
29649 case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654 (eval "$ac_link") 2>conftest.er1
29656 grep -v '^ *+' conftest.er1 >conftest.err
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } && {
29661 test -z "$ac_c_werror_flag" ||
29662 test ! -s conftest.err
29663 } && test -s conftest$ac_exeext &&
29664 $as_test_x conftest$ac_exeext; then
29665 { echo "$as_me:$LINENO: result: yes" >&5
29666 echo "${ECHO_T}yes" >&6; }
29667 X_LIBS="$X_LIBS -R $x_libraries"
29669 echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29672 { echo "$as_me:$LINENO: result: neither works" >&5
29673 echo "${ECHO_T}neither works" >&6; }
29676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29677 conftest$ac_exeext conftest.$ac_ext
29680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29681 conftest$ac_exeext conftest.$ac_ext
29682 ac_c_werror_flag=$ac_xsave_c_werror_flag
29683 LIBS=$ac_xsave_LIBS
29686 # Check for system-dependent libraries X programs must link with.
29687 # Do this before checking for the system-independent R6 libraries
29688 # (-lICE), since we may need -lsocket or whatever for X linking.
29690 if test "$ISC" = yes; then
29691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29693 # Martyn Johnson says this is needed for Ultrix, if the X
29694 # libraries were built with DECnet support. And Karl Berry says
29695 # the Alpha needs dnet_stub (dnet does not exist).
29696 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29704 /* Override any GCC internal prototype to avoid an error.
29705 Use char because int might match the return type of a GCC
29706 builtin and then its argument prototype would still apply. */
29710 char XOpenDisplay ();
29714 return XOpenDisplay ();
29719 rm -f conftest.$ac_objext conftest$ac_exeext
29720 if { (ac_try="$ac_link"
29721 case "(($ac_try" in
29722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723 *) ac_try_echo=$ac_try;;
29725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726 (eval "$ac_link") 2>conftest.er1
29728 grep -v '^ *+' conftest.er1 >conftest.err
29730 cat conftest.err >&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); } && {
29733 test -z "$ac_c_werror_flag" ||
29734 test ! -s conftest.err
29735 } && test -s conftest$ac_exeext &&
29736 $as_test_x conftest$ac_exeext; then
29739 echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29742 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29743 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29744 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29745 echo $ECHO_N "(cached) $ECHO_C" >&6
29747 ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-ldnet $LIBS"
29749 cat >conftest.$ac_ext <<_ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h. */
29756 /* Override any GCC internal prototype to avoid an error.
29757 Use char because int might match the return type of a GCC
29758 builtin and then its argument prototype would still apply. */
29766 return dnet_ntoa ();
29771 rm -f conftest.$ac_objext conftest$ac_exeext
29772 if { (ac_try="$ac_link"
29773 case "(($ac_try" in
29774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29775 *) ac_try_echo=$ac_try;;
29777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29778 (eval "$ac_link") 2>conftest.er1
29780 grep -v '^ *+' conftest.er1 >conftest.err
29782 cat conftest.err >&5
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); } && {
29785 test -z "$ac_c_werror_flag" ||
29786 test ! -s conftest.err
29787 } && test -s conftest$ac_exeext &&
29788 $as_test_x conftest$ac_exeext; then
29789 ac_cv_lib_dnet_dnet_ntoa=yes
29791 echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.$ac_ext >&5
29794 ac_cv_lib_dnet_dnet_ntoa=no
29797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29798 conftest$ac_exeext conftest.$ac_ext
29799 LIBS=$ac_check_lib_save_LIBS
29801 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29802 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29803 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29804 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29807 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29808 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29809 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29810 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29811 echo $ECHO_N "(cached) $ECHO_C" >&6
29813 ac_check_lib_save_LIBS=$LIBS
29814 LIBS="-ldnet_stub $LIBS"
29815 cat >conftest.$ac_ext <<_ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h. */
29822 /* Override any GCC internal prototype to avoid an error.
29823 Use char because int might match the return type of a GCC
29824 builtin and then its argument prototype would still apply. */
29832 return dnet_ntoa ();
29837 rm -f conftest.$ac_objext conftest$ac_exeext
29838 if { (ac_try="$ac_link"
29839 case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_link") 2>conftest.er1
29846 grep -v '^ *+' conftest.er1 >conftest.err
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } && {
29851 test -z "$ac_c_werror_flag" ||
29852 test ! -s conftest.err
29853 } && test -s conftest$ac_exeext &&
29854 $as_test_x conftest$ac_exeext; then
29855 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29857 echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29860 ac_cv_lib_dnet_stub_dnet_ntoa=no
29863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29864 conftest$ac_exeext conftest.$ac_ext
29865 LIBS=$ac_check_lib_save_LIBS
29867 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29868 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29869 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29877 conftest$ac_exeext conftest.$ac_ext
29878 LIBS="$ac_xsave_LIBS"
29880 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29881 # to get the SysV transport functions.
29882 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29884 # The nsl library prevents programs from opening the X display
29885 # on Irix 5.2, according to T.E. Dickey.
29886 # The functions gethostbyname, getservbyname, and inet_addr are
29887 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29888 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29889 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29890 if test "${ac_cv_func_gethostbyname+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29893 cat >conftest.$ac_ext <<_ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h. */
29899 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29901 #define gethostbyname innocuous_gethostbyname
29903 /* System header to define __stub macros and hopefully few prototypes,
29904 which can conflict with char gethostbyname (); below.
29905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29906 <limits.h> exists even on freestanding compilers. */
29909 # include <limits.h>
29911 # include <assert.h>
29914 #undef gethostbyname
29916 /* Override any GCC internal prototype to avoid an error.
29917 Use char because int might match the return type of a GCC
29918 builtin and then its argument prototype would still apply. */
29922 char gethostbyname ();
29923 /* The GNU C library defines this for functions which it implements
29924 to always fail with ENOSYS. Some functions are actually named
29925 something starting with __ and the normal name is an alias. */
29926 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29933 return gethostbyname ();
29938 rm -f conftest.$ac_objext conftest$ac_exeext
29939 if { (ac_try="$ac_link"
29940 case "(($ac_try" in
29941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29942 *) ac_try_echo=$ac_try;;
29944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29945 (eval "$ac_link") 2>conftest.er1
29947 grep -v '^ *+' conftest.er1 >conftest.err
29949 cat conftest.err >&5
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } && {
29952 test -z "$ac_c_werror_flag" ||
29953 test ! -s conftest.err
29954 } && test -s conftest$ac_exeext &&
29955 $as_test_x conftest$ac_exeext; then
29956 ac_cv_func_gethostbyname=yes
29958 echo "$as_me: failed program was:" >&5
29959 sed 's/^/| /' conftest.$ac_ext >&5
29961 ac_cv_func_gethostbyname=no
29964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29965 conftest$ac_exeext conftest.$ac_ext
29967 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29968 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29970 if test $ac_cv_func_gethostbyname = no; then
29971 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29972 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29973 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29974 echo $ECHO_N "(cached) $ECHO_C" >&6
29976 ac_check_lib_save_LIBS=$LIBS
29978 cat >conftest.$ac_ext <<_ACEOF
29981 cat confdefs.h >>conftest.$ac_ext
29982 cat >>conftest.$ac_ext <<_ACEOF
29983 /* end confdefs.h. */
29985 /* Override any GCC internal prototype to avoid an error.
29986 Use char because int might match the return type of a GCC
29987 builtin and then its argument prototype would still apply. */
29991 char gethostbyname ();
29995 return gethostbyname ();
30000 rm -f conftest.$ac_objext conftest$ac_exeext
30001 if { (ac_try="$ac_link"
30002 case "(($ac_try" in
30003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30004 *) ac_try_echo=$ac_try;;
30006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30007 (eval "$ac_link") 2>conftest.er1
30009 grep -v '^ *+' conftest.er1 >conftest.err
30011 cat conftest.err >&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); } && {
30014 test -z "$ac_c_werror_flag" ||
30015 test ! -s conftest.err
30016 } && test -s conftest$ac_exeext &&
30017 $as_test_x conftest$ac_exeext; then
30018 ac_cv_lib_nsl_gethostbyname=yes
30020 echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30023 ac_cv_lib_nsl_gethostbyname=no
30026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30027 conftest$ac_exeext conftest.$ac_ext
30028 LIBS=$ac_check_lib_save_LIBS
30030 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30031 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30032 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30036 if test $ac_cv_lib_nsl_gethostbyname = no; then
30037 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30038 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30039 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30040 echo $ECHO_N "(cached) $ECHO_C" >&6
30042 ac_check_lib_save_LIBS=$LIBS
30044 cat >conftest.$ac_ext <<_ACEOF
30047 cat confdefs.h >>conftest.$ac_ext
30048 cat >>conftest.$ac_ext <<_ACEOF
30049 /* end confdefs.h. */
30051 /* Override any GCC internal prototype to avoid an error.
30052 Use char because int might match the return type of a GCC
30053 builtin and then its argument prototype would still apply. */
30057 char gethostbyname ();
30061 return gethostbyname ();
30066 rm -f conftest.$ac_objext conftest$ac_exeext
30067 if { (ac_try="$ac_link"
30068 case "(($ac_try" in
30069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30070 *) ac_try_echo=$ac_try;;
30072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30073 (eval "$ac_link") 2>conftest.er1
30075 grep -v '^ *+' conftest.er1 >conftest.err
30077 cat conftest.err >&5
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); } && {
30080 test -z "$ac_c_werror_flag" ||
30081 test ! -s conftest.err
30082 } && test -s conftest$ac_exeext &&
30083 $as_test_x conftest$ac_exeext; then
30084 ac_cv_lib_bsd_gethostbyname=yes
30086 echo "$as_me: failed program was:" >&5
30087 sed 's/^/| /' conftest.$ac_ext >&5
30089 ac_cv_lib_bsd_gethostbyname=no
30092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30093 conftest$ac_exeext conftest.$ac_ext
30094 LIBS=$ac_check_lib_save_LIBS
30096 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30097 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30098 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30099 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30105 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30106 # socket/setsockopt and other routines are undefined under SCO ODT
30107 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30108 # on later versions), says Simon Leinen: it contains gethostby*
30109 # variants that don't use the name server (or something). -lsocket
30110 # must be given before -lnsl if both are needed. We assume that
30111 # if connect needs -lnsl, so does gethostbyname.
30112 { echo "$as_me:$LINENO: checking for connect" >&5
30113 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30114 if test "${ac_cv_func_connect+set}" = set; then
30115 echo $ECHO_N "(cached) $ECHO_C" >&6
30117 cat >conftest.$ac_ext <<_ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30123 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30125 #define connect innocuous_connect
30127 /* System header to define __stub macros and hopefully few prototypes,
30128 which can conflict with char connect (); below.
30129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30130 <limits.h> exists even on freestanding compilers. */
30133 # include <limits.h>
30135 # include <assert.h>
30140 /* Override any GCC internal prototype to avoid an error.
30141 Use char because int might match the return type of a GCC
30142 builtin and then its argument prototype would still apply. */
30147 /* The GNU C library defines this for functions which it implements
30148 to always fail with ENOSYS. Some functions are actually named
30149 something starting with __ and the normal name is an alias. */
30150 #if defined __stub_connect || defined __stub___connect
30162 rm -f conftest.$ac_objext conftest$ac_exeext
30163 if { (ac_try="$ac_link"
30164 case "(($ac_try" in
30165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30166 *) ac_try_echo=$ac_try;;
30168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30169 (eval "$ac_link") 2>conftest.er1
30171 grep -v '^ *+' conftest.er1 >conftest.err
30173 cat conftest.err >&5
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } && {
30176 test -z "$ac_c_werror_flag" ||
30177 test ! -s conftest.err
30178 } && test -s conftest$ac_exeext &&
30179 $as_test_x conftest$ac_exeext; then
30180 ac_cv_func_connect=yes
30182 echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30185 ac_cv_func_connect=no
30188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30189 conftest$ac_exeext conftest.$ac_ext
30191 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30192 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30194 if test $ac_cv_func_connect = no; then
30195 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30196 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30197 if test "${ac_cv_lib_socket_connect+set}" = set; then
30198 echo $ECHO_N "(cached) $ECHO_C" >&6
30200 ac_check_lib_save_LIBS=$LIBS
30201 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30202 cat >conftest.$ac_ext <<_ACEOF
30205 cat confdefs.h >>conftest.$ac_ext
30206 cat >>conftest.$ac_ext <<_ACEOF
30207 /* end confdefs.h. */
30209 /* Override any GCC internal prototype to avoid an error.
30210 Use char because int might match the return type of a GCC
30211 builtin and then its argument prototype would still apply. */
30224 rm -f conftest.$ac_objext conftest$ac_exeext
30225 if { (ac_try="$ac_link"
30226 case "(($ac_try" in
30227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30228 *) ac_try_echo=$ac_try;;
30230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30231 (eval "$ac_link") 2>conftest.er1
30233 grep -v '^ *+' conftest.er1 >conftest.err
30235 cat conftest.err >&5
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); } && {
30238 test -z "$ac_c_werror_flag" ||
30239 test ! -s conftest.err
30240 } && test -s conftest$ac_exeext &&
30241 $as_test_x conftest$ac_exeext; then
30242 ac_cv_lib_socket_connect=yes
30244 echo "$as_me: failed program was:" >&5
30245 sed 's/^/| /' conftest.$ac_ext >&5
30247 ac_cv_lib_socket_connect=no
30250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30251 conftest$ac_exeext conftest.$ac_ext
30252 LIBS=$ac_check_lib_save_LIBS
30254 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30255 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30256 if test $ac_cv_lib_socket_connect = yes; then
30257 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30262 # Guillermo Gomez says -lposix is necessary on A/UX.
30263 { echo "$as_me:$LINENO: checking for remove" >&5
30264 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30265 if test "${ac_cv_func_remove+set}" = set; then
30266 echo $ECHO_N "(cached) $ECHO_C" >&6
30268 cat >conftest.$ac_ext <<_ACEOF
30271 cat confdefs.h >>conftest.$ac_ext
30272 cat >>conftest.$ac_ext <<_ACEOF
30273 /* end confdefs.h. */
30274 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30276 #define remove innocuous_remove
30278 /* System header to define __stub macros and hopefully few prototypes,
30279 which can conflict with char remove (); below.
30280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30281 <limits.h> exists even on freestanding compilers. */
30284 # include <limits.h>
30286 # include <assert.h>
30291 /* Override any GCC internal prototype to avoid an error.
30292 Use char because int might match the return type of a GCC
30293 builtin and then its argument prototype would still apply. */
30298 /* The GNU C library defines this for functions which it implements
30299 to always fail with ENOSYS. Some functions are actually named
30300 something starting with __ and the normal name is an alias. */
30301 #if defined __stub_remove || defined __stub___remove
30313 rm -f conftest.$ac_objext conftest$ac_exeext
30314 if { (ac_try="$ac_link"
30315 case "(($ac_try" in
30316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317 *) ac_try_echo=$ac_try;;
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320 (eval "$ac_link") 2>conftest.er1
30322 grep -v '^ *+' conftest.er1 >conftest.err
30324 cat conftest.err >&5
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } && {
30327 test -z "$ac_c_werror_flag" ||
30328 test ! -s conftest.err
30329 } && test -s conftest$ac_exeext &&
30330 $as_test_x conftest$ac_exeext; then
30331 ac_cv_func_remove=yes
30333 echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30336 ac_cv_func_remove=no
30339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30340 conftest$ac_exeext conftest.$ac_ext
30342 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30343 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30345 if test $ac_cv_func_remove = no; then
30346 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30347 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30348 if test "${ac_cv_lib_posix_remove+set}" = set; then
30349 echo $ECHO_N "(cached) $ECHO_C" >&6
30351 ac_check_lib_save_LIBS=$LIBS
30352 LIBS="-lposix $LIBS"
30353 cat >conftest.$ac_ext <<_ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h. */
30360 /* Override any GCC internal prototype to avoid an error.
30361 Use char because int might match the return type of a GCC
30362 builtin and then its argument prototype would still apply. */
30375 rm -f conftest.$ac_objext conftest$ac_exeext
30376 if { (ac_try="$ac_link"
30377 case "(($ac_try" in
30378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379 *) ac_try_echo=$ac_try;;
30381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382 (eval "$ac_link") 2>conftest.er1
30384 grep -v '^ *+' conftest.er1 >conftest.err
30386 cat conftest.err >&5
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); } && {
30389 test -z "$ac_c_werror_flag" ||
30390 test ! -s conftest.err
30391 } && test -s conftest$ac_exeext &&
30392 $as_test_x conftest$ac_exeext; then
30393 ac_cv_lib_posix_remove=yes
30395 echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30398 ac_cv_lib_posix_remove=no
30401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30402 conftest$ac_exeext conftest.$ac_ext
30403 LIBS=$ac_check_lib_save_LIBS
30405 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30406 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30407 if test $ac_cv_lib_posix_remove = yes; then
30408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30413 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30414 { echo "$as_me:$LINENO: checking for shmat" >&5
30415 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30416 if test "${ac_cv_func_shmat+set}" = set; then
30417 echo $ECHO_N "(cached) $ECHO_C" >&6
30419 cat >conftest.$ac_ext <<_ACEOF
30422 cat confdefs.h >>conftest.$ac_ext
30423 cat >>conftest.$ac_ext <<_ACEOF
30424 /* end confdefs.h. */
30425 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30427 #define shmat innocuous_shmat
30429 /* System header to define __stub macros and hopefully few prototypes,
30430 which can conflict with char shmat (); below.
30431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30432 <limits.h> exists even on freestanding compilers. */
30435 # include <limits.h>
30437 # include <assert.h>
30442 /* Override any GCC internal prototype to avoid an error.
30443 Use char because int might match the return type of a GCC
30444 builtin and then its argument prototype would still apply. */
30449 /* The GNU C library defines this for functions which it implements
30450 to always fail with ENOSYS. Some functions are actually named
30451 something starting with __ and the normal name is an alias. */
30452 #if defined __stub_shmat || defined __stub___shmat
30464 rm -f conftest.$ac_objext conftest$ac_exeext
30465 if { (ac_try="$ac_link"
30466 case "(($ac_try" in
30467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468 *) ac_try_echo=$ac_try;;
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471 (eval "$ac_link") 2>conftest.er1
30473 grep -v '^ *+' conftest.er1 >conftest.err
30475 cat conftest.err >&5
30476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477 (exit $ac_status); } && {
30478 test -z "$ac_c_werror_flag" ||
30479 test ! -s conftest.err
30480 } && test -s conftest$ac_exeext &&
30481 $as_test_x conftest$ac_exeext; then
30482 ac_cv_func_shmat=yes
30484 echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30487 ac_cv_func_shmat=no
30490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30491 conftest$ac_exeext conftest.$ac_ext
30493 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30494 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30496 if test $ac_cv_func_shmat = no; then
30497 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30498 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30499 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30500 echo $ECHO_N "(cached) $ECHO_C" >&6
30502 ac_check_lib_save_LIBS=$LIBS
30504 cat >conftest.$ac_ext <<_ACEOF
30507 cat confdefs.h >>conftest.$ac_ext
30508 cat >>conftest.$ac_ext <<_ACEOF
30509 /* end confdefs.h. */
30511 /* Override any GCC internal prototype to avoid an error.
30512 Use char because int might match the return type of a GCC
30513 builtin and then its argument prototype would still apply. */
30526 rm -f conftest.$ac_objext conftest$ac_exeext
30527 if { (ac_try="$ac_link"
30528 case "(($ac_try" in
30529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530 *) ac_try_echo=$ac_try;;
30532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533 (eval "$ac_link") 2>conftest.er1
30535 grep -v '^ *+' conftest.er1 >conftest.err
30537 cat conftest.err >&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); } && {
30540 test -z "$ac_c_werror_flag" ||
30541 test ! -s conftest.err
30542 } && test -s conftest$ac_exeext &&
30543 $as_test_x conftest$ac_exeext; then
30544 ac_cv_lib_ipc_shmat=yes
30546 echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30549 ac_cv_lib_ipc_shmat=no
30552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30553 conftest$ac_exeext conftest.$ac_ext
30554 LIBS=$ac_check_lib_save_LIBS
30556 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30557 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30558 if test $ac_cv_lib_ipc_shmat = yes; then
30559 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30565 # Check for libraries that X11R6 Xt/Xaw programs need.
30566 ac_save_LDFLAGS=$LDFLAGS
30567 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30568 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30569 # check for ICE first), but we must link in the order -lSM -lICE or
30570 # we get undefined symbols. So assume we have SM if we have ICE.
30571 # These have to be linked with before -lX11, unlike the other
30572 # libraries we check for below, so use a different variable.
30573 # John Interrante, Karl Berry
30574 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30575 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30576 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30577 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 ac_check_lib_save_LIBS=$LIBS
30580 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30581 cat >conftest.$ac_ext <<_ACEOF
30584 cat confdefs.h >>conftest.$ac_ext
30585 cat >>conftest.$ac_ext <<_ACEOF
30586 /* end confdefs.h. */
30588 /* Override any GCC internal prototype to avoid an error.
30589 Use char because int might match the return type of a GCC
30590 builtin and then its argument prototype would still apply. */
30594 char IceConnectionNumber ();
30598 return IceConnectionNumber ();
30603 rm -f conftest.$ac_objext conftest$ac_exeext
30604 if { (ac_try="$ac_link"
30605 case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_link") 2>conftest.er1
30612 grep -v '^ *+' conftest.er1 >conftest.err
30614 cat conftest.err >&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); } && {
30617 test -z "$ac_c_werror_flag" ||
30618 test ! -s conftest.err
30619 } && test -s conftest$ac_exeext &&
30620 $as_test_x conftest$ac_exeext; then
30621 ac_cv_lib_ICE_IceConnectionNumber=yes
30623 echo "$as_me: failed program was:" >&5
30624 sed 's/^/| /' conftest.$ac_ext >&5
30626 ac_cv_lib_ICE_IceConnectionNumber=no
30629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30630 conftest$ac_exeext conftest.$ac_ext
30631 LIBS=$ac_check_lib_save_LIBS
30633 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30634 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30635 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30636 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30639 LDFLAGS=$ac_save_LDFLAGS
30705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30712 ac_res=`eval echo '${'$as_ac_Header'}'`
30713 { echo "$as_me:$LINENO: result: $ac_res" >&5
30714 echo "${ECHO_T}$ac_res" >&6; }
30716 # Is the header compilable?
30717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30719 cat >conftest.$ac_ext <<_ACEOF
30722 cat confdefs.h >>conftest.$ac_ext
30723 cat >>conftest.$ac_ext <<_ACEOF
30724 /* end confdefs.h. */
30725 $ac_includes_default
30726 #include <$ac_header>
30728 rm -f conftest.$ac_objext
30729 if { (ac_try="$ac_compile"
30730 case "(($ac_try" in
30731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30732 *) ac_try_echo=$ac_try;;
30734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30735 (eval "$ac_compile") 2>conftest.er1
30737 grep -v '^ *+' conftest.er1 >conftest.err
30739 cat conftest.err >&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); } && {
30742 test -z "$ac_c_werror_flag" ||
30743 test ! -s conftest.err
30744 } && test -s conftest.$ac_objext; then
30745 ac_header_compiler=yes
30747 echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30750 ac_header_compiler=no
30753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30755 echo "${ECHO_T}$ac_header_compiler" >&6; }
30757 # Is the header present?
30758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30760 cat >conftest.$ac_ext <<_ACEOF
30763 cat confdefs.h >>conftest.$ac_ext
30764 cat >>conftest.$ac_ext <<_ACEOF
30765 /* end confdefs.h. */
30766 #include <$ac_header>
30768 if { (ac_try="$ac_cpp conftest.$ac_ext"
30769 case "(($ac_try" in
30770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771 *) ac_try_echo=$ac_try;;
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30776 grep -v '^ *+' conftest.er1 >conftest.err
30778 cat conftest.err >&5
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); } >/dev/null && {
30781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30782 test ! -s conftest.err
30784 ac_header_preproc=yes
30786 echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30789 ac_header_preproc=no
30792 rm -f conftest.err conftest.$ac_ext
30793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30794 echo "${ECHO_T}$ac_header_preproc" >&6; }
30796 # So? What about this header?
30797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30803 ac_header_preproc=yes
30806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30824 echo $ECHO_N "(cached) $ECHO_C" >&6
30826 eval "$as_ac_Header=\$ac_header_preproc"
30828 ac_res=`eval echo '${'$as_ac_Header'}'`
30829 { echo "$as_me:$LINENO: result: $ac_res" >&5
30830 echo "${ECHO_T}$ac_res" >&6; }
30833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30834 cat >>confdefs.h <<_ACEOF
30835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30844 if test "${ac_cv_header_stdc+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30847 cat >conftest.$ac_ext <<_ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h. */
30853 #include <stdlib.h>
30854 #include <stdarg.h>
30855 #include <string.h>
30866 rm -f conftest.$ac_objext
30867 if { (ac_try="$ac_compile"
30868 case "(($ac_try" in
30869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30870 *) ac_try_echo=$ac_try;;
30872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30873 (eval "$ac_compile") 2>conftest.er1
30875 grep -v '^ *+' conftest.er1 >conftest.err
30877 cat conftest.err >&5
30878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879 (exit $ac_status); } && {
30880 test -z "$ac_c_werror_flag" ||
30881 test ! -s conftest.err
30882 } && test -s conftest.$ac_objext; then
30883 ac_cv_header_stdc=yes
30885 echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30888 ac_cv_header_stdc=no
30891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30893 if test $ac_cv_header_stdc = yes; then
30894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30895 cat >conftest.$ac_ext <<_ACEOF
30898 cat confdefs.h >>conftest.$ac_ext
30899 cat >>conftest.$ac_ext <<_ACEOF
30900 /* end confdefs.h. */
30901 #include <string.h>
30904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30905 $EGREP "memchr" >/dev/null 2>&1; then
30908 ac_cv_header_stdc=no
30914 if test $ac_cv_header_stdc = yes; then
30915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30916 cat >conftest.$ac_ext <<_ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h. */
30922 #include <stdlib.h>
30925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30926 $EGREP "free" >/dev/null 2>&1; then
30929 ac_cv_header_stdc=no
30935 if test $ac_cv_header_stdc = yes; then
30936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30937 if test "$cross_compiling" = yes; then
30940 cat >conftest.$ac_ext <<_ACEOF
30943 cat confdefs.h >>conftest.$ac_ext
30944 cat >>conftest.$ac_ext <<_ACEOF
30945 /* end confdefs.h. */
30947 #include <stdlib.h>
30948 #if ((' ' & 0x0FF) == 0x020)
30949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30952 # define ISLOWER(c) \
30953 (('a' <= (c) && (c) <= 'i') \
30954 || ('j' <= (c) && (c) <= 'r') \
30955 || ('s' <= (c) && (c) <= 'z'))
30956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30964 for (i = 0; i < 256; i++)
30965 if (XOR (islower (i), ISLOWER (i))
30966 || toupper (i) != TOUPPER (i))
30971 rm -f conftest$ac_exeext
30972 if { (ac_try="$ac_link"
30973 case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_link") 2>&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
30993 echo "$as_me: program exited with status $ac_status" >&5
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30997 ( exit $ac_status )
30998 ac_cv_header_stdc=no
31000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31008 if test $ac_cv_header_stdc = yes; then
31010 cat >>confdefs.h <<\_ACEOF
31011 #define STDC_HEADERS 1
31016 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31017 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31018 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31019 echo $ECHO_N "(cached) $ECHO_C" >&6
31021 cat >conftest.$ac_ext <<_ACEOF
31024 cat confdefs.h >>conftest.$ac_ext
31025 cat >>conftest.$ac_ext <<_ACEOF
31026 /* end confdefs.h. */
31027 #include <sys/types.h>
31031 return makedev(0, 0);
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (ac_try="$ac_link"
31038 case "(($ac_try" in
31039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040 *) ac_try_echo=$ac_try;;
31042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043 (eval "$ac_link") 2>conftest.er1
31045 grep -v '^ *+' conftest.er1 >conftest.err
31047 cat conftest.err >&5
31048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049 (exit $ac_status); } && {
31050 test -z "$ac_c_werror_flag" ||
31051 test ! -s conftest.err
31052 } && test -s conftest$ac_exeext &&
31053 $as_test_x conftest$ac_exeext; then
31054 ac_cv_header_sys_types_h_makedev=yes
31056 echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31059 ac_cv_header_sys_types_h_makedev=no
31062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31063 conftest$ac_exeext conftest.$ac_ext
31066 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31067 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31069 if test $ac_cv_header_sys_types_h_makedev = no; then
31070 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31071 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31072 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31073 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31074 echo $ECHO_N "(cached) $ECHO_C" >&6
31076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31077 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31079 # Is the header compilable?
31080 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31081 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31082 cat >conftest.$ac_ext <<_ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31088 $ac_includes_default
31089 #include <sys/mkdev.h>
31091 rm -f conftest.$ac_objext
31092 if { (ac_try="$ac_compile"
31093 case "(($ac_try" in
31094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31095 *) ac_try_echo=$ac_try;;
31097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31098 (eval "$ac_compile") 2>conftest.er1
31100 grep -v '^ *+' conftest.er1 >conftest.err
31102 cat conftest.err >&5
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); } && {
31105 test -z "$ac_c_werror_flag" ||
31106 test ! -s conftest.err
31107 } && test -s conftest.$ac_objext; then
31108 ac_header_compiler=yes
31110 echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31113 ac_header_compiler=no
31116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31118 echo "${ECHO_T}$ac_header_compiler" >&6; }
31120 # Is the header present?
31121 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31122 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31123 cat >conftest.$ac_ext <<_ACEOF
31126 cat confdefs.h >>conftest.$ac_ext
31127 cat >>conftest.$ac_ext <<_ACEOF
31128 /* end confdefs.h. */
31129 #include <sys/mkdev.h>
31131 if { (ac_try="$ac_cpp conftest.$ac_ext"
31132 case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31139 grep -v '^ *+' conftest.er1 >conftest.err
31141 cat conftest.err >&5
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } >/dev/null && {
31144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31145 test ! -s conftest.err
31147 ac_header_preproc=yes
31149 echo "$as_me: failed program was:" >&5
31150 sed 's/^/| /' conftest.$ac_ext >&5
31152 ac_header_preproc=no
31155 rm -f conftest.err conftest.$ac_ext
31156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31157 echo "${ECHO_T}$ac_header_preproc" >&6; }
31159 # So? What about this header?
31160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31162 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31163 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31164 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31165 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31166 ac_header_preproc=yes
31169 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31170 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31171 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31172 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31173 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31174 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31176 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31177 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31178 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31179 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31180 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31184 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31185 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31186 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31187 echo $ECHO_N "(cached) $ECHO_C" >&6
31189 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31191 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31192 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31195 if test $ac_cv_header_sys_mkdev_h = yes; then
31197 cat >>confdefs.h <<\_ACEOF
31198 #define MAJOR_IN_MKDEV 1
31205 if test $ac_cv_header_sys_mkdev_h = no; then
31206 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31207 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31208 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31209 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31210 echo $ECHO_N "(cached) $ECHO_C" >&6
31212 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31213 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31215 # Is the header compilable?
31216 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31217 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31218 cat >conftest.$ac_ext <<_ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h. */
31224 $ac_includes_default
31225 #include <sys/sysmacros.h>
31227 rm -f conftest.$ac_objext
31228 if { (ac_try="$ac_compile"
31229 case "(($ac_try" in
31230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231 *) ac_try_echo=$ac_try;;
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234 (eval "$ac_compile") 2>conftest.er1
31236 grep -v '^ *+' conftest.er1 >conftest.err
31238 cat conftest.err >&5
31239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240 (exit $ac_status); } && {
31241 test -z "$ac_c_werror_flag" ||
31242 test ! -s conftest.err
31243 } && test -s conftest.$ac_objext; then
31244 ac_header_compiler=yes
31246 echo "$as_me: failed program was:" >&5
31247 sed 's/^/| /' conftest.$ac_ext >&5
31249 ac_header_compiler=no
31252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31254 echo "${ECHO_T}$ac_header_compiler" >&6; }
31256 # Is the header present?
31257 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31258 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31259 cat >conftest.$ac_ext <<_ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h. */
31265 #include <sys/sysmacros.h>
31267 if { (ac_try="$ac_cpp conftest.$ac_ext"
31268 case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31275 grep -v '^ *+' conftest.er1 >conftest.err
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } >/dev/null && {
31280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31281 test ! -s conftest.err
31283 ac_header_preproc=yes
31285 echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31288 ac_header_preproc=no
31291 rm -f conftest.err conftest.$ac_ext
31292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31293 echo "${ECHO_T}$ac_header_preproc" >&6; }
31295 # So? What about this header?
31296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31298 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31299 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31300 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31301 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31302 ac_header_preproc=yes
31305 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31306 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31307 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31308 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31310 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31312 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31313 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31314 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31315 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31316 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31320 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31325 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31327 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31328 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31331 if test $ac_cv_header_sys_sysmacros_h = yes; then
31333 cat >>confdefs.h <<\_ACEOF
31334 #define MAJOR_IN_SYSMACROS 1
31348 ac_header_dirent=no
31349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31351 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31356 cat >conftest.$ac_ext <<_ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31362 #include <sys/types.h>
31374 rm -f conftest.$ac_objext
31375 if { (ac_try="$ac_compile"
31376 case "(($ac_try" in
31377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31378 *) ac_try_echo=$ac_try;;
31380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31381 (eval "$ac_compile") 2>conftest.er1
31383 grep -v '^ *+' conftest.er1 >conftest.err
31385 cat conftest.err >&5
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); } && {
31388 test -z "$ac_c_werror_flag" ||
31389 test ! -s conftest.err
31390 } && test -s conftest.$ac_objext; then
31391 eval "$as_ac_Header=yes"
31393 echo "$as_me: failed program was:" >&5
31394 sed 's/^/| /' conftest.$ac_ext >&5
31396 eval "$as_ac_Header=no"
31399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31401 ac_res=`eval echo '${'$as_ac_Header'}'`
31402 { echo "$as_me:$LINENO: result: $ac_res" >&5
31403 echo "${ECHO_T}$ac_res" >&6; }
31404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31405 cat >>confdefs.h <<_ACEOF
31406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31409 ac_header_dirent=$ac_hdr; break
31413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31414 if test $ac_header_dirent = dirent.h; then
31415 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31417 if test "${ac_cv_search_opendir+set}" = set; then
31418 echo $ECHO_N "(cached) $ECHO_C" >&6
31420 ac_func_search_save_LIBS=$LIBS
31421 cat >conftest.$ac_ext <<_ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h. */
31428 /* Override any GCC internal prototype to avoid an error.
31429 Use char because int might match the return type of a GCC
31430 builtin and then its argument prototype would still apply. */
31443 for ac_lib in '' dir; do
31444 if test -z "$ac_lib"; then
31445 ac_res="none required"
31448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31450 rm -f conftest.$ac_objext conftest$ac_exeext
31451 if { (ac_try="$ac_link"
31452 case "(($ac_try" in
31453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31454 *) ac_try_echo=$ac_try;;
31456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31457 (eval "$ac_link") 2>conftest.er1
31459 grep -v '^ *+' conftest.er1 >conftest.err
31461 cat conftest.err >&5
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); } && {
31464 test -z "$ac_c_werror_flag" ||
31465 test ! -s conftest.err
31466 } && test -s conftest$ac_exeext &&
31467 $as_test_x conftest$ac_exeext; then
31468 ac_cv_search_opendir=$ac_res
31470 echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31478 if test "${ac_cv_search_opendir+set}" = set; then
31482 if test "${ac_cv_search_opendir+set}" = set; then
31485 ac_cv_search_opendir=no
31487 rm conftest.$ac_ext
31488 LIBS=$ac_func_search_save_LIBS
31490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31492 ac_res=$ac_cv_search_opendir
31493 if test "$ac_res" != no; then
31494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31499 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31501 if test "${ac_cv_search_opendir+set}" = set; then
31502 echo $ECHO_N "(cached) $ECHO_C" >&6
31504 ac_func_search_save_LIBS=$LIBS
31505 cat >conftest.$ac_ext <<_ACEOF
31508 cat confdefs.h >>conftest.$ac_ext
31509 cat >>conftest.$ac_ext <<_ACEOF
31510 /* end confdefs.h. */
31512 /* Override any GCC internal prototype to avoid an error.
31513 Use char because int might match the return type of a GCC
31514 builtin and then its argument prototype would still apply. */
31527 for ac_lib in '' x; do
31528 if test -z "$ac_lib"; then
31529 ac_res="none required"
31532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31534 rm -f conftest.$ac_objext conftest$ac_exeext
31535 if { (ac_try="$ac_link"
31536 case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_link") 2>conftest.er1
31543 grep -v '^ *+' conftest.er1 >conftest.err
31545 cat conftest.err >&5
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); } && {
31548 test -z "$ac_c_werror_flag" ||
31549 test ! -s conftest.err
31550 } && test -s conftest$ac_exeext &&
31551 $as_test_x conftest$ac_exeext; then
31552 ac_cv_search_opendir=$ac_res
31554 echo "$as_me: failed program was:" >&5
31555 sed 's/^/| /' conftest.$ac_ext >&5
31560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31562 if test "${ac_cv_search_opendir+set}" = set; then
31566 if test "${ac_cv_search_opendir+set}" = set; then
31569 ac_cv_search_opendir=no
31571 rm conftest.$ac_ext
31572 LIBS=$ac_func_search_save_LIBS
31574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31576 ac_res=$ac_cv_search_opendir
31577 if test "$ac_res" != no; then
31578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31584 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31585 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31586 if test "${ac_cv_header_stat_broken+set}" = set; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31589 cat >conftest.$ac_ext <<_ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595 #include <sys/types.h>
31596 #include <sys/stat.h>
31598 #if defined S_ISBLK && defined S_IFDIR
31599 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31602 #if defined S_ISBLK && defined S_IFCHR
31603 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31606 #if defined S_ISLNK && defined S_IFREG
31607 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31610 #if defined S_ISSOCK && defined S_IFREG
31611 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31615 rm -f conftest.$ac_objext
31616 if { (ac_try="$ac_compile"
31617 case "(($ac_try" in
31618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31619 *) ac_try_echo=$ac_try;;
31621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31622 (eval "$ac_compile") 2>conftest.er1
31624 grep -v '^ *+' conftest.er1 >conftest.err
31626 cat conftest.err >&5
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); } && {
31629 test -z "$ac_c_werror_flag" ||
31630 test ! -s conftest.err
31631 } && test -s conftest.$ac_objext; then
31632 ac_cv_header_stat_broken=no
31634 echo "$as_me: failed program was:" >&5
31635 sed 's/^/| /' conftest.$ac_ext >&5
31637 ac_cv_header_stat_broken=yes
31640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31642 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31643 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31644 if test $ac_cv_header_stat_broken = yes; then
31646 cat >>confdefs.h <<\_ACEOF
31647 #define STAT_MACROS_BROKEN 1
31652 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31653 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31654 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31657 cat >conftest.$ac_ext <<_ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h. */
31663 #include <sys/types.h>
31664 #include <sys/wait.h>
31665 #ifndef WEXITSTATUS
31666 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31677 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31682 rm -f conftest.$ac_objext
31683 if { (ac_try="$ac_compile"
31684 case "(($ac_try" in
31685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31686 *) ac_try_echo=$ac_try;;
31688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31689 (eval "$ac_compile") 2>conftest.er1
31691 grep -v '^ *+' conftest.er1 >conftest.err
31693 cat conftest.err >&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } && {
31696 test -z "$ac_c_werror_flag" ||
31697 test ! -s conftest.err
31698 } && test -s conftest.$ac_objext; then
31699 ac_cv_header_sys_wait_h=yes
31701 echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31704 ac_cv_header_sys_wait_h=no
31707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31709 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31710 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31711 if test $ac_cv_header_sys_wait_h = yes; then
31713 cat >>confdefs.h <<\_ACEOF
31714 #define HAVE_SYS_WAIT_H 1
31719 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31720 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31721 if test "${ac_cv_header_time+set}" = set; then
31722 echo $ECHO_N "(cached) $ECHO_C" >&6
31724 cat >conftest.$ac_ext <<_ACEOF
31727 cat confdefs.h >>conftest.$ac_ext
31728 cat >>conftest.$ac_ext <<_ACEOF
31729 /* end confdefs.h. */
31730 #include <sys/types.h>
31731 #include <sys/time.h>
31737 if ((struct tm *) 0)
31743 rm -f conftest.$ac_objext
31744 if { (ac_try="$ac_compile"
31745 case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_compile") 2>conftest.er1
31752 grep -v '^ *+' conftest.er1 >conftest.err
31754 cat conftest.err >&5
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); } && {
31757 test -z "$ac_c_werror_flag" ||
31758 test ! -s conftest.err
31759 } && test -s conftest.$ac_objext; then
31760 ac_cv_header_time=yes
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 ac_cv_header_time=no
31768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31770 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31771 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31772 if test $ac_cv_header_time = yes; then
31774 cat >>confdefs.h <<\_ACEOF
31775 #define TIME_WITH_SYS_TIME 1
31780 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31781 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31782 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31783 echo $ECHO_N "(cached) $ECHO_C" >&6
31785 cat >conftest.$ac_ext <<_ACEOF
31788 cat confdefs.h >>conftest.$ac_ext
31789 cat >>conftest.$ac_ext <<_ACEOF
31790 /* end confdefs.h. */
31791 $ac_includes_default
31795 static struct stat ac_aggr;
31796 if (ac_aggr.st_blksize)
31802 rm -f conftest.$ac_objext
31803 if { (ac_try="$ac_compile"
31804 case "(($ac_try" in
31805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806 *) ac_try_echo=$ac_try;;
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809 (eval "$ac_compile") 2>conftest.er1
31811 grep -v '^ *+' conftest.er1 >conftest.err
31813 cat conftest.err >&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); } && {
31816 test -z "$ac_c_werror_flag" ||
31817 test ! -s conftest.err
31818 } && test -s conftest.$ac_objext; then
31819 ac_cv_member_struct_stat_st_blksize=yes
31821 echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 cat >conftest.$ac_ext <<_ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h. */
31830 $ac_includes_default
31834 static struct stat ac_aggr;
31835 if (sizeof ac_aggr.st_blksize)
31841 rm -f conftest.$ac_objext
31842 if { (ac_try="$ac_compile"
31843 case "(($ac_try" in
31844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845 *) ac_try_echo=$ac_try;;
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848 (eval "$ac_compile") 2>conftest.er1
31850 grep -v '^ *+' conftest.er1 >conftest.err
31852 cat conftest.err >&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); } && {
31855 test -z "$ac_c_werror_flag" ||
31856 test ! -s conftest.err
31857 } && test -s conftest.$ac_objext; then
31858 ac_cv_member_struct_stat_st_blksize=yes
31860 echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31863 ac_cv_member_struct_stat_st_blksize=no
31866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31873 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31875 cat >>confdefs.h <<_ACEOF
31876 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_ST_BLKSIZE 1
31887 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31888 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31889 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31890 echo $ECHO_N "(cached) $ECHO_C" >&6
31892 cat >conftest.$ac_ext <<_ACEOF
31895 cat confdefs.h >>conftest.$ac_ext
31896 cat >>conftest.$ac_ext <<_ACEOF
31897 /* end confdefs.h. */
31898 $ac_includes_default
31902 static struct stat ac_aggr;
31903 if (ac_aggr.st_blocks)
31909 rm -f conftest.$ac_objext
31910 if { (ac_try="$ac_compile"
31911 case "(($ac_try" in
31912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913 *) ac_try_echo=$ac_try;;
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916 (eval "$ac_compile") 2>conftest.er1
31918 grep -v '^ *+' conftest.er1 >conftest.err
31920 cat conftest.err >&5
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); } && {
31923 test -z "$ac_c_werror_flag" ||
31924 test ! -s conftest.err
31925 } && test -s conftest.$ac_objext; then
31926 ac_cv_member_struct_stat_st_blocks=yes
31928 echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31931 cat >conftest.$ac_ext <<_ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31937 $ac_includes_default
31941 static struct stat ac_aggr;
31942 if (sizeof ac_aggr.st_blocks)
31948 rm -f conftest.$ac_objext
31949 if { (ac_try="$ac_compile"
31950 case "(($ac_try" in
31951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952 *) ac_try_echo=$ac_try;;
31954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955 (eval "$ac_compile") 2>conftest.er1
31957 grep -v '^ *+' conftest.er1 >conftest.err
31959 cat conftest.err >&5
31960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961 (exit $ac_status); } && {
31962 test -z "$ac_c_werror_flag" ||
31963 test ! -s conftest.err
31964 } && test -s conftest.$ac_objext; then
31965 ac_cv_member_struct_stat_st_blocks=yes
31967 echo "$as_me: failed program was:" >&5
31968 sed 's/^/| /' conftest.$ac_ext >&5
31970 ac_cv_member_struct_stat_st_blocks=no
31973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31978 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31979 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31980 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31982 cat >>confdefs.h <<_ACEOF
31983 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31987 cat >>confdefs.h <<\_ACEOF
31988 #define HAVE_ST_BLOCKS 1
31992 case " $LIBOBJS " in
31993 *" fileblocks.$ac_objext "* ) ;;
31994 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32001 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32002 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32003 if test "${ac_cv_struct_tm+set}" = set; then
32004 echo $ECHO_N "(cached) $ECHO_C" >&6
32006 cat >conftest.$ac_ext <<_ACEOF
32009 cat confdefs.h >>conftest.$ac_ext
32010 cat >>conftest.$ac_ext <<_ACEOF
32011 /* end confdefs.h. */
32012 #include <sys/types.h>
32019 int *p = &tm.tm_sec;
32025 rm -f conftest.$ac_objext
32026 if { (ac_try="$ac_compile"
32027 case "(($ac_try" in
32028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32029 *) ac_try_echo=$ac_try;;
32031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32032 (eval "$ac_compile") 2>conftest.er1
32034 grep -v '^ *+' conftest.er1 >conftest.err
32036 cat conftest.err >&5
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); } && {
32039 test -z "$ac_c_werror_flag" ||
32040 test ! -s conftest.err
32041 } && test -s conftest.$ac_objext; then
32042 ac_cv_struct_tm=time.h
32044 echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32047 ac_cv_struct_tm=sys/time.h
32050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32052 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32053 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32054 if test $ac_cv_struct_tm = sys/time.h; then
32056 cat >>confdefs.h <<\_ACEOF
32057 #define TM_IN_SYS_TIME 1
32062 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32063 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32064 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32065 echo $ECHO_N "(cached) $ECHO_C" >&6
32067 cat >conftest.$ac_ext <<_ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h. */
32073 #include <sys/types.h>
32074 #include <$ac_cv_struct_tm>
32080 static struct tm ac_aggr;
32081 if (ac_aggr.tm_zone)
32087 rm -f conftest.$ac_objext
32088 if { (ac_try="$ac_compile"
32089 case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_compile") 2>conftest.er1
32096 grep -v '^ *+' conftest.er1 >conftest.err
32098 cat conftest.err >&5
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } && {
32101 test -z "$ac_c_werror_flag" ||
32102 test ! -s conftest.err
32103 } && test -s conftest.$ac_objext; then
32104 ac_cv_member_struct_tm_tm_zone=yes
32106 echo "$as_me: failed program was:" >&5
32107 sed 's/^/| /' conftest.$ac_ext >&5
32109 cat >conftest.$ac_ext <<_ACEOF
32112 cat confdefs.h >>conftest.$ac_ext
32113 cat >>conftest.$ac_ext <<_ACEOF
32114 /* end confdefs.h. */
32115 #include <sys/types.h>
32116 #include <$ac_cv_struct_tm>
32122 static struct tm ac_aggr;
32123 if (sizeof ac_aggr.tm_zone)
32129 rm -f conftest.$ac_objext
32130 if { (ac_try="$ac_compile"
32131 case "(($ac_try" in
32132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32133 *) ac_try_echo=$ac_try;;
32135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32136 (eval "$ac_compile") 2>conftest.er1
32138 grep -v '^ *+' conftest.er1 >conftest.err
32140 cat conftest.err >&5
32141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142 (exit $ac_status); } && {
32143 test -z "$ac_c_werror_flag" ||
32144 test ! -s conftest.err
32145 } && test -s conftest.$ac_objext; then
32146 ac_cv_member_struct_tm_tm_zone=yes
32148 echo "$as_me: failed program was:" >&5
32149 sed 's/^/| /' conftest.$ac_ext >&5
32151 ac_cv_member_struct_tm_tm_zone=no
32154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32159 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32160 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32161 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32163 cat >>confdefs.h <<_ACEOF
32164 #define HAVE_STRUCT_TM_TM_ZONE 1
32170 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32172 cat >>confdefs.h <<\_ACEOF
32173 #define HAVE_TM_ZONE 1
32177 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32178 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32179 if test "${ac_cv_have_decl_tzname+set}" = set; then
32180 echo $ECHO_N "(cached) $ECHO_C" >&6
32182 cat >conftest.$ac_ext <<_ACEOF
32185 cat confdefs.h >>conftest.$ac_ext
32186 cat >>conftest.$ac_ext <<_ACEOF
32187 /* end confdefs.h. */
32201 rm -f conftest.$ac_objext
32202 if { (ac_try="$ac_compile"
32203 case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_compile") 2>conftest.er1
32210 grep -v '^ *+' conftest.er1 >conftest.err
32212 cat conftest.err >&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); } && {
32215 test -z "$ac_c_werror_flag" ||
32216 test ! -s conftest.err
32217 } && test -s conftest.$ac_objext; then
32218 ac_cv_have_decl_tzname=yes
32220 echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32223 ac_cv_have_decl_tzname=no
32226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32229 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32230 if test $ac_cv_have_decl_tzname = yes; then
32232 cat >>confdefs.h <<_ACEOF
32233 #define HAVE_DECL_TZNAME 1
32238 cat >>confdefs.h <<_ACEOF
32239 #define HAVE_DECL_TZNAME 0
32246 { echo "$as_me:$LINENO: checking for tzname" >&5
32247 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32248 if test "${ac_cv_var_tzname+set}" = set; then
32249 echo $ECHO_N "(cached) $ECHO_C" >&6
32251 cat >conftest.$ac_ext <<_ACEOF
32254 cat confdefs.h >>conftest.$ac_ext
32255 cat >>conftest.$ac_ext <<_ACEOF
32256 /* end confdefs.h. */
32258 #if !HAVE_DECL_TZNAME
32259 extern char *tzname[];
32265 return tzname[0][0];
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (ac_try="$ac_link"
32272 case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_link") 2>conftest.er1
32279 grep -v '^ *+' conftest.er1 >conftest.err
32281 cat conftest.err >&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } && {
32284 test -z "$ac_c_werror_flag" ||
32285 test ! -s conftest.err
32286 } && test -s conftest$ac_exeext &&
32287 $as_test_x conftest$ac_exeext; then
32288 ac_cv_var_tzname=yes
32290 echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32293 ac_cv_var_tzname=no
32296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32297 conftest$ac_exeext conftest.$ac_ext
32299 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32300 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32301 if test $ac_cv_var_tzname = yes; then
32303 cat >>confdefs.h <<\_ACEOF
32304 #define HAVE_TZNAME 1
32311 { echo "$as_me:$LINENO: checking for utime.h" >&5
32312 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32313 if test "${ba_cv_header_utime_h+set}" = set; then
32314 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32324 #include <sys/types.h>
32337 rm -f conftest.$ac_objext
32338 if { (ac_try="$ac_compile"
32339 case "(($ac_try" in
32340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341 *) ac_try_echo=$ac_try;;
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344 (eval "$ac_compile") 2>conftest.er1
32346 grep -v '^ *+' conftest.er1 >conftest.err
32348 cat conftest.err >&5
32349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350 (exit $ac_status); } && {
32351 test -z "$ac_c_werror_flag" ||
32352 test ! -s conftest.err
32353 } && test -s conftest.$ac_objext; then
32355 ba_cv_header_utime_h=yes
32358 echo "$as_me: failed program was:" >&5
32359 sed 's/^/| /' conftest.$ac_ext >&5
32362 ba_cv_header_utime_h=no
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32371 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32372 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32373 test $ba_cv_header_utime_h = yes &&
32374 cat >>confdefs.h <<\_ACEOF
32375 #define HAVE_UTIME_H 1
32379 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32380 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32381 if test "${ba_cv_header_socklen_t+set}" = set; then
32382 echo $ECHO_N "(cached) $ECHO_C" >&6
32385 cat >conftest.$ac_ext <<_ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h. */
32392 #include <sys/types.h>
32393 #include <sys/socket.h>
32405 rm -f conftest.$ac_objext
32406 if { (ac_try="$ac_compile"
32407 case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412 (eval "$ac_compile") 2>conftest.er1
32414 grep -v '^ *+' conftest.er1 >conftest.err
32416 cat conftest.err >&5
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); } && {
32419 test -z "$ac_c_werror_flag" ||
32420 test ! -s conftest.err
32421 } && test -s conftest.$ac_objext; then
32423 ba_cv_header_socklen_t=yes
32426 echo "$as_me: failed program was:" >&5
32427 sed 's/^/| /' conftest.$ac_ext >&5
32430 ba_cv_header_socklen_t=no
32435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32439 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32440 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32441 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32442 #define HAVE_SOCKLEN_T 1
32446 { echo "$as_me:$LINENO: checking for bigendian" >&5
32447 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32448 if test "${ba_cv_bigendian+set}" = set; then
32449 echo $ECHO_N "(cached) $ECHO_C" >&6
32452 if test "$cross_compiling" = yes; then
32458 cat >conftest.$ac_ext <<_ACEOF
32461 cat confdefs.h >>conftest.$ac_ext
32462 cat >>conftest.$ac_ext <<_ACEOF
32463 /* end confdefs.h. */
32465 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32468 rm -f conftest$ac_exeext
32469 if { (ac_try="$ac_link"
32470 case "(($ac_try" in
32471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32472 *) ac_try_echo=$ac_try;;
32474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32475 (eval "$ac_link") 2>&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32479 { (case "(($ac_try" in
32480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481 *) ac_try_echo=$ac_try;;
32483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484 (eval "$ac_try") 2>&5
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; }; then
32489 ba_cv_bigendian=yes
32492 echo "$as_me: program exited with status $ac_status" >&5
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ( exit $ac_status )
32501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32508 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32509 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32510 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32511 #define HAVE_BIGENDIAN 1
32516 ac_cpp='$CXXCPP $CPPFLAGS'
32517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32521 { echo "$as_me:$LINENO: checking for typeof" >&5
32522 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32523 if test "${ba_cv_have_typeof+set}" = set; then
32524 echo $ECHO_N "(cached) $ECHO_C" >&6
32527 if test "$cross_compiling" = yes; then
32529 ba_cv_have_typeof=no
32533 cat >conftest.$ac_ext <<_ACEOF
32536 cat confdefs.h >>conftest.$ac_ext
32537 cat >>conftest.$ac_ext <<_ACEOF
32538 /* end confdefs.h. */
32540 main(){char *a = 0; a = (typeof a)a;}
32543 rm -f conftest$ac_exeext
32544 if { (ac_try="$ac_link"
32545 case "(($ac_try" in
32546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547 *) ac_try_echo=$ac_try;;
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550 (eval "$ac_link") 2>&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32554 { (case "(($ac_try" in
32555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556 *) ac_try_echo=$ac_try;;
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559 (eval "$ac_try") 2>&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); }; }; then
32564 ba_cv_have_typeof=yes
32567 echo "$as_me: program exited with status $ac_status" >&5
32568 echo "$as_me: failed program was:" >&5
32569 sed 's/^/| /' conftest.$ac_ext >&5
32571 ( exit $ac_status )
32573 ba_cv_have_typeof=no
32576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32583 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32584 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32585 test $ba_cv_have_typeof = yes &&
32586 cat >>confdefs.h <<\_ACEOF
32587 #define HAVE_TYPEOF 1
32591 ac_cpp='$CPP $CPPFLAGS'
32592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32597 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32598 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32599 if test "${ac_cv_c_const+set}" = set; then
32600 echo $ECHO_N "(cached) $ECHO_C" >&6
32602 cat >conftest.$ac_ext <<_ACEOF
32605 cat confdefs.h >>conftest.$ac_ext
32606 cat >>conftest.$ac_ext <<_ACEOF
32607 /* end confdefs.h. */
32612 /* FIXME: Include the comments suggested by Paul. */
32613 #ifndef __cplusplus
32614 /* Ultrix mips cc rejects this. */
32615 typedef int charset[2];
32617 /* SunOS 4.1.1 cc rejects this. */
32618 char const *const *pcpcc;
32620 /* NEC SVR4.0.2 mips cc rejects this. */
32621 struct point {int x, y;};
32622 static struct point const zero = {0,0};
32623 /* AIX XL C 1.02.0.0 rejects this.
32624 It does not let you subtract one const X* pointer from another in
32625 an arm of an if-expression whose if-part is not a constant
32627 const char *g = "string";
32628 pcpcc = &g + (g ? g-g : 0);
32629 /* HPUX 7.0 cc rejects these. */
32631 ppc = (char**) pcpcc;
32632 pcpcc = (char const *const *) ppc;
32633 { /* SCO 3.2v4 cc rejects this. */
32635 char const *s = 0 ? (char *) 0 : (char const *) 0;
32640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32641 int x[] = {25, 17};
32642 const int *foo = &x[0];
32645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32646 typedef const int *iptr;
32650 { /* AIX XL C 1.02.0.0 rejects this saying
32651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32652 struct s { int j; const int *ap[3]; };
32653 struct s *b; b->j = 5;
32655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32656 const int foo = 10;
32657 if (!foo) return 0;
32659 return !cs[0] && !zero.x;
32666 rm -f conftest.$ac_objext
32667 if { (ac_try="$ac_compile"
32668 case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_compile") 2>conftest.er1
32675 grep -v '^ *+' conftest.er1 >conftest.err
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && {
32680 test -z "$ac_c_werror_flag" ||
32681 test ! -s conftest.err
32682 } && test -s conftest.$ac_objext; then
32685 echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32693 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32694 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32695 if test $ac_cv_c_const = no; then
32697 cat >>confdefs.h <<\_ACEOF
32704 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32705 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32707 # The order of these tests is important.
32708 cat >conftest.$ac_ext <<_ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32715 #include <sys/statvfs.h>
32716 #include <sys/fstyp.h>
32719 if { (ac_try="$ac_cpp conftest.$ac_ext"
32720 case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32727 grep -v '^ *+' conftest.er1 >conftest.err
32729 cat conftest.err >&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } >/dev/null && {
32732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32733 test ! -s conftest.err
32735 cat >>confdefs.h <<\_ACEOF
32736 #define FSTYPE_STATVFS 1
32741 echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32747 rm -f conftest.err conftest.$ac_ext
32748 if test $fstype = no; then
32749 cat >conftest.$ac_ext <<_ACEOF
32752 cat confdefs.h >>conftest.$ac_ext
32753 cat >>conftest.$ac_ext <<_ACEOF
32754 /* end confdefs.h. */
32756 #include <sys/statfs.h>
32757 #include <sys/fstyp.h>
32760 if { (ac_try="$ac_cpp conftest.$ac_ext"
32761 case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32768 grep -v '^ *+' conftest.er1 >conftest.err
32770 cat conftest.err >&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } >/dev/null && {
32773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32774 test ! -s conftest.err
32776 cat >>confdefs.h <<\_ACEOF
32777 #define FSTYPE_USG_STATFS 1
32782 echo "$as_me: failed program was:" >&5
32783 sed 's/^/| /' conftest.$ac_ext >&5
32788 rm -f conftest.err conftest.$ac_ext
32790 if test $fstype = no; then
32791 cat >conftest.$ac_ext <<_ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h. */
32798 #include <sys/statfs.h>
32799 #include <sys/vmount.h>
32802 if { (ac_try="$ac_cpp conftest.$ac_ext"
32803 case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32810 grep -v '^ *+' conftest.er1 >conftest.err
32812 cat conftest.err >&5
32813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814 (exit $ac_status); } >/dev/null && {
32815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32816 test ! -s conftest.err
32818 cat >>confdefs.h <<\_ACEOF
32819 #define FSTYPE_AIX_STATFS 1
32824 echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32830 rm -f conftest.err conftest.$ac_ext
32832 if test $fstype = no; then
32833 cat >conftest.$ac_ext <<_ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h. */
32840 #include <mntent.h>
32843 if { (ac_try="$ac_cpp conftest.$ac_ext"
32844 case "(($ac_try" in
32845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846 *) ac_try_echo=$ac_try;;
32848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32851 grep -v '^ *+' conftest.er1 >conftest.err
32853 cat conftest.err >&5
32854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855 (exit $ac_status); } >/dev/null && {
32856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32857 test ! -s conftest.err
32859 cat >>confdefs.h <<\_ACEOF
32860 #define FSTYPE_MNTENT 1
32865 echo "$as_me: failed program was:" >&5
32866 sed 's/^/| /' conftest.$ac_ext >&5
32871 rm -f conftest.err conftest.$ac_ext
32873 if test $fstype = no; then
32874 cat >conftest.$ac_ext <<_ACEOF
32877 cat confdefs.h >>conftest.$ac_ext
32878 cat >>conftest.$ac_ext <<_ACEOF
32879 /* end confdefs.h. */
32880 #include <sys/mount.h>
32883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32884 $EGREP "f_type;" >/dev/null 2>&1; then
32885 cat >>confdefs.h <<\_ACEOF
32886 #define FSTYPE_STATFS 1
32893 if test $fstype = no; then
32894 cat >conftest.$ac_ext <<_ACEOF
32897 cat confdefs.h >>conftest.$ac_ext
32898 cat >>conftest.$ac_ext <<_ACEOF
32899 /* end confdefs.h. */
32901 #include <sys/mount.h>
32902 #include <sys/fs_types.h>
32905 if { (ac_try="$ac_cpp conftest.$ac_ext"
32906 case "(($ac_try" in
32907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908 *) ac_try_echo=$ac_try;;
32910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32913 grep -v '^ *+' conftest.er1 >conftest.err
32915 cat conftest.err >&5
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); } >/dev/null && {
32918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32919 test ! -s conftest.err
32921 cat >>confdefs.h <<\_ACEOF
32922 #define FSTYPE_GETMNT 1
32927 echo "$as_me: failed program was:" >&5
32928 sed 's/^/| /' conftest.$ac_ext >&5
32933 rm -f conftest.err conftest.$ac_ext
32935 { echo "$as_me:$LINENO: result: $fstype" >&5
32936 echo "${ECHO_T}$fstype" >&6; }
32938 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32939 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32940 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32941 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32942 echo $ECHO_N "(cached) $ECHO_C" >&6
32944 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32945 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32947 # Is the header compilable?
32948 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32949 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32950 cat >conftest.$ac_ext <<_ACEOF
32953 cat confdefs.h >>conftest.$ac_ext
32954 cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h. */
32956 $ac_includes_default
32957 #include <sys/statvfs.h>
32959 rm -f conftest.$ac_objext
32960 if { (ac_try="$ac_compile"
32961 case "(($ac_try" in
32962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32963 *) ac_try_echo=$ac_try;;
32965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32966 (eval "$ac_compile") 2>conftest.er1
32968 grep -v '^ *+' conftest.er1 >conftest.err
32970 cat conftest.err >&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); } && {
32973 test -z "$ac_c_werror_flag" ||
32974 test ! -s conftest.err
32975 } && test -s conftest.$ac_objext; then
32976 ac_header_compiler=yes
32978 echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32981 ac_header_compiler=no
32984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32986 echo "${ECHO_T}$ac_header_compiler" >&6; }
32988 # Is the header present?
32989 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32990 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32991 cat >conftest.$ac_ext <<_ACEOF
32994 cat confdefs.h >>conftest.$ac_ext
32995 cat >>conftest.$ac_ext <<_ACEOF
32996 /* end confdefs.h. */
32997 #include <sys/statvfs.h>
32999 if { (ac_try="$ac_cpp conftest.$ac_ext"
33000 case "(($ac_try" in
33001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33002 *) ac_try_echo=$ac_try;;
33004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33007 grep -v '^ *+' conftest.er1 >conftest.err
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } >/dev/null && {
33012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33013 test ! -s conftest.err
33015 ac_header_preproc=yes
33017 echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33020 ac_header_preproc=no
33023 rm -f conftest.err conftest.$ac_ext
33024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33025 echo "${ECHO_T}$ac_header_preproc" >&6; }
33027 # So? What about this header?
33028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33030 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33031 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33032 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33033 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33034 ac_header_preproc=yes
33037 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33038 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33039 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33040 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33041 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33042 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33043 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33044 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33045 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33046 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33047 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33048 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33052 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33053 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33054 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33055 echo $ECHO_N "(cached) $ECHO_C" >&6
33057 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33059 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33060 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33063 if test $ac_cv_header_sys_statvfs_h = yes; then
33065 cat >>confdefs.h <<\_ACEOF
33066 #define HAVE_SYS_STATVFS_H 1
33073 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33074 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33075 if test "${ac_cv_type_signal+set}" = set; then
33076 echo $ECHO_N "(cached) $ECHO_C" >&6
33078 cat >conftest.$ac_ext <<_ACEOF
33081 cat confdefs.h >>conftest.$ac_ext
33082 cat >>conftest.$ac_ext <<_ACEOF
33083 /* end confdefs.h. */
33084 #include <sys/types.h>
33085 #include <signal.h>
33090 return *(signal (0, 0)) (0) == 1;
33095 rm -f conftest.$ac_objext
33096 if { (ac_try="$ac_compile"
33097 case "(($ac_try" in
33098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099 *) ac_try_echo=$ac_try;;
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102 (eval "$ac_compile") 2>conftest.er1
33104 grep -v '^ *+' conftest.er1 >conftest.err
33106 cat conftest.err >&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } && {
33109 test -z "$ac_c_werror_flag" ||
33110 test ! -s conftest.err
33111 } && test -s conftest.$ac_objext; then
33112 ac_cv_type_signal=int
33114 echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33117 ac_cv_type_signal=void
33120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33122 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33123 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33125 cat >>confdefs.h <<_ACEOF
33126 #define RETSIGTYPE $ac_cv_type_signal
33131 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33132 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33133 if test "${bash_cv_signal_vintage+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33137 cat >conftest.$ac_ext <<_ACEOF
33140 cat confdefs.h >>conftest.$ac_ext
33141 cat >>conftest.$ac_ext <<_ACEOF
33142 /* end confdefs.h. */
33143 #include <signal.h>
33149 struct sigaction sa;
33150 sigemptyset(&ss); sigsuspend(&ss);
33151 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33152 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33158 rm -f conftest.$ac_objext conftest$ac_exeext
33159 if { (ac_try="$ac_link"
33160 case "(($ac_try" in
33161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33162 *) ac_try_echo=$ac_try;;
33164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33165 (eval "$ac_link") 2>conftest.er1
33167 grep -v '^ *+' conftest.er1 >conftest.err
33169 cat conftest.err >&5
33170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33171 (exit $ac_status); } && {
33172 test -z "$ac_c_werror_flag" ||
33173 test ! -s conftest.err
33174 } && test -s conftest$ac_exeext &&
33175 $as_test_x conftest$ac_exeext; then
33176 bash_cv_signal_vintage="posix"
33178 echo "$as_me: failed program was:" >&5
33179 sed 's/^/| /' conftest.$ac_ext >&5
33182 cat >conftest.$ac_ext <<_ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h. */
33188 #include <signal.h>
33193 int mask = sigmask(SIGINT);
33194 sigsetmask(mask); sigblock(mask); sigpause(mask);
33200 rm -f conftest.$ac_objext conftest$ac_exeext
33201 if { (ac_try="$ac_link"
33202 case "(($ac_try" in
33203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33204 *) ac_try_echo=$ac_try;;
33206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33207 (eval "$ac_link") 2>conftest.er1
33209 grep -v '^ *+' conftest.er1 >conftest.err
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } && {
33214 test -z "$ac_c_werror_flag" ||
33215 test ! -s conftest.err
33216 } && test -s conftest$ac_exeext &&
33217 $as_test_x conftest$ac_exeext; then
33218 bash_cv_signal_vintage="4.2bsd"
33220 echo "$as_me: failed program was:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33224 cat >conftest.$ac_ext <<_ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h. */
33231 #include <signal.h>
33232 RETSIGTYPE foo() { }
33237 int mask = sigmask(SIGINT);
33238 sigset(SIGINT, foo); sigrelse(SIGINT);
33239 sighold(SIGINT); sigpause(SIGINT);
33245 rm -f conftest.$ac_objext conftest$ac_exeext
33246 if { (ac_try="$ac_link"
33247 case "(($ac_try" in
33248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33249 *) ac_try_echo=$ac_try;;
33251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33252 (eval "$ac_link") 2>conftest.er1
33254 grep -v '^ *+' conftest.er1 >conftest.err
33256 cat conftest.err >&5
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); } && {
33259 test -z "$ac_c_werror_flag" ||
33260 test ! -s conftest.err
33261 } && test -s conftest$ac_exeext &&
33262 $as_test_x conftest$ac_exeext; then
33263 bash_cv_signal_vintage="svr3"
33265 echo "$as_me: failed program was:" >&5
33266 sed 's/^/| /' conftest.$ac_ext >&5
33268 bash_cv_signal_vintage="v7"
33272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33273 conftest$ac_exeext conftest.$ac_ext
33277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33278 conftest$ac_exeext conftest.$ac_ext
33282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33283 conftest$ac_exeext conftest.$ac_ext
33287 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33288 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33289 if test "$bash_cv_signal_vintage" = "posix"; then
33290 cat >>confdefs.h <<\_ACEOF
33291 #define HAVE_POSIX_SIGNALS 1
33294 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33295 cat >>confdefs.h <<\_ACEOF
33296 #define HAVE_BSD_SIGNALS 1
33299 elif test "$bash_cv_signal_vintage" = "svr3"; then
33300 cat >>confdefs.h <<\_ACEOF
33301 #define HAVE_USG_SIGHOLD 1
33306 { echo "$as_me:$LINENO: checking for mode_t" >&5
33307 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33308 if test "${ac_cv_type_mode_t+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33311 cat >conftest.$ac_ext <<_ACEOF
33314 cat confdefs.h >>conftest.$ac_ext
33315 cat >>conftest.$ac_ext <<_ACEOF
33316 /* end confdefs.h. */
33317 $ac_includes_default
33318 typedef mode_t ac__type_new_;
33322 if ((ac__type_new_ *) 0)
33324 if (sizeof (ac__type_new_))
33330 rm -f conftest.$ac_objext
33331 if { (ac_try="$ac_compile"
33332 case "(($ac_try" in
33333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33334 *) ac_try_echo=$ac_try;;
33336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33337 (eval "$ac_compile") 2>conftest.er1
33339 grep -v '^ *+' conftest.er1 >conftest.err
33341 cat conftest.err >&5
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); } && {
33344 test -z "$ac_c_werror_flag" ||
33345 test ! -s conftest.err
33346 } && test -s conftest.$ac_objext; then
33347 ac_cv_type_mode_t=yes
33349 echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33352 ac_cv_type_mode_t=no
33355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33357 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33358 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33359 if test $ac_cv_type_mode_t = yes; then
33363 cat >>confdefs.h <<_ACEOF
33369 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33370 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33371 if test "${ac_cv_type_uid_t+set}" = set; then
33372 echo $ECHO_N "(cached) $ECHO_C" >&6
33374 cat >conftest.$ac_ext <<_ACEOF
33377 cat confdefs.h >>conftest.$ac_ext
33378 cat >>conftest.$ac_ext <<_ACEOF
33379 /* end confdefs.h. */
33380 #include <sys/types.h>
33383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33384 $EGREP "uid_t" >/dev/null 2>&1; then
33385 ac_cv_type_uid_t=yes
33387 ac_cv_type_uid_t=no
33392 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33393 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33394 if test $ac_cv_type_uid_t = no; then
33396 cat >>confdefs.h <<\_ACEOF
33401 cat >>confdefs.h <<\_ACEOF
33407 { echo "$as_me:$LINENO: checking for size_t" >&5
33408 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33409 if test "${ac_cv_type_size_t+set}" = set; then
33410 echo $ECHO_N "(cached) $ECHO_C" >&6
33412 cat >conftest.$ac_ext <<_ACEOF
33415 cat confdefs.h >>conftest.$ac_ext
33416 cat >>conftest.$ac_ext <<_ACEOF
33417 /* end confdefs.h. */
33418 $ac_includes_default
33419 typedef size_t ac__type_new_;
33423 if ((ac__type_new_ *) 0)
33425 if (sizeof (ac__type_new_))
33431 rm -f conftest.$ac_objext
33432 if { (ac_try="$ac_compile"
33433 case "(($ac_try" in
33434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33435 *) ac_try_echo=$ac_try;;
33437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33438 (eval "$ac_compile") 2>conftest.er1
33440 grep -v '^ *+' conftest.er1 >conftest.err
33442 cat conftest.err >&5
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); } && {
33445 test -z "$ac_c_werror_flag" ||
33446 test ! -s conftest.err
33447 } && test -s conftest.$ac_objext; then
33448 ac_cv_type_size_t=yes
33450 echo "$as_me: failed program was:" >&5
33451 sed 's/^/| /' conftest.$ac_ext >&5
33453 ac_cv_type_size_t=no
33456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33458 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33459 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33460 if test $ac_cv_type_size_t = yes; then
33464 cat >>confdefs.h <<_ACEOF
33465 #define size_t unsigned int
33470 { echo "$as_me:$LINENO: checking for pid_t" >&5
33471 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33472 if test "${ac_cv_type_pid_t+set}" = set; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33475 cat >conftest.$ac_ext <<_ACEOF
33478 cat confdefs.h >>conftest.$ac_ext
33479 cat >>conftest.$ac_ext <<_ACEOF
33480 /* end confdefs.h. */
33481 $ac_includes_default
33482 typedef pid_t ac__type_new_;
33486 if ((ac__type_new_ *) 0)
33488 if (sizeof (ac__type_new_))
33494 rm -f conftest.$ac_objext
33495 if { (ac_try="$ac_compile"
33496 case "(($ac_try" in
33497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498 *) ac_try_echo=$ac_try;;
33500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33501 (eval "$ac_compile") 2>conftest.er1
33503 grep -v '^ *+' conftest.er1 >conftest.err
33505 cat conftest.err >&5
33506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507 (exit $ac_status); } && {
33508 test -z "$ac_c_werror_flag" ||
33509 test ! -s conftest.err
33510 } && test -s conftest.$ac_objext; then
33511 ac_cv_type_pid_t=yes
33513 echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33516 ac_cv_type_pid_t=no
33519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33521 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33522 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33523 if test $ac_cv_type_pid_t = yes; then
33527 cat >>confdefs.h <<_ACEOF
33533 { echo "$as_me:$LINENO: checking for off_t" >&5
33534 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33535 if test "${ac_cv_type_off_t+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33538 cat >conftest.$ac_ext <<_ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h. */
33544 $ac_includes_default
33545 typedef off_t ac__type_new_;
33549 if ((ac__type_new_ *) 0)
33551 if (sizeof (ac__type_new_))
33557 rm -f conftest.$ac_objext
33558 if { (ac_try="$ac_compile"
33559 case "(($ac_try" in
33560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33561 *) ac_try_echo=$ac_try;;
33563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33564 (eval "$ac_compile") 2>conftest.er1
33566 grep -v '^ *+' conftest.er1 >conftest.err
33568 cat conftest.err >&5
33569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570 (exit $ac_status); } && {
33571 test -z "$ac_c_werror_flag" ||
33572 test ! -s conftest.err
33573 } && test -s conftest.$ac_objext; then
33574 ac_cv_type_off_t=yes
33576 echo "$as_me: failed program was:" >&5
33577 sed 's/^/| /' conftest.$ac_ext >&5
33579 ac_cv_type_off_t=no
33582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33584 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33585 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33586 if test $ac_cv_type_off_t = yes; then
33590 cat >>confdefs.h <<_ACEOF
33591 #define off_t long int
33597 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33598 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33599 if test "${ac_cv_type_intptr_t+set}" = set; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33602 cat >conftest.$ac_ext <<_ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h. */
33608 $ac_includes_default
33609 typedef intptr_t ac__type_new_;
33613 if ((ac__type_new_ *) 0)
33615 if (sizeof (ac__type_new_))
33621 rm -f conftest.$ac_objext
33622 if { (ac_try="$ac_compile"
33623 case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_compile") 2>conftest.er1
33630 grep -v '^ *+' conftest.er1 >conftest.err
33632 cat conftest.err >&5
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); } && {
33635 test -z "$ac_c_werror_flag" ||
33636 test ! -s conftest.err
33637 } && test -s conftest.$ac_objext; then
33638 ac_cv_type_intptr_t=yes
33640 echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33643 ac_cv_type_intptr_t=no
33646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33648 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33649 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33650 if test $ac_cv_type_intptr_t = yes; then
33652 cat >>confdefs.h <<\_ACEOF
33653 #define HAVE_INTPTR_T 1
33657 for ac_type in 'int' 'long int' 'long long int'; do
33658 cat >conftest.$ac_ext <<_ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h. */
33664 $ac_includes_default
33668 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33675 rm -f conftest.$ac_objext
33676 if { (ac_try="$ac_compile"
33677 case "(($ac_try" in
33678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679 *) ac_try_echo=$ac_try;;
33681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682 (eval "$ac_compile") 2>conftest.er1
33684 grep -v '^ *+' conftest.er1 >conftest.err
33686 cat conftest.err >&5
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 (exit $ac_status); } && {
33689 test -z "$ac_c_werror_flag" ||
33690 test ! -s conftest.err
33691 } && test -s conftest.$ac_objext; then
33693 cat >>confdefs.h <<_ACEOF
33694 #define intptr_t $ac_type
33699 echo "$as_me: failed program was:" >&5
33700 sed 's/^/| /' conftest.$ac_ext >&5
33705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33706 test -z "$ac_type" && break
33712 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33713 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33714 if test "${ac_cv_type_uintptr_t+set}" = set; then
33715 echo $ECHO_N "(cached) $ECHO_C" >&6
33717 cat >conftest.$ac_ext <<_ACEOF
33720 cat confdefs.h >>conftest.$ac_ext
33721 cat >>conftest.$ac_ext <<_ACEOF
33722 /* end confdefs.h. */
33723 $ac_includes_default
33724 typedef uintptr_t ac__type_new_;
33728 if ((ac__type_new_ *) 0)
33730 if (sizeof (ac__type_new_))
33736 rm -f conftest.$ac_objext
33737 if { (ac_try="$ac_compile"
33738 case "(($ac_try" in
33739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740 *) ac_try_echo=$ac_try;;
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743 (eval "$ac_compile") 2>conftest.er1
33745 grep -v '^ *+' conftest.er1 >conftest.err
33747 cat conftest.err >&5
33748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33749 (exit $ac_status); } && {
33750 test -z "$ac_c_werror_flag" ||
33751 test ! -s conftest.err
33752 } && test -s conftest.$ac_objext; then
33753 ac_cv_type_uintptr_t=yes
33755 echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33758 ac_cv_type_uintptr_t=no
33761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33763 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33764 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33765 if test $ac_cv_type_uintptr_t = yes; then
33767 cat >>confdefs.h <<\_ACEOF
33768 #define HAVE_UINTPTR_T 1
33772 for ac_type in 'unsigned int' 'unsigned long int' \
33773 'unsigned long long int'; do
33774 cat >conftest.$ac_ext <<_ACEOF
33777 cat confdefs.h >>conftest.$ac_ext
33778 cat >>conftest.$ac_ext <<_ACEOF
33779 /* end confdefs.h. */
33780 $ac_includes_default
33784 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33791 rm -f conftest.$ac_objext
33792 if { (ac_try="$ac_compile"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_compile") 2>conftest.er1
33800 grep -v '^ *+' conftest.er1 >conftest.err
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } && {
33805 test -z "$ac_c_werror_flag" ||
33806 test ! -s conftest.err
33807 } && test -s conftest.$ac_objext; then
33809 cat >>confdefs.h <<_ACEOF
33810 #define uintptr_t $ac_type
33815 echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33822 test -z "$ac_type" && break
33827 { echo "$as_me:$LINENO: checking for ino_t" >&5
33828 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33829 if test "${ac_cv_type_ino_t+set}" = set; then
33830 echo $ECHO_N "(cached) $ECHO_C" >&6
33832 cat >conftest.$ac_ext <<_ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h. */
33838 $ac_includes_default
33839 typedef ino_t ac__type_new_;
33843 if ((ac__type_new_ *) 0)
33845 if (sizeof (ac__type_new_))
33851 rm -f conftest.$ac_objext
33852 if { (ac_try="$ac_compile"
33853 case "(($ac_try" in
33854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855 *) ac_try_echo=$ac_try;;
33857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858 (eval "$ac_compile") 2>conftest.er1
33860 grep -v '^ *+' conftest.er1 >conftest.err
33862 cat conftest.err >&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } && {
33865 test -z "$ac_c_werror_flag" ||
33866 test ! -s conftest.err
33867 } && test -s conftest.$ac_objext; then
33868 ac_cv_type_ino_t=yes
33870 echo "$as_me: failed program was:" >&5
33871 sed 's/^/| /' conftest.$ac_ext >&5
33873 ac_cv_type_ino_t=no
33876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33878 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33879 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33880 if test $ac_cv_type_ino_t = yes; then
33884 cat >>confdefs.h <<_ACEOF
33885 #define ino_t unsigned long
33890 { echo "$as_me:$LINENO: checking for dev_t" >&5
33891 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33892 if test "${ac_cv_type_dev_t+set}" = set; then
33893 echo $ECHO_N "(cached) $ECHO_C" >&6
33895 cat >conftest.$ac_ext <<_ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h. */
33901 $ac_includes_default
33902 typedef dev_t ac__type_new_;
33906 if ((ac__type_new_ *) 0)
33908 if (sizeof (ac__type_new_))
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_compile") 2>conftest.er1
33923 grep -v '^ *+' conftest.er1 >conftest.err
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } && {
33928 test -z "$ac_c_werror_flag" ||
33929 test ! -s conftest.err
33930 } && test -s conftest.$ac_objext; then
33931 ac_cv_type_dev_t=yes
33933 echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33936 ac_cv_type_dev_t=no
33939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33942 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33943 if test $ac_cv_type_dev_t = yes; then
33947 cat >>confdefs.h <<_ACEOF
33948 #define dev_t unsigned long
33953 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33954 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33955 if test "${ac_cv_type_daddr_t+set}" = set; then
33956 echo $ECHO_N "(cached) $ECHO_C" >&6
33958 cat >conftest.$ac_ext <<_ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h. */
33964 $ac_includes_default
33965 typedef daddr_t ac__type_new_;
33969 if ((ac__type_new_ *) 0)
33971 if (sizeof (ac__type_new_))
33977 rm -f conftest.$ac_objext
33978 if { (ac_try="$ac_compile"
33979 case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_compile") 2>conftest.er1
33986 grep -v '^ *+' conftest.er1 >conftest.err
33988 cat conftest.err >&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } && {
33991 test -z "$ac_c_werror_flag" ||
33992 test ! -s conftest.err
33993 } && test -s conftest.$ac_objext; then
33994 ac_cv_type_daddr_t=yes
33996 echo "$as_me: failed program was:" >&5
33997 sed 's/^/| /' conftest.$ac_ext >&5
33999 ac_cv_type_daddr_t=no
34002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34004 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34005 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34006 if test $ac_cv_type_daddr_t = yes; then
34010 cat >>confdefs.h <<_ACEOF
34011 #define daddr_t long
34016 { echo "$as_me:$LINENO: checking for major_t" >&5
34017 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34018 if test "${ac_cv_type_major_t+set}" = set; then
34019 echo $ECHO_N "(cached) $ECHO_C" >&6
34021 cat >conftest.$ac_ext <<_ACEOF
34024 cat confdefs.h >>conftest.$ac_ext
34025 cat >>conftest.$ac_ext <<_ACEOF
34026 /* end confdefs.h. */
34027 $ac_includes_default
34028 typedef major_t ac__type_new_;
34032 if ((ac__type_new_ *) 0)
34034 if (sizeof (ac__type_new_))
34040 rm -f conftest.$ac_objext
34041 if { (ac_try="$ac_compile"
34042 case "(($ac_try" in
34043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044 *) ac_try_echo=$ac_try;;
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047 (eval "$ac_compile") 2>conftest.er1
34049 grep -v '^ *+' conftest.er1 >conftest.err
34051 cat conftest.err >&5
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); } && {
34054 test -z "$ac_c_werror_flag" ||
34055 test ! -s conftest.err
34056 } && test -s conftest.$ac_objext; then
34057 ac_cv_type_major_t=yes
34059 echo "$as_me: failed program was:" >&5
34060 sed 's/^/| /' conftest.$ac_ext >&5
34062 ac_cv_type_major_t=no
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34067 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34068 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34069 if test $ac_cv_type_major_t = yes; then
34073 cat >>confdefs.h <<_ACEOF
34074 #define major_t int
34079 { echo "$as_me:$LINENO: checking for minor_t" >&5
34080 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34081 if test "${ac_cv_type_minor_t+set}" = set; then
34082 echo $ECHO_N "(cached) $ECHO_C" >&6
34084 cat >conftest.$ac_ext <<_ACEOF
34087 cat confdefs.h >>conftest.$ac_ext
34088 cat >>conftest.$ac_ext <<_ACEOF
34089 /* end confdefs.h. */
34090 $ac_includes_default
34091 typedef minor_t ac__type_new_;
34095 if ((ac__type_new_ *) 0)
34097 if (sizeof (ac__type_new_))
34103 rm -f conftest.$ac_objext
34104 if { (ac_try="$ac_compile"
34105 case "(($ac_try" in
34106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107 *) ac_try_echo=$ac_try;;
34109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110 (eval "$ac_compile") 2>conftest.er1
34112 grep -v '^ *+' conftest.er1 >conftest.err
34114 cat conftest.err >&5
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); } && {
34117 test -z "$ac_c_werror_flag" ||
34118 test ! -s conftest.err
34119 } && test -s conftest.$ac_objext; then
34120 ac_cv_type_minor_t=yes
34122 echo "$as_me: failed program was:" >&5
34123 sed 's/^/| /' conftest.$ac_ext >&5
34125 ac_cv_type_minor_t=no
34128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34130 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34131 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34132 if test $ac_cv_type_minor_t = yes; then
34136 cat >>confdefs.h <<_ACEOF
34137 #define minor_t int
34142 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34143 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34144 if test "${ac_cv_type_ssize_t+set}" = set; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
34147 cat >conftest.$ac_ext <<_ACEOF
34150 cat confdefs.h >>conftest.$ac_ext
34151 cat >>conftest.$ac_ext <<_ACEOF
34152 /* end confdefs.h. */
34153 $ac_includes_default
34154 typedef ssize_t ac__type_new_;
34158 if ((ac__type_new_ *) 0)
34160 if (sizeof (ac__type_new_))
34166 rm -f conftest.$ac_objext
34167 if { (ac_try="$ac_compile"
34168 case "(($ac_try" in
34169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34170 *) ac_try_echo=$ac_try;;
34172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34173 (eval "$ac_compile") 2>conftest.er1
34175 grep -v '^ *+' conftest.er1 >conftest.err
34177 cat conftest.err >&5
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); } && {
34180 test -z "$ac_c_werror_flag" ||
34181 test ! -s conftest.err
34182 } && test -s conftest.$ac_objext; then
34183 ac_cv_type_ssize_t=yes
34185 echo "$as_me: failed program was:" >&5
34186 sed 's/^/| /' conftest.$ac_ext >&5
34188 ac_cv_type_ssize_t=no
34191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34193 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34194 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34195 if test $ac_cv_type_ssize_t = yes; then
34199 cat >>confdefs.h <<_ACEOF
34200 #define ssize_t int
34205 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34206 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34207 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34208 echo $ECHO_N "(cached) $ECHO_C" >&6
34210 cat >conftest.$ac_ext <<_ACEOF
34213 cat confdefs.h >>conftest.$ac_ext
34214 cat >>conftest.$ac_ext <<_ACEOF
34215 /* end confdefs.h. */
34216 $ac_includes_default
34220 static struct stat ac_aggr;
34221 if (ac_aggr.st_blocks)
34227 rm -f conftest.$ac_objext
34228 if { (ac_try="$ac_compile"
34229 case "(($ac_try" in
34230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231 *) ac_try_echo=$ac_try;;
34233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34234 (eval "$ac_compile") 2>conftest.er1
34236 grep -v '^ *+' conftest.er1 >conftest.err
34238 cat conftest.err >&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); } && {
34241 test -z "$ac_c_werror_flag" ||
34242 test ! -s conftest.err
34243 } && test -s conftest.$ac_objext; then
34244 ac_cv_member_struct_stat_st_blocks=yes
34246 echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34249 cat >conftest.$ac_ext <<_ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h. */
34255 $ac_includes_default
34259 static struct stat ac_aggr;
34260 if (sizeof ac_aggr.st_blocks)
34266 rm -f conftest.$ac_objext
34267 if { (ac_try="$ac_compile"
34268 case "(($ac_try" in
34269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270 *) ac_try_echo=$ac_try;;
34272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273 (eval "$ac_compile") 2>conftest.er1
34275 grep -v '^ *+' conftest.er1 >conftest.err
34277 cat conftest.err >&5
34278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279 (exit $ac_status); } && {
34280 test -z "$ac_c_werror_flag" ||
34281 test ! -s conftest.err
34282 } && test -s conftest.$ac_objext; then
34283 ac_cv_member_struct_stat_st_blocks=yes
34285 echo "$as_me: failed program was:" >&5
34286 sed 's/^/| /' conftest.$ac_ext >&5
34288 ac_cv_member_struct_stat_st_blocks=no
34291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34296 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34297 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34298 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34300 cat >>confdefs.h <<_ACEOF
34301 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34305 cat >>confdefs.h <<\_ACEOF
34306 #define HAVE_ST_BLOCKS 1
34310 case " $LIBOBJS " in
34311 *" fileblocks.$ac_objext "* ) ;;
34312 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34319 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34320 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34321 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34322 echo $ECHO_N "(cached) $ECHO_C" >&6
34324 cat >conftest.$ac_ext <<_ACEOF
34327 cat confdefs.h >>conftest.$ac_ext
34328 cat >>conftest.$ac_ext <<_ACEOF
34329 /* end confdefs.h. */
34330 $ac_includes_default
34334 static struct stat ac_aggr;
34335 if (ac_aggr.st_rdev)
34341 rm -f conftest.$ac_objext
34342 if { (ac_try="$ac_compile"
34343 case "(($ac_try" in
34344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34345 *) ac_try_echo=$ac_try;;
34347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34348 (eval "$ac_compile") 2>conftest.er1
34350 grep -v '^ *+' conftest.er1 >conftest.err
34352 cat conftest.err >&5
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); } && {
34355 test -z "$ac_c_werror_flag" ||
34356 test ! -s conftest.err
34357 } && test -s conftest.$ac_objext; then
34358 ac_cv_member_struct_stat_st_rdev=yes
34360 echo "$as_me: failed program was:" >&5
34361 sed 's/^/| /' conftest.$ac_ext >&5
34363 cat >conftest.$ac_ext <<_ACEOF
34366 cat confdefs.h >>conftest.$ac_ext
34367 cat >>conftest.$ac_ext <<_ACEOF
34368 /* end confdefs.h. */
34369 $ac_includes_default
34373 static struct stat ac_aggr;
34374 if (sizeof ac_aggr.st_rdev)
34380 rm -f conftest.$ac_objext
34381 if { (ac_try="$ac_compile"
34382 case "(($ac_try" in
34383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384 *) ac_try_echo=$ac_try;;
34386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34387 (eval "$ac_compile") 2>conftest.er1
34389 grep -v '^ *+' conftest.er1 >conftest.err
34391 cat conftest.err >&5
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); } && {
34394 test -z "$ac_c_werror_flag" ||
34395 test ! -s conftest.err
34396 } && test -s conftest.$ac_objext; then
34397 ac_cv_member_struct_stat_st_rdev=yes
34399 echo "$as_me: failed program was:" >&5
34400 sed 's/^/| /' conftest.$ac_ext >&5
34402 ac_cv_member_struct_stat_st_rdev=no
34405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34410 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34411 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34412 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34414 cat >>confdefs.h <<_ACEOF
34415 #define HAVE_STRUCT_STAT_ST_RDEV 1
34419 cat >>confdefs.h <<\_ACEOF
34420 #define HAVE_ST_RDEV 1
34426 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34427 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34428 if test "${ac_cv_struct_tm+set}" = set; then
34429 echo $ECHO_N "(cached) $ECHO_C" >&6
34431 cat >conftest.$ac_ext <<_ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h. */
34437 #include <sys/types.h>
34444 int *p = &tm.tm_sec;
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_compile") 2>conftest.er1
34459 grep -v '^ *+' conftest.er1 >conftest.err
34461 cat conftest.err >&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } && {
34464 test -z "$ac_c_werror_flag" ||
34465 test ! -s conftest.err
34466 } && test -s conftest.$ac_objext; then
34467 ac_cv_struct_tm=time.h
34469 echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34472 ac_cv_struct_tm=sys/time.h
34475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34477 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34478 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34479 if test $ac_cv_struct_tm = sys/time.h; then
34481 cat >>confdefs.h <<\_ACEOF
34482 #define TM_IN_SYS_TIME 1
34487 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34488 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34489 if test "${ac_cv_c_const+set}" = set; then
34490 echo $ECHO_N "(cached) $ECHO_C" >&6
34492 cat >conftest.$ac_ext <<_ACEOF
34495 cat confdefs.h >>conftest.$ac_ext
34496 cat >>conftest.$ac_ext <<_ACEOF
34497 /* end confdefs.h. */
34502 /* FIXME: Include the comments suggested by Paul. */
34503 #ifndef __cplusplus
34504 /* Ultrix mips cc rejects this. */
34505 typedef int charset[2];
34507 /* SunOS 4.1.1 cc rejects this. */
34508 char const *const *pcpcc;
34510 /* NEC SVR4.0.2 mips cc rejects this. */
34511 struct point {int x, y;};
34512 static struct point const zero = {0,0};
34513 /* AIX XL C 1.02.0.0 rejects this.
34514 It does not let you subtract one const X* pointer from another in
34515 an arm of an if-expression whose if-part is not a constant
34517 const char *g = "string";
34518 pcpcc = &g + (g ? g-g : 0);
34519 /* HPUX 7.0 cc rejects these. */
34521 ppc = (char**) pcpcc;
34522 pcpcc = (char const *const *) ppc;
34523 { /* SCO 3.2v4 cc rejects this. */
34525 char const *s = 0 ? (char *) 0 : (char const *) 0;
34530 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34531 int x[] = {25, 17};
34532 const int *foo = &x[0];
34535 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34536 typedef const int *iptr;
34540 { /* AIX XL C 1.02.0.0 rejects this saying
34541 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34542 struct s { int j; const int *ap[3]; };
34543 struct s *b; b->j = 5;
34545 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34546 const int foo = 10;
34547 if (!foo) return 0;
34549 return !cs[0] && !zero.x;
34556 rm -f conftest.$ac_objext
34557 if { (ac_try="$ac_compile"
34558 case "(($ac_try" in
34559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34560 *) ac_try_echo=$ac_try;;
34562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34563 (eval "$ac_compile") 2>conftest.er1
34565 grep -v '^ *+' conftest.er1 >conftest.err
34567 cat conftest.err >&5
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); } && {
34570 test -z "$ac_c_werror_flag" ||
34571 test ! -s conftest.err
34572 } && test -s conftest.$ac_objext; then
34575 echo "$as_me: failed program was:" >&5
34576 sed 's/^/| /' conftest.$ac_ext >&5
34581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34583 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34584 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34585 if test $ac_cv_c_const = no; then
34587 cat >>confdefs.h <<\_ACEOF
34594 { echo "$as_me:$LINENO: checking for char" >&5
34595 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34596 if test "${ac_cv_type_char+set}" = set; then
34597 echo $ECHO_N "(cached) $ECHO_C" >&6
34599 cat >conftest.$ac_ext <<_ACEOF
34602 cat confdefs.h >>conftest.$ac_ext
34603 cat >>conftest.$ac_ext <<_ACEOF
34604 /* end confdefs.h. */
34605 $ac_includes_default
34606 typedef char ac__type_new_;
34610 if ((ac__type_new_ *) 0)
34612 if (sizeof (ac__type_new_))
34618 rm -f conftest.$ac_objext
34619 if { (ac_try="$ac_compile"
34620 case "(($ac_try" in
34621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622 *) ac_try_echo=$ac_try;;
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625 (eval "$ac_compile") 2>conftest.er1
34627 grep -v '^ *+' conftest.er1 >conftest.err
34629 cat conftest.err >&5
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); } && {
34632 test -z "$ac_c_werror_flag" ||
34633 test ! -s conftest.err
34634 } && test -s conftest.$ac_objext; then
34635 ac_cv_type_char=yes
34637 echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34645 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34646 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34648 # The cast to long int works around a bug in the HP C Compiler
34649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34651 # This bug is HP SR number 8606223364.
34652 { echo "$as_me:$LINENO: checking size of char" >&5
34653 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34654 if test "${ac_cv_sizeof_char+set}" = set; then
34655 echo $ECHO_N "(cached) $ECHO_C" >&6
34657 if test "$cross_compiling" = yes; then
34658 # Depending upon the size, compute the lo and hi bounds.
34659 cat >conftest.$ac_ext <<_ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h. */
34665 $ac_includes_default
34666 typedef char ac__type_sizeof_;
34670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34677 rm -f conftest.$ac_objext
34678 if { (ac_try="$ac_compile"
34679 case "(($ac_try" in
34680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34681 *) ac_try_echo=$ac_try;;
34683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34684 (eval "$ac_compile") 2>conftest.er1
34686 grep -v '^ *+' conftest.er1 >conftest.err
34688 cat conftest.err >&5
34689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690 (exit $ac_status); } && {
34691 test -z "$ac_c_werror_flag" ||
34692 test ! -s conftest.err
34693 } && test -s conftest.$ac_objext; then
34696 cat >conftest.$ac_ext <<_ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h. */
34702 $ac_includes_default
34703 typedef char ac__type_sizeof_;
34707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34714 rm -f conftest.$ac_objext
34715 if { (ac_try="$ac_compile"
34716 case "(($ac_try" in
34717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34718 *) ac_try_echo=$ac_try;;
34720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34721 (eval "$ac_compile") 2>conftest.er1
34723 grep -v '^ *+' conftest.er1 >conftest.err
34725 cat conftest.err >&5
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); } && {
34728 test -z "$ac_c_werror_flag" ||
34729 test ! -s conftest.err
34730 } && test -s conftest.$ac_objext; then
34731 ac_hi=$ac_mid; break
34733 echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34736 ac_lo=`expr $ac_mid + 1`
34737 if test $ac_lo -le $ac_mid; then
34741 ac_mid=`expr 2 '*' $ac_mid + 1`
34744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34747 echo "$as_me: failed program was:" >&5
34748 sed 's/^/| /' conftest.$ac_ext >&5
34750 cat >conftest.$ac_ext <<_ACEOF
34753 cat confdefs.h >>conftest.$ac_ext
34754 cat >>conftest.$ac_ext <<_ACEOF
34755 /* end confdefs.h. */
34756 $ac_includes_default
34757 typedef char ac__type_sizeof_;
34761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34768 rm -f conftest.$ac_objext
34769 if { (ac_try="$ac_compile"
34770 case "(($ac_try" in
34771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34772 *) ac_try_echo=$ac_try;;
34774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34775 (eval "$ac_compile") 2>conftest.er1
34777 grep -v '^ *+' conftest.er1 >conftest.err
34779 cat conftest.err >&5
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); } && {
34782 test -z "$ac_c_werror_flag" ||
34783 test ! -s conftest.err
34784 } && test -s conftest.$ac_objext; then
34787 cat >conftest.$ac_ext <<_ACEOF
34790 cat confdefs.h >>conftest.$ac_ext
34791 cat >>conftest.$ac_ext <<_ACEOF
34792 /* end confdefs.h. */
34793 $ac_includes_default
34794 typedef char ac__type_sizeof_;
34798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34805 rm -f conftest.$ac_objext
34806 if { (ac_try="$ac_compile"
34807 case "(($ac_try" in
34808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34809 *) ac_try_echo=$ac_try;;
34811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34812 (eval "$ac_compile") 2>conftest.er1
34814 grep -v '^ *+' conftest.er1 >conftest.err
34816 cat conftest.err >&5
34817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34818 (exit $ac_status); } && {
34819 test -z "$ac_c_werror_flag" ||
34820 test ! -s conftest.err
34821 } && test -s conftest.$ac_objext; then
34822 ac_lo=$ac_mid; break
34824 echo "$as_me: failed program was:" >&5
34825 sed 's/^/| /' conftest.$ac_ext >&5
34827 ac_hi=`expr '(' $ac_mid ')' - 1`
34828 if test $ac_mid -le $ac_hi; then
34832 ac_mid=`expr 2 '*' $ac_mid`
34835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34838 echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34848 # Binary search between lo and hi bounds.
34849 while test "x$ac_lo" != "x$ac_hi"; do
34850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34851 cat >conftest.$ac_ext <<_ACEOF
34854 cat confdefs.h >>conftest.$ac_ext
34855 cat >>conftest.$ac_ext <<_ACEOF
34856 /* end confdefs.h. */
34857 $ac_includes_default
34858 typedef char ac__type_sizeof_;
34862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34869 rm -f conftest.$ac_objext
34870 if { (ac_try="$ac_compile"
34871 case "(($ac_try" in
34872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34873 *) ac_try_echo=$ac_try;;
34875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34876 (eval "$ac_compile") 2>conftest.er1
34878 grep -v '^ *+' conftest.er1 >conftest.err
34880 cat conftest.err >&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); } && {
34883 test -z "$ac_c_werror_flag" ||
34884 test ! -s conftest.err
34885 } && test -s conftest.$ac_objext; then
34888 echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34891 ac_lo=`expr '(' $ac_mid ')' + 1`
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34897 ?*) ac_cv_sizeof_char=$ac_lo;;
34898 '') if test "$ac_cv_type_char" = yes; then
34899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34900 See \`config.log' for more details." >&5
34901 echo "$as_me: error: cannot compute sizeof (char)
34902 See \`config.log' for more details." >&2;}
34903 { (exit 77); exit 77; }; }
34905 ac_cv_sizeof_char=0
34909 cat >conftest.$ac_ext <<_ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h. */
34915 $ac_includes_default
34916 typedef char ac__type_sizeof_;
34917 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34918 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34920 #include <stdlib.h>
34925 FILE *f = fopen ("conftest.val", "w");
34928 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34930 long int i = longval ();
34931 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34933 fprintf (f, "%ld\n", i);
34937 unsigned long int i = ulongval ();
34938 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34940 fprintf (f, "%lu\n", i);
34942 return ferror (f) || fclose (f) != 0;
34948 rm -f conftest$ac_exeext
34949 if { (ac_try="$ac_link"
34950 case "(($ac_try" in
34951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952 *) ac_try_echo=$ac_try;;
34954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955 (eval "$ac_link") 2>&5
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34959 { (case "(($ac_try" in
34960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34961 *) ac_try_echo=$ac_try;;
34963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34964 (eval "$ac_try") 2>&5
34966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967 (exit $ac_status); }; }; then
34968 ac_cv_sizeof_char=`cat conftest.val`
34970 echo "$as_me: program exited with status $ac_status" >&5
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 ( exit $ac_status )
34975 if test "$ac_cv_type_char" = yes; then
34976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34977 See \`config.log' for more details." >&5
34978 echo "$as_me: error: cannot compute sizeof (char)
34979 See \`config.log' for more details." >&2;}
34980 { (exit 77); exit 77; }; }
34982 ac_cv_sizeof_char=0
34985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34989 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34990 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34994 cat >>confdefs.h <<_ACEOF
34995 #define SIZEOF_CHAR $ac_cv_sizeof_char
34999 { echo "$as_me:$LINENO: checking for short int" >&5
35000 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35001 if test "${ac_cv_type_short_int+set}" = set; then
35002 echo $ECHO_N "(cached) $ECHO_C" >&6
35004 cat >conftest.$ac_ext <<_ACEOF
35007 cat confdefs.h >>conftest.$ac_ext
35008 cat >>conftest.$ac_ext <<_ACEOF
35009 /* end confdefs.h. */
35010 $ac_includes_default
35011 typedef short int ac__type_new_;
35015 if ((ac__type_new_ *) 0)
35017 if (sizeof (ac__type_new_))
35023 rm -f conftest.$ac_objext
35024 if { (ac_try="$ac_compile"
35025 case "(($ac_try" in
35026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35027 *) ac_try_echo=$ac_try;;
35029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35030 (eval "$ac_compile") 2>conftest.er1
35032 grep -v '^ *+' conftest.er1 >conftest.err
35034 cat conftest.err >&5
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); } && {
35037 test -z "$ac_c_werror_flag" ||
35038 test ! -s conftest.err
35039 } && test -s conftest.$ac_objext; then
35040 ac_cv_type_short_int=yes
35042 echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35045 ac_cv_type_short_int=no
35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35050 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35051 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35053 # The cast to long int works around a bug in the HP C Compiler
35054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35056 # This bug is HP SR number 8606223364.
35057 { echo "$as_me:$LINENO: checking size of short int" >&5
35058 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35059 if test "${ac_cv_sizeof_short_int+set}" = set; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35062 if test "$cross_compiling" = yes; then
35063 # Depending upon the size, compute the lo and hi bounds.
35064 cat >conftest.$ac_ext <<_ACEOF
35067 cat confdefs.h >>conftest.$ac_ext
35068 cat >>conftest.$ac_ext <<_ACEOF
35069 /* end confdefs.h. */
35070 $ac_includes_default
35071 typedef short int ac__type_sizeof_;
35075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35082 rm -f conftest.$ac_objext
35083 if { (ac_try="$ac_compile"
35084 case "(($ac_try" in
35085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35086 *) ac_try_echo=$ac_try;;
35088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35089 (eval "$ac_compile") 2>conftest.er1
35091 grep -v '^ *+' conftest.er1 >conftest.err
35093 cat conftest.err >&5
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); } && {
35096 test -z "$ac_c_werror_flag" ||
35097 test ! -s conftest.err
35098 } && test -s conftest.$ac_objext; then
35101 cat >conftest.$ac_ext <<_ACEOF
35104 cat confdefs.h >>conftest.$ac_ext
35105 cat >>conftest.$ac_ext <<_ACEOF
35106 /* end confdefs.h. */
35107 $ac_includes_default
35108 typedef short int ac__type_sizeof_;
35112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35119 rm -f conftest.$ac_objext
35120 if { (ac_try="$ac_compile"
35121 case "(($ac_try" in
35122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35123 *) ac_try_echo=$ac_try;;
35125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35126 (eval "$ac_compile") 2>conftest.er1
35128 grep -v '^ *+' conftest.er1 >conftest.err
35130 cat conftest.err >&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); } && {
35133 test -z "$ac_c_werror_flag" ||
35134 test ! -s conftest.err
35135 } && test -s conftest.$ac_objext; then
35136 ac_hi=$ac_mid; break
35138 echo "$as_me: failed program was:" >&5
35139 sed 's/^/| /' conftest.$ac_ext >&5
35141 ac_lo=`expr $ac_mid + 1`
35142 if test $ac_lo -le $ac_mid; then
35146 ac_mid=`expr 2 '*' $ac_mid + 1`
35149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35152 echo "$as_me: failed program was:" >&5
35153 sed 's/^/| /' conftest.$ac_ext >&5
35155 cat >conftest.$ac_ext <<_ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h. */
35161 $ac_includes_default
35162 typedef short int ac__type_sizeof_;
35166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35173 rm -f conftest.$ac_objext
35174 if { (ac_try="$ac_compile"
35175 case "(($ac_try" in
35176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35177 *) ac_try_echo=$ac_try;;
35179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35180 (eval "$ac_compile") 2>conftest.er1
35182 grep -v '^ *+' conftest.er1 >conftest.err
35184 cat conftest.err >&5
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); } && {
35187 test -z "$ac_c_werror_flag" ||
35188 test ! -s conftest.err
35189 } && test -s conftest.$ac_objext; then
35192 cat >conftest.$ac_ext <<_ACEOF
35195 cat confdefs.h >>conftest.$ac_ext
35196 cat >>conftest.$ac_ext <<_ACEOF
35197 /* end confdefs.h. */
35198 $ac_includes_default
35199 typedef short int ac__type_sizeof_;
35203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35210 rm -f conftest.$ac_objext
35211 if { (ac_try="$ac_compile"
35212 case "(($ac_try" in
35213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35214 *) ac_try_echo=$ac_try;;
35216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35217 (eval "$ac_compile") 2>conftest.er1
35219 grep -v '^ *+' conftest.er1 >conftest.err
35221 cat conftest.err >&5
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); } && {
35224 test -z "$ac_c_werror_flag" ||
35225 test ! -s conftest.err
35226 } && test -s conftest.$ac_objext; then
35227 ac_lo=$ac_mid; break
35229 echo "$as_me: failed program was:" >&5
35230 sed 's/^/| /' conftest.$ac_ext >&5
35232 ac_hi=`expr '(' $ac_mid ')' - 1`
35233 if test $ac_mid -le $ac_hi; then
35237 ac_mid=`expr 2 '*' $ac_mid`
35240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35243 echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35253 # Binary search between lo and hi bounds.
35254 while test "x$ac_lo" != "x$ac_hi"; do
35255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35256 cat >conftest.$ac_ext <<_ACEOF
35259 cat confdefs.h >>conftest.$ac_ext
35260 cat >>conftest.$ac_ext <<_ACEOF
35261 /* end confdefs.h. */
35262 $ac_includes_default
35263 typedef short int ac__type_sizeof_;
35267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35274 rm -f conftest.$ac_objext
35275 if { (ac_try="$ac_compile"
35276 case "(($ac_try" in
35277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35278 *) ac_try_echo=$ac_try;;
35280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35281 (eval "$ac_compile") 2>conftest.er1
35283 grep -v '^ *+' conftest.er1 >conftest.err
35285 cat conftest.err >&5
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); } && {
35288 test -z "$ac_c_werror_flag" ||
35289 test ! -s conftest.err
35290 } && test -s conftest.$ac_objext; then
35293 echo "$as_me: failed program was:" >&5
35294 sed 's/^/| /' conftest.$ac_ext >&5
35296 ac_lo=`expr '(' $ac_mid ')' + 1`
35299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35302 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35303 '') if test "$ac_cv_type_short_int" = yes; then
35304 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35305 See \`config.log' for more details." >&5
35306 echo "$as_me: error: cannot compute sizeof (short int)
35307 See \`config.log' for more details." >&2;}
35308 { (exit 77); exit 77; }; }
35310 ac_cv_sizeof_short_int=0
35314 cat >conftest.$ac_ext <<_ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h. */
35320 $ac_includes_default
35321 typedef short int ac__type_sizeof_;
35322 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35323 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35325 #include <stdlib.h>
35330 FILE *f = fopen ("conftest.val", "w");
35333 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35335 long int i = longval ();
35336 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35338 fprintf (f, "%ld\n", i);
35342 unsigned long int i = ulongval ();
35343 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35345 fprintf (f, "%lu\n", i);
35347 return ferror (f) || fclose (f) != 0;
35353 rm -f conftest$ac_exeext
35354 if { (ac_try="$ac_link"
35355 case "(($ac_try" in
35356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35357 *) ac_try_echo=$ac_try;;
35359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35360 (eval "$ac_link") 2>&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35364 { (case "(($ac_try" in
35365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35366 *) ac_try_echo=$ac_try;;
35368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35369 (eval "$ac_try") 2>&5
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); }; }; then
35373 ac_cv_sizeof_short_int=`cat conftest.val`
35375 echo "$as_me: program exited with status $ac_status" >&5
35376 echo "$as_me: failed program was:" >&5
35377 sed 's/^/| /' conftest.$ac_ext >&5
35379 ( exit $ac_status )
35380 if test "$ac_cv_type_short_int" = yes; then
35381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35382 See \`config.log' for more details." >&5
35383 echo "$as_me: error: cannot compute sizeof (short int)
35384 See \`config.log' for more details." >&2;}
35385 { (exit 77); exit 77; }; }
35387 ac_cv_sizeof_short_int=0
35390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35394 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35395 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35399 cat >>confdefs.h <<_ACEOF
35400 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35404 { echo "$as_me:$LINENO: checking for int" >&5
35405 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35406 if test "${ac_cv_type_int+set}" = set; then
35407 echo $ECHO_N "(cached) $ECHO_C" >&6
35409 cat >conftest.$ac_ext <<_ACEOF
35412 cat confdefs.h >>conftest.$ac_ext
35413 cat >>conftest.$ac_ext <<_ACEOF
35414 /* end confdefs.h. */
35415 $ac_includes_default
35416 typedef int ac__type_new_;
35420 if ((ac__type_new_ *) 0)
35422 if (sizeof (ac__type_new_))
35428 rm -f conftest.$ac_objext
35429 if { (ac_try="$ac_compile"
35430 case "(($ac_try" in
35431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35432 *) ac_try_echo=$ac_try;;
35434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35435 (eval "$ac_compile") 2>conftest.er1
35437 grep -v '^ *+' conftest.er1 >conftest.err
35439 cat conftest.err >&5
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); } && {
35442 test -z "$ac_c_werror_flag" ||
35443 test ! -s conftest.err
35444 } && test -s conftest.$ac_objext; then
35447 echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35455 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35456 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35458 # The cast to long int works around a bug in the HP C Compiler
35459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35461 # This bug is HP SR number 8606223364.
35462 { echo "$as_me:$LINENO: checking size of int" >&5
35463 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35464 if test "${ac_cv_sizeof_int+set}" = set; then
35465 echo $ECHO_N "(cached) $ECHO_C" >&6
35467 if test "$cross_compiling" = yes; then
35468 # Depending upon the size, compute the lo and hi bounds.
35469 cat >conftest.$ac_ext <<_ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h. */
35475 $ac_includes_default
35476 typedef int ac__type_sizeof_;
35480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35487 rm -f conftest.$ac_objext
35488 if { (ac_try="$ac_compile"
35489 case "(($ac_try" in
35490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35491 *) ac_try_echo=$ac_try;;
35493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35494 (eval "$ac_compile") 2>conftest.er1
35496 grep -v '^ *+' conftest.er1 >conftest.err
35498 cat conftest.err >&5
35499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35500 (exit $ac_status); } && {
35501 test -z "$ac_c_werror_flag" ||
35502 test ! -s conftest.err
35503 } && test -s conftest.$ac_objext; then
35506 cat >conftest.$ac_ext <<_ACEOF
35509 cat confdefs.h >>conftest.$ac_ext
35510 cat >>conftest.$ac_ext <<_ACEOF
35511 /* end confdefs.h. */
35512 $ac_includes_default
35513 typedef int ac__type_sizeof_;
35517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35524 rm -f conftest.$ac_objext
35525 if { (ac_try="$ac_compile"
35526 case "(($ac_try" in
35527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35528 *) ac_try_echo=$ac_try;;
35530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35531 (eval "$ac_compile") 2>conftest.er1
35533 grep -v '^ *+' conftest.er1 >conftest.err
35535 cat conftest.err >&5
35536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537 (exit $ac_status); } && {
35538 test -z "$ac_c_werror_flag" ||
35539 test ! -s conftest.err
35540 } && test -s conftest.$ac_objext; then
35541 ac_hi=$ac_mid; break
35543 echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35546 ac_lo=`expr $ac_mid + 1`
35547 if test $ac_lo -le $ac_mid; then
35551 ac_mid=`expr 2 '*' $ac_mid + 1`
35554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35557 echo "$as_me: failed program was:" >&5
35558 sed 's/^/| /' conftest.$ac_ext >&5
35560 cat >conftest.$ac_ext <<_ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h. */
35566 $ac_includes_default
35567 typedef int ac__type_sizeof_;
35571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35578 rm -f conftest.$ac_objext
35579 if { (ac_try="$ac_compile"
35580 case "(($ac_try" in
35581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35582 *) ac_try_echo=$ac_try;;
35584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35585 (eval "$ac_compile") 2>conftest.er1
35587 grep -v '^ *+' conftest.er1 >conftest.err
35589 cat conftest.err >&5
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); } && {
35592 test -z "$ac_c_werror_flag" ||
35593 test ! -s conftest.err
35594 } && test -s conftest.$ac_objext; then
35597 cat >conftest.$ac_ext <<_ACEOF
35600 cat confdefs.h >>conftest.$ac_ext
35601 cat >>conftest.$ac_ext <<_ACEOF
35602 /* end confdefs.h. */
35603 $ac_includes_default
35604 typedef int ac__type_sizeof_;
35608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35615 rm -f conftest.$ac_objext
35616 if { (ac_try="$ac_compile"
35617 case "(($ac_try" in
35618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35619 *) ac_try_echo=$ac_try;;
35621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35622 (eval "$ac_compile") 2>conftest.er1
35624 grep -v '^ *+' conftest.er1 >conftest.err
35626 cat conftest.err >&5
35627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628 (exit $ac_status); } && {
35629 test -z "$ac_c_werror_flag" ||
35630 test ! -s conftest.err
35631 } && test -s conftest.$ac_objext; then
35632 ac_lo=$ac_mid; break
35634 echo "$as_me: failed program was:" >&5
35635 sed 's/^/| /' conftest.$ac_ext >&5
35637 ac_hi=`expr '(' $ac_mid ')' - 1`
35638 if test $ac_mid -le $ac_hi; then
35642 ac_mid=`expr 2 '*' $ac_mid`
35645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35648 echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 # Binary search between lo and hi bounds.
35659 while test "x$ac_lo" != "x$ac_hi"; do
35660 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35661 cat >conftest.$ac_ext <<_ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h. */
35667 $ac_includes_default
35668 typedef int ac__type_sizeof_;
35672 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35679 rm -f conftest.$ac_objext
35680 if { (ac_try="$ac_compile"
35681 case "(($ac_try" in
35682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35683 *) ac_try_echo=$ac_try;;
35685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35686 (eval "$ac_compile") 2>conftest.er1
35688 grep -v '^ *+' conftest.er1 >conftest.err
35690 cat conftest.err >&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); } && {
35693 test -z "$ac_c_werror_flag" ||
35694 test ! -s conftest.err
35695 } && test -s conftest.$ac_objext; then
35698 echo "$as_me: failed program was:" >&5
35699 sed 's/^/| /' conftest.$ac_ext >&5
35701 ac_lo=`expr '(' $ac_mid ')' + 1`
35704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35707 ?*) ac_cv_sizeof_int=$ac_lo;;
35708 '') if test "$ac_cv_type_int" = yes; then
35709 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35710 See \`config.log' for more details." >&5
35711 echo "$as_me: error: cannot compute sizeof (int)
35712 See \`config.log' for more details." >&2;}
35713 { (exit 77); exit 77; }; }
35719 cat >conftest.$ac_ext <<_ACEOF
35722 cat confdefs.h >>conftest.$ac_ext
35723 cat >>conftest.$ac_ext <<_ACEOF
35724 /* end confdefs.h. */
35725 $ac_includes_default
35726 typedef int ac__type_sizeof_;
35727 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35728 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35730 #include <stdlib.h>
35735 FILE *f = fopen ("conftest.val", "w");
35738 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35740 long int i = longval ();
35741 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35743 fprintf (f, "%ld\n", i);
35747 unsigned long int i = ulongval ();
35748 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35750 fprintf (f, "%lu\n", i);
35752 return ferror (f) || fclose (f) != 0;
35758 rm -f conftest$ac_exeext
35759 if { (ac_try="$ac_link"
35760 case "(($ac_try" in
35761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35762 *) ac_try_echo=$ac_try;;
35764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35765 (eval "$ac_link") 2>&5
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35769 { (case "(($ac_try" in
35770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35771 *) ac_try_echo=$ac_try;;
35773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35774 (eval "$ac_try") 2>&5
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; }; then
35778 ac_cv_sizeof_int=`cat conftest.val`
35780 echo "$as_me: program exited with status $ac_status" >&5
35781 echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35784 ( exit $ac_status )
35785 if test "$ac_cv_type_int" = yes; then
35786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35787 See \`config.log' for more details." >&5
35788 echo "$as_me: error: cannot compute sizeof (int)
35789 See \`config.log' for more details." >&2;}
35790 { (exit 77); exit 77; }; }
35795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35799 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35800 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35804 cat >>confdefs.h <<_ACEOF
35805 #define SIZEOF_INT $ac_cv_sizeof_int
35809 { echo "$as_me:$LINENO: checking for long int" >&5
35810 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35811 if test "${ac_cv_type_long_int+set}" = set; then
35812 echo $ECHO_N "(cached) $ECHO_C" >&6
35814 cat >conftest.$ac_ext <<_ACEOF
35817 cat confdefs.h >>conftest.$ac_ext
35818 cat >>conftest.$ac_ext <<_ACEOF
35819 /* end confdefs.h. */
35820 $ac_includes_default
35821 typedef long int ac__type_new_;
35825 if ((ac__type_new_ *) 0)
35827 if (sizeof (ac__type_new_))
35833 rm -f conftest.$ac_objext
35834 if { (ac_try="$ac_compile"
35835 case "(($ac_try" in
35836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35837 *) ac_try_echo=$ac_try;;
35839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35840 (eval "$ac_compile") 2>conftest.er1
35842 grep -v '^ *+' conftest.er1 >conftest.err
35844 cat conftest.err >&5
35845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846 (exit $ac_status); } && {
35847 test -z "$ac_c_werror_flag" ||
35848 test ! -s conftest.err
35849 } && test -s conftest.$ac_objext; then
35850 ac_cv_type_long_int=yes
35852 echo "$as_me: failed program was:" >&5
35853 sed 's/^/| /' conftest.$ac_ext >&5
35855 ac_cv_type_long_int=no
35858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35860 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35861 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35863 # The cast to long int works around a bug in the HP C Compiler
35864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35866 # This bug is HP SR number 8606223364.
35867 { echo "$as_me:$LINENO: checking size of long int" >&5
35868 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35869 if test "${ac_cv_sizeof_long_int+set}" = set; then
35870 echo $ECHO_N "(cached) $ECHO_C" >&6
35872 if test "$cross_compiling" = yes; then
35873 # Depending upon the size, compute the lo and hi bounds.
35874 cat >conftest.$ac_ext <<_ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h. */
35880 $ac_includes_default
35881 typedef long int ac__type_sizeof_;
35885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35892 rm -f conftest.$ac_objext
35893 if { (ac_try="$ac_compile"
35894 case "(($ac_try" in
35895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35896 *) ac_try_echo=$ac_try;;
35898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35899 (eval "$ac_compile") 2>conftest.er1
35901 grep -v '^ *+' conftest.er1 >conftest.err
35903 cat conftest.err >&5
35904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35905 (exit $ac_status); } && {
35906 test -z "$ac_c_werror_flag" ||
35907 test ! -s conftest.err
35908 } && test -s conftest.$ac_objext; then
35911 cat >conftest.$ac_ext <<_ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h. */
35917 $ac_includes_default
35918 typedef long int ac__type_sizeof_;
35922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35929 rm -f conftest.$ac_objext
35930 if { (ac_try="$ac_compile"
35931 case "(($ac_try" in
35932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35933 *) ac_try_echo=$ac_try;;
35935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35936 (eval "$ac_compile") 2>conftest.er1
35938 grep -v '^ *+' conftest.er1 >conftest.err
35940 cat conftest.err >&5
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); } && {
35943 test -z "$ac_c_werror_flag" ||
35944 test ! -s conftest.err
35945 } && test -s conftest.$ac_objext; then
35946 ac_hi=$ac_mid; break
35948 echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35951 ac_lo=`expr $ac_mid + 1`
35952 if test $ac_lo -le $ac_mid; then
35956 ac_mid=`expr 2 '*' $ac_mid + 1`
35959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35962 echo "$as_me: failed program was:" >&5
35963 sed 's/^/| /' conftest.$ac_ext >&5
35965 cat >conftest.$ac_ext <<_ACEOF
35968 cat confdefs.h >>conftest.$ac_ext
35969 cat >>conftest.$ac_ext <<_ACEOF
35970 /* end confdefs.h. */
35971 $ac_includes_default
35972 typedef long int ac__type_sizeof_;
35976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35983 rm -f conftest.$ac_objext
35984 if { (ac_try="$ac_compile"
35985 case "(($ac_try" in
35986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35987 *) ac_try_echo=$ac_try;;
35989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35990 (eval "$ac_compile") 2>conftest.er1
35992 grep -v '^ *+' conftest.er1 >conftest.err
35994 cat conftest.err >&5
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); } && {
35997 test -z "$ac_c_werror_flag" ||
35998 test ! -s conftest.err
35999 } && test -s conftest.$ac_objext; then
36002 cat >conftest.$ac_ext <<_ACEOF
36005 cat confdefs.h >>conftest.$ac_ext
36006 cat >>conftest.$ac_ext <<_ACEOF
36007 /* end confdefs.h. */
36008 $ac_includes_default
36009 typedef long int ac__type_sizeof_;
36013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36020 rm -f conftest.$ac_objext
36021 if { (ac_try="$ac_compile"
36022 case "(($ac_try" in
36023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36024 *) ac_try_echo=$ac_try;;
36026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36027 (eval "$ac_compile") 2>conftest.er1
36029 grep -v '^ *+' conftest.er1 >conftest.err
36031 cat conftest.err >&5
36032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36033 (exit $ac_status); } && {
36034 test -z "$ac_c_werror_flag" ||
36035 test ! -s conftest.err
36036 } && test -s conftest.$ac_objext; then
36037 ac_lo=$ac_mid; break
36039 echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36042 ac_hi=`expr '(' $ac_mid ')' - 1`
36043 if test $ac_mid -le $ac_hi; then
36047 ac_mid=`expr 2 '*' $ac_mid`
36050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36053 echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36063 # Binary search between lo and hi bounds.
36064 while test "x$ac_lo" != "x$ac_hi"; do
36065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36066 cat >conftest.$ac_ext <<_ACEOF
36069 cat confdefs.h >>conftest.$ac_ext
36070 cat >>conftest.$ac_ext <<_ACEOF
36071 /* end confdefs.h. */
36072 $ac_includes_default
36073 typedef long int ac__type_sizeof_;
36077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36084 rm -f conftest.$ac_objext
36085 if { (ac_try="$ac_compile"
36086 case "(($ac_try" in
36087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36088 *) ac_try_echo=$ac_try;;
36090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36091 (eval "$ac_compile") 2>conftest.er1
36093 grep -v '^ *+' conftest.er1 >conftest.err
36095 cat conftest.err >&5
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); } && {
36098 test -z "$ac_c_werror_flag" ||
36099 test ! -s conftest.err
36100 } && test -s conftest.$ac_objext; then
36103 echo "$as_me: failed program was:" >&5
36104 sed 's/^/| /' conftest.$ac_ext >&5
36106 ac_lo=`expr '(' $ac_mid ')' + 1`
36109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36112 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36113 '') if test "$ac_cv_type_long_int" = yes; then
36114 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36115 See \`config.log' for more details." >&5
36116 echo "$as_me: error: cannot compute sizeof (long int)
36117 See \`config.log' for more details." >&2;}
36118 { (exit 77); exit 77; }; }
36120 ac_cv_sizeof_long_int=0
36124 cat >conftest.$ac_ext <<_ACEOF
36127 cat confdefs.h >>conftest.$ac_ext
36128 cat >>conftest.$ac_ext <<_ACEOF
36129 /* end confdefs.h. */
36130 $ac_includes_default
36131 typedef long int ac__type_sizeof_;
36132 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36133 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36135 #include <stdlib.h>
36140 FILE *f = fopen ("conftest.val", "w");
36143 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36145 long int i = longval ();
36146 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36148 fprintf (f, "%ld\n", i);
36152 unsigned long int i = ulongval ();
36153 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36155 fprintf (f, "%lu\n", i);
36157 return ferror (f) || fclose (f) != 0;
36163 rm -f conftest$ac_exeext
36164 if { (ac_try="$ac_link"
36165 case "(($ac_try" in
36166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36167 *) ac_try_echo=$ac_try;;
36169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36170 (eval "$ac_link") 2>&5
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36174 { (case "(($ac_try" in
36175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36176 *) ac_try_echo=$ac_try;;
36178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36179 (eval "$ac_try") 2>&5
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); }; }; then
36183 ac_cv_sizeof_long_int=`cat conftest.val`
36185 echo "$as_me: program exited with status $ac_status" >&5
36186 echo "$as_me: failed program was:" >&5
36187 sed 's/^/| /' conftest.$ac_ext >&5
36189 ( exit $ac_status )
36190 if test "$ac_cv_type_long_int" = yes; then
36191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36192 See \`config.log' for more details." >&5
36193 echo "$as_me: error: cannot compute sizeof (long int)
36194 See \`config.log' for more details." >&2;}
36195 { (exit 77); exit 77; }; }
36197 ac_cv_sizeof_long_int=0
36200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36204 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36205 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36209 cat >>confdefs.h <<_ACEOF
36210 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36214 { echo "$as_me:$LINENO: checking for long long int" >&5
36215 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36216 if test "${ac_cv_type_long_long_int+set}" = set; then
36217 echo $ECHO_N "(cached) $ECHO_C" >&6
36219 cat >conftest.$ac_ext <<_ACEOF
36222 cat confdefs.h >>conftest.$ac_ext
36223 cat >>conftest.$ac_ext <<_ACEOF
36224 /* end confdefs.h. */
36225 $ac_includes_default
36226 typedef long long int ac__type_new_;
36230 if ((ac__type_new_ *) 0)
36232 if (sizeof (ac__type_new_))
36238 rm -f conftest.$ac_objext
36239 if { (ac_try="$ac_compile"
36240 case "(($ac_try" in
36241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242 *) ac_try_echo=$ac_try;;
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245 (eval "$ac_compile") 2>conftest.er1
36247 grep -v '^ *+' conftest.er1 >conftest.err
36249 cat conftest.err >&5
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); } && {
36252 test -z "$ac_c_werror_flag" ||
36253 test ! -s conftest.err
36254 } && test -s conftest.$ac_objext; then
36255 ac_cv_type_long_long_int=yes
36257 echo "$as_me: failed program was:" >&5
36258 sed 's/^/| /' conftest.$ac_ext >&5
36260 ac_cv_type_long_long_int=no
36263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36265 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36266 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36268 # The cast to long int works around a bug in the HP C Compiler
36269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36271 # This bug is HP SR number 8606223364.
36272 { echo "$as_me:$LINENO: checking size of long long int" >&5
36273 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36274 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36275 echo $ECHO_N "(cached) $ECHO_C" >&6
36277 if test "$cross_compiling" = yes; then
36278 # Depending upon the size, compute the lo and hi bounds.
36279 cat >conftest.$ac_ext <<_ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h. */
36285 $ac_includes_default
36286 typedef long long int ac__type_sizeof_;
36290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36297 rm -f conftest.$ac_objext
36298 if { (ac_try="$ac_compile"
36299 case "(($ac_try" in
36300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36301 *) ac_try_echo=$ac_try;;
36303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36304 (eval "$ac_compile") 2>conftest.er1
36306 grep -v '^ *+' conftest.er1 >conftest.err
36308 cat conftest.err >&5
36309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310 (exit $ac_status); } && {
36311 test -z "$ac_c_werror_flag" ||
36312 test ! -s conftest.err
36313 } && test -s conftest.$ac_objext; then
36316 cat >conftest.$ac_ext <<_ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h. */
36322 $ac_includes_default
36323 typedef long long int ac__type_sizeof_;
36327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36334 rm -f conftest.$ac_objext
36335 if { (ac_try="$ac_compile"
36336 case "(($ac_try" in
36337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36338 *) ac_try_echo=$ac_try;;
36340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36341 (eval "$ac_compile") 2>conftest.er1
36343 grep -v '^ *+' conftest.er1 >conftest.err
36345 cat conftest.err >&5
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); } && {
36348 test -z "$ac_c_werror_flag" ||
36349 test ! -s conftest.err
36350 } && test -s conftest.$ac_objext; then
36351 ac_hi=$ac_mid; break
36353 echo "$as_me: failed program was:" >&5
36354 sed 's/^/| /' conftest.$ac_ext >&5
36356 ac_lo=`expr $ac_mid + 1`
36357 if test $ac_lo -le $ac_mid; then
36361 ac_mid=`expr 2 '*' $ac_mid + 1`
36364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36367 echo "$as_me: failed program was:" >&5
36368 sed 's/^/| /' conftest.$ac_ext >&5
36370 cat >conftest.$ac_ext <<_ACEOF
36373 cat confdefs.h >>conftest.$ac_ext
36374 cat >>conftest.$ac_ext <<_ACEOF
36375 /* end confdefs.h. */
36376 $ac_includes_default
36377 typedef long long int ac__type_sizeof_;
36381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36388 rm -f conftest.$ac_objext
36389 if { (ac_try="$ac_compile"
36390 case "(($ac_try" in
36391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36392 *) ac_try_echo=$ac_try;;
36394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36395 (eval "$ac_compile") 2>conftest.er1
36397 grep -v '^ *+' conftest.er1 >conftest.err
36399 cat conftest.err >&5
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); } && {
36402 test -z "$ac_c_werror_flag" ||
36403 test ! -s conftest.err
36404 } && test -s conftest.$ac_objext; then
36407 cat >conftest.$ac_ext <<_ACEOF
36410 cat confdefs.h >>conftest.$ac_ext
36411 cat >>conftest.$ac_ext <<_ACEOF
36412 /* end confdefs.h. */
36413 $ac_includes_default
36414 typedef long long int ac__type_sizeof_;
36418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36425 rm -f conftest.$ac_objext
36426 if { (ac_try="$ac_compile"
36427 case "(($ac_try" in
36428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36429 *) ac_try_echo=$ac_try;;
36431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36432 (eval "$ac_compile") 2>conftest.er1
36434 grep -v '^ *+' conftest.er1 >conftest.err
36436 cat conftest.err >&5
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); } && {
36439 test -z "$ac_c_werror_flag" ||
36440 test ! -s conftest.err
36441 } && test -s conftest.$ac_objext; then
36442 ac_lo=$ac_mid; break
36444 echo "$as_me: failed program was:" >&5
36445 sed 's/^/| /' conftest.$ac_ext >&5
36447 ac_hi=`expr '(' $ac_mid ')' - 1`
36448 if test $ac_mid -le $ac_hi; then
36452 ac_mid=`expr 2 '*' $ac_mid`
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36458 echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36468 # Binary search between lo and hi bounds.
36469 while test "x$ac_lo" != "x$ac_hi"; do
36470 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36471 cat >conftest.$ac_ext <<_ACEOF
36474 cat confdefs.h >>conftest.$ac_ext
36475 cat >>conftest.$ac_ext <<_ACEOF
36476 /* end confdefs.h. */
36477 $ac_includes_default
36478 typedef long long int ac__type_sizeof_;
36482 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36489 rm -f conftest.$ac_objext
36490 if { (ac_try="$ac_compile"
36491 case "(($ac_try" in
36492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36493 *) ac_try_echo=$ac_try;;
36495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36496 (eval "$ac_compile") 2>conftest.er1
36498 grep -v '^ *+' conftest.er1 >conftest.err
36500 cat conftest.err >&5
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); } && {
36503 test -z "$ac_c_werror_flag" ||
36504 test ! -s conftest.err
36505 } && test -s conftest.$ac_objext; then
36508 echo "$as_me: failed program was:" >&5
36509 sed 's/^/| /' conftest.$ac_ext >&5
36511 ac_lo=`expr '(' $ac_mid ')' + 1`
36514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36517 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36518 '') if test "$ac_cv_type_long_long_int" = yes; then
36519 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36520 See \`config.log' for more details." >&5
36521 echo "$as_me: error: cannot compute sizeof (long long int)
36522 See \`config.log' for more details." >&2;}
36523 { (exit 77); exit 77; }; }
36525 ac_cv_sizeof_long_long_int=0
36529 cat >conftest.$ac_ext <<_ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h. */
36535 $ac_includes_default
36536 typedef long long int ac__type_sizeof_;
36537 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36538 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36540 #include <stdlib.h>
36545 FILE *f = fopen ("conftest.val", "w");
36548 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36550 long int i = longval ();
36551 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36553 fprintf (f, "%ld\n", i);
36557 unsigned long int i = ulongval ();
36558 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36560 fprintf (f, "%lu\n", i);
36562 return ferror (f) || fclose (f) != 0;
36568 rm -f conftest$ac_exeext
36569 if { (ac_try="$ac_link"
36570 case "(($ac_try" in
36571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36572 *) ac_try_echo=$ac_try;;
36574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36575 (eval "$ac_link") 2>&5
36577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36579 { (case "(($ac_try" in
36580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36581 *) ac_try_echo=$ac_try;;
36583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36584 (eval "$ac_try") 2>&5
36586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587 (exit $ac_status); }; }; then
36588 ac_cv_sizeof_long_long_int=`cat conftest.val`
36590 echo "$as_me: program exited with status $ac_status" >&5
36591 echo "$as_me: failed program was:" >&5
36592 sed 's/^/| /' conftest.$ac_ext >&5
36594 ( exit $ac_status )
36595 if test "$ac_cv_type_long_long_int" = yes; then
36596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36597 See \`config.log' for more details." >&5
36598 echo "$as_me: error: cannot compute sizeof (long long int)
36599 See \`config.log' for more details." >&2;}
36600 { (exit 77); exit 77; }; }
36602 ac_cv_sizeof_long_long_int=0
36605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36609 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36610 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36614 cat >>confdefs.h <<_ACEOF
36615 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36619 { echo "$as_me:$LINENO: checking for int *" >&5
36620 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36621 if test "${ac_cv_type_int_p+set}" = set; then
36622 echo $ECHO_N "(cached) $ECHO_C" >&6
36624 cat >conftest.$ac_ext <<_ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h. */
36630 $ac_includes_default
36631 typedef int * ac__type_new_;
36635 if ((ac__type_new_ *) 0)
36637 if (sizeof (ac__type_new_))
36643 rm -f conftest.$ac_objext
36644 if { (ac_try="$ac_compile"
36645 case "(($ac_try" in
36646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36647 *) ac_try_echo=$ac_try;;
36649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36650 (eval "$ac_compile") 2>conftest.er1
36652 grep -v '^ *+' conftest.er1 >conftest.err
36654 cat conftest.err >&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } && {
36657 test -z "$ac_c_werror_flag" ||
36658 test ! -s conftest.err
36659 } && test -s conftest.$ac_objext; then
36660 ac_cv_type_int_p=yes
36662 echo "$as_me: failed program was:" >&5
36663 sed 's/^/| /' conftest.$ac_ext >&5
36665 ac_cv_type_int_p=no
36668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36670 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36671 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36673 # The cast to long int works around a bug in the HP C Compiler
36674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36676 # This bug is HP SR number 8606223364.
36677 { echo "$as_me:$LINENO: checking size of int *" >&5
36678 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36679 if test "${ac_cv_sizeof_int_p+set}" = set; then
36680 echo $ECHO_N "(cached) $ECHO_C" >&6
36682 if test "$cross_compiling" = yes; then
36683 # Depending upon the size, compute the lo and hi bounds.
36684 cat >conftest.$ac_ext <<_ACEOF
36687 cat confdefs.h >>conftest.$ac_ext
36688 cat >>conftest.$ac_ext <<_ACEOF
36689 /* end confdefs.h. */
36690 $ac_includes_default
36691 typedef int * ac__type_sizeof_;
36695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36702 rm -f conftest.$ac_objext
36703 if { (ac_try="$ac_compile"
36704 case "(($ac_try" in
36705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706 *) ac_try_echo=$ac_try;;
36708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709 (eval "$ac_compile") 2>conftest.er1
36711 grep -v '^ *+' conftest.er1 >conftest.err
36713 cat conftest.err >&5
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); } && {
36716 test -z "$ac_c_werror_flag" ||
36717 test ! -s conftest.err
36718 } && test -s conftest.$ac_objext; then
36721 cat >conftest.$ac_ext <<_ACEOF
36724 cat confdefs.h >>conftest.$ac_ext
36725 cat >>conftest.$ac_ext <<_ACEOF
36726 /* end confdefs.h. */
36727 $ac_includes_default
36728 typedef int * ac__type_sizeof_;
36732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36739 rm -f conftest.$ac_objext
36740 if { (ac_try="$ac_compile"
36741 case "(($ac_try" in
36742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36743 *) ac_try_echo=$ac_try;;
36745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36746 (eval "$ac_compile") 2>conftest.er1
36748 grep -v '^ *+' conftest.er1 >conftest.err
36750 cat conftest.err >&5
36751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); } && {
36753 test -z "$ac_c_werror_flag" ||
36754 test ! -s conftest.err
36755 } && test -s conftest.$ac_objext; then
36756 ac_hi=$ac_mid; break
36758 echo "$as_me: failed program was:" >&5
36759 sed 's/^/| /' conftest.$ac_ext >&5
36761 ac_lo=`expr $ac_mid + 1`
36762 if test $ac_lo -le $ac_mid; then
36766 ac_mid=`expr 2 '*' $ac_mid + 1`
36769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36772 echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36775 cat >conftest.$ac_ext <<_ACEOF
36778 cat confdefs.h >>conftest.$ac_ext
36779 cat >>conftest.$ac_ext <<_ACEOF
36780 /* end confdefs.h. */
36781 $ac_includes_default
36782 typedef int * ac__type_sizeof_;
36786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36793 rm -f conftest.$ac_objext
36794 if { (ac_try="$ac_compile"
36795 case "(($ac_try" in
36796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36797 *) ac_try_echo=$ac_try;;
36799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36800 (eval "$ac_compile") 2>conftest.er1
36802 grep -v '^ *+' conftest.er1 >conftest.err
36804 cat conftest.err >&5
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); } && {
36807 test -z "$ac_c_werror_flag" ||
36808 test ! -s conftest.err
36809 } && test -s conftest.$ac_objext; then
36812 cat >conftest.$ac_ext <<_ACEOF
36815 cat confdefs.h >>conftest.$ac_ext
36816 cat >>conftest.$ac_ext <<_ACEOF
36817 /* end confdefs.h. */
36818 $ac_includes_default
36819 typedef int * ac__type_sizeof_;
36823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36830 rm -f conftest.$ac_objext
36831 if { (ac_try="$ac_compile"
36832 case "(($ac_try" in
36833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36834 *) ac_try_echo=$ac_try;;
36836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36837 (eval "$ac_compile") 2>conftest.er1
36839 grep -v '^ *+' conftest.er1 >conftest.err
36841 cat conftest.err >&5
36842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843 (exit $ac_status); } && {
36844 test -z "$ac_c_werror_flag" ||
36845 test ! -s conftest.err
36846 } && test -s conftest.$ac_objext; then
36847 ac_lo=$ac_mid; break
36849 echo "$as_me: failed program was:" >&5
36850 sed 's/^/| /' conftest.$ac_ext >&5
36852 ac_hi=`expr '(' $ac_mid ')' - 1`
36853 if test $ac_mid -le $ac_hi; then
36857 ac_mid=`expr 2 '*' $ac_mid`
36860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36863 echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36873 # Binary search between lo and hi bounds.
36874 while test "x$ac_lo" != "x$ac_hi"; do
36875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36876 cat >conftest.$ac_ext <<_ACEOF
36879 cat confdefs.h >>conftest.$ac_ext
36880 cat >>conftest.$ac_ext <<_ACEOF
36881 /* end confdefs.h. */
36882 $ac_includes_default
36883 typedef int * ac__type_sizeof_;
36887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36894 rm -f conftest.$ac_objext
36895 if { (ac_try="$ac_compile"
36896 case "(($ac_try" in
36897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36898 *) ac_try_echo=$ac_try;;
36900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36901 (eval "$ac_compile") 2>conftest.er1
36903 grep -v '^ *+' conftest.er1 >conftest.err
36905 cat conftest.err >&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); } && {
36908 test -z "$ac_c_werror_flag" ||
36909 test ! -s conftest.err
36910 } && test -s conftest.$ac_objext; then
36913 echo "$as_me: failed program was:" >&5
36914 sed 's/^/| /' conftest.$ac_ext >&5
36916 ac_lo=`expr '(' $ac_mid ')' + 1`
36919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36922 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36923 '') if test "$ac_cv_type_int_p" = yes; then
36924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36925 See \`config.log' for more details." >&5
36926 echo "$as_me: error: cannot compute sizeof (int *)
36927 See \`config.log' for more details." >&2;}
36928 { (exit 77); exit 77; }; }
36930 ac_cv_sizeof_int_p=0
36934 cat >conftest.$ac_ext <<_ACEOF
36937 cat confdefs.h >>conftest.$ac_ext
36938 cat >>conftest.$ac_ext <<_ACEOF
36939 /* end confdefs.h. */
36940 $ac_includes_default
36941 typedef int * ac__type_sizeof_;
36942 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36943 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36945 #include <stdlib.h>
36950 FILE *f = fopen ("conftest.val", "w");
36953 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36955 long int i = longval ();
36956 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36958 fprintf (f, "%ld\n", i);
36962 unsigned long int i = ulongval ();
36963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36965 fprintf (f, "%lu\n", i);
36967 return ferror (f) || fclose (f) != 0;
36973 rm -f conftest$ac_exeext
36974 if { (ac_try="$ac_link"
36975 case "(($ac_try" in
36976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36977 *) ac_try_echo=$ac_try;;
36979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36980 (eval "$ac_link") 2>&5
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36984 { (case "(($ac_try" in
36985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36986 *) ac_try_echo=$ac_try;;
36988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36989 (eval "$ac_try") 2>&5
36991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992 (exit $ac_status); }; }; then
36993 ac_cv_sizeof_int_p=`cat conftest.val`
36995 echo "$as_me: program exited with status $ac_status" >&5
36996 echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36999 ( exit $ac_status )
37000 if test "$ac_cv_type_int_p" = yes; then
37001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37002 See \`config.log' for more details." >&5
37003 echo "$as_me: error: cannot compute sizeof (int *)
37004 See \`config.log' for more details." >&2;}
37005 { (exit 77); exit 77; }; }
37007 ac_cv_sizeof_int_p=0
37010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37014 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37015 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37019 cat >>confdefs.h <<_ACEOF
37020 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37025 { echo "$as_me:$LINENO: checking for u_int type" >&5
37026 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37027 if test "${ac_cv_have_u_int+set}" = set; then
37028 echo $ECHO_N "(cached) $ECHO_C" >&6
37031 cat >conftest.$ac_ext <<_ACEOF
37034 cat confdefs.h >>conftest.$ac_ext
37035 cat >>conftest.$ac_ext <<_ACEOF
37036 /* end confdefs.h. */
37038 #include <sys/types.h>
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
37068 ac_cv_have_u_int="yes"
37071 echo "$as_me: failed program was:" >&5
37072 sed 's/^/| /' conftest.$ac_ext >&5
37075 ac_cv_have_u_int="no"
37080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37084 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37085 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37086 if test "x$ac_cv_have_u_int" = "xyes" ; then
37087 cat >>confdefs.h <<\_ACEOF
37088 #define HAVE_U_INT 1
37094 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37095 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37096 if test "${ac_cv_have_intmax_t+set}" = set; then
37097 echo $ECHO_N "(cached) $ECHO_C" >&6
37100 cat >conftest.$ac_ext <<_ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37107 #include <sys/types.h>
37119 rm -f conftest.$ac_objext
37120 if { (ac_try="$ac_compile"
37121 case "(($ac_try" in
37122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37123 *) ac_try_echo=$ac_try;;
37125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37126 (eval "$ac_compile") 2>conftest.er1
37128 grep -v '^ *+' conftest.er1 >conftest.err
37130 cat conftest.err >&5
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); } && {
37133 test -z "$ac_c_werror_flag" ||
37134 test ! -s conftest.err
37135 } && test -s conftest.$ac_objext; then
37137 ac_cv_have_intmax_t="yes"
37140 echo "$as_me: failed program was:" >&5
37141 sed 's/^/| /' conftest.$ac_ext >&5
37144 cat >conftest.$ac_ext <<_ACEOF
37147 cat confdefs.h >>conftest.$ac_ext
37148 cat >>conftest.$ac_ext <<_ACEOF
37149 /* end confdefs.h. */
37151 #include <stdint.h>
37163 rm -f conftest.$ac_objext
37164 if { (ac_try="$ac_compile"
37165 case "(($ac_try" in
37166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37167 *) ac_try_echo=$ac_try;;
37169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37170 (eval "$ac_compile") 2>conftest.er1
37172 grep -v '^ *+' conftest.er1 >conftest.err
37174 cat conftest.err >&5
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); } && {
37177 test -z "$ac_c_werror_flag" ||
37178 test ! -s conftest.err
37179 } && test -s conftest.$ac_objext; then
37181 ac_cv_have_intmax_t="yes"
37184 echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37188 ac_cv_have_intmax_t="no"
37193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37202 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37203 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37204 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37205 cat >>confdefs.h <<\_ACEOF
37206 #define HAVE_INTMAX_T 1
37212 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37213 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37214 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37215 echo $ECHO_N "(cached) $ECHO_C" >&6
37218 cat >conftest.$ac_ext <<_ACEOF
37221 cat confdefs.h >>conftest.$ac_ext
37222 cat >>conftest.$ac_ext <<_ACEOF
37223 /* end confdefs.h. */
37225 #include <sys/types.h>
37231 u_intmax_t a; a = 1;
37237 rm -f conftest.$ac_objext
37238 if { (ac_try="$ac_compile"
37239 case "(($ac_try" in
37240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37241 *) ac_try_echo=$ac_try;;
37243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37244 (eval "$ac_compile") 2>conftest.er1
37246 grep -v '^ *+' conftest.er1 >conftest.err
37248 cat conftest.err >&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); } && {
37251 test -z "$ac_c_werror_flag" ||
37252 test ! -s conftest.err
37253 } && test -s conftest.$ac_objext; then
37255 ac_cv_have_u_intmax_t="yes"
37258 echo "$as_me: failed program was:" >&5
37259 sed 's/^/| /' conftest.$ac_ext >&5
37262 cat >conftest.$ac_ext <<_ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h. */
37269 #include <stdint.h>
37275 u_intmax_t a; a = 1;
37281 rm -f conftest.$ac_objext
37282 if { (ac_try="$ac_compile"
37283 case "(($ac_try" in
37284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37285 *) ac_try_echo=$ac_try;;
37287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37288 (eval "$ac_compile") 2>conftest.er1
37290 grep -v '^ *+' conftest.er1 >conftest.err
37292 cat conftest.err >&5
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); } && {
37295 test -z "$ac_c_werror_flag" ||
37296 test ! -s conftest.err
37297 } && test -s conftest.$ac_objext; then
37299 ac_cv_have_u_intmax_t="yes"
37302 echo "$as_me: failed program was:" >&5
37303 sed 's/^/| /' conftest.$ac_ext >&5
37306 ac_cv_have_u_intmax_t="no"
37311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37320 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37321 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37322 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37323 cat >>confdefs.h <<\_ACEOF
37324 #define HAVE_U_INTMAX_T 1
37330 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37331 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37332 if test "${ac_cv_have_intxx_t+set}" = set; then
37333 echo $ECHO_N "(cached) $ECHO_C" >&6
37336 cat >conftest.$ac_ext <<_ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h. */
37343 #include <sys/types.h>
37349 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37355 rm -f conftest.$ac_objext
37356 if { (ac_try="$ac_compile"
37357 case "(($ac_try" in
37358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37359 *) ac_try_echo=$ac_try;;
37361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37362 (eval "$ac_compile") 2>conftest.er1
37364 grep -v '^ *+' conftest.er1 >conftest.err
37366 cat conftest.err >&5
37367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368 (exit $ac_status); } && {
37369 test -z "$ac_c_werror_flag" ||
37370 test ! -s conftest.err
37371 } && test -s conftest.$ac_objext; then
37373 ac_cv_have_intxx_t="yes"
37376 echo "$as_me: failed program was:" >&5
37377 sed 's/^/| /' conftest.$ac_ext >&5
37380 ac_cv_have_intxx_t="no"
37385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37389 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37390 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37391 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37392 cat >>confdefs.h <<\_ACEOF
37393 #define HAVE_INTXX_T 1
37399 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37400 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37401 if test "${ac_cv_have_int64_t+set}" = set; then
37402 echo $ECHO_N "(cached) $ECHO_C" >&6
37405 cat >conftest.$ac_ext <<_ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h. */
37412 #include <sys/types.h>
37424 rm -f conftest.$ac_objext
37425 if { (ac_try="$ac_compile"
37426 case "(($ac_try" in
37427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428 *) ac_try_echo=$ac_try;;
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431 (eval "$ac_compile") 2>conftest.er1
37433 grep -v '^ *+' conftest.er1 >conftest.err
37435 cat conftest.err >&5
37436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); } && {
37438 test -z "$ac_c_werror_flag" ||
37439 test ! -s conftest.err
37440 } && test -s conftest.$ac_objext; then
37442 ac_cv_have_int64_t="yes"
37445 echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37449 ac_cv_have_int64_t="no"
37454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37458 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37459 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37460 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37461 cat >>confdefs.h <<\_ACEOF
37462 #define HAVE_INT64_T 1
37468 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37469 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37470 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37471 echo $ECHO_N "(cached) $ECHO_C" >&6
37474 cat >conftest.$ac_ext <<_ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h. */
37481 #include <sys/types.h>
37487 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37493 rm -f conftest.$ac_objext
37494 if { (ac_try="$ac_compile"
37495 case "(($ac_try" in
37496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37497 *) ac_try_echo=$ac_try;;
37499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37500 (eval "$ac_compile") 2>conftest.er1
37502 grep -v '^ *+' conftest.er1 >conftest.err
37504 cat conftest.err >&5
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); } && {
37507 test -z "$ac_c_werror_flag" ||
37508 test ! -s conftest.err
37509 } && test -s conftest.$ac_objext; then
37511 ac_cv_have_u_intxx_t="yes"
37514 echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37518 ac_cv_have_u_intxx_t="no"
37523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37527 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37528 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37529 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37530 cat >>confdefs.h <<\_ACEOF
37531 #define HAVE_U_INTXX_T 1
37537 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37538 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37539 if test "${ac_cv_have_u_int64_t+set}" = set; then
37540 echo $ECHO_N "(cached) $ECHO_C" >&6
37543 cat >conftest.$ac_ext <<_ACEOF
37546 cat confdefs.h >>conftest.$ac_ext
37547 cat >>conftest.$ac_ext <<_ACEOF
37548 /* end confdefs.h. */
37550 #include <sys/types.h>
37556 u_int64_t a; a = 1;
37562 rm -f conftest.$ac_objext
37563 if { (ac_try="$ac_compile"
37564 case "(($ac_try" in
37565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566 *) ac_try_echo=$ac_try;;
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569 (eval "$ac_compile") 2>conftest.er1
37571 grep -v '^ *+' conftest.er1 >conftest.err
37573 cat conftest.err >&5
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); } && {
37576 test -z "$ac_c_werror_flag" ||
37577 test ! -s conftest.err
37578 } && test -s conftest.$ac_objext; then
37580 ac_cv_have_u_int64_t="yes"
37583 echo "$as_me: failed program was:" >&5
37584 sed 's/^/| /' conftest.$ac_ext >&5
37587 ac_cv_have_u_int64_t="no"
37592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37596 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37597 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37598 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37599 cat >>confdefs.h <<\_ACEOF
37600 #define HAVE_U_INT64_T 1
37606 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37607 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37609 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37610 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37611 cat >conftest.$ac_ext <<_ACEOF
37614 cat confdefs.h >>conftest.$ac_ext
37615 cat >>conftest.$ac_ext <<_ACEOF
37616 /* end confdefs.h. */
37618 #include <sys/bitypes.h>
37624 int8_t a; int16_t b; int32_t c;
37625 u_int8_t e; u_int16_t f; u_int32_t g;
37626 a = b = c = e = f = g = 1;
37632 rm -f conftest.$ac_objext
37633 if { (ac_try="$ac_compile"
37634 case "(($ac_try" in
37635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37636 *) ac_try_echo=$ac_try;;
37638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37639 (eval "$ac_compile") 2>conftest.er1
37641 grep -v '^ *+' conftest.er1 >conftest.err
37643 cat conftest.err >&5
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } && {
37646 test -z "$ac_c_werror_flag" ||
37647 test ! -s conftest.err
37648 } && test -s conftest.$ac_objext; then
37650 cat >>confdefs.h <<\_ACEOF
37651 #define HAVE_U_INTXX_T 1
37654 cat >>confdefs.h <<\_ACEOF
37655 #define HAVE_INTXX_T 1
37658 cat >>confdefs.h <<\_ACEOF
37659 #define HAVE_SYS_BITYPES_H 1
37662 { echo "$as_me:$LINENO: result: yes" >&5
37663 echo "${ECHO_T}yes" >&6; }
37666 echo "$as_me: failed program was:" >&5
37667 sed 's/^/| /' conftest.$ac_ext >&5
37670 { echo "$as_me:$LINENO: result: no" >&5
37671 echo "${ECHO_T}no" >&6; }
37676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37679 if test -z "$have_u_intxx_t" ; then
37680 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37681 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37682 if test "${ac_cv_have_uintxx_t+set}" = set; then
37683 echo $ECHO_N "(cached) $ECHO_C" >&6
37686 cat >conftest.$ac_ext <<_ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h. */
37693 #include <sys/types.h>
37699 uint8_t a; uint16_t b;
37700 uint32_t c; a = b = c = 1;
37706 rm -f conftest.$ac_objext
37707 if { (ac_try="$ac_compile"
37708 case "(($ac_try" in
37709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710 *) ac_try_echo=$ac_try;;
37712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37713 (eval "$ac_compile") 2>conftest.er1
37715 grep -v '^ *+' conftest.er1 >conftest.err
37717 cat conftest.err >&5
37718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); } && {
37720 test -z "$ac_c_werror_flag" ||
37721 test ! -s conftest.err
37722 } && test -s conftest.$ac_objext; then
37724 ac_cv_have_uintxx_t="yes"
37727 echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37731 ac_cv_have_uintxx_t="no"
37736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37740 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37741 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37742 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37743 cat >>confdefs.h <<\_ACEOF
37744 #define HAVE_UINTXX_T 1
37750 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37751 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37753 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37754 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37755 cat >conftest.$ac_ext <<_ACEOF
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h. */
37762 #include <sys/bitypes.h>
37768 int64_t a; u_int64_t b;
37775 rm -f conftest.$ac_objext
37776 if { (ac_try="$ac_compile"
37777 case "(($ac_try" in
37778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37779 *) ac_try_echo=$ac_try;;
37781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37782 (eval "$ac_compile") 2>conftest.er1
37784 grep -v '^ *+' conftest.er1 >conftest.err
37786 cat conftest.err >&5
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); } && {
37789 test -z "$ac_c_werror_flag" ||
37790 test ! -s conftest.err
37791 } && test -s conftest.$ac_objext; then
37793 cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_U_INT64_T 1
37797 cat >>confdefs.h <<\_ACEOF
37798 #define HAVE_INT64_T 1
37801 { echo "$as_me:$LINENO: result: yes" >&5
37802 echo "${ECHO_T}yes" >&6; }
37805 echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37809 { echo "$as_me:$LINENO: result: no" >&5
37810 echo "${ECHO_T}no" >&6; }
37815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37818 if (test -z "$have_uintxx_t" && \
37819 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37821 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37822 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37823 cat >conftest.$ac_ext <<_ACEOF
37826 cat confdefs.h >>conftest.$ac_ext
37827 cat >>conftest.$ac_ext <<_ACEOF
37828 /* end confdefs.h. */
37830 #include <sys/bitypes.h>
37836 uint8_t a; uint16_t b;
37837 uint32_t c; a = b = c = 1;
37843 rm -f conftest.$ac_objext
37844 if { (ac_try="$ac_compile"
37845 case "(($ac_try" in
37846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37847 *) ac_try_echo=$ac_try;;
37849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37850 (eval "$ac_compile") 2>conftest.er1
37852 grep -v '^ *+' conftest.er1 >conftest.err
37854 cat conftest.err >&5
37855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37856 (exit $ac_status); } && {
37857 test -z "$ac_c_werror_flag" ||
37858 test ! -s conftest.err
37859 } && test -s conftest.$ac_objext; then
37861 cat >>confdefs.h <<\_ACEOF
37862 #define HAVE_UINTXX_T 1
37865 { echo "$as_me:$LINENO: result: yes" >&5
37866 echo "${ECHO_T}yes" >&6; }
37869 echo "$as_me: failed program was:" >&5
37870 sed 's/^/| /' conftest.$ac_ext >&5
37873 { echo "$as_me:$LINENO: result: no" >&5
37874 echo "${ECHO_T}no" >&6; }
37879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37915 echo $ECHO_N "(cached) $ECHO_C" >&6
37917 cat >conftest.$ac_ext <<_ACEOF
37920 cat confdefs.h >>conftest.$ac_ext
37921 cat >>conftest.$ac_ext <<_ACEOF
37922 /* end confdefs.h. */
37923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37925 #define $ac_func innocuous_$ac_func
37927 /* System header to define __stub macros and hopefully few prototypes,
37928 which can conflict with char $ac_func (); below.
37929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37930 <limits.h> exists even on freestanding compilers. */
37933 # include <limits.h>
37935 # include <assert.h>
37940 /* Override any GCC internal prototype to avoid an error.
37941 Use char because int might match the return type of a GCC
37942 builtin and then its argument prototype would still apply. */
37947 /* The GNU C library defines this for functions which it implements
37948 to always fail with ENOSYS. Some functions are actually named
37949 something starting with __ and the normal name is an alias. */
37950 #if defined __stub_$ac_func || defined __stub___$ac_func
37957 return $ac_func ();
37962 rm -f conftest.$ac_objext conftest$ac_exeext
37963 if { (ac_try="$ac_link"
37964 case "(($ac_try" in
37965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37966 *) ac_try_echo=$ac_try;;
37968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37969 (eval "$ac_link") 2>conftest.er1
37971 grep -v '^ *+' conftest.er1 >conftest.err
37973 cat conftest.err >&5
37974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975 (exit $ac_status); } && {
37976 test -z "$ac_c_werror_flag" ||
37977 test ! -s conftest.err
37978 } && test -s conftest$ac_exeext &&
37979 $as_test_x conftest$ac_exeext; then
37980 eval "$as_ac_var=yes"
37982 echo "$as_me: failed program was:" >&5
37983 sed 's/^/| /' conftest.$ac_ext >&5
37985 eval "$as_ac_var=no"
37988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37989 conftest$ac_exeext conftest.$ac_ext
37991 ac_res=`eval echo '${'$as_ac_var'}'`
37992 { echo "$as_me:$LINENO: result: $ac_res" >&5
37993 echo "${ECHO_T}$ac_res" >&6; }
37994 if test `eval echo '${'$as_ac_var'}'` = yes; then
37995 cat >>confdefs.h <<_ACEOF
37996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38000 echo 'configure: cannot find needed function.'; exit 1
38007 for ac_func in fchdir
38009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38013 echo $ECHO_N "(cached) $ECHO_C" >&6
38015 cat >conftest.$ac_ext <<_ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h. */
38021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38023 #define $ac_func innocuous_$ac_func
38025 /* System header to define __stub macros and hopefully few prototypes,
38026 which can conflict with char $ac_func (); below.
38027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38028 <limits.h> exists even on freestanding compilers. */
38031 # include <limits.h>
38033 # include <assert.h>
38038 /* Override any GCC internal prototype to avoid an error.
38039 Use char because int might match the return type of a GCC
38040 builtin and then its argument prototype would still apply. */
38045 /* The GNU C library defines this for functions which it implements
38046 to always fail with ENOSYS. Some functions are actually named
38047 something starting with __ and the normal name is an alias. */
38048 #if defined __stub_$ac_func || defined __stub___$ac_func
38055 return $ac_func ();
38060 rm -f conftest.$ac_objext conftest$ac_exeext
38061 if { (ac_try="$ac_link"
38062 case "(($ac_try" in
38063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38064 *) ac_try_echo=$ac_try;;
38066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38067 (eval "$ac_link") 2>conftest.er1
38069 grep -v '^ *+' conftest.er1 >conftest.err
38071 cat conftest.err >&5
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); } && {
38074 test -z "$ac_c_werror_flag" ||
38075 test ! -s conftest.err
38076 } && test -s conftest$ac_exeext &&
38077 $as_test_x conftest$ac_exeext; then
38078 eval "$as_ac_var=yes"
38080 echo "$as_me: failed program was:" >&5
38081 sed 's/^/| /' conftest.$ac_ext >&5
38083 eval "$as_ac_var=no"
38086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38087 conftest$ac_exeext conftest.$ac_ext
38089 ac_res=`eval echo '${'$as_ac_var'}'`
38090 { echo "$as_me:$LINENO: result: $ac_res" >&5
38091 echo "${ECHO_T}$ac_res" >&6; }
38092 if test `eval echo '${'$as_ac_var'}'` = yes; then
38093 cat >>confdefs.h <<_ACEOF
38094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38096 cat >>confdefs.h <<\_ACEOF
38097 #define HAVE_FCHDIR 1
38104 for ac_func in strtoll
38106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38110 echo $ECHO_N "(cached) $ECHO_C" >&6
38112 cat >conftest.$ac_ext <<_ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h. */
38118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38120 #define $ac_func innocuous_$ac_func
38122 /* System header to define __stub macros and hopefully few prototypes,
38123 which can conflict with char $ac_func (); below.
38124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38125 <limits.h> exists even on freestanding compilers. */
38128 # include <limits.h>
38130 # include <assert.h>
38135 /* Override any GCC internal prototype to avoid an error.
38136 Use char because int might match the return type of a GCC
38137 builtin and then its argument prototype would still apply. */
38142 /* The GNU C library defines this for functions which it implements
38143 to always fail with ENOSYS. Some functions are actually named
38144 something starting with __ and the normal name is an alias. */
38145 #if defined __stub_$ac_func || defined __stub___$ac_func
38152 return $ac_func ();
38157 rm -f conftest.$ac_objext conftest$ac_exeext
38158 if { (ac_try="$ac_link"
38159 case "(($ac_try" in
38160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38161 *) ac_try_echo=$ac_try;;
38163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38164 (eval "$ac_link") 2>conftest.er1
38166 grep -v '^ *+' conftest.er1 >conftest.err
38168 cat conftest.err >&5
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); } && {
38171 test -z "$ac_c_werror_flag" ||
38172 test ! -s conftest.err
38173 } && test -s conftest$ac_exeext &&
38174 $as_test_x conftest$ac_exeext; then
38175 eval "$as_ac_var=yes"
38177 echo "$as_me: failed program was:" >&5
38178 sed 's/^/| /' conftest.$ac_ext >&5
38180 eval "$as_ac_var=no"
38183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38184 conftest$ac_exeext conftest.$ac_ext
38186 ac_res=`eval echo '${'$as_ac_var'}'`
38187 { echo "$as_me:$LINENO: result: $ac_res" >&5
38188 echo "${ECHO_T}$ac_res" >&6; }
38189 if test `eval echo '${'$as_ac_var'}'` = yes; then
38190 cat >>confdefs.h <<_ACEOF
38191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38193 cat >>confdefs.h <<\_ACEOF
38194 #define HAVE_STRTOLL 1
38201 for ac_func in posix_fadvise
38203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38207 echo $ECHO_N "(cached) $ECHO_C" >&6
38209 cat >conftest.$ac_ext <<_ACEOF
38212 cat confdefs.h >>conftest.$ac_ext
38213 cat >>conftest.$ac_ext <<_ACEOF
38214 /* end confdefs.h. */
38215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38217 #define $ac_func innocuous_$ac_func
38219 /* System header to define __stub macros and hopefully few prototypes,
38220 which can conflict with char $ac_func (); below.
38221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38222 <limits.h> exists even on freestanding compilers. */
38225 # include <limits.h>
38227 # include <assert.h>
38232 /* Override any GCC internal prototype to avoid an error.
38233 Use char because int might match the return type of a GCC
38234 builtin and then its argument prototype would still apply. */
38239 /* The GNU C library defines this for functions which it implements
38240 to always fail with ENOSYS. Some functions are actually named
38241 something starting with __ and the normal name is an alias. */
38242 #if defined __stub_$ac_func || defined __stub___$ac_func
38249 return $ac_func ();
38254 rm -f conftest.$ac_objext conftest$ac_exeext
38255 if { (ac_try="$ac_link"
38256 case "(($ac_try" in
38257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38258 *) ac_try_echo=$ac_try;;
38260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38261 (eval "$ac_link") 2>conftest.er1
38263 grep -v '^ *+' conftest.er1 >conftest.err
38265 cat conftest.err >&5
38266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38267 (exit $ac_status); } && {
38268 test -z "$ac_c_werror_flag" ||
38269 test ! -s conftest.err
38270 } && test -s conftest$ac_exeext &&
38271 $as_test_x conftest$ac_exeext; then
38272 eval "$as_ac_var=yes"
38274 echo "$as_me: failed program was:" >&5
38275 sed 's/^/| /' conftest.$ac_ext >&5
38277 eval "$as_ac_var=no"
38280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38281 conftest$ac_exeext conftest.$ac_ext
38283 ac_res=`eval echo '${'$as_ac_var'}'`
38284 { echo "$as_me:$LINENO: result: $ac_res" >&5
38285 echo "${ECHO_T}$ac_res" >&6; }
38286 if test `eval echo '${'$as_ac_var'}'` = yes; then
38287 cat >>confdefs.h <<_ACEOF
38288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38295 for ac_func in fdatasync
38297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38301 echo $ECHO_N "(cached) $ECHO_C" >&6
38303 cat >conftest.$ac_ext <<_ACEOF
38306 cat confdefs.h >>conftest.$ac_ext
38307 cat >>conftest.$ac_ext <<_ACEOF
38308 /* end confdefs.h. */
38309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38311 #define $ac_func innocuous_$ac_func
38313 /* System header to define __stub macros and hopefully few prototypes,
38314 which can conflict with char $ac_func (); below.
38315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38316 <limits.h> exists even on freestanding compilers. */
38319 # include <limits.h>
38321 # include <assert.h>
38326 /* Override any GCC internal prototype to avoid an error.
38327 Use char because int might match the return type of a GCC
38328 builtin and then its argument prototype would still apply. */
38333 /* The GNU C library defines this for functions which it implements
38334 to always fail with ENOSYS. Some functions are actually named
38335 something starting with __ and the normal name is an alias. */
38336 #if defined __stub_$ac_func || defined __stub___$ac_func
38343 return $ac_func ();
38348 rm -f conftest.$ac_objext conftest$ac_exeext
38349 if { (ac_try="$ac_link"
38350 case "(($ac_try" in
38351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38352 *) ac_try_echo=$ac_try;;
38354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38355 (eval "$ac_link") 2>conftest.er1
38357 grep -v '^ *+' conftest.er1 >conftest.err
38359 cat conftest.err >&5
38360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361 (exit $ac_status); } && {
38362 test -z "$ac_c_werror_flag" ||
38363 test ! -s conftest.err
38364 } && test -s conftest$ac_exeext &&
38365 $as_test_x conftest$ac_exeext; then
38366 eval "$as_ac_var=yes"
38368 echo "$as_me: failed program was:" >&5
38369 sed 's/^/| /' conftest.$ac_ext >&5
38371 eval "$as_ac_var=no"
38374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38375 conftest$ac_exeext conftest.$ac_ext
38377 ac_res=`eval echo '${'$as_ac_var'}'`
38378 { echo "$as_me:$LINENO: result: $ac_res" >&5
38379 echo "${ECHO_T}$ac_res" >&6; }
38380 if test `eval echo '${'$as_ac_var'}'` = yes; then
38381 cat >>confdefs.h <<_ACEOF
38382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38390 for ac_func in chflags
38392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38396 echo $ECHO_N "(cached) $ECHO_C" >&6
38398 cat >conftest.$ac_ext <<_ACEOF
38401 cat confdefs.h >>conftest.$ac_ext
38402 cat >>conftest.$ac_ext <<_ACEOF
38403 /* end confdefs.h. */
38404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38406 #define $ac_func innocuous_$ac_func
38408 /* System header to define __stub macros and hopefully few prototypes,
38409 which can conflict with char $ac_func (); below.
38410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38411 <limits.h> exists even on freestanding compilers. */
38414 # include <limits.h>
38416 # include <assert.h>
38421 /* Override any GCC internal prototype to avoid an error.
38422 Use char because int might match the return type of a GCC
38423 builtin and then its argument prototype would still apply. */
38428 /* The GNU C library defines this for functions which it implements
38429 to always fail with ENOSYS. Some functions are actually named
38430 something starting with __ and the normal name is an alias. */
38431 #if defined __stub_$ac_func || defined __stub___$ac_func
38438 return $ac_func ();
38443 rm -f conftest.$ac_objext conftest$ac_exeext
38444 if { (ac_try="$ac_link"
38445 case "(($ac_try" in
38446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447 *) ac_try_echo=$ac_try;;
38449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38450 (eval "$ac_link") 2>conftest.er1
38452 grep -v '^ *+' conftest.er1 >conftest.err
38454 cat conftest.err >&5
38455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456 (exit $ac_status); } && {
38457 test -z "$ac_c_werror_flag" ||
38458 test ! -s conftest.err
38459 } && test -s conftest$ac_exeext &&
38460 $as_test_x conftest$ac_exeext; then
38461 eval "$as_ac_var=yes"
38463 echo "$as_me: failed program was:" >&5
38464 sed 's/^/| /' conftest.$ac_ext >&5
38466 eval "$as_ac_var=no"
38469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38470 conftest$ac_exeext conftest.$ac_ext
38472 ac_res=`eval echo '${'$as_ac_var'}'`
38473 { echo "$as_me:$LINENO: result: $ac_res" >&5
38474 echo "${ECHO_T}$ac_res" >&6; }
38475 if test `eval echo '${'$as_ac_var'}'` = yes; then
38476 cat >>confdefs.h <<_ACEOF
38477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38488 for ac_func in snprintf vsnprintf gethostid fseeko
38490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38494 echo $ECHO_N "(cached) $ECHO_C" >&6
38496 cat >conftest.$ac_ext <<_ACEOF
38499 cat confdefs.h >>conftest.$ac_ext
38500 cat >>conftest.$ac_ext <<_ACEOF
38501 /* end confdefs.h. */
38502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38504 #define $ac_func innocuous_$ac_func
38506 /* System header to define __stub macros and hopefully few prototypes,
38507 which can conflict with char $ac_func (); below.
38508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38509 <limits.h> exists even on freestanding compilers. */
38512 # include <limits.h>
38514 # include <assert.h>
38519 /* Override any GCC internal prototype to avoid an error.
38520 Use char because int might match the return type of a GCC
38521 builtin and then its argument prototype would still apply. */
38526 /* The GNU C library defines this for functions which it implements
38527 to always fail with ENOSYS. Some functions are actually named
38528 something starting with __ and the normal name is an alias. */
38529 #if defined __stub_$ac_func || defined __stub___$ac_func
38536 return $ac_func ();
38541 rm -f conftest.$ac_objext conftest$ac_exeext
38542 if { (ac_try="$ac_link"
38543 case "(($ac_try" in
38544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38545 *) ac_try_echo=$ac_try;;
38547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38548 (eval "$ac_link") 2>conftest.er1
38550 grep -v '^ *+' conftest.er1 >conftest.err
38552 cat conftest.err >&5
38553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554 (exit $ac_status); } && {
38555 test -z "$ac_c_werror_flag" ||
38556 test ! -s conftest.err
38557 } && test -s conftest$ac_exeext &&
38558 $as_test_x conftest$ac_exeext; then
38559 eval "$as_ac_var=yes"
38561 echo "$as_me: failed program was:" >&5
38562 sed 's/^/| /' conftest.$ac_ext >&5
38564 eval "$as_ac_var=no"
38567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38568 conftest$ac_exeext conftest.$ac_ext
38570 ac_res=`eval echo '${'$as_ac_var'}'`
38571 { echo "$as_me:$LINENO: result: $ac_res" >&5
38572 echo "${ECHO_T}$ac_res" >&6; }
38573 if test `eval echo '${'$as_ac_var'}'` = yes; then
38574 cat >>confdefs.h <<_ACEOF
38575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38582 { echo "$as_me:$LINENO: checking for va_copy" >&5
38583 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38584 if test "${ba_cv_va_copy+set}" = set; then
38585 echo $ECHO_N "(cached) $ECHO_C" >&6
38588 cat >conftest.$ac_ext <<_ACEOF
38591 cat confdefs.h >>conftest.$ac_ext
38592 cat >>conftest.$ac_ext <<_ACEOF
38593 /* end confdefs.h. */
38595 #include <stdarg.h>
38596 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38597 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38603 call_use_va_copy(1,2,3)
38609 rm -f conftest.$ac_objext conftest$ac_exeext
38610 if { (ac_try="$ac_link"
38611 case "(($ac_try" in
38612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38613 *) ac_try_echo=$ac_try;;
38615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38616 (eval "$ac_link") 2>conftest.er1
38618 grep -v '^ *+' conftest.er1 >conftest.err
38620 cat conftest.err >&5
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); } && {
38623 test -z "$ac_c_werror_flag" ||
38624 test ! -s conftest.err
38625 } && test -s conftest$ac_exeext &&
38626 $as_test_x conftest$ac_exeext; then
38631 echo "$as_me: failed program was:" >&5
38632 sed 's/^/| /' conftest.$ac_ext >&5
38640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38641 conftest$ac_exeext conftest.$ac_ext
38645 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38646 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38647 test $ba_cv_va_copy = yes &&
38648 cat >>confdefs.h <<\_ACEOF
38649 #define HAVE_VA_COPY 1
38657 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38663 echo $ECHO_N "(cached) $ECHO_C" >&6
38665 cat >conftest.$ac_ext <<_ACEOF
38668 cat confdefs.h >>conftest.$ac_ext
38669 cat >>conftest.$ac_ext <<_ACEOF
38670 /* end confdefs.h. */
38671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38673 #define $ac_func innocuous_$ac_func
38675 /* System header to define __stub macros and hopefully few prototypes,
38676 which can conflict with char $ac_func (); below.
38677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38678 <limits.h> exists even on freestanding compilers. */
38681 # include <limits.h>
38683 # include <assert.h>
38688 /* Override any GCC internal prototype to avoid an error.
38689 Use char because int might match the return type of a GCC
38690 builtin and then its argument prototype would still apply. */
38695 /* The GNU C library defines this for functions which it implements
38696 to always fail with ENOSYS. Some functions are actually named
38697 something starting with __ and the normal name is an alias. */
38698 #if defined __stub_$ac_func || defined __stub___$ac_func
38705 return $ac_func ();
38710 rm -f conftest.$ac_objext conftest$ac_exeext
38711 if { (ac_try="$ac_link"
38712 case "(($ac_try" in
38713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38714 *) ac_try_echo=$ac_try;;
38716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38717 (eval "$ac_link") 2>conftest.er1
38719 grep -v '^ *+' conftest.er1 >conftest.err
38721 cat conftest.err >&5
38722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723 (exit $ac_status); } && {
38724 test -z "$ac_c_werror_flag" ||
38725 test ! -s conftest.err
38726 } && test -s conftest$ac_exeext &&
38727 $as_test_x conftest$ac_exeext; then
38728 eval "$as_ac_var=yes"
38730 echo "$as_me: failed program was:" >&5
38731 sed 's/^/| /' conftest.$ac_ext >&5
38733 eval "$as_ac_var=no"
38736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38737 conftest$ac_exeext conftest.$ac_ext
38739 ac_res=`eval echo '${'$as_ac_var'}'`
38740 { echo "$as_me:$LINENO: result: $ac_res" >&5
38741 echo "${ECHO_T}$ac_res" >&6; }
38742 if test `eval echo '${'$as_ac_var'}'` = yes; then
38743 cat >>confdefs.h <<_ACEOF
38744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38751 # If resolver functions are not in libc check for -lnsl or -lresolv.
38752 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38753 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38754 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38755 echo $ECHO_N "(cached) $ECHO_C" >&6
38757 cat >conftest.$ac_ext <<_ACEOF
38760 cat confdefs.h >>conftest.$ac_ext
38761 cat >>conftest.$ac_ext <<_ACEOF
38762 /* end confdefs.h. */
38763 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38765 #define gethostbyname_r innocuous_gethostbyname_r
38767 /* System header to define __stub macros and hopefully few prototypes,
38768 which can conflict with char gethostbyname_r (); below.
38769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38770 <limits.h> exists even on freestanding compilers. */
38773 # include <limits.h>
38775 # include <assert.h>
38778 #undef gethostbyname_r
38780 /* Override any GCC internal prototype to avoid an error.
38781 Use char because int might match the return type of a GCC
38782 builtin and then its argument prototype would still apply. */
38786 char gethostbyname_r ();
38787 /* The GNU C library defines this for functions which it implements
38788 to always fail with ENOSYS. Some functions are actually named
38789 something starting with __ and the normal name is an alias. */
38790 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38797 return gethostbyname_r ();
38802 rm -f conftest.$ac_objext conftest$ac_exeext
38803 if { (ac_try="$ac_link"
38804 case "(($ac_try" in
38805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38806 *) ac_try_echo=$ac_try;;
38808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38809 (eval "$ac_link") 2>conftest.er1
38811 grep -v '^ *+' conftest.er1 >conftest.err
38813 cat conftest.err >&5
38814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38815 (exit $ac_status); } && {
38816 test -z "$ac_c_werror_flag" ||
38817 test ! -s conftest.err
38818 } && test -s conftest$ac_exeext &&
38819 $as_test_x conftest$ac_exeext; then
38820 ac_cv_func_gethostbyname_r=yes
38822 echo "$as_me: failed program was:" >&5
38823 sed 's/^/| /' conftest.$ac_ext >&5
38825 ac_cv_func_gethostbyname_r=no
38828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38829 conftest$ac_exeext conftest.$ac_ext
38831 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38832 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38833 if test $ac_cv_func_gethostbyname_r = yes; then
38834 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38835 echo "${ECHO_T}using libc's resolver" >&6; }
38838 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38839 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38840 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38841 echo $ECHO_N "(cached) $ECHO_C" >&6
38843 ac_check_lib_save_LIBS=$LIBS
38845 cat >conftest.$ac_ext <<_ACEOF
38848 cat confdefs.h >>conftest.$ac_ext
38849 cat >>conftest.$ac_ext <<_ACEOF
38850 /* end confdefs.h. */
38852 /* Override any GCC internal prototype to avoid an error.
38853 Use char because int might match the return type of a GCC
38854 builtin and then its argument prototype would still apply. */
38858 char gethostbyname_r ();
38862 return gethostbyname_r ();
38867 rm -f conftest.$ac_objext conftest$ac_exeext
38868 if { (ac_try="$ac_link"
38869 case "(($ac_try" in
38870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38871 *) ac_try_echo=$ac_try;;
38873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38874 (eval "$ac_link") 2>conftest.er1
38876 grep -v '^ *+' conftest.er1 >conftest.err
38878 cat conftest.err >&5
38879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38880 (exit $ac_status); } && {
38881 test -z "$ac_c_werror_flag" ||
38882 test ! -s conftest.err
38883 } && test -s conftest$ac_exeext &&
38884 $as_test_x conftest$ac_exeext; then
38885 ac_cv_lib_nsl_gethostbyname_r=yes
38887 echo "$as_me: failed program was:" >&5
38888 sed 's/^/| /' conftest.$ac_ext >&5
38890 ac_cv_lib_nsl_gethostbyname_r=no
38893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38894 conftest$ac_exeext conftest.$ac_ext
38895 LIBS=$ac_check_lib_save_LIBS
38897 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38898 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38899 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38900 cat >>confdefs.h <<_ACEOF
38901 #define HAVE_LIBNSL 1
38909 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38910 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38911 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38912 echo $ECHO_N "(cached) $ECHO_C" >&6
38914 ac_check_lib_save_LIBS=$LIBS
38915 LIBS="-lresolv $LIBS"
38916 cat >conftest.$ac_ext <<_ACEOF
38919 cat confdefs.h >>conftest.$ac_ext
38920 cat >>conftest.$ac_ext <<_ACEOF
38921 /* end confdefs.h. */
38923 /* Override any GCC internal prototype to avoid an error.
38924 Use char because int might match the return type of a GCC
38925 builtin and then its argument prototype would still apply. */
38929 char gethostbyname_r ();
38933 return gethostbyname_r ();
38938 rm -f conftest.$ac_objext conftest$ac_exeext
38939 if { (ac_try="$ac_link"
38940 case "(($ac_try" in
38941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942 *) ac_try_echo=$ac_try;;
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945 (eval "$ac_link") 2>conftest.er1
38947 grep -v '^ *+' conftest.er1 >conftest.err
38949 cat conftest.err >&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); } && {
38952 test -z "$ac_c_werror_flag" ||
38953 test ! -s conftest.err
38954 } && test -s conftest$ac_exeext &&
38955 $as_test_x conftest$ac_exeext; then
38956 ac_cv_lib_resolv_gethostbyname_r=yes
38958 echo "$as_me: failed program was:" >&5
38959 sed 's/^/| /' conftest.$ac_ext >&5
38961 ac_cv_lib_resolv_gethostbyname_r=no
38964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38965 conftest$ac_exeext conftest.$ac_ext
38966 LIBS=$ac_check_lib_save_LIBS
38968 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38969 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38970 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38971 cat >>confdefs.h <<_ACEOF
38972 #define HAVE_LIBRESOLV 1
38975 LIBS="-lresolv $LIBS"
38983 for ac_func in inet_pton
38985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38989 echo $ECHO_N "(cached) $ECHO_C" >&6
38991 cat >conftest.$ac_ext <<_ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h. */
38997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38999 #define $ac_func innocuous_$ac_func
39001 /* System header to define __stub macros and hopefully few prototypes,
39002 which can conflict with char $ac_func (); below.
39003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004 <limits.h> exists even on freestanding compilers. */
39007 # include <limits.h>
39009 # include <assert.h>
39014 /* Override any GCC internal prototype to avoid an error.
39015 Use char because int might match the return type of a GCC
39016 builtin and then its argument prototype would still apply. */
39021 /* The GNU C library defines this for functions which it implements
39022 to always fail with ENOSYS. Some functions are actually named
39023 something starting with __ and the normal name is an alias. */
39024 #if defined __stub_$ac_func || defined __stub___$ac_func
39031 return $ac_func ();
39036 rm -f conftest.$ac_objext conftest$ac_exeext
39037 if { (ac_try="$ac_link"
39038 case "(($ac_try" in
39039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39040 *) ac_try_echo=$ac_try;;
39042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39043 (eval "$ac_link") 2>conftest.er1
39045 grep -v '^ *+' conftest.er1 >conftest.err
39047 cat conftest.err >&5
39048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049 (exit $ac_status); } && {
39050 test -z "$ac_c_werror_flag" ||
39051 test ! -s conftest.err
39052 } && test -s conftest$ac_exeext &&
39053 $as_test_x conftest$ac_exeext; then
39054 eval "$as_ac_var=yes"
39056 echo "$as_me: failed program was:" >&5
39057 sed 's/^/| /' conftest.$ac_ext >&5
39059 eval "$as_ac_var=no"
39062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39063 conftest$ac_exeext conftest.$ac_ext
39065 ac_res=`eval echo '${'$as_ac_var'}'`
39066 { echo "$as_me:$LINENO: result: $ac_res" >&5
39067 echo "${ECHO_T}$ac_res" >&6; }
39068 if test `eval echo '${'$as_ac_var'}'` = yes; then
39069 cat >>confdefs.h <<_ACEOF
39070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39072 cat >>confdefs.h <<\_ACEOF
39073 #define HAVE_INET_PTON 1
39080 for ac_func in inet_ntop
39082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39086 echo $ECHO_N "(cached) $ECHO_C" >&6
39088 cat >conftest.$ac_ext <<_ACEOF
39091 cat confdefs.h >>conftest.$ac_ext
39092 cat >>conftest.$ac_ext <<_ACEOF
39093 /* end confdefs.h. */
39094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39096 #define $ac_func innocuous_$ac_func
39098 /* System header to define __stub macros and hopefully few prototypes,
39099 which can conflict with char $ac_func (); below.
39100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39101 <limits.h> exists even on freestanding compilers. */
39104 # include <limits.h>
39106 # include <assert.h>
39111 /* Override any GCC internal prototype to avoid an error.
39112 Use char because int might match the return type of a GCC
39113 builtin and then its argument prototype would still apply. */
39118 /* The GNU C library defines this for functions which it implements
39119 to always fail with ENOSYS. Some functions are actually named
39120 something starting with __ and the normal name is an alias. */
39121 #if defined __stub_$ac_func || defined __stub___$ac_func
39128 return $ac_func ();
39133 rm -f conftest.$ac_objext conftest$ac_exeext
39134 if { (ac_try="$ac_link"
39135 case "(($ac_try" in
39136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137 *) ac_try_echo=$ac_try;;
39139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39140 (eval "$ac_link") 2>conftest.er1
39142 grep -v '^ *+' conftest.er1 >conftest.err
39144 cat conftest.err >&5
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); } && {
39147 test -z "$ac_c_werror_flag" ||
39148 test ! -s conftest.err
39149 } && test -s conftest$ac_exeext &&
39150 $as_test_x conftest$ac_exeext; then
39151 eval "$as_ac_var=yes"
39153 echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.$ac_ext >&5
39156 eval "$as_ac_var=no"
39159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39160 conftest$ac_exeext conftest.$ac_ext
39162 ac_res=`eval echo '${'$as_ac_var'}'`
39163 { echo "$as_me:$LINENO: result: $ac_res" >&5
39164 echo "${ECHO_T}$ac_res" >&6; }
39165 if test `eval echo '${'$as_ac_var'}'` = yes; then
39166 cat >>confdefs.h <<_ACEOF
39167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39169 cat >>confdefs.h <<\_ACEOF
39170 #define HAVE_INET_NTOP 1
39177 for ac_func in gethostbyname2
39179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39183 echo $ECHO_N "(cached) $ECHO_C" >&6
39185 cat >conftest.$ac_ext <<_ACEOF
39188 cat confdefs.h >>conftest.$ac_ext
39189 cat >>conftest.$ac_ext <<_ACEOF
39190 /* end confdefs.h. */
39191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39193 #define $ac_func innocuous_$ac_func
39195 /* System header to define __stub macros and hopefully few prototypes,
39196 which can conflict with char $ac_func (); below.
39197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39198 <limits.h> exists even on freestanding compilers. */
39201 # include <limits.h>
39203 # include <assert.h>
39208 /* Override any GCC internal prototype to avoid an error.
39209 Use char because int might match the return type of a GCC
39210 builtin and then its argument prototype would still apply. */
39215 /* The GNU C library defines this for functions which it implements
39216 to always fail with ENOSYS. Some functions are actually named
39217 something starting with __ and the normal name is an alias. */
39218 #if defined __stub_$ac_func || defined __stub___$ac_func
39225 return $ac_func ();
39230 rm -f conftest.$ac_objext conftest$ac_exeext
39231 if { (ac_try="$ac_link"
39232 case "(($ac_try" in
39233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39234 *) ac_try_echo=$ac_try;;
39236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39237 (eval "$ac_link") 2>conftest.er1
39239 grep -v '^ *+' conftest.er1 >conftest.err
39241 cat conftest.err >&5
39242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243 (exit $ac_status); } && {
39244 test -z "$ac_c_werror_flag" ||
39245 test ! -s conftest.err
39246 } && test -s conftest$ac_exeext &&
39247 $as_test_x conftest$ac_exeext; then
39248 eval "$as_ac_var=yes"
39250 echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39253 eval "$as_ac_var=no"
39256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39257 conftest$ac_exeext conftest.$ac_ext
39259 ac_res=`eval echo '${'$as_ac_var'}'`
39260 { echo "$as_me:$LINENO: result: $ac_res" >&5
39261 echo "${ECHO_T}$ac_res" >&6; }
39262 if test `eval echo '${'$as_ac_var'}'` = yes; then
39263 cat >>confdefs.h <<_ACEOF
39264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39266 cat >>confdefs.h <<\_ACEOF
39267 #define HAVE_GETHOSTBYNAME2 1
39274 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39275 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39276 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39277 echo $ECHO_N "(cached) $ECHO_C" >&6
39280 cat >conftest.$ac_ext <<_ACEOF
39283 cat confdefs.h >>conftest.$ac_ext
39284 cat >>conftest.$ac_ext <<_ACEOF
39285 /* end confdefs.h. */
39287 #include <sys/socket.h>
39293 struct sockaddr s; s.sa_len;
39299 rm -f conftest.$ac_objext
39300 if { (ac_try="$ac_compile"
39301 case "(($ac_try" in
39302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39303 *) ac_try_echo=$ac_try;;
39305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39306 (eval "$ac_compile") 2>conftest.er1
39308 grep -v '^ *+' conftest.er1 >conftest.err
39310 cat conftest.err >&5
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); } && {
39313 test -z "$ac_c_werror_flag" ||
39314 test ! -s conftest.err
39315 } && test -s conftest.$ac_objext; then
39317 ac_cv_struct_sockaddr_sa_len=yes
39320 echo "$as_me: failed program was:" >&5
39321 sed 's/^/| /' conftest.$ac_ext >&5
39323 ac_cv_struct_sockaddr_sa_len=no
39328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39332 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39333 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39335 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39337 cat >>confdefs.h <<\_ACEOF
39338 #define HAVE_SA_LEN 1
39344 for ac_func in strftime
39346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39350 echo $ECHO_N "(cached) $ECHO_C" >&6
39352 cat >conftest.$ac_ext <<_ACEOF
39355 cat confdefs.h >>conftest.$ac_ext
39356 cat >>conftest.$ac_ext <<_ACEOF
39357 /* end confdefs.h. */
39358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39360 #define $ac_func innocuous_$ac_func
39362 /* System header to define __stub macros and hopefully few prototypes,
39363 which can conflict with char $ac_func (); below.
39364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39365 <limits.h> exists even on freestanding compilers. */
39368 # include <limits.h>
39370 # include <assert.h>
39375 /* Override any GCC internal prototype to avoid an error.
39376 Use char because int might match the return type of a GCC
39377 builtin and then its argument prototype would still apply. */
39382 /* The GNU C library defines this for functions which it implements
39383 to always fail with ENOSYS. Some functions are actually named
39384 something starting with __ and the normal name is an alias. */
39385 #if defined __stub_$ac_func || defined __stub___$ac_func
39392 return $ac_func ();
39397 rm -f conftest.$ac_objext conftest$ac_exeext
39398 if { (ac_try="$ac_link"
39399 case "(($ac_try" in
39400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39401 *) ac_try_echo=$ac_try;;
39403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39404 (eval "$ac_link") 2>conftest.er1
39406 grep -v '^ *+' conftest.er1 >conftest.err
39408 cat conftest.err >&5
39409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39410 (exit $ac_status); } && {
39411 test -z "$ac_c_werror_flag" ||
39412 test ! -s conftest.err
39413 } && test -s conftest$ac_exeext &&
39414 $as_test_x conftest$ac_exeext; then
39415 eval "$as_ac_var=yes"
39417 echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39420 eval "$as_ac_var=no"
39423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39424 conftest$ac_exeext conftest.$ac_ext
39426 ac_res=`eval echo '${'$as_ac_var'}'`
39427 { echo "$as_me:$LINENO: result: $ac_res" >&5
39428 echo "${ECHO_T}$ac_res" >&6; }
39429 if test `eval echo '${'$as_ac_var'}'` = yes; then
39430 cat >>confdefs.h <<_ACEOF
39431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39435 # strftime is in -lintl on SCO UNIX.
39436 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39437 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39438 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39439 echo $ECHO_N "(cached) $ECHO_C" >&6
39441 ac_check_lib_save_LIBS=$LIBS
39442 LIBS="-lintl $LIBS"
39443 cat >conftest.$ac_ext <<_ACEOF
39446 cat confdefs.h >>conftest.$ac_ext
39447 cat >>conftest.$ac_ext <<_ACEOF
39448 /* end confdefs.h. */
39450 /* Override any GCC internal prototype to avoid an error.
39451 Use char because int might match the return type of a GCC
39452 builtin and then its argument prototype would still apply. */
39460 return strftime ();
39465 rm -f conftest.$ac_objext conftest$ac_exeext
39466 if { (ac_try="$ac_link"
39467 case "(($ac_try" in
39468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39469 *) ac_try_echo=$ac_try;;
39471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39472 (eval "$ac_link") 2>conftest.er1
39474 grep -v '^ *+' conftest.er1 >conftest.err
39476 cat conftest.err >&5
39477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478 (exit $ac_status); } && {
39479 test -z "$ac_c_werror_flag" ||
39480 test ! -s conftest.err
39481 } && test -s conftest$ac_exeext &&
39482 $as_test_x conftest$ac_exeext; then
39483 ac_cv_lib_intl_strftime=yes
39485 echo "$as_me: failed program was:" >&5
39486 sed 's/^/| /' conftest.$ac_ext >&5
39488 ac_cv_lib_intl_strftime=no
39491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39492 conftest$ac_exeext conftest.$ac_ext
39493 LIBS=$ac_check_lib_save_LIBS
39495 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39496 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39497 if test $ac_cv_lib_intl_strftime = yes; then
39498 cat >>confdefs.h <<\_ACEOF
39499 #define HAVE_STRFTIME 1
39502 LIBS="-lintl $LIBS"
39509 for ac_func in vprintf
39511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39515 echo $ECHO_N "(cached) $ECHO_C" >&6
39517 cat >conftest.$ac_ext <<_ACEOF
39520 cat confdefs.h >>conftest.$ac_ext
39521 cat >>conftest.$ac_ext <<_ACEOF
39522 /* end confdefs.h. */
39523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39525 #define $ac_func innocuous_$ac_func
39527 /* System header to define __stub macros and hopefully few prototypes,
39528 which can conflict with char $ac_func (); below.
39529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39530 <limits.h> exists even on freestanding compilers. */
39533 # include <limits.h>
39535 # include <assert.h>
39540 /* Override any GCC internal prototype to avoid an error.
39541 Use char because int might match the return type of a GCC
39542 builtin and then its argument prototype would still apply. */
39547 /* The GNU C library defines this for functions which it implements
39548 to always fail with ENOSYS. Some functions are actually named
39549 something starting with __ and the normal name is an alias. */
39550 #if defined __stub_$ac_func || defined __stub___$ac_func
39557 return $ac_func ();
39562 rm -f conftest.$ac_objext conftest$ac_exeext
39563 if { (ac_try="$ac_link"
39564 case "(($ac_try" in
39565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39566 *) ac_try_echo=$ac_try;;
39568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39569 (eval "$ac_link") 2>conftest.er1
39571 grep -v '^ *+' conftest.er1 >conftest.err
39573 cat conftest.err >&5
39574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39575 (exit $ac_status); } && {
39576 test -z "$ac_c_werror_flag" ||
39577 test ! -s conftest.err
39578 } && test -s conftest$ac_exeext &&
39579 $as_test_x conftest$ac_exeext; then
39580 eval "$as_ac_var=yes"
39582 echo "$as_me: failed program was:" >&5
39583 sed 's/^/| /' conftest.$ac_ext >&5
39585 eval "$as_ac_var=no"
39588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39589 conftest$ac_exeext conftest.$ac_ext
39591 ac_res=`eval echo '${'$as_ac_var'}'`
39592 { echo "$as_me:$LINENO: result: $ac_res" >&5
39593 echo "${ECHO_T}$ac_res" >&6; }
39594 if test `eval echo '${'$as_ac_var'}'` = yes; then
39595 cat >>confdefs.h <<_ACEOF
39596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39599 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39600 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39601 if test "${ac_cv_func__doprnt+set}" = set; then
39602 echo $ECHO_N "(cached) $ECHO_C" >&6
39604 cat >conftest.$ac_ext <<_ACEOF
39607 cat confdefs.h >>conftest.$ac_ext
39608 cat >>conftest.$ac_ext <<_ACEOF
39609 /* end confdefs.h. */
39610 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39612 #define _doprnt innocuous__doprnt
39614 /* System header to define __stub macros and hopefully few prototypes,
39615 which can conflict with char _doprnt (); below.
39616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39617 <limits.h> exists even on freestanding compilers. */
39620 # include <limits.h>
39622 # include <assert.h>
39627 /* Override any GCC internal prototype to avoid an error.
39628 Use char because int might match the return type of a GCC
39629 builtin and then its argument prototype would still apply. */
39634 /* The GNU C library defines this for functions which it implements
39635 to always fail with ENOSYS. Some functions are actually named
39636 something starting with __ and the normal name is an alias. */
39637 #if defined __stub__doprnt || defined __stub____doprnt
39649 rm -f conftest.$ac_objext conftest$ac_exeext
39650 if { (ac_try="$ac_link"
39651 case "(($ac_try" in
39652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39653 *) ac_try_echo=$ac_try;;
39655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39656 (eval "$ac_link") 2>conftest.er1
39658 grep -v '^ *+' conftest.er1 >conftest.err
39660 cat conftest.err >&5
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); } && {
39663 test -z "$ac_c_werror_flag" ||
39664 test ! -s conftest.err
39665 } && test -s conftest$ac_exeext &&
39666 $as_test_x conftest$ac_exeext; then
39667 ac_cv_func__doprnt=yes
39669 echo "$as_me: failed program was:" >&5
39670 sed 's/^/| /' conftest.$ac_ext >&5
39672 ac_cv_func__doprnt=no
39675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39676 conftest$ac_exeext conftest.$ac_ext
39678 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39679 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39680 if test $ac_cv_func__doprnt = yes; then
39682 cat >>confdefs.h <<\_ACEOF
39683 #define HAVE_DOPRNT 1
39692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39693 # for constant arguments. Useless!
39694 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39695 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39696 if test "${ac_cv_working_alloca_h+set}" = set; then
39697 echo $ECHO_N "(cached) $ECHO_C" >&6
39699 cat >conftest.$ac_ext <<_ACEOF
39702 cat confdefs.h >>conftest.$ac_ext
39703 cat >>conftest.$ac_ext <<_ACEOF
39704 /* end confdefs.h. */
39705 #include <alloca.h>
39709 char *p = (char *) alloca (2 * sizeof (int));
39715 rm -f conftest.$ac_objext conftest$ac_exeext
39716 if { (ac_try="$ac_link"
39717 case "(($ac_try" in
39718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39719 *) ac_try_echo=$ac_try;;
39721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39722 (eval "$ac_link") 2>conftest.er1
39724 grep -v '^ *+' conftest.er1 >conftest.err
39726 cat conftest.err >&5
39727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728 (exit $ac_status); } && {
39729 test -z "$ac_c_werror_flag" ||
39730 test ! -s conftest.err
39731 } && test -s conftest$ac_exeext &&
39732 $as_test_x conftest$ac_exeext; then
39733 ac_cv_working_alloca_h=yes
39735 echo "$as_me: failed program was:" >&5
39736 sed 's/^/| /' conftest.$ac_ext >&5
39738 ac_cv_working_alloca_h=no
39741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39742 conftest$ac_exeext conftest.$ac_ext
39744 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39746 if test $ac_cv_working_alloca_h = yes; then
39748 cat >>confdefs.h <<\_ACEOF
39749 #define HAVE_ALLOCA_H 1
39754 { echo "$as_me:$LINENO: checking for alloca" >&5
39755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39756 if test "${ac_cv_func_alloca_works+set}" = set; then
39757 echo $ECHO_N "(cached) $ECHO_C" >&6
39759 cat >conftest.$ac_ext <<_ACEOF
39762 cat confdefs.h >>conftest.$ac_ext
39763 cat >>conftest.$ac_ext <<_ACEOF
39764 /* end confdefs.h. */
39766 # define alloca __builtin_alloca
39769 # include <malloc.h>
39770 # define alloca _alloca
39772 # ifdef HAVE_ALLOCA_H
39773 # include <alloca.h>
39778 # ifndef alloca /* predefined by HP cc +Olibcalls */
39789 char *p = (char *) alloca (1);
39795 rm -f conftest.$ac_objext conftest$ac_exeext
39796 if { (ac_try="$ac_link"
39797 case "(($ac_try" in
39798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39799 *) ac_try_echo=$ac_try;;
39801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39802 (eval "$ac_link") 2>conftest.er1
39804 grep -v '^ *+' conftest.er1 >conftest.err
39806 cat conftest.err >&5
39807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808 (exit $ac_status); } && {
39809 test -z "$ac_c_werror_flag" ||
39810 test ! -s conftest.err
39811 } && test -s conftest$ac_exeext &&
39812 $as_test_x conftest$ac_exeext; then
39813 ac_cv_func_alloca_works=yes
39815 echo "$as_me: failed program was:" >&5
39816 sed 's/^/| /' conftest.$ac_ext >&5
39818 ac_cv_func_alloca_works=no
39821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39822 conftest$ac_exeext conftest.$ac_ext
39824 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39825 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39827 if test $ac_cv_func_alloca_works = yes; then
39829 cat >>confdefs.h <<\_ACEOF
39830 #define HAVE_ALLOCA 1
39834 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39835 # that cause trouble. Some versions do not even contain alloca or
39836 # contain a buggy version. If you still want to use their alloca,
39837 # use ar to extract alloca.o from them instead of compiling alloca.c.
39839 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39841 cat >>confdefs.h <<\_ACEOF
39846 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39847 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39848 if test "${ac_cv_os_cray+set}" = set; then
39849 echo $ECHO_N "(cached) $ECHO_C" >&6
39851 cat >conftest.$ac_ext <<_ACEOF
39854 cat confdefs.h >>conftest.$ac_ext
39855 cat >>conftest.$ac_ext <<_ACEOF
39856 /* end confdefs.h. */
39857 #if defined CRAY && ! defined CRAY2
39864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39865 $EGREP "webecray" >/dev/null 2>&1; then
39873 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39874 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39875 if test $ac_cv_os_cray = yes; then
39876 for ac_func in _getb67 GETB67 getb67; do
39877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39881 echo $ECHO_N "(cached) $ECHO_C" >&6
39883 cat >conftest.$ac_ext <<_ACEOF
39886 cat confdefs.h >>conftest.$ac_ext
39887 cat >>conftest.$ac_ext <<_ACEOF
39888 /* end confdefs.h. */
39889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39891 #define $ac_func innocuous_$ac_func
39893 /* System header to define __stub macros and hopefully few prototypes,
39894 which can conflict with char $ac_func (); below.
39895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39896 <limits.h> exists even on freestanding compilers. */
39899 # include <limits.h>
39901 # include <assert.h>
39906 /* Override any GCC internal prototype to avoid an error.
39907 Use char because int might match the return type of a GCC
39908 builtin and then its argument prototype would still apply. */
39913 /* The GNU C library defines this for functions which it implements
39914 to always fail with ENOSYS. Some functions are actually named
39915 something starting with __ and the normal name is an alias. */
39916 #if defined __stub_$ac_func || defined __stub___$ac_func
39923 return $ac_func ();
39928 rm -f conftest.$ac_objext conftest$ac_exeext
39929 if { (ac_try="$ac_link"
39930 case "(($ac_try" in
39931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39932 *) ac_try_echo=$ac_try;;
39934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39935 (eval "$ac_link") 2>conftest.er1
39937 grep -v '^ *+' conftest.er1 >conftest.err
39939 cat conftest.err >&5
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); } && {
39942 test -z "$ac_c_werror_flag" ||
39943 test ! -s conftest.err
39944 } && test -s conftest$ac_exeext &&
39945 $as_test_x conftest$ac_exeext; then
39946 eval "$as_ac_var=yes"
39948 echo "$as_me: failed program was:" >&5
39949 sed 's/^/| /' conftest.$ac_ext >&5
39951 eval "$as_ac_var=no"
39954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39955 conftest$ac_exeext conftest.$ac_ext
39957 ac_res=`eval echo '${'$as_ac_var'}'`
39958 { echo "$as_me:$LINENO: result: $ac_res" >&5
39959 echo "${ECHO_T}$ac_res" >&6; }
39960 if test `eval echo '${'$as_ac_var'}'` = yes; then
39962 cat >>confdefs.h <<_ACEOF
39963 #define CRAY_STACKSEG_END $ac_func
39972 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39973 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39974 if test "${ac_cv_c_stack_direction+set}" = set; then
39975 echo $ECHO_N "(cached) $ECHO_C" >&6
39977 if test "$cross_compiling" = yes; then
39978 ac_cv_c_stack_direction=0
39980 cat >conftest.$ac_ext <<_ACEOF
39983 cat confdefs.h >>conftest.$ac_ext
39984 cat >>conftest.$ac_ext <<_ACEOF
39985 /* end confdefs.h. */
39986 $ac_includes_default
39988 find_stack_direction ()
39990 static char *addr = 0;
39995 return find_stack_direction ();
39998 return (&dummy > addr) ? 1 : -1;
40004 return find_stack_direction () < 0;
40007 rm -f conftest$ac_exeext
40008 if { (ac_try="$ac_link"
40009 case "(($ac_try" in
40010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40011 *) ac_try_echo=$ac_try;;
40013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40014 (eval "$ac_link") 2>&5
40016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40018 { (case "(($ac_try" in
40019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40020 *) ac_try_echo=$ac_try;;
40022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40023 (eval "$ac_try") 2>&5
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); }; }; then
40027 ac_cv_c_stack_direction=1
40029 echo "$as_me: program exited with status $ac_status" >&5
40030 echo "$as_me: failed program was:" >&5
40031 sed 's/^/| /' conftest.$ac_ext >&5
40033 ( exit $ac_status )
40034 ac_cv_c_stack_direction=-1
40036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40041 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40042 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40044 cat >>confdefs.h <<_ACEOF
40045 #define STACK_DIRECTION $ac_cv_c_stack_direction
40051 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40052 # -lseq on Dynix/PTX, -lgen on Unixware.
40053 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40054 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40055 if test "${ac_cv_search_getmntent+set}" = set; then
40056 echo $ECHO_N "(cached) $ECHO_C" >&6
40058 ac_func_search_save_LIBS=$LIBS
40059 cat >conftest.$ac_ext <<_ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h. */
40066 /* Override any GCC internal prototype to avoid an error.
40067 Use char because int might match the return type of a GCC
40068 builtin and then its argument prototype would still apply. */
40076 return getmntent ();
40081 for ac_lib in '' sun seq gen; do
40082 if test -z "$ac_lib"; then
40083 ac_res="none required"
40086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40088 rm -f conftest.$ac_objext conftest$ac_exeext
40089 if { (ac_try="$ac_link"
40090 case "(($ac_try" in
40091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40092 *) ac_try_echo=$ac_try;;
40094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40095 (eval "$ac_link") 2>conftest.er1
40097 grep -v '^ *+' conftest.er1 >conftest.err
40099 cat conftest.err >&5
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101 (exit $ac_status); } && {
40102 test -z "$ac_c_werror_flag" ||
40103 test ! -s conftest.err
40104 } && test -s conftest$ac_exeext &&
40105 $as_test_x conftest$ac_exeext; then
40106 ac_cv_search_getmntent=$ac_res
40108 echo "$as_me: failed program was:" >&5
40109 sed 's/^/| /' conftest.$ac_ext >&5
40114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40116 if test "${ac_cv_search_getmntent+set}" = set; then
40120 if test "${ac_cv_search_getmntent+set}" = set; then
40123 ac_cv_search_getmntent=no
40125 rm conftest.$ac_ext
40126 LIBS=$ac_func_search_save_LIBS
40128 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40129 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40130 ac_res=$ac_cv_search_getmntent
40131 if test "$ac_res" != no; then
40132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40133 ac_cv_func_getmntent=yes
40135 cat >>confdefs.h <<\_ACEOF
40136 #define HAVE_GETMNTENT 1
40140 ac_cv_func_getmntent=no
40144 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40145 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40146 if test "${ac_cv_func_closedir_void+set}" = set; then
40147 echo $ECHO_N "(cached) $ECHO_C" >&6
40149 if test "$cross_compiling" = yes; then
40150 ac_cv_func_closedir_void=yes
40152 cat >conftest.$ac_ext <<_ACEOF
40155 cat confdefs.h >>conftest.$ac_ext
40156 cat >>conftest.$ac_ext <<_ACEOF
40157 /* end confdefs.h. */
40158 $ac_includes_default
40159 #include <$ac_header_dirent>
40160 #ifndef __cplusplus
40167 return closedir (opendir (".")) != 0;
40172 rm -f conftest$ac_exeext
40173 if { (ac_try="$ac_link"
40174 case "(($ac_try" in
40175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40176 *) ac_try_echo=$ac_try;;
40178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40179 (eval "$ac_link") 2>&5
40181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40183 { (case "(($ac_try" in
40184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40185 *) ac_try_echo=$ac_try;;
40187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40188 (eval "$ac_try") 2>&5
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); }; }; then
40192 ac_cv_func_closedir_void=no
40194 echo "$as_me: program exited with status $ac_status" >&5
40195 echo "$as_me: failed program was:" >&5
40196 sed 's/^/| /' conftest.$ac_ext >&5
40198 ( exit $ac_status )
40199 ac_cv_func_closedir_void=yes
40201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40206 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40207 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40208 if test $ac_cv_func_closedir_void = yes; then
40210 cat >>confdefs.h <<\_ACEOF
40211 #define CLOSEDIR_VOID 1
40216 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40217 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40218 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40219 echo $ECHO_N "(cached) $ECHO_C" >&6
40221 if test "$cross_compiling" = yes; then
40222 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40223 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40224 { (exit 1); exit 1; }; }
40226 cat >conftest.$ac_ext <<_ACEOF
40229 cat confdefs.h >>conftest.$ac_ext
40230 cat >>conftest.$ac_ext <<_ACEOF
40231 /* end confdefs.h. */
40232 $ac_includes_default
40236 /* If this system has a BSD-style setpgrp which takes arguments,
40237 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40238 exit successfully. */
40239 return setpgrp (1,1) != -1;
40244 rm -f conftest$ac_exeext
40245 if { (ac_try="$ac_link"
40246 case "(($ac_try" in
40247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40248 *) ac_try_echo=$ac_try;;
40250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40251 (eval "$ac_link") 2>&5
40253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40255 { (case "(($ac_try" in
40256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40257 *) ac_try_echo=$ac_try;;
40259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40260 (eval "$ac_try") 2>&5
40262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263 (exit $ac_status); }; }; then
40264 ac_cv_func_setpgrp_void=no
40266 echo "$as_me: program exited with status $ac_status" >&5
40267 echo "$as_me: failed program was:" >&5
40268 sed 's/^/| /' conftest.$ac_ext >&5
40270 ( exit $ac_status )
40271 ac_cv_func_setpgrp_void=yes
40273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40278 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40279 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40280 if test $ac_cv_func_setpgrp_void = yes; then
40282 cat >>confdefs.h <<\_ACEOF
40283 #define SETPGRP_VOID 1
40287 # AC_FUNC_FNMATCH dnl use local version
40289 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40290 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40291 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40292 echo $ECHO_N "(cached) $ECHO_C" >&6
40294 ac_check_lib_save_LIBS=$LIBS
40295 LIBS="-lintl $LIBS"
40296 cat >conftest.$ac_ext <<_ACEOF
40299 cat confdefs.h >>conftest.$ac_ext
40300 cat >>conftest.$ac_ext <<_ACEOF
40301 /* end confdefs.h. */
40303 /* Override any GCC internal prototype to avoid an error.
40304 Use char because int might match the return type of a GCC
40305 builtin and then its argument prototype would still apply. */
40318 rm -f conftest.$ac_objext conftest$ac_exeext
40319 if { (ac_try="$ac_link"
40320 case "(($ac_try" in
40321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40322 *) ac_try_echo=$ac_try;;
40324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40325 (eval "$ac_link") 2>conftest.er1
40327 grep -v '^ *+' conftest.er1 >conftest.err
40329 cat conftest.err >&5
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); } && {
40332 test -z "$ac_c_werror_flag" ||
40333 test ! -s conftest.err
40334 } && test -s conftest$ac_exeext &&
40335 $as_test_x conftest$ac_exeext; then
40336 ac_cv_lib_intl_gettext=yes
40338 echo "$as_me: failed program was:" >&5
40339 sed 's/^/| /' conftest.$ac_ext >&5
40341 ac_cv_lib_intl_gettext=no
40344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40345 conftest$ac_exeext conftest.$ac_ext
40346 LIBS=$ac_check_lib_save_LIBS
40348 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40349 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40350 if test $ac_cv_lib_intl_gettext = yes; then
40351 LIBS="$LIBS -lintl"
40356 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40357 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40358 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40359 echo $ECHO_N "(cached) $ECHO_C" >&6
40361 ac_check_lib_save_LIBS=$LIBS
40363 cat >conftest.$ac_ext <<_ACEOF
40366 cat confdefs.h >>conftest.$ac_ext
40367 cat >>conftest.$ac_ext <<_ACEOF
40368 /* end confdefs.h. */
40370 /* Override any GCC internal prototype to avoid an error.
40371 Use char because int might match the return type of a GCC
40372 builtin and then its argument prototype would still apply. */
40380 return getpwnam ();
40385 rm -f conftest.$ac_objext conftest$ac_exeext
40386 if { (ac_try="$ac_link"
40387 case "(($ac_try" in
40388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40389 *) ac_try_echo=$ac_try;;
40391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40392 (eval "$ac_link") 2>conftest.er1
40394 grep -v '^ *+' conftest.er1 >conftest.err
40396 cat conftest.err >&5
40397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40398 (exit $ac_status); } && {
40399 test -z "$ac_c_werror_flag" ||
40400 test ! -s conftest.err
40401 } && test -s conftest$ac_exeext &&
40402 $as_test_x conftest$ac_exeext; then
40403 ac_cv_lib_sun_getpwnam=yes
40405 echo "$as_me: failed program was:" >&5
40406 sed 's/^/| /' conftest.$ac_ext >&5
40408 ac_cv_lib_sun_getpwnam=no
40411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40412 conftest$ac_exeext conftest.$ac_ext
40413 LIBS=$ac_check_lib_save_LIBS
40415 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40416 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40417 if test $ac_cv_lib_sun_getpwnam = yes; then
40418 cat >>confdefs.h <<_ACEOF
40419 #define HAVE_LIBSUN 1
40428 for ac_header in zlib.h
40430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40435 echo $ECHO_N "(cached) $ECHO_C" >&6
40437 ac_res=`eval echo '${'$as_ac_Header'}'`
40438 { echo "$as_me:$LINENO: result: $ac_res" >&5
40439 echo "${ECHO_T}$ac_res" >&6; }
40441 # Is the header compilable?
40442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40444 cat >conftest.$ac_ext <<_ACEOF
40447 cat confdefs.h >>conftest.$ac_ext
40448 cat >>conftest.$ac_ext <<_ACEOF
40449 /* end confdefs.h. */
40450 $ac_includes_default
40451 #include <$ac_header>
40453 rm -f conftest.$ac_objext
40454 if { (ac_try="$ac_compile"
40455 case "(($ac_try" in
40456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40457 *) ac_try_echo=$ac_try;;
40459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40460 (eval "$ac_compile") 2>conftest.er1
40462 grep -v '^ *+' conftest.er1 >conftest.err
40464 cat conftest.err >&5
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); } && {
40467 test -z "$ac_c_werror_flag" ||
40468 test ! -s conftest.err
40469 } && test -s conftest.$ac_objext; then
40470 ac_header_compiler=yes
40472 echo "$as_me: failed program was:" >&5
40473 sed 's/^/| /' conftest.$ac_ext >&5
40475 ac_header_compiler=no
40478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40480 echo "${ECHO_T}$ac_header_compiler" >&6; }
40482 # Is the header present?
40483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40485 cat >conftest.$ac_ext <<_ACEOF
40488 cat confdefs.h >>conftest.$ac_ext
40489 cat >>conftest.$ac_ext <<_ACEOF
40490 /* end confdefs.h. */
40491 #include <$ac_header>
40493 if { (ac_try="$ac_cpp conftest.$ac_ext"
40494 case "(($ac_try" in
40495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40496 *) ac_try_echo=$ac_try;;
40498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40501 grep -v '^ *+' conftest.er1 >conftest.err
40503 cat conftest.err >&5
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505 (exit $ac_status); } >/dev/null && {
40506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40507 test ! -s conftest.err
40509 ac_header_preproc=yes
40511 echo "$as_me: failed program was:" >&5
40512 sed 's/^/| /' conftest.$ac_ext >&5
40514 ac_header_preproc=no
40517 rm -f conftest.err conftest.$ac_ext
40518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40519 echo "${ECHO_T}$ac_header_preproc" >&6; }
40521 # So? What about this header?
40522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40528 ac_header_preproc=yes
40531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40549 echo $ECHO_N "(cached) $ECHO_C" >&6
40551 eval "$as_ac_Header=\$ac_header_preproc"
40553 ac_res=`eval echo '${'$as_ac_Header'}'`
40554 { echo "$as_me:$LINENO: result: $ac_res" >&5
40555 echo "${ECHO_T}$ac_res" >&6; }
40558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40559 cat >>confdefs.h <<_ACEOF
40560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40567 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40568 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40569 if test "${ac_cv_lib_z_deflate+set}" = set; then
40570 echo $ECHO_N "(cached) $ECHO_C" >&6
40572 ac_check_lib_save_LIBS=$LIBS
40574 cat >conftest.$ac_ext <<_ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h. */
40581 /* Override any GCC internal prototype to avoid an error.
40582 Use char because int might match the return type of a GCC
40583 builtin and then its argument prototype would still apply. */
40596 rm -f conftest.$ac_objext conftest$ac_exeext
40597 if { (ac_try="$ac_link"
40598 case "(($ac_try" in
40599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40600 *) ac_try_echo=$ac_try;;
40602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40603 (eval "$ac_link") 2>conftest.er1
40605 grep -v '^ *+' conftest.er1 >conftest.err
40607 cat conftest.err >&5
40608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609 (exit $ac_status); } && {
40610 test -z "$ac_c_werror_flag" ||
40611 test ! -s conftest.err
40612 } && test -s conftest$ac_exeext &&
40613 $as_test_x conftest$ac_exeext; then
40614 ac_cv_lib_z_deflate=yes
40616 echo "$as_me: failed program was:" >&5
40617 sed 's/^/| /' conftest.$ac_ext >&5
40619 ac_cv_lib_z_deflate=no
40622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40623 conftest$ac_exeext conftest.$ac_ext
40624 LIBS=$ac_check_lib_save_LIBS
40626 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40627 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40628 if test $ac_cv_lib_z_deflate = yes; then
40633 if test x$FDLIBS = x-lz; then
40634 cat >>confdefs.h <<\_ACEOF
40635 #define HAVE_LIBZ 1
40642 # Check whether --enable-acl was given.
40643 if test "${enable_acl+set}" = set; then
40644 enableval=$enable_acl;
40645 if test x$enableval = xyes; then
40647 elif test x$enableval = xno; then
40656 have_extended_acl=no
40657 if test x$support_acl = xyes -o x$support_acl = xauto; then
40658 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40659 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40660 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40661 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40662 echo $ECHO_N "(cached) $ECHO_C" >&6
40664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40665 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40667 # Is the header compilable?
40668 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40669 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40670 cat >conftest.$ac_ext <<_ACEOF
40673 cat confdefs.h >>conftest.$ac_ext
40674 cat >>conftest.$ac_ext <<_ACEOF
40675 /* end confdefs.h. */
40676 $ac_includes_default
40677 #include <sys/acl.h>
40679 rm -f conftest.$ac_objext
40680 if { (ac_try="$ac_compile"
40681 case "(($ac_try" in
40682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40683 *) ac_try_echo=$ac_try;;
40685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40686 (eval "$ac_compile") 2>conftest.er1
40688 grep -v '^ *+' conftest.er1 >conftest.err
40690 cat conftest.err >&5
40691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40692 (exit $ac_status); } && {
40693 test -z "$ac_c_werror_flag" ||
40694 test ! -s conftest.err
40695 } && test -s conftest.$ac_objext; then
40696 ac_header_compiler=yes
40698 echo "$as_me: failed program was:" >&5
40699 sed 's/^/| /' conftest.$ac_ext >&5
40701 ac_header_compiler=no
40704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40706 echo "${ECHO_T}$ac_header_compiler" >&6; }
40708 # Is the header present?
40709 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40710 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40711 cat >conftest.$ac_ext <<_ACEOF
40714 cat confdefs.h >>conftest.$ac_ext
40715 cat >>conftest.$ac_ext <<_ACEOF
40716 /* end confdefs.h. */
40717 #include <sys/acl.h>
40719 if { (ac_try="$ac_cpp conftest.$ac_ext"
40720 case "(($ac_try" in
40721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40722 *) ac_try_echo=$ac_try;;
40724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40727 grep -v '^ *+' conftest.er1 >conftest.err
40729 cat conftest.err >&5
40730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40731 (exit $ac_status); } >/dev/null && {
40732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40733 test ! -s conftest.err
40735 ac_header_preproc=yes
40737 echo "$as_me: failed program was:" >&5
40738 sed 's/^/| /' conftest.$ac_ext >&5
40740 ac_header_preproc=no
40743 rm -f conftest.err conftest.$ac_ext
40744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40745 echo "${ECHO_T}$ac_header_preproc" >&6; }
40747 # So? What about this header?
40748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40750 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40751 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40752 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40753 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40754 ac_header_preproc=yes
40757 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40758 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40759 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40760 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40761 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40762 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40763 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40764 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40765 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40766 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40767 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40768 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40772 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40773 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40774 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40775 echo $ECHO_N "(cached) $ECHO_C" >&6
40777 ac_cv_header_sys_acl_h=$ac_header_preproc
40779 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40780 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40783 if test $ac_cv_header_sys_acl_h = yes; then
40785 cat >>confdefs.h <<\_ACEOF
40786 #define HAVE_SYS_ACL_H 1
40792 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40793 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40794 if test "${ac_cv_func_acl_get_file+set}" = set; then
40795 echo $ECHO_N "(cached) $ECHO_C" >&6
40797 cat >conftest.$ac_ext <<_ACEOF
40800 cat confdefs.h >>conftest.$ac_ext
40801 cat >>conftest.$ac_ext <<_ACEOF
40802 /* end confdefs.h. */
40803 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40805 #define acl_get_file innocuous_acl_get_file
40807 /* System header to define __stub macros and hopefully few prototypes,
40808 which can conflict with char acl_get_file (); below.
40809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40810 <limits.h> exists even on freestanding compilers. */
40813 # include <limits.h>
40815 # include <assert.h>
40818 #undef acl_get_file
40820 /* Override any GCC internal prototype to avoid an error.
40821 Use char because int might match the return type of a GCC
40822 builtin and then its argument prototype would still apply. */
40826 char acl_get_file ();
40827 /* The GNU C library defines this for functions which it implements
40828 to always fail with ENOSYS. Some functions are actually named
40829 something starting with __ and the normal name is an alias. */
40830 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40837 return acl_get_file ();
40842 rm -f conftest.$ac_objext conftest$ac_exeext
40843 if { (ac_try="$ac_link"
40844 case "(($ac_try" in
40845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40846 *) ac_try_echo=$ac_try;;
40848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40849 (eval "$ac_link") 2>conftest.er1
40851 grep -v '^ *+' conftest.er1 >conftest.err
40853 cat conftest.err >&5
40854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855 (exit $ac_status); } && {
40856 test -z "$ac_c_werror_flag" ||
40857 test ! -s conftest.err
40858 } && test -s conftest$ac_exeext &&
40859 $as_test_x conftest$ac_exeext; then
40860 ac_cv_func_acl_get_file=yes
40862 echo "$as_me: failed program was:" >&5
40863 sed 's/^/| /' conftest.$ac_ext >&5
40865 ac_cv_func_acl_get_file=no
40868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40869 conftest$ac_exeext conftest.$ac_ext
40871 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40872 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40873 if test $ac_cv_func_acl_get_file = yes; then
40879 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40880 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40881 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40882 echo $ECHO_N "(cached) $ECHO_C" >&6
40884 ac_check_lib_save_LIBS=$LIBS
40886 cat >conftest.$ac_ext <<_ACEOF
40889 cat confdefs.h >>conftest.$ac_ext
40890 cat >>conftest.$ac_ext <<_ACEOF
40891 /* end confdefs.h. */
40893 /* Override any GCC internal prototype to avoid an error.
40894 Use char because int might match the return type of a GCC
40895 builtin and then its argument prototype would still apply. */
40899 char acl_get_file ();
40903 return acl_get_file ();
40908 rm -f conftest.$ac_objext conftest$ac_exeext
40909 if { (ac_try="$ac_link"
40910 case "(($ac_try" in
40911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40912 *) ac_try_echo=$ac_try;;
40914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40915 (eval "$ac_link") 2>conftest.er1
40917 grep -v '^ *+' conftest.er1 >conftest.err
40919 cat conftest.err >&5
40920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40921 (exit $ac_status); } && {
40922 test -z "$ac_c_werror_flag" ||
40923 test ! -s conftest.err
40924 } && test -s conftest$ac_exeext &&
40925 $as_test_x conftest$ac_exeext; then
40926 ac_cv_lib_acl_acl_get_file=yes
40928 echo "$as_me: failed program was:" >&5
40929 sed 's/^/| /' conftest.$ac_ext >&5
40931 ac_cv_lib_acl_acl_get_file=no
40934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40935 conftest$ac_exeext conftest.$ac_ext
40936 LIBS=$ac_check_lib_save_LIBS
40938 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40939 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40940 if test $ac_cv_lib_acl_acl_get_file = yes; then
40943 FDLIBS="-lacl $FDLIBS"
40947 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40948 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40949 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40950 echo $ECHO_N "(cached) $ECHO_C" >&6
40952 ac_check_lib_save_LIBS=$LIBS
40953 LIBS="-lpacl $LIBS"
40954 cat >conftest.$ac_ext <<_ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h. */
40961 /* Override any GCC internal prototype to avoid an error.
40962 Use char because int might match the return type of a GCC
40963 builtin and then its argument prototype would still apply. */
40967 char acl_get_file ();
40971 return acl_get_file ();
40976 rm -f conftest.$ac_objext conftest$ac_exeext
40977 if { (ac_try="$ac_link"
40978 case "(($ac_try" in
40979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40980 *) ac_try_echo=$ac_try;;
40982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40983 (eval "$ac_link") 2>conftest.er1
40985 grep -v '^ *+' conftest.er1 >conftest.err
40987 cat conftest.err >&5
40988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989 (exit $ac_status); } && {
40990 test -z "$ac_c_werror_flag" ||
40991 test ! -s conftest.err
40992 } && test -s conftest$ac_exeext &&
40993 $as_test_x conftest$ac_exeext; then
40994 ac_cv_lib_pacl_acl_get_file=yes
40996 echo "$as_me: failed program was:" >&5
40997 sed 's/^/| /' conftest.$ac_ext >&5
40999 ac_cv_lib_pacl_acl_get_file=no
41002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41003 conftest$ac_exeext conftest.$ac_ext
41004 LIBS=$ac_check_lib_save_LIBS
41006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41007 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41008 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41011 FDLIBS="-lpacl $FDLIBS"
41015 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41016 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41017 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41018 echo $ECHO_N "(cached) $ECHO_C" >&6
41020 ac_check_lib_save_LIBS=$LIBS
41022 cat >conftest.$ac_ext <<_ACEOF
41025 cat confdefs.h >>conftest.$ac_ext
41026 cat >>conftest.$ac_ext <<_ACEOF
41027 /* end confdefs.h. */
41029 /* Override any GCC internal prototype to avoid an error.
41030 Use char because int might match the return type of a GCC
41031 builtin and then its argument prototype would still apply. */
41039 return acltotext ();
41044 rm -f conftest.$ac_objext conftest$ac_exeext
41045 if { (ac_try="$ac_link"
41046 case "(($ac_try" in
41047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41048 *) ac_try_echo=$ac_try;;
41050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41051 (eval "$ac_link") 2>conftest.er1
41053 grep -v '^ *+' conftest.er1 >conftest.err
41055 cat conftest.err >&5
41056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057 (exit $ac_status); } && {
41058 test -z "$ac_c_werror_flag" ||
41059 test ! -s conftest.err
41060 } && test -s conftest$ac_exeext &&
41061 $as_test_x conftest$ac_exeext; then
41062 ac_cv_lib_sec_acltotext=yes
41064 echo "$as_me: failed program was:" >&5
41065 sed 's/^/| /' conftest.$ac_ext >&5
41067 ac_cv_lib_sec_acltotext=no
41070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41071 conftest$ac_exeext conftest.$ac_ext
41072 LIBS=$ac_check_lib_save_LIBS
41074 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41075 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41076 if test $ac_cv_lib_sec_acltotext = yes; then
41079 FDLIBS="-lsec $FDLIBS"
41081 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41082 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41083 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41084 echo $ECHO_N "(cached) $ECHO_C" >&6
41086 ac_check_lib_save_LIBS=$LIBS
41088 cat >conftest.$ac_ext <<_ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h. */
41095 /* Override any GCC internal prototype to avoid an error.
41096 Use char because int might match the return type of a GCC
41097 builtin and then its argument prototype would still apply. */
41101 char acl_totext ();
41105 return acl_totext ();
41110 rm -f conftest.$ac_objext conftest$ac_exeext
41111 if { (ac_try="$ac_link"
41112 case "(($ac_try" in
41113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41114 *) ac_try_echo=$ac_try;;
41116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41117 (eval "$ac_link") 2>conftest.er1
41119 grep -v '^ *+' conftest.er1 >conftest.err
41121 cat conftest.err >&5
41122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123 (exit $ac_status); } && {
41124 test -z "$ac_c_werror_flag" ||
41125 test ! -s conftest.err
41126 } && test -s conftest$ac_exeext &&
41127 $as_test_x conftest$ac_exeext; then
41128 ac_cv_lib_sec_acl_totext=yes
41130 echo "$as_me: failed program was:" >&5
41131 sed 's/^/| /' conftest.$ac_ext >&5
41133 ac_cv_lib_sec_acl_totext=no
41136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41137 conftest$ac_exeext conftest.$ac_ext
41138 LIBS=$ac_check_lib_save_LIBS
41140 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41141 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41142 if test $ac_cv_lib_sec_acl_totext = yes; then
41144 have_extended_acl=yes
41166 if test x$support_acl = xyes -a $have_acl != yes; then
41167 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41168 please either load the acl libraries or rerun configure without --enable-acl" >&5
41169 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41170 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41171 { (exit 1); exit 1; }; }
41173 if test $have_acl = yes; then
41175 cat >>confdefs.h <<\_ACEOF
41181 if test $have_extended_acl = yes; then
41183 cat >>confdefs.h <<\_ACEOF
41184 #define HAVE_EXTENDED_ACL
41192 # Check whether --enable-xattr was given.
41193 if test "${enable_xattr+set}" = set; then
41194 enableval=$enable_xattr;
41195 if test x$enableval = xyes; then
41197 elif test x$enableval = xno; then
41206 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41207 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41208 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41209 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41210 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41211 echo $ECHO_N "(cached) $ECHO_C" >&6
41213 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41214 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41216 # Is the header compilable?
41217 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41218 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41219 cat >conftest.$ac_ext <<_ACEOF
41222 cat confdefs.h >>conftest.$ac_ext
41223 cat >>conftest.$ac_ext <<_ACEOF
41224 /* end confdefs.h. */
41225 $ac_includes_default
41226 #include <sys/xattr.h>
41228 rm -f conftest.$ac_objext
41229 if { (ac_try="$ac_compile"
41230 case "(($ac_try" in
41231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41232 *) ac_try_echo=$ac_try;;
41234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41235 (eval "$ac_compile") 2>conftest.er1
41237 grep -v '^ *+' conftest.er1 >conftest.err
41239 cat conftest.err >&5
41240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241 (exit $ac_status); } && {
41242 test -z "$ac_c_werror_flag" ||
41243 test ! -s conftest.err
41244 } && test -s conftest.$ac_objext; then
41245 ac_header_compiler=yes
41247 echo "$as_me: failed program was:" >&5
41248 sed 's/^/| /' conftest.$ac_ext >&5
41250 ac_header_compiler=no
41253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41255 echo "${ECHO_T}$ac_header_compiler" >&6; }
41257 # Is the header present?
41258 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41259 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41260 cat >conftest.$ac_ext <<_ACEOF
41263 cat confdefs.h >>conftest.$ac_ext
41264 cat >>conftest.$ac_ext <<_ACEOF
41265 /* end confdefs.h. */
41266 #include <sys/xattr.h>
41268 if { (ac_try="$ac_cpp conftest.$ac_ext"
41269 case "(($ac_try" in
41270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41271 *) ac_try_echo=$ac_try;;
41273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41276 grep -v '^ *+' conftest.er1 >conftest.err
41278 cat conftest.err >&5
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); } >/dev/null && {
41281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41282 test ! -s conftest.err
41284 ac_header_preproc=yes
41286 echo "$as_me: failed program was:" >&5
41287 sed 's/^/| /' conftest.$ac_ext >&5
41289 ac_header_preproc=no
41292 rm -f conftest.err conftest.$ac_ext
41293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41294 echo "${ECHO_T}$ac_header_preproc" >&6; }
41296 # So? What about this header?
41297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41299 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41300 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41301 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41302 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41303 ac_header_preproc=yes
41306 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41307 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41308 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41309 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41310 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41311 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41312 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41313 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41314 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41315 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41316 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41317 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41321 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41322 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41323 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41324 echo $ECHO_N "(cached) $ECHO_C" >&6
41326 ac_cv_header_sys_xattr_h=$ac_header_preproc
41328 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41329 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41332 if test $ac_cv_header_sys_xattr_h = yes; then
41334 cat >>confdefs.h <<\_ACEOF
41335 #define HAVE_SYS_XATTR_H 1
41344 for ac_func in llistxattr lgetxattr lsetxattr
41346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41350 echo $ECHO_N "(cached) $ECHO_C" >&6
41352 cat >conftest.$ac_ext <<_ACEOF
41355 cat confdefs.h >>conftest.$ac_ext
41356 cat >>conftest.$ac_ext <<_ACEOF
41357 /* end confdefs.h. */
41358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41360 #define $ac_func innocuous_$ac_func
41362 /* System header to define __stub macros and hopefully few prototypes,
41363 which can conflict with char $ac_func (); below.
41364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41365 <limits.h> exists even on freestanding compilers. */
41368 # include <limits.h>
41370 # include <assert.h>
41375 /* Override any GCC internal prototype to avoid an error.
41376 Use char because int might match the return type of a GCC
41377 builtin and then its argument prototype would still apply. */
41382 /* The GNU C library defines this for functions which it implements
41383 to always fail with ENOSYS. Some functions are actually named
41384 something starting with __ and the normal name is an alias. */
41385 #if defined __stub_$ac_func || defined __stub___$ac_func
41392 return $ac_func ();
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (ac_try="$ac_link"
41399 case "(($ac_try" in
41400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41401 *) ac_try_echo=$ac_try;;
41403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41404 (eval "$ac_link") 2>conftest.er1
41406 grep -v '^ *+' conftest.er1 >conftest.err
41408 cat conftest.err >&5
41409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410 (exit $ac_status); } && {
41411 test -z "$ac_c_werror_flag" ||
41412 test ! -s conftest.err
41413 } && test -s conftest$ac_exeext &&
41414 $as_test_x conftest$ac_exeext; then
41415 eval "$as_ac_var=yes"
41417 echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41420 eval "$as_ac_var=no"
41423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41424 conftest$ac_exeext conftest.$ac_ext
41426 ac_res=`eval echo '${'$as_ac_var'}'`
41427 { echo "$as_me:$LINENO: result: $ac_res" >&5
41428 echo "${ECHO_T}$ac_res" >&6; }
41429 if test `eval echo '${'$as_ac_var'}'` = yes; then
41430 cat >>confdefs.h <<_ACEOF
41431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41436 cat >>confdefs.h <<\_ACEOF
41437 #define HAVE_LLISTXATTR
41441 cat >>confdefs.h <<\_ACEOF
41442 #define HAVE_LGETXATTR
41446 cat >>confdefs.h <<\_ACEOF
41447 #define HAVE_LSETXATTR
41459 if test $have_xattr = no; then
41463 for ac_func in listxattr getxattr setxattr
41465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41469 echo $ECHO_N "(cached) $ECHO_C" >&6
41471 cat >conftest.$ac_ext <<_ACEOF
41474 cat confdefs.h >>conftest.$ac_ext
41475 cat >>conftest.$ac_ext <<_ACEOF
41476 /* end confdefs.h. */
41477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41479 #define $ac_func innocuous_$ac_func
41481 /* System header to define __stub macros and hopefully few prototypes,
41482 which can conflict with char $ac_func (); below.
41483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41484 <limits.h> exists even on freestanding compilers. */
41487 # include <limits.h>
41489 # include <assert.h>
41494 /* Override any GCC internal prototype to avoid an error.
41495 Use char because int might match the return type of a GCC
41496 builtin and then its argument prototype would still apply. */
41501 /* The GNU C library defines this for functions which it implements
41502 to always fail with ENOSYS. Some functions are actually named
41503 something starting with __ and the normal name is an alias. */
41504 #if defined __stub_$ac_func || defined __stub___$ac_func
41511 return $ac_func ();
41516 rm -f conftest.$ac_objext conftest$ac_exeext
41517 if { (ac_try="$ac_link"
41518 case "(($ac_try" in
41519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41520 *) ac_try_echo=$ac_try;;
41522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41523 (eval "$ac_link") 2>conftest.er1
41525 grep -v '^ *+' conftest.er1 >conftest.err
41527 cat conftest.err >&5
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); } && {
41530 test -z "$ac_c_werror_flag" ||
41531 test ! -s conftest.err
41532 } && test -s conftest$ac_exeext &&
41533 $as_test_x conftest$ac_exeext; then
41534 eval "$as_ac_var=yes"
41536 echo "$as_me: failed program was:" >&5
41537 sed 's/^/| /' conftest.$ac_ext >&5
41539 eval "$as_ac_var=no"
41542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41543 conftest$ac_exeext conftest.$ac_ext
41545 ac_res=`eval echo '${'$as_ac_var'}'`
41546 { echo "$as_me:$LINENO: result: $ac_res" >&5
41547 echo "${ECHO_T}$ac_res" >&6; }
41548 if test `eval echo '${'$as_ac_var'}'` = yes; then
41549 cat >>confdefs.h <<_ACEOF
41550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41555 cat >>confdefs.h <<\_ACEOF
41556 #define HAVE_LLISTXATTR
41560 cat >>confdefs.h <<\_ACEOF
41561 #define HAVE_LGETXATTR
41565 cat >>confdefs.h <<\_ACEOF
41566 #define HAVE_LSETXATTR
41579 if test $have_xattr = no; then
41580 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41581 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41582 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41583 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41584 echo $ECHO_N "(cached) $ECHO_C" >&6
41586 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41587 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41589 # Is the header compilable?
41590 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41591 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41592 cat >conftest.$ac_ext <<_ACEOF
41595 cat confdefs.h >>conftest.$ac_ext
41596 cat >>conftest.$ac_ext <<_ACEOF
41597 /* end confdefs.h. */
41598 $ac_includes_default
41599 #include <sys/attr.h>
41601 rm -f conftest.$ac_objext
41602 if { (ac_try="$ac_compile"
41603 case "(($ac_try" in
41604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41605 *) ac_try_echo=$ac_try;;
41607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41608 (eval "$ac_compile") 2>conftest.er1
41610 grep -v '^ *+' conftest.er1 >conftest.err
41612 cat conftest.err >&5
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); } && {
41615 test -z "$ac_c_werror_flag" ||
41616 test ! -s conftest.err
41617 } && test -s conftest.$ac_objext; then
41618 ac_header_compiler=yes
41620 echo "$as_me: failed program was:" >&5
41621 sed 's/^/| /' conftest.$ac_ext >&5
41623 ac_header_compiler=no
41626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41628 echo "${ECHO_T}$ac_header_compiler" >&6; }
41630 # Is the header present?
41631 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41632 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41633 cat >conftest.$ac_ext <<_ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h. */
41639 #include <sys/attr.h>
41641 if { (ac_try="$ac_cpp conftest.$ac_ext"
41642 case "(($ac_try" in
41643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41644 *) ac_try_echo=$ac_try;;
41646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41649 grep -v '^ *+' conftest.er1 >conftest.err
41651 cat conftest.err >&5
41652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653 (exit $ac_status); } >/dev/null && {
41654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41655 test ! -s conftest.err
41657 ac_header_preproc=yes
41659 echo "$as_me: failed program was:" >&5
41660 sed 's/^/| /' conftest.$ac_ext >&5
41662 ac_header_preproc=no
41665 rm -f conftest.err conftest.$ac_ext
41666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41667 echo "${ECHO_T}$ac_header_preproc" >&6; }
41669 # So? What about this header?
41670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41672 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41673 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41674 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41675 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41676 ac_header_preproc=yes
41679 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41680 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41681 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
41682 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
41683 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41684 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41685 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
41686 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41687 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41688 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41689 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41690 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41694 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41695 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41696 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41697 echo $ECHO_N "(cached) $ECHO_C" >&6
41699 ac_cv_header_sys_attr_h=$ac_header_preproc
41701 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41702 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41705 if test $ac_cv_header_sys_attr_h = yes; then
41707 cat >>confdefs.h <<\_ACEOF
41708 #define HAVE_SYS_ATTR_H 1
41714 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41715 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41716 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41717 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41718 echo $ECHO_N "(cached) $ECHO_C" >&6
41720 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41721 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41723 # Is the header compilable?
41724 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41725 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41726 cat >conftest.$ac_ext <<_ACEOF
41729 cat confdefs.h >>conftest.$ac_ext
41730 cat >>conftest.$ac_ext <<_ACEOF
41731 /* end confdefs.h. */
41732 $ac_includes_default
41733 #include <sys/nvpair.h>
41735 rm -f conftest.$ac_objext
41736 if { (ac_try="$ac_compile"
41737 case "(($ac_try" in
41738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41739 *) ac_try_echo=$ac_try;;
41741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41742 (eval "$ac_compile") 2>conftest.er1
41744 grep -v '^ *+' conftest.er1 >conftest.err
41746 cat conftest.err >&5
41747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748 (exit $ac_status); } && {
41749 test -z "$ac_c_werror_flag" ||
41750 test ! -s conftest.err
41751 } && test -s conftest.$ac_objext; then
41752 ac_header_compiler=yes
41754 echo "$as_me: failed program was:" >&5
41755 sed 's/^/| /' conftest.$ac_ext >&5
41757 ac_header_compiler=no
41760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41762 echo "${ECHO_T}$ac_header_compiler" >&6; }
41764 # Is the header present?
41765 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41766 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41767 cat >conftest.$ac_ext <<_ACEOF
41770 cat confdefs.h >>conftest.$ac_ext
41771 cat >>conftest.$ac_ext <<_ACEOF
41772 /* end confdefs.h. */
41773 #include <sys/nvpair.h>
41775 if { (ac_try="$ac_cpp conftest.$ac_ext"
41776 case "(($ac_try" in
41777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41778 *) ac_try_echo=$ac_try;;
41780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41783 grep -v '^ *+' conftest.er1 >conftest.err
41785 cat conftest.err >&5
41786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); } >/dev/null && {
41788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41789 test ! -s conftest.err
41791 ac_header_preproc=yes
41793 echo "$as_me: failed program was:" >&5
41794 sed 's/^/| /' conftest.$ac_ext >&5
41796 ac_header_preproc=no
41799 rm -f conftest.err conftest.$ac_ext
41800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41801 echo "${ECHO_T}$ac_header_preproc" >&6; }
41803 # So? What about this header?
41804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41806 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41807 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41808 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41809 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41810 ac_header_preproc=yes
41813 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41814 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41815 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
41816 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
41817 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41818 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41819 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
41820 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
41821 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41822 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41823 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41824 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41828 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41829 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41830 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41831 echo $ECHO_N "(cached) $ECHO_C" >&6
41833 ac_cv_header_sys_nvpair_h=$ac_header_preproc
41835 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41836 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41839 if test $ac_cv_header_sys_nvpair_h = yes; then
41841 cat >>confdefs.h <<\_ACEOF
41842 #define HAVE_SYS_NVPAIR_H 1
41848 if test "${ac_cv_header_attr_h+set}" = set; then
41849 { echo "$as_me:$LINENO: checking for attr.h" >&5
41850 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41851 if test "${ac_cv_header_attr_h+set}" = set; then
41852 echo $ECHO_N "(cached) $ECHO_C" >&6
41854 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41855 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41857 # Is the header compilable?
41858 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41859 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41860 cat >conftest.$ac_ext <<_ACEOF
41863 cat confdefs.h >>conftest.$ac_ext
41864 cat >>conftest.$ac_ext <<_ACEOF
41865 /* end confdefs.h. */
41866 $ac_includes_default
41869 rm -f conftest.$ac_objext
41870 if { (ac_try="$ac_compile"
41871 case "(($ac_try" in
41872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41873 *) ac_try_echo=$ac_try;;
41875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41876 (eval "$ac_compile") 2>conftest.er1
41878 grep -v '^ *+' conftest.er1 >conftest.err
41880 cat conftest.err >&5
41881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41882 (exit $ac_status); } && {
41883 test -z "$ac_c_werror_flag" ||
41884 test ! -s conftest.err
41885 } && test -s conftest.$ac_objext; then
41886 ac_header_compiler=yes
41888 echo "$as_me: failed program was:" >&5
41889 sed 's/^/| /' conftest.$ac_ext >&5
41891 ac_header_compiler=no
41894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41896 echo "${ECHO_T}$ac_header_compiler" >&6; }
41898 # Is the header present?
41899 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41900 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41901 cat >conftest.$ac_ext <<_ACEOF
41904 cat confdefs.h >>conftest.$ac_ext
41905 cat >>conftest.$ac_ext <<_ACEOF
41906 /* end confdefs.h. */
41909 if { (ac_try="$ac_cpp conftest.$ac_ext"
41910 case "(($ac_try" in
41911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41912 *) ac_try_echo=$ac_try;;
41914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41917 grep -v '^ *+' conftest.er1 >conftest.err
41919 cat conftest.err >&5
41920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921 (exit $ac_status); } >/dev/null && {
41922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41923 test ! -s conftest.err
41925 ac_header_preproc=yes
41927 echo "$as_me: failed program was:" >&5
41928 sed 's/^/| /' conftest.$ac_ext >&5
41930 ac_header_preproc=no
41933 rm -f conftest.err conftest.$ac_ext
41934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41935 echo "${ECHO_T}$ac_header_preproc" >&6; }
41937 # So? What about this header?
41938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41940 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41941 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41942 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41943 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41944 ac_header_preproc=yes
41947 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41948 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41949 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
41950 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
41951 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41952 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41953 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
41954 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41955 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41956 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41957 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41958 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41962 { echo "$as_me:$LINENO: checking for attr.h" >&5
41963 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41964 if test "${ac_cv_header_attr_h+set}" = set; then
41965 echo $ECHO_N "(cached) $ECHO_C" >&6
41967 ac_cv_header_attr_h=$ac_header_preproc
41969 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41970 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41973 if test $ac_cv_header_attr_h = yes; then
41975 cat >>confdefs.h <<\_ACEOF
41976 #define HAVE_ATTR_H 1
41988 for ac_func in openat fstatat unlinkat fchownat futimesat
41990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41994 echo $ECHO_N "(cached) $ECHO_C" >&6
41996 cat >conftest.$ac_ext <<_ACEOF
41999 cat confdefs.h >>conftest.$ac_ext
42000 cat >>conftest.$ac_ext <<_ACEOF
42001 /* end confdefs.h. */
42002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42004 #define $ac_func innocuous_$ac_func
42006 /* System header to define __stub macros and hopefully few prototypes,
42007 which can conflict with char $ac_func (); below.
42008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42009 <limits.h> exists even on freestanding compilers. */
42012 # include <limits.h>
42014 # include <assert.h>
42019 /* Override any GCC internal prototype to avoid an error.
42020 Use char because int might match the return type of a GCC
42021 builtin and then its argument prototype would still apply. */
42026 /* The GNU C library defines this for functions which it implements
42027 to always fail with ENOSYS. Some functions are actually named
42028 something starting with __ and the normal name is an alias. */
42029 #if defined __stub_$ac_func || defined __stub___$ac_func
42036 return $ac_func ();
42041 rm -f conftest.$ac_objext conftest$ac_exeext
42042 if { (ac_try="$ac_link"
42043 case "(($ac_try" in
42044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42045 *) ac_try_echo=$ac_try;;
42047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42048 (eval "$ac_link") 2>conftest.er1
42050 grep -v '^ *+' conftest.er1 >conftest.err
42052 cat conftest.err >&5
42053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054 (exit $ac_status); } && {
42055 test -z "$ac_c_werror_flag" ||
42056 test ! -s conftest.err
42057 } && test -s conftest$ac_exeext &&
42058 $as_test_x conftest$ac_exeext; then
42059 eval "$as_ac_var=yes"
42061 echo "$as_me: failed program was:" >&5
42062 sed 's/^/| /' conftest.$ac_ext >&5
42064 eval "$as_ac_var=no"
42067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42068 conftest$ac_exeext conftest.$ac_ext
42070 ac_res=`eval echo '${'$as_ac_var'}'`
42071 { echo "$as_me:$LINENO: result: $ac_res" >&5
42072 echo "${ECHO_T}$ac_res" >&6; }
42073 if test `eval echo '${'$as_ac_var'}'` = yes; then
42074 cat >>confdefs.h <<_ACEOF
42075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42080 cat >>confdefs.h <<\_ACEOF
42081 #define HAVE_OPENAT
42085 cat >>confdefs.h <<\_ACEOF
42086 #define HAVE_FSTATAT
42090 cat >>confdefs.h <<\_ACEOF
42091 #define HAVE_UNLINKAT
42095 cat >>confdefs.h <<\_ACEOF
42096 #define HAVE_FCHOWNAT
42100 cat >>confdefs.h <<\_ACEOF
42101 #define HAVE_FUTIMESAT
42110 if test $have_xattr = yes; then
42111 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42112 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42113 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42114 echo $ECHO_N "(cached) $ECHO_C" >&6
42116 ac_check_lib_save_LIBS=$LIBS
42117 LIBS="-lnvpair $LIBS"
42118 cat >conftest.$ac_ext <<_ACEOF
42121 cat confdefs.h >>conftest.$ac_ext
42122 cat >>conftest.$ac_ext <<_ACEOF
42123 /* end confdefs.h. */
42125 /* Override any GCC internal prototype to avoid an error.
42126 Use char because int might match the return type of a GCC
42127 builtin and then its argument prototype would still apply. */
42131 char nvlist_next_nvpair ();
42135 return nvlist_next_nvpair ();
42140 rm -f conftest.$ac_objext conftest$ac_exeext
42141 if { (ac_try="$ac_link"
42142 case "(($ac_try" in
42143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42144 *) ac_try_echo=$ac_try;;
42146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42147 (eval "$ac_link") 2>conftest.er1
42149 grep -v '^ *+' conftest.er1 >conftest.err
42151 cat conftest.err >&5
42152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42153 (exit $ac_status); } && {
42154 test -z "$ac_c_werror_flag" ||
42155 test ! -s conftest.err
42156 } && test -s conftest$ac_exeext &&
42157 $as_test_x conftest$ac_exeext; then
42158 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42160 echo "$as_me: failed program was:" >&5
42161 sed 's/^/| /' conftest.$ac_ext >&5
42163 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42167 conftest$ac_exeext conftest.$ac_ext
42168 LIBS=$ac_check_lib_save_LIBS
42170 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42171 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42172 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42174 FDLIBS="-lnvpair $FDLIBS"
42182 if test x$support_xattr = xyes -a $have_xattr != yes; then
42183 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42184 please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42185 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42186 please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42187 { (exit 1); exit 1; }; }
42189 if test $have_xattr = yes; then
42191 cat >>confdefs.h <<\_ACEOF
42200 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42201 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42202 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42203 echo $ECHO_N "(cached) $ECHO_C" >&6
42205 ac_check_lib_save_LIBS=$LIBS
42206 LIBS="-lpthread $LIBS"
42207 cat >conftest.$ac_ext <<_ACEOF
42210 cat confdefs.h >>conftest.$ac_ext
42211 cat >>conftest.$ac_ext <<_ACEOF
42212 /* end confdefs.h. */
42214 /* Override any GCC internal prototype to avoid an error.
42215 Use char because int might match the return type of a GCC
42216 builtin and then its argument prototype would still apply. */
42220 char pthread_create ();
42224 return pthread_create ();
42229 rm -f conftest.$ac_objext conftest$ac_exeext
42230 if { (ac_try="$ac_link"
42231 case "(($ac_try" in
42232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42233 *) ac_try_echo=$ac_try;;
42235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42236 (eval "$ac_link") 2>conftest.er1
42238 grep -v '^ *+' conftest.er1 >conftest.err
42240 cat conftest.err >&5
42241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242 (exit $ac_status); } && {
42243 test -z "$ac_c_werror_flag" ||
42244 test ! -s conftest.err
42245 } && test -s conftest$ac_exeext &&
42246 $as_test_x conftest$ac_exeext; then
42247 ac_cv_lib_pthread_pthread_create=yes
42249 echo "$as_me: failed program was:" >&5
42250 sed 's/^/| /' conftest.$ac_ext >&5
42252 ac_cv_lib_pthread_pthread_create=no
42255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42256 conftest$ac_exeext conftest.$ac_ext
42257 LIBS=$ac_check_lib_save_LIBS
42259 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42260 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42261 if test $ac_cv_lib_pthread_pthread_create = yes; then
42262 PTHREAD_LIB="-lpthread"
42265 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42266 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42267 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42268 echo $ECHO_N "(cached) $ECHO_C" >&6
42270 ac_check_lib_save_LIBS=$LIBS
42271 LIBS="-lpthreads $LIBS"
42272 cat >conftest.$ac_ext <<_ACEOF
42275 cat confdefs.h >>conftest.$ac_ext
42276 cat >>conftest.$ac_ext <<_ACEOF
42277 /* end confdefs.h. */
42279 /* Override any GCC internal prototype to avoid an error.
42280 Use char because int might match the return type of a GCC
42281 builtin and then its argument prototype would still apply. */
42285 char pthread_create ();
42289 return pthread_create ();
42294 rm -f conftest.$ac_objext conftest$ac_exeext
42295 if { (ac_try="$ac_link"
42296 case "(($ac_try" in
42297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42298 *) ac_try_echo=$ac_try;;
42300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42301 (eval "$ac_link") 2>conftest.er1
42303 grep -v '^ *+' conftest.er1 >conftest.err
42305 cat conftest.err >&5
42306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307 (exit $ac_status); } && {
42308 test -z "$ac_c_werror_flag" ||
42309 test ! -s conftest.err
42310 } && test -s conftest$ac_exeext &&
42311 $as_test_x conftest$ac_exeext; then
42312 ac_cv_lib_pthreads_pthread_create=yes
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42317 ac_cv_lib_pthreads_pthread_create=no
42320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42321 conftest$ac_exeext conftest.$ac_ext
42322 LIBS=$ac_check_lib_save_LIBS
42324 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42325 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42326 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42327 PTHREAD_LIB="-lpthreads"
42330 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42331 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42332 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42333 echo $ECHO_N "(cached) $ECHO_C" >&6
42335 ac_check_lib_save_LIBS=$LIBS
42337 cat >conftest.$ac_ext <<_ACEOF
42340 cat confdefs.h >>conftest.$ac_ext
42341 cat >>conftest.$ac_ext <<_ACEOF
42342 /* end confdefs.h. */
42344 /* Override any GCC internal prototype to avoid an error.
42345 Use char because int might match the return type of a GCC
42346 builtin and then its argument prototype would still apply. */
42350 char pthread_create ();
42354 return pthread_create ();
42359 rm -f conftest.$ac_objext conftest$ac_exeext
42360 if { (ac_try="$ac_link"
42361 case "(($ac_try" in
42362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42363 *) ac_try_echo=$ac_try;;
42365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42366 (eval "$ac_link") 2>conftest.er1
42368 grep -v '^ *+' conftest.er1 >conftest.err
42370 cat conftest.err >&5
42371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372 (exit $ac_status); } && {
42373 test -z "$ac_c_werror_flag" ||
42374 test ! -s conftest.err
42375 } && test -s conftest$ac_exeext &&
42376 $as_test_x conftest$ac_exeext; then
42377 ac_cv_lib_c_r_pthread_create=yes
42379 echo "$as_me: failed program was:" >&5
42380 sed 's/^/| /' conftest.$ac_ext >&5
42382 ac_cv_lib_c_r_pthread_create=no
42385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42386 conftest$ac_exeext conftest.$ac_ext
42387 LIBS=$ac_check_lib_save_LIBS
42389 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42390 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42391 if test $ac_cv_lib_c_r_pthread_create = yes; then
42392 PTHREAD_LIB="-lc_r"
42395 { echo "$as_me:$LINENO: checking for pthread_create" >&5
42396 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42397 if test "${ac_cv_func_pthread_create+set}" = set; then
42398 echo $ECHO_N "(cached) $ECHO_C" >&6
42400 cat >conftest.$ac_ext <<_ACEOF
42403 cat confdefs.h >>conftest.$ac_ext
42404 cat >>conftest.$ac_ext <<_ACEOF
42405 /* end confdefs.h. */
42406 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42408 #define pthread_create innocuous_pthread_create
42410 /* System header to define __stub macros and hopefully few prototypes,
42411 which can conflict with char pthread_create (); below.
42412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42413 <limits.h> exists even on freestanding compilers. */
42416 # include <limits.h>
42418 # include <assert.h>
42421 #undef pthread_create
42423 /* Override any GCC internal prototype to avoid an error.
42424 Use char because int might match the return type of a GCC
42425 builtin and then its argument prototype would still apply. */
42429 char pthread_create ();
42430 /* The GNU C library defines this for functions which it implements
42431 to always fail with ENOSYS. Some functions are actually named
42432 something starting with __ and the normal name is an alias. */
42433 #if defined __stub_pthread_create || defined __stub___pthread_create
42440 return pthread_create ();
42445 rm -f conftest.$ac_objext conftest$ac_exeext
42446 if { (ac_try="$ac_link"
42447 case "(($ac_try" in
42448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42449 *) ac_try_echo=$ac_try;;
42451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42452 (eval "$ac_link") 2>conftest.er1
42454 grep -v '^ *+' conftest.er1 >conftest.err
42456 cat conftest.err >&5
42457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42458 (exit $ac_status); } && {
42459 test -z "$ac_c_werror_flag" ||
42460 test ! -s conftest.err
42461 } && test -s conftest$ac_exeext &&
42462 $as_test_x conftest$ac_exeext; then
42463 ac_cv_func_pthread_create=yes
42465 echo "$as_me: failed program was:" >&5
42466 sed 's/^/| /' conftest.$ac_ext >&5
42468 ac_cv_func_pthread_create=no
42471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42472 conftest$ac_exeext conftest.$ac_ext
42474 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42475 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42491 cat >>confdefs.h <<\_ACEOF
42496 CFLAGS=${CFLAGS--O}
42498 if test x$have_gcc = xyes ; then
42499 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42500 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42502 LDFLAGS=${LDFLAGS--O}
42503 DB_LIBS="${SQL_LFLAGS}"
42504 CPPFLAGS="$CPPFLAGS"
42531 PFILES="platforms/Makefile"
42535 hostname=`uname -n | cut -d '.' -f 1`
42536 if test x${hostname} = x ; then
42537 hostname="localhost"
42539 case "$DISTNAME" in
42542 PSCMD="ps -e -o pid,comm"
42543 PFILES="${PFILES} \
42544 platforms/aix/Makefile"
42545 TAPEDRIVE="/dev/rmt0.1"
42549 PTHREAD_LIB="-lpthread -lexc"
42550 if test "${CC}" = "gcc" ; then
42557 TAPEDRIVE="/dev/nrmt0"
42560 DISTVER=`uname -a |awk '{print $3}'`
42561 TAPEDRIVE="/dev/nrmt0"
42562 PTHREAD_LIB="-pthread"
42563 CFLAGS="${CFLAGS} -pthread"
42564 PSCMD="ps -ax -o pid,command"
42567 PFILES="${PFILES} \
42568 platforms/bsdi/Makefile \
42569 platforms/bsdi/bacula-fd \
42570 platforms/bsdi/bacula-sd \
42571 platforms/bsdi/bacula-dir"
42572 largefile_support="yes"
42575 DISTVER=`uname -a |awk '{print $3}'`
42576 TAPEDRIVE="/dev/nrst0"
42578 WCFLAGS="-mwindows"
42579 WLDFLAGS="-mwindows"
42583 TAPEDRIVE="/dev/nst0"
42584 PSCMD="ps -e -o pid,command"
42586 PFILES="${PFILES} \
42587 platforms/darwin/Makefile"
42590 ping -c 1 $hostname 2>&1 1>/dev/null
42591 if test ! $? = 0; then
42592 hostname="localhost"
42594 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42597 DISTVER=`cat /etc/debian_version`
42598 if test -f /etc/lsb-release ; then
42600 if test "x$DISTRIB_ID" != "x" ; then
42601 DISTNAME=$DISTRIB_ID
42603 if test "x$DISTRIB_RELEASE" != "x" ; then
42604 DISTVER=$DISTRIB_RELEASE
42607 if test "$DISTNAME" = "Ubuntu" ; then
42610 TAPEDRIVE="/dev/nst0"
42611 PSCMD="ps -e -o pid,command"
42612 if test "$DISTNAME" = "ubuntu" ; then
42613 PFILES="${PFILES} \
42614 platforms/ubuntu/Makefile \
42615 platforms/ubuntu/bacula-fd \
42616 platforms/ubuntu/bacula-sd \
42617 platforms/ubuntu/bacula-dir"
42619 PFILES="${PFILES} \
42620 platforms/debian/Makefile \
42621 platforms/debian/bacula-fd \
42622 platforms/debian/bacula-sd \
42623 platforms/debian/bacula-dir"
42627 ping -c 1 $hostname 2>&1 1>/dev/null
42628 if test ! $? = 0; then
42629 hostname="localhost"
42631 DISTVER=`uname -a |awk '{print $3}'`
42632 VER=`echo $DISTVER | cut -c 1`
42633 if test x$VER = x4 ; then
42634 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42635 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42639 TAPEDRIVE="/dev/nrsa0"
42640 PSCMD="ps -ax -o pid,command"
42641 PFILES="${PFILES} \
42642 platforms/freebsd/Makefile \
42643 platforms/freebsd/bacula-fd \
42644 platforms/freebsd/bacula-sd \
42645 platforms/freebsd/bacula-dir"
42646 largefile_support="yes"
42649 PSCMD="UNIX95=1; ps -e -o pid,comm"
42650 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42652 TAPEDRIVE="/dev/rmt/0hnb"
42653 PTHREAD_LIB="-lpthread"
42654 cat >>confdefs.h <<\_ACEOF
42655 #define _INCLUDE_LONGLONG 1
42661 TAPEDRIVE="/dev/rmt/0cbn"
42662 PSCMD="ps -e -o pid,comm"
42663 PFILES="${PFILES} \
42664 platforms/irix/Makefile \
42665 platforms/irix/bacula-fd \
42666 platforms/irix/bacula-sd \
42667 platforms/irix/bacula-dir"
42670 DISTVER=`uname -a |awk '{print $3}'`
42673 TAPEDRIVE="/dev/nrst0"
42674 PSCMD="ps -ax -o pid,command"
42675 PTHREAD_LIB="-pthread"
42676 CFLAGS="${CFLAGS} -pthread"
42679 DISTVER=`uname -a |awk '{print $3}'`
42682 TAPEDRIVE="/dev/nrst0"
42683 PSCMD="ps -ax -o pid,command"
42684 PTHREAD_LIB="-pthread"
42685 CFLAGS="${CFLAGS} -pthread"
42686 PFILES="${PFILES} \
42687 platforms/openbsd/Makefile \
42688 platforms/openbsd/bacula-fd \
42689 platforms/openbsd/bacula-sd \
42690 platforms/openbsd/bacula-dir"
42693 ping -c 1 $hostname 2>&1 1>/dev/null
42694 if test ! $? = 0; then
42695 hostname="localhost"
42697 if test -f /etc/whitebox-release ; then
42698 f=/etc/whitebox-release
42700 f=/etc/redhat-release
42702 if test `cat $f | grep release |\
42703 cut -f 3 -d ' '`x = "Enterprise"x ; then
42704 DISTVER="Enterprise "`cat $f | grep release |\
42707 DISTVER=`cat /etc/redhat-release | grep release |\
42710 TAPEDRIVE="/dev/nst0"
42711 PSCMD="ps -e -o pid,command"
42712 PFILES="${PFILES} \
42713 platforms/redhat/Makefile \
42714 platforms/redhat/bacula-fd \
42715 platforms/redhat/bacula-sd \
42716 platforms/redhat/bacula-dir \
42717 platforms/redhat/bacula.spec \
42721 ping -c 1 $hostname 2>&1 1>/dev/null
42722 if test ! $? = 0; then
42723 hostname="localhost"
42725 DISTVER=`cat /etc/mandrake-release | grep release |\
42727 TAPEDRIVE="/dev/nst0"
42728 PSCMD="ps -e -o pid,command"
42729 PFILES="${PFILES} \
42730 platforms/mandrake/Makefile \
42731 platforms/mandrake/bacula-fd \
42732 platforms/mandrake/bacula-sd \
42733 platforms/mandrake/bacula-dir \
42734 platforms/mandrake/bacula.spec \
42738 ping -c 1 $hostname 2>&1 1>/dev/null
42739 if test ! $? = 0; then
42740 hostname="localhost"
42742 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42743 TAPEDRIVE="/dev/nst0"
42744 PSCMD="ps -e -o pid,command"
42745 PFILES="${PFILES} \
42746 platforms/gentoo/Makefile \
42747 platforms/gentoo/bacula-init \
42748 platforms/gentoo/bacula-fd \
42749 platforms/gentoo/bacula-sd \
42750 platforms/gentoo/bacula-dir"
42753 ping -c 1 $hostname 2>&1 1>/dev/null
42754 if test ! $? = 0; then
42755 hostname="localhost"
42757 DISTVER=`cat /etc/slackware-version`
42758 TAPEDRIVE="/dev/nst0"
42759 PSCMD="ps -e -o pid,command"
42760 PFILES="${PFILES} \
42761 platforms/slackware/Makefile \
42762 platforms/slackware/rc.bacula-fd \
42763 platforms/slackware/rc.bacula-sd \
42764 platforms/slackware/rc.bacula-dir\
42765 platforms/slackware/functions.bacula"
42769 TAPEDRIVE="/dev/rmt/0cbn"
42770 PSCMD="ps -e -o pid,comm"
42771 PFILES="${PFILES} \
42772 platforms/solaris/Makefile \
42773 platforms/solaris/bacula-fd \
42774 platforms/solaris/bacula-sd \
42775 platforms/solaris/bacula-dir"
42776 if test x$DISTVER = x5.6 ; then
42777 cat >>confdefs.h <<\_ACEOF
42778 #define HAVE_OLD_SOCKOPT 1
42782 LIBS="$LIBS -lresolv"
42785 ping -c 1 $hostname 2>&1 1>/dev/null
42786 if test ! $? = 0; then
42787 hostname="localhost"
42789 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42791 TAPEDRIVE="/dev/nst0"
42792 PSCMD="ps -e -o pid,command"
42793 PFILES="${PFILES} \
42794 platforms/suse/Makefile \
42795 platforms/suse/bacula-fd \
42796 platforms/suse/bacula-sd \
42797 platforms/suse/bacula-dir \
42798 platforms/suse/bacula \
42799 platforms/suse/bacula.spec"
42802 ping -c 1 $hostname 2>&1 1>/dev/null
42803 if test ! $? = 0; then
42804 hostname="localhost"
42808 TAPEDRIVE="/dev/nst0"
42809 PSCMD="ps -e -o pid,command"
42810 PFILES="${PFILES} \
42811 platforms/suse/Makefile \
42812 platforms/suse/bacula-fd \
42813 platforms/suse/bacula-sd \
42814 platforms/suse/bacula-dir"
42818 TAPEDRIVE="/dev/nst0"
42821 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42827 LIBS="$PTHREAD_LIB $LIBS"
42829 cat >>confdefs.h <<_ACEOF
42833 cat >>confdefs.h <<_ACEOF
42844 MCOMMON=./autoconf/Make.common
42847 if test "x${subsysdir}" = "x${sbindir}" ; then
42850 echo "You have set both --sbindir and --with-subsys-dir"
42851 echo " equal to: ${subsysdir} "
42852 echo "This is not permitted. Please reconfigure."
42854 echo "Aborting configuration ..."
42860 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
42862 ac_config_commands="$ac_config_commands default"
42864 cat >confcache <<\_ACEOF
42865 # This file is a shell script that caches the results of configure
42866 # tests run on this system so they can be shared between configure
42867 # scripts and configure runs, see configure's option --config-cache.
42868 # It is not useful on other systems. If it contains results you don't
42869 # want to keep, you may remove or edit it.
42871 # config.status only pays attention to the cache file if you give it
42872 # the --recheck option to rerun configure.
42874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42876 # following values.
42880 # The following way of writing the cache mishandles newlines in values,
42881 # but we know of no workaround that is simple, portable, and efficient.
42882 # So, we kill variables containing newlines.
42883 # Ultrix sh set writes to stderr and can't be redirected directly,
42884 # and sets the high bit in the cache file unless we assign to the vars.
42886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42887 eval ac_val=\$$ac_var
42891 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42892 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42895 _ | IFS | as_nl) ;; #(
42896 *) $as_unset $ac_var ;;
42902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42903 *${as_nl}ac_space=\ *)
42904 # `set' does not quote correctly, so add quotes (double-quote
42905 # substitution turns \\\\ into \\, and sed turns \\ into \).
42908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42911 # `set' quotes correctly as required by POSIX, so do not add quotes.
42912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42926 if test -w "$cache_file"; then
42927 test "x$cache_file" != "x/dev/null" &&
42928 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42929 echo "$as_me: updating cache $cache_file" >&6;}
42930 cat confcache >$cache_file
42932 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42933 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42939 # Let make expand exec_prefix.
42940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42942 DEFS=-DHAVE_CONFIG_H
42946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42947 # 1. Remove the extension, and $U if already installed.
42948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42949 ac_i=`echo "$ac_i" | sed "$ac_script"`
42950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42951 # will be set to the directory where LIBOBJS objects are built.
42952 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42953 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42955 LIBOBJS=$ac_libobjs
42957 LTLIBOBJS=$ac_ltlibobjs
42961 : ${CONFIG_STATUS=./config.status}
42962 ac_clean_files_save=$ac_clean_files
42963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42964 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42965 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42966 cat >$CONFIG_STATUS <<_ACEOF
42968 # Generated by $as_me.
42969 # Run this file to recreate the current configuration.
42970 # Compiler output produced by configure, useful for debugging
42971 # configure, is in config.log if it exists.
42974 ac_cs_recheck=false
42976 SHELL=\${CONFIG_SHELL-$SHELL}
42979 cat >>$CONFIG_STATUS <<\_ACEOF
42980 ## --------------------- ##
42981 ## M4sh Initialization. ##
42982 ## --------------------- ##
42984 # Be more Bourne compatible
42985 DUALCASE=1; export DUALCASE # for MKS sh
42986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42989 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42990 # is contrary to our usage. Disable this feature.
42991 alias -g '${1+"$@"}'='"$@"'
42992 setopt NO_GLOB_SUBST
42994 case `(set -o) 2>/dev/null` in
42995 *posix*) set -o posix ;;
43004 # Avoid depending upon Character Ranges.
43005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43008 as_cr_digits='0123456789'
43009 as_cr_alnum=$as_cr_Letters$as_cr_digits
43011 # The user is always right.
43012 if test "${PATH_SEPARATOR+set}" != set; then
43013 echo "#! /bin/sh" >conf$$.sh
43014 echo "exit 0" >>conf$$.sh
43016 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43024 # Support unset when possible.
43025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43033 # We need space, tab and new line, in precisely that order. Quoting is
43034 # there to prevent editors from complaining about space-tab.
43035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43036 # splitting by setting IFS to empty value.)
43041 # Find who we are. Look in the path if we contain no directory separator.
43043 *[\\/]* ) as_myself=$0 ;;
43044 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43045 for as_dir in $PATH
43048 test -z "$as_dir" && as_dir=.
43049 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43055 # We did not find ourselves, most probably we were run as `sh COMMAND'
43056 # in which case we are not to be found in the path.
43057 if test "x$as_myself" = x; then
43060 if test ! -f "$as_myself"; then
43061 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43062 { (exit 1); exit 1; }
43065 # Work around bugs in pre-3.0 UWIN ksh.
43066 for as_var in ENV MAIL MAILPATH
43067 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43077 LC_TELEPHONE LC_TIME
43079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43080 eval $as_var=C; export $as_var
43082 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43086 # Required to use basename.
43087 if expr a : '\(a\)' >/dev/null 2>&1 &&
43088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43094 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43095 as_basename=basename
43101 # Name of the executable.
43102 as_me=`$as_basename -- "$0" ||
43103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43104 X"$0" : 'X\(//\)$' \| \
43105 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43107 sed '/^.*\/\([^/][^/]*\)\/*$/{
43126 as_lineno_1=$LINENO
43127 as_lineno_2=$LINENO
43128 test "x$as_lineno_1" != "x$as_lineno_2" &&
43129 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43132 # uniformly replaced by the line number. The first 'sed' inserts a
43133 # line-number line after each line using $LINENO; the second 'sed'
43134 # does the real work. The second script uses 'N' to pair each
43135 # line-number line with the line containing $LINENO, and appends
43136 # trailing '-' during substitution so that $LINENO is not a special
43137 # case at line end.
43138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43139 # scripts with optimization help from Paolo Bonzini. Blame Lee
43140 # E. McMahon (1931-1989) for sed's syntax. :-)
43152 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43155 ' >$as_me.lineno &&
43156 chmod +x "$as_me.lineno" ||
43157 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43158 { (exit 1); exit 1; }; }
43160 # Don't try to exec as it changes $[0], causing all sort of problems
43161 # (the dirname of $[0] is not the place where we might find the
43162 # original and so on. Autoconf is especially sensitive to this).
43163 . "./$as_me.lineno"
43164 # Exit status is that of the last command.
43169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43175 ECHO_C= ECHO_N= ECHO_T=
43176 case `echo -n x` in
43178 case `echo 'x\c'` in
43179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43186 if expr a : '\(a\)' >/dev/null 2>&1 &&
43187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43193 rm -f conf$$ conf$$.exe conf$$.file
43194 if test -d conf$$.dir; then
43195 rm -f conf$$.dir/conf$$.file
43201 if ln -s conf$$.file conf$$ 2>/dev/null; then
43203 # ... but there are two gotchas:
43204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43206 # In both cases, we have to default to `cp -p'.
43207 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43209 elif ln conf$$.file conf$$ 2>/dev/null; then
43214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43215 rmdir conf$$.dir 2>/dev/null
43217 if mkdir -p . 2>/dev/null; then
43220 test -d ./-p && rmdir ./-p
43224 if test -x / >/dev/null 2>&1; then
43225 as_test_x='test -x'
43227 if ls -dL / >/dev/null 2>&1; then
43234 if test -d "$1"; then
43240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43241 ???[sx]*):;;*)false;;esac;fi
43245 as_executable_p=$as_test_x
43247 # Sed expression to map a string onto a valid CPP name.
43248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43250 # Sed expression to map a string onto a valid variable name.
43251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43256 # Save the log message, to keep $[0] and so on meaningful, and to
43257 # report actual input values of CONFIG_FILES etc. instead of their
43258 # values after options handling.
43260 This file was extended by $as_me, which was
43261 generated by GNU Autoconf 2.61. Invocation command line was
43263 CONFIG_FILES = $CONFIG_FILES
43264 CONFIG_HEADERS = $CONFIG_HEADERS
43265 CONFIG_LINKS = $CONFIG_LINKS
43266 CONFIG_COMMANDS = $CONFIG_COMMANDS
43269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43274 cat >>$CONFIG_STATUS <<_ACEOF
43275 # Files that config.status was made for.
43276 config_files="$ac_config_files"
43277 config_headers="$ac_config_headers"
43278 config_commands="$ac_config_commands"
43282 cat >>$CONFIG_STATUS <<\_ACEOF
43284 \`$as_me' instantiates files from templates according to the
43285 current configuration.
43287 Usage: $0 [OPTIONS] [FILE]...
43289 -h, --help print this help, then exit
43290 -V, --version print version number and configuration settings, then exit
43291 -q, --quiet do not print progress messages
43292 -d, --debug don't remove temporary files
43293 --recheck update $as_me by reconfiguring in the same conditions
43294 --file=FILE[:TEMPLATE]
43295 instantiate the configuration file FILE
43296 --header=FILE[:TEMPLATE]
43297 instantiate the configuration header FILE
43299 Configuration files:
43302 Configuration headers:
43305 Configuration commands:
43308 Report bugs to <bug-autoconf@gnu.org>."
43311 cat >>$CONFIG_STATUS <<_ACEOF
43314 configured by $0, generated by GNU Autoconf 2.61,
43315 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43317 Copyright (C) 2006 Free Software Foundation, Inc.
43318 This config.status script is free software; the Free Software Foundation
43319 gives unlimited permission to copy, distribute and modify it."
43326 cat >>$CONFIG_STATUS <<\_ACEOF
43327 # If no file are specified by the user, then we need to provide default
43328 # value. By we need to know if files were specified by the user.
43334 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43346 # Handling of the options.
43347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43349 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43350 echo "$ac_cs_version"; exit ;;
43351 --debug | --debu | --deb | --de | --d | -d )
43353 --file | --fil | --fi | --f )
43355 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43356 ac_need_defaults=false;;
43357 --header | --heade | --head | --hea )
43359 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43360 ac_need_defaults=false;;
43362 # Conflict between --help and --header
43363 { echo "$as_me: error: ambiguous option: $1
43364 Try \`$0 --help' for more information." >&2
43365 { (exit 1); exit 1; }; };;
43366 --help | --hel | -h )
43367 echo "$ac_cs_usage"; exit ;;
43368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43369 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43372 # This is an error.
43373 -*) { echo "$as_me: error: unrecognized option: $1
43374 Try \`$0 --help' for more information." >&2
43375 { (exit 1); exit 1; }; } ;;
43377 *) ac_config_targets="$ac_config_targets $1"
43378 ac_need_defaults=false ;;
43384 ac_configure_extra_args=
43386 if $ac_cs_silent; then
43388 ac_configure_extra_args="$ac_configure_extra_args --silent"
43392 cat >>$CONFIG_STATUS <<_ACEOF
43393 if \$ac_cs_recheck; then
43394 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43395 CONFIG_SHELL=$SHELL
43396 export CONFIG_SHELL
43397 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43401 cat >>$CONFIG_STATUS <<\_ACEOF
43405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43406 ## Running $as_me. ##
43412 cat >>$CONFIG_STATUS <<_ACEOF
43418 # The HP-UX ksh and POSIX shell print the target directory to stdout
43419 # if CDPATH is set.
43420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43422 sed_quote_subst='$sed_quote_subst'
43423 double_quote_subst='$double_quote_subst'
43424 delay_variable_subst='$delay_variable_subst'
43425 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43426 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43427 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43428 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43429 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43430 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43431 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43432 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43433 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43434 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43435 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43436 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43437 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43438 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43439 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43440 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43441 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43442 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43443 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43444 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43445 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43446 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43447 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43448 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43449 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43450 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43451 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43452 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43453 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43454 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43455 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43456 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43457 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43458 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43459 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43460 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43461 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43462 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43463 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43464 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43465 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43466 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43467 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43468 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43469 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"`'
43470 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"`'
43471 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43472 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43473 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43474 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43475 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43476 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43477 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43478 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43479 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43480 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43481 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43482 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43483 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43484 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43485 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43486 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43487 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43488 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43489 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43490 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43491 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43492 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43493 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43494 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43495 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43496 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43497 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43498 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43499 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43500 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43501 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43502 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43503 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43504 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43505 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43506 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43507 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43508 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43509 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43510 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43511 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43512 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43513 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43514 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43515 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43516 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43517 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43518 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43519 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43520 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43521 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43522 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43523 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43524 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43525 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43526 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43527 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43528 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43529 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43530 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43531 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43532 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43533 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43534 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43535 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43536 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43537 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43538 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43539 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43540 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43541 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43542 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43543 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43544 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43545 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43546 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43547 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43548 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43549 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43550 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43551 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43552 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43553 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43554 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43555 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43556 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43557 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43558 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43559 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43560 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43561 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43562 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43563 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43564 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43565 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43566 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43567 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43568 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43569 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43570 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43571 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43572 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43573 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43574 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43575 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43576 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43577 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43578 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43579 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43580 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43581 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43582 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43583 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43584 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43585 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43586 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43587 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43588 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43589 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43590 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43591 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43592 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43593 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43594 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43595 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43598 LTCFLAGS='$LTCFLAGS'
43599 compiler='$compiler_DEFAULT'
43601 # Quote evaled strings.
43613 deplibs_check_method \
43622 lt_cv_sys_global_symbol_pipe \
43623 lt_cv_sys_global_symbol_to_cdecl \
43624 lt_cv_sys_global_symbol_to_c_name_address \
43625 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43628 lt_prog_compiler_no_builtin_flag \
43629 lt_prog_compiler_wl \
43630 lt_prog_compiler_pic \
43631 lt_prog_compiler_static \
43632 lt_cv_prog_compiler_c_o \
43640 export_dynamic_flag_spec \
43641 whole_archive_flag_spec \
43642 compiler_needs_object \
43644 allow_undefined_flag \
43645 no_undefined_flag \
43646 hardcode_libdir_flag_spec \
43647 hardcode_libdir_flag_spec_ld \
43648 hardcode_libdir_separator \
43653 variables_saved_for_relink \
43655 library_names_spec \
43660 compiler_lib_search_dirs \
43665 compiler_lib_search_path \
43668 lt_prog_compiler_no_builtin_flag_CXX \
43669 lt_prog_compiler_wl_CXX \
43670 lt_prog_compiler_pic_CXX \
43671 lt_prog_compiler_static_CXX \
43672 lt_cv_prog_compiler_c_o_CXX \
43673 export_dynamic_flag_spec_CXX \
43674 whole_archive_flag_spec_CXX \
43675 compiler_needs_object_CXX \
43677 allow_undefined_flag_CXX \
43678 no_undefined_flag_CXX \
43679 hardcode_libdir_flag_spec_CXX \
43680 hardcode_libdir_flag_spec_ld_CXX \
43681 hardcode_libdir_separator_CXX \
43682 fix_srcfile_path_CXX \
43683 exclude_expsyms_CXX \
43684 include_expsyms_CXX \
43685 file_list_spec_CXX \
43686 compiler_lib_search_dirs_CXX \
43687 predep_objects_CXX \
43688 postdep_objects_CXX \
43691 compiler_lib_search_path_CXX; do
43692 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43693 *[\\\\\\\`\\"\\\$]*)
43694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43702 # Double-quote double-evaled strings.
43703 for var in reload_cmds \
43704 old_postinstall_cmds \
43705 old_postuninstall_cmds \
43707 extract_expsyms_cmds \
43708 old_archive_from_new_cmds \
43709 old_archive_from_expsyms_cmds \
43711 archive_expsym_cmds \
43713 module_expsym_cmds \
43714 export_symbols_cmds \
43717 postuninstall_cmds \
43719 sys_lib_search_path_spec \
43720 sys_lib_dlsearch_path_spec \
43721 old_archive_cmds_CXX \
43722 old_archive_from_new_cmds_CXX \
43723 old_archive_from_expsyms_cmds_CXX \
43725 archive_expsym_cmds_CXX \
43727 module_expsym_cmds_CXX \
43728 export_symbols_cmds_CXX \
43729 prelink_cmds_CXX; do
43730 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43731 *[\\\\\\\`\\"\\\$]*)
43732 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43735 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43740 # Fix-up fallback echo if it was mangled by the above quoting rules.
43742 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43746 ac_aux_dir='$ac_aux_dir'
43747 xsi_shell='$xsi_shell'
43748 lt_shell_append='$lt_shell_append'
43750 # See if we are running on zsh, and set the options which allow our
43751 # commands through without removal of \ escapes INIT.
43752 if test -n "\${ZSH_VERSION+set}" ; then
43753 setopt NO_GLOB_SUBST
43759 TIMESTAMP='$TIMESTAMP'
43767 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43768 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43770 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43771 # Capture the value of LINGUAS because we need it to compute CATALOGS.
43772 LINGUAS="${LINGUAS-%UNSET%}"
43777 cat >>$CONFIG_STATUS <<\_ACEOF
43779 # Handling of arguments.
43780 for ac_config_target in $ac_config_targets
43782 case $ac_config_target in
43783 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43784 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43785 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43786 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43788 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43789 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43790 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43791 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43792 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43793 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43794 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43795 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43796 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43797 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43798 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43799 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43800 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43801 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43802 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43803 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43804 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43805 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43806 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43807 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43808 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43809 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43810 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43811 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43812 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43813 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43814 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43815 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43816 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43817 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43818 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43819 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43820 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43821 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43822 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43823 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43824 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43825 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43826 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43827 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43828 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43829 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43830 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43831 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43832 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43833 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43834 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43835 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43836 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43837 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43838 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43839 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43840 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43841 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43842 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43843 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43844 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43845 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43846 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43847 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43848 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43849 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43850 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43851 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43852 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43853 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43854 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43855 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43856 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43857 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43858 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43859 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43860 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43861 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43862 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43863 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43864 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43865 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43866 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43867 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43868 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43869 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43870 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43871 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43872 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43873 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43874 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43875 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43876 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43877 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43878 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43879 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43880 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43881 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43882 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43883 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43884 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43885 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43886 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43887 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43888 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43889 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43890 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43891 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43892 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43893 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43894 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43895 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43896 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43897 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43898 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43899 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43900 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43901 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43902 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43906 { (exit 1); exit 1; }; };;
43911 # If the user did not use the arguments to specify the items to instantiate,
43912 # then the envvar interface is used. Set only those that are not.
43913 # We use the long form for the default assignment because of an extremely
43914 # bizarre bug on SunOS 4.1.3.
43915 if $ac_need_defaults; then
43916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43918 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43921 # Have a temporary directory for convenience. Make it in the build tree
43922 # simply because there is no reason against having it here, and in addition,
43923 # creating and moving files from /tmp can sometimes cause problems.
43924 # Hook for its removal unless debugging.
43925 # Note that there is a small window in which the directory will not be cleaned:
43926 # after its creation but before its name has been assigned to `$tmp'.
43930 trap 'exit_status=$?
43931 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43933 trap '{ (exit 1); exit 1; }' 1 2 13 15
43935 # Create a (secure) tmp directory for tmp files.
43938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43939 test -n "$tmp" && test -d "$tmp"
43942 tmp=./conf$$-$RANDOM
43943 (umask 077 && mkdir "$tmp")
43946 echo "$me: cannot create a temporary directory in ." >&2
43947 { (exit 1); exit 1; }
43951 # Set up the sed scripts for CONFIG_FILES section.
43954 # No need to generate the scripts if there are no CONFIG_FILES.
43955 # This happens for instance when ./config.status config.h
43956 if test -n "$CONFIG_FILES"; then
43960 # Create sed commands to just substitute file output variables.
43962 # Remaining file output variables are in a fragment that also has non-file
43968 for ac_last_try in false false false false false :; do
43969 cat >conf$$subs.sed <<_ACEOF
43970 SHELL!$SHELL$ac_delim
43971 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43972 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43973 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43974 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43975 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43976 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43977 exec_prefix!$exec_prefix$ac_delim
43978 prefix!$prefix$ac_delim
43979 program_transform_name!$program_transform_name$ac_delim
43980 bindir!$bindir$ac_delim
43981 sbindir!$sbindir$ac_delim
43982 libexecdir!$libexecdir$ac_delim
43983 datarootdir!$datarootdir$ac_delim
43984 datadir!$datadir$ac_delim
43985 sysconfdir!$sysconfdir$ac_delim
43986 sharedstatedir!$sharedstatedir$ac_delim
43987 localstatedir!$localstatedir$ac_delim
43988 includedir!$includedir$ac_delim
43989 oldincludedir!$oldincludedir$ac_delim
43990 docdir!$docdir$ac_delim
43991 infodir!$infodir$ac_delim
43992 htmldir!$htmldir$ac_delim
43993 dvidir!$dvidir$ac_delim
43994 pdfdir!$pdfdir$ac_delim
43995 psdir!$psdir$ac_delim
43996 libdir!$libdir$ac_delim
43997 localedir!$localedir$ac_delim
43998 mandir!$mandir$ac_delim
43999 DEFS!$DEFS$ac_delim
44000 ECHO_C!$ECHO_C$ac_delim
44001 ECHO_N!$ECHO_N$ac_delim
44002 ECHO_T!$ECHO_T$ac_delim
44003 LIBS!$LIBS$ac_delim
44004 build_alias!$build_alias$ac_delim
44005 host_alias!$host_alias$ac_delim
44006 target_alias!$target_alias$ac_delim
44007 BUILD_DIR!$BUILD_DIR$ac_delim
44008 TOP_DIR!$TOP_DIR$ac_delim
44009 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44010 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44011 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44012 TRUEPRG!$TRUEPRG$ac_delim
44013 FALSEPRG!$FALSEPRG$ac_delim
44014 VERSION!$VERSION$ac_delim
44015 DATE!$DATE$ac_delim
44016 LSMDATE!$LSMDATE$ac_delim
44017 BACULA!$BACULA$ac_delim
44018 post_host!$post_host$ac_delim
44020 CFLAGS!$CFLAGS$ac_delim
44021 LDFLAGS!$LDFLAGS$ac_delim
44022 CPPFLAGS!$CPPFLAGS$ac_delim
44023 ac_ct_CC!$ac_ct_CC$ac_delim
44024 EXEEXT!$EXEEXT$ac_delim
44025 OBJEXT!$OBJEXT$ac_delim
44027 CXXFLAGS!$CXXFLAGS$ac_delim
44028 ac_ct_CXX!$ac_ct_CXX$ac_delim
44030 GREP!$GREP$ac_delim
44031 EGREP!$EGREP$ac_delim
44032 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44033 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44034 INSTALL_DATA!$INSTALL_DATA$ac_delim
44036 REMOVE!$REMOVE$ac_delim
44039 ECHO!$ECHO$ac_delim
44043 OPENSSL!$OPENSSL$ac_delim
44046 MKISOFS!$MKISOFS$ac_delim
44047 PYTHON!$PYTHON$ac_delim
44048 GROWISOFS!$GROWISOFS$ac_delim
44049 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44050 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44051 PKGCONFIG!$PKGCONFIG$ac_delim
44052 QMAKE!$QMAKE$ac_delim
44053 QMAKEQT4!$QMAKEQT4$ac_delim
44054 GMAKE!$GMAKE$ac_delim
44055 WXCONFIG!$WXCONFIG$ac_delim
44056 WXFLAGS!$WXFLAGS$ac_delim
44057 CDRECORD!$CDRECORD$ac_delim
44058 PIDOF!$PIDOF$ac_delim
44060 ARFLAGS!$ARFLAGS$ac_delim
44061 MAKE_SHELL!$MAKE_SHELL$ac_delim
44062 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44063 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44068 elif $ac_last_try; then
44069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44070 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44071 { (exit 1); exit 1; }; }
44073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44077 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44078 if test -n "$ac_eof"; then
44079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44080 ac_eof=`expr $ac_eof + 1`
44083 cat >>$CONFIG_STATUS <<_ACEOF
44084 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44086 /^[ ]*@MCOMMON@[ ]*$/{
44092 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44093 s/^/s,@/; s/!/@,|#_!!_#|/
44096 s/'"$ac_delim"'$/,g/; t
44098 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44099 ' >>$CONFIG_STATUS <conf$$subs.sed
44100 rm -f conf$$subs.sed
44101 cat >>$CONFIG_STATUS <<_ACEOF
44107 for ac_last_try in false false false false false :; do
44108 cat >conf$$subs.sed <<_ACEOF
44109 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44110 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44111 LIBTOOL!$LIBTOOL$ac_delim
44112 build!$build$ac_delim
44113 build_cpu!$build_cpu$ac_delim
44114 build_vendor!$build_vendor$ac_delim
44115 build_os!$build_os$ac_delim
44116 host!$host$ac_delim
44117 host_cpu!$host_cpu$ac_delim
44118 host_vendor!$host_vendor$ac_delim
44119 host_os!$host_os$ac_delim
44120 FGREP!$FGREP$ac_delim
44122 DUMPBIN!$DUMPBIN$ac_delim
44123 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44125 LN_S!$LN_S$ac_delim
44126 OBJDUMP!$OBJDUMP$ac_delim
44127 STRIP!$STRIP$ac_delim
44128 RANLIB!$RANLIB$ac_delim
44129 lt_ECHO!$lt_ECHO$ac_delim
44130 DSYMUTIL!$DSYMUTIL$ac_delim
44131 NMEDIT!$NMEDIT$ac_delim
44132 LIPO!$LIPO$ac_delim
44133 OTOOL!$OTOOL$ac_delim
44134 OTOOL64!$OTOOL64$ac_delim
44135 CXXCPP!$CXXCPP$ac_delim
44136 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44137 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44138 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44139 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44140 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44141 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44142 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44143 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44144 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44145 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44146 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44147 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44148 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44149 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44150 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44151 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44152 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44153 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44154 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44155 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44156 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44157 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44158 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44159 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44160 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44161 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44162 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44163 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44164 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44165 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44166 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44167 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44168 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44169 SET_MAKE!$SET_MAKE$ac_delim
44170 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44171 USE_NLS!$USE_NLS$ac_delim
44172 MSGFMT!$MSGFMT$ac_delim
44173 GMSGFMT!$GMSGFMT$ac_delim
44174 XGETTEXT!$XGETTEXT$ac_delim
44175 MSGMERGE!$MSGMERGE$ac_delim
44176 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44177 LIBICONV!$LIBICONV$ac_delim
44178 LTLIBICONV!$LTLIBICONV$ac_delim
44179 INTLLIBS!$INTLLIBS$ac_delim
44180 LIBINTL!$LIBINTL$ac_delim
44181 LTLIBINTL!$LTLIBINTL$ac_delim
44182 POSUB!$POSUB$ac_delim
44183 GLIBC2!$GLIBC2$ac_delim
44184 ALLOCA!$ALLOCA$ac_delim
44185 GLIBC21!$GLIBC21$ac_delim
44186 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44187 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44188 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44189 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44190 INTLBISON!$INTLBISON$ac_delim
44191 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44192 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44193 CATOBJEXT!$CATOBJEXT$ac_delim
44194 DATADIRNAME!$DATADIRNAME$ac_delim
44195 INSTOBJEXT!$INSTOBJEXT$ac_delim
44196 GENCAT!$GENCAT$ac_delim
44197 INTLOBJS!$INTLOBJS$ac_delim
44198 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44199 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44200 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44201 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44202 GNOME_LIBS!$GNOME_LIBS$ac_delim
44203 GNOME_DIR!$GNOME_DIR$ac_delim
44204 BAT_DIR!$BAT_DIR$ac_delim
44205 QWT_INC!$QWT_INC$ac_delim
44208 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44210 elif $ac_last_try; then
44211 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44213 { (exit 1); exit 1; }; }
44215 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44220 if test -n "$ac_eof"; then
44221 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44222 ac_eof=`expr $ac_eof + 1`
44225 cat >>$CONFIG_STATUS <<_ACEOF
44226 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44231 s/^/s,@/; s/!/@,|#_!!_#|/
44234 s/'"$ac_delim"'$/,g/; t
44236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44237 ' >>$CONFIG_STATUS <conf$$subs.sed
44238 rm -f conf$$subs.sed
44239 cat >>$CONFIG_STATUS <<_ACEOF
44245 for ac_last_try in false false false false false :; do
44246 cat >conf$$subs.sed <<_ACEOF
44247 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44248 QWT_LIB!$QWT_LIB$ac_delim
44250 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44251 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44252 WX_DIR!$WX_DIR$ac_delim
44253 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44254 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44255 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44256 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44257 STATIC_FD!$STATIC_FD$ac_delim
44258 STATIC_SD!$STATIC_SD$ac_delim
44259 STATIC_DIR!$STATIC_DIR$ac_delim
44260 STATIC_CONS!$STATIC_CONS$ac_delim
44261 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44262 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44263 ALL_DIRS!$ALL_DIRS$ac_delim
44264 DIRD_DIR!$DIRD_DIR$ac_delim
44265 DIR_TOOLS!$DIR_TOOLS$ac_delim
44266 STORED_DIR!$STORED_DIR$ac_delim
44267 CONS_INC!$CONS_INC$ac_delim
44268 CONS_OBJ!$CONS_OBJ$ac_delim
44269 CONS_SRC!$CONS_SRC$ac_delim
44270 CONS_LIBS!$CONS_LIBS$ac_delim
44271 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44272 READLINE_SRC!$READLINE_SRC$ac_delim
44273 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44274 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44275 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44276 OPENSSL_INC!$OPENSSL_INC$ac_delim
44277 working_dir!$working_dir$ac_delim
44278 archivedir!$archivedir$ac_delim
44279 basename!$basename$ac_delim
44280 scriptdir!$scriptdir$ac_delim
44281 bsrdir!$bsrdir$ac_delim
44282 logdir!$logdir$ac_delim
44283 plugindir!$plugindir$ac_delim
44284 dump_email!$dump_email$ac_delim
44285 job_email!$job_email$ac_delim
44286 smtp_host!$smtp_host$ac_delim
44287 piddir!$piddir$ac_delim
44288 subsysdir!$subsysdir$ac_delim
44289 baseport!$baseport$ac_delim
44290 dir_port!$dir_port$ac_delim
44291 fd_port!$fd_port$ac_delim
44292 sd_port!$sd_port$ac_delim
44293 dir_password!$dir_password$ac_delim
44294 fd_password!$fd_password$ac_delim
44295 sd_password!$sd_password$ac_delim
44296 mon_dir_password!$mon_dir_password$ac_delim
44297 mon_fd_password!$mon_fd_password$ac_delim
44298 mon_sd_password!$mon_sd_password$ac_delim
44299 db_name!$db_name$ac_delim
44300 db_user!$db_user$ac_delim
44301 db_password!$db_password$ac_delim
44302 db_port!$db_port$ac_delim
44303 dir_user!$dir_user$ac_delim
44304 dir_group!$dir_group$ac_delim
44305 sd_user!$sd_user$ac_delim
44306 sd_group!$sd_group$ac_delim
44307 fd_user!$fd_user$ac_delim
44308 fd_group!$fd_group$ac_delim
44309 SBINPERM!$SBINPERM$ac_delim
44310 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44311 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44312 SQL_BINDIR!$SQL_BINDIR$ac_delim
44313 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44314 uncomment_dbi!$uncomment_dbi$ac_delim
44315 DB_PROG!$DB_PROG$ac_delim
44316 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44317 cats!$cats$ac_delim
44318 DB_TYPE!$DB_TYPE$ac_delim
44319 GETCONF!$GETCONF$ac_delim
44320 XMKMF!$XMKMF$ac_delim
44321 X_CFLAGS!$X_CFLAGS$ac_delim
44322 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44323 X_LIBS!$X_LIBS$ac_delim
44324 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44325 LIBOBJS!$LIBOBJS$ac_delim
44326 FDLIBS!$FDLIBS$ac_delim
44327 DEBUG!$DEBUG$ac_delim
44328 DINCLUDE!$DINCLUDE$ac_delim
44329 DLIB!$DLIB$ac_delim
44330 DB_LIBS!$DB_LIBS$ac_delim
44331 WCFLAGS!$WCFLAGS$ac_delim
44332 WLDFLAGS!$WLDFLAGS$ac_delim
44333 WRAPLIBS!$WRAPLIBS$ac_delim
44334 OBJLIST!$OBJLIST$ac_delim
44335 hostname!$hostname$ac_delim
44336 TAPEDRIVE!$TAPEDRIVE$ac_delim
44337 PSCMD!$PSCMD$ac_delim
44338 WIN32!$WIN32$ac_delim
44339 MACOSX!$MACOSX$ac_delim
44340 DISTNAME!$DISTNAME$ac_delim
44341 DISTVER!$DISTVER$ac_delim
44342 LTLIBOBJS!$LTLIBOBJS$ac_delim
44345 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44347 elif $ac_last_try; then
44348 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44349 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44350 { (exit 1); exit 1; }; }
44352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44356 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44357 if test -n "$ac_eof"; then
44358 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44359 ac_eof=`expr $ac_eof + 1`
44362 cat >>$CONFIG_STATUS <<_ACEOF
44363 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44367 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44368 s/^/s,@/; s/!/@,|#_!!_#|/
44371 s/'"$ac_delim"'$/,g/; t
44373 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44374 ' >>$CONFIG_STATUS <conf$$subs.sed
44375 rm -f conf$$subs.sed
44376 cat >>$CONFIG_STATUS <<_ACEOF
44381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44383 # trailing colons and then remove the whole line if VPATH becomes empty
44384 # (actually we leave an empty line to preserve line numbers).
44385 if test "x$srcdir" = x.; then
44386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44387 s/:*\$(srcdir):*/:/
44388 s/:*\${srcdir}:*/:/
44390 s/^\([^=]*=[ ]*\):*/\1/
44396 cat >>$CONFIG_STATUS <<\_ACEOF
44397 fi # test -n "$CONFIG_FILES"
44400 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
44403 :[FHLC]) ac_mode=$ac_tag; continue;;
44405 case $ac_mode$ac_tag in
44407 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44408 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44409 { (exit 1); exit 1; }; };;
44410 :[FH]-) ac_tag=-:-;;
44411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44428 -) ac_f="$tmp/stdin";;
44429 *) # Look for the file first in the build tree, then in the source tree
44430 # (if the path is not absolute). The absolute path cannot be DOS-style,
44431 # because $ac_f cannot contain `:'.
44435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44437 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44438 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44439 { (exit 1); exit 1; }; };;
44441 ac_file_inputs="$ac_file_inputs $ac_f"
44444 # Let's still pretend it is `configure' which instantiates (i.e., don't
44445 # use $as_me), people would be surprised to read:
44446 # /* config.h. Generated by config.status. */
44447 configure_input="Generated from "`IFS=:
44448 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44449 if test x"$ac_file" != x-; then
44450 configure_input="$ac_file. $configure_input"
44451 { echo "$as_me:$LINENO: creating $ac_file" >&5
44452 echo "$as_me: creating $ac_file" >&6;}
44456 *:-:* | *:-) cat >"$tmp/stdin";;
44461 ac_dir=`$as_dirname -- "$ac_file" ||
44462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44463 X"$ac_file" : 'X\(//\)[^/]' \| \
44464 X"$ac_file" : 'X\(//\)$' \| \
44465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44471 /^X\(\/\/\)[^/].*/{
44486 -*) as_dir=./$as_dir;;
44488 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44492 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44493 *) as_qdir=$as_dir;;
44495 as_dirs="'$as_qdir' $as_dirs"
44496 as_dir=`$as_dirname -- "$as_dir" ||
44497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44498 X"$as_dir" : 'X\(//\)[^/]' \| \
44499 X"$as_dir" : 'X\(//\)$' \| \
44500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44506 /^X\(\/\/\)[^/].*/{
44519 test -d "$as_dir" && break
44521 test -z "$as_dirs" || eval "mkdir $as_dirs"
44522 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44523 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44524 { (exit 1); exit 1; }; }; }
44528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44531 # A ".." for each directory in $ac_dir_suffix.
44532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44533 case $ac_top_builddir_sub in
44534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44538 ac_abs_top_builddir=$ac_pwd
44539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44540 # for backward compatibility:
44541 ac_top_builddir=$ac_top_build_prefix
44544 .) # We are building in place.
44546 ac_top_srcdir=$ac_top_builddir_sub
44547 ac_abs_top_srcdir=$ac_pwd ;;
44548 [\\/]* | ?:[\\/]* ) # Absolute name.
44549 ac_srcdir=$srcdir$ac_dir_suffix;
44550 ac_top_srcdir=$srcdir
44551 ac_abs_top_srcdir=$srcdir ;;
44552 *) # Relative name.
44553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44554 ac_top_srcdir=$ac_top_build_prefix$srcdir
44555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44572 cat >>$CONFIG_STATUS <<\_ACEOF
44573 # If the template does not know about datarootdir, expand it.
44574 # FIXME: This hack should be removed a few years after 2.60.
44575 ac_datarootdir_hack=; ac_datarootdir_seen=
44577 case `sed -n '/datarootdir/ {
44586 ' $ac_file_inputs` in
44587 *datarootdir*) ac_datarootdir_seen=yes;;
44588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44589 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44590 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44592 cat >>$CONFIG_STATUS <<_ACEOF
44593 ac_datarootdir_hack='
44594 s&@datadir@&$datadir&g
44595 s&@docdir@&$docdir&g
44596 s&@infodir@&$infodir&g
44597 s&@localedir@&$localedir&g
44598 s&@mandir@&$mandir&g
44599 s&\\\${datarootdir}&$datarootdir&g' ;;
44603 # Neutralize VPATH when `$srcdir' = `.'.
44604 # Shell code in configure.ac might set extrasub.
44605 # FIXME: do we really want to maintain this feature?
44606 cat >>$CONFIG_STATUS <<_ACEOF
44610 cat >>$CONFIG_STATUS <<\_ACEOF
44612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44613 s&@configure_input@&$configure_input&;t t
44614 s&@top_builddir@&$ac_top_builddir_sub&;t t
44615 s&@srcdir@&$ac_srcdir&;t t
44616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44617 s&@top_srcdir@&$ac_top_srcdir&;t t
44618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44619 s&@builddir@&$ac_builddir&;t t
44620 s&@abs_builddir@&$ac_abs_builddir&;t t
44621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44622 s&@INSTALL@&$ac_INSTALL&;t t
44623 $ac_datarootdir_hack
44624 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
44626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44627 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44629 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44630 which seems to be undefined. Please make sure it is defined." >&5
44631 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44632 which seems to be undefined. Please make sure it is defined." >&2;}
44636 -) cat "$tmp/out"; rm -f "$tmp/out";;
44637 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44646 # Transform confdefs.h into a sed script `conftest.defines', that
44647 # substitutes the proper values into config.h.in to produce config.h.
44648 rm -f conftest.defines conftest.tail
44649 # First, append a space to every undef/define line, to ease matching.
44650 echo 's/$/ /' >conftest.defines
44651 # Then, protect against being on the right side of a sed subst, or in
44652 # an unquoted here document, in config.status. If some macros were
44653 # called several times there might be several #defines for the same
44654 # symbol, which is useless. But do not sort them, since the last
44655 # AC_DEFINE must be honored.
44656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44657 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44658 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44659 # PARAMS is the parameter list in the macro definition--in most cases, it's
44660 # just an empty string.
44661 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44662 ac_dB='\\)[ (].*,\\1define\\2'
44670 s/^[ ]*#[ ]*define[ ][ ]*//
44675 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44676 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44677 ' >>conftest.defines
44679 # Remove the space that was appended to ease matching.
44680 # Then replace #undef with comments. This is necessary, for
44681 # example, in the case of _POSIX_SOURCE, which is predefined and required
44682 # on some systems where configure will not decide to define it.
44683 # (The regexp can be short, since the line contains either #define or #undef.)
44685 s,^[ #]*u.*,/* & */,' >>conftest.defines
44687 # Break up conftest.defines:
44688 ac_max_sed_lines=50
44690 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44691 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44692 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44694 ac_in='$ac_file_inputs'
44695 ac_out='"$tmp/out1"'
44696 ac_nxt='"$tmp/out2"'
44700 # Write a here document:
44701 cat >>$CONFIG_STATUS <<_ACEOF
44702 # First, check the format of the line:
44703 cat >"\$tmp/defines.sed" <<\\CEOF
44704 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44705 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44709 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44711 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44712 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44713 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44714 grep . conftest.tail >/dev/null || break
44715 rm -f conftest.defines
44716 mv conftest.tail conftest.defines
44718 rm -f conftest.defines conftest.tail
44720 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44721 cat >>$CONFIG_STATUS <<\_ACEOF
44722 if test x"$ac_file" != x-; then
44723 echo "/* $configure_input */" >"$tmp/config.h"
44724 cat "$ac_result" >>"$tmp/config.h"
44725 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44726 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44727 echo "$as_me: $ac_file is unchanged" >&6;}
44730 mv "$tmp/config.h" $ac_file
44733 echo "/* $configure_input */"
44739 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44740 echo "$as_me: executing $ac_file commands" >&6;}
44745 case $ac_file$ac_mode in
44748 # See if we are running on zsh, and set the options which allow our
44749 # commands through without removal of \ escapes.
44750 if test -n "${ZSH_VERSION+set}" ; then
44751 setopt NO_GLOB_SUBST
44754 cfgfile="${ofile}T"
44755 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44758 cat <<_LT_EOF >> "$cfgfile"
44761 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44762 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44763 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44764 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44766 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44767 # 2006, 2007, 2008 Free Software Foundation, Inc.
44768 # Written by Gordon Matzigkeit, 1996
44770 # This file is part of GNU Libtool.
44772 # GNU Libtool is free software; you can redistribute it and/or
44773 # modify it under the terms of the GNU General Public License as
44774 # published by the Free Software Foundation; either version 2 of
44775 # the License, or (at your option) any later version.
44777 # As a special exception to the GNU General Public License,
44778 # if you distribute this file as part of a program or library that
44779 # is built using GNU Libtool, you may include this file under the
44780 # same distribution terms that you use for the rest of that program.
44782 # GNU Libtool is distributed in the hope that it will be useful,
44783 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44784 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44785 # GNU General Public License for more details.
44787 # You should have received a copy of the GNU General Public License
44788 # along with GNU Libtool; see the file COPYING. If not, a copy
44789 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44790 # obtained by writing to the Free Software Foundation, Inc.,
44791 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44794 # The names of the tagged configurations supported by this script.
44795 available_tags="CXX "
44797 # ### BEGIN LIBTOOL CONFIG
44799 # Which release of libtool.m4 was used?
44800 macro_version=$macro_version
44801 macro_revision=$macro_revision
44803 # Whether or not to build shared libraries.
44804 build_libtool_libs=$enable_shared
44806 # Whether or not to build static libraries.
44807 build_old_libs=$enable_static
44809 # What type of objects to build.
44812 # Whether or not to optimize for fast installation.
44813 fast_install=$enable_fast_install
44816 host_alias=$host_alias
44820 # The build system.
44821 build_alias=$build_alias
44825 # A sed program that does not truncate output.
44828 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44829 Xsed="\$SED -e 1s/^X//"
44831 # A grep program that handles long lines.
44837 # A literal string matcher.
44840 # A BSD- or MS-compatible name lister.
44843 # Whether we need soft or hard links.
44846 # What is the maximum length of a command?
44847 max_cmd_len=$max_cmd_len
44849 # Object file suffix (normally "o").
44852 # Executable file suffix (normally "").
44855 # whether the shell understands "unset".
44858 # turn spaces into newlines.
44861 # turn newlines into spaces.
44864 # How to create reloadable object files.
44865 reload_flag=$lt_reload_flag
44866 reload_cmds=$lt_reload_cmds
44868 # An object symbol dumper.
44869 OBJDUMP=$lt_OBJDUMP
44871 # Method to check whether dependent libraries are shared objects.
44872 deplibs_check_method=$lt_deplibs_check_method
44874 # Command to use when deplibs_check_method == "file_magic".
44875 file_magic_cmd=$lt_file_magic_cmd
44879 AR_FLAGS=$lt_AR_FLAGS
44881 # A symbol stripping program.
44884 # Commands used to install an old-style archive.
44886 old_postinstall_cmds=$lt_old_postinstall_cmds
44887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44892 # LTCC compiler flags.
44893 LTCFLAGS=$lt_CFLAGS
44895 # Take the output of nm and produce a listing of raw symbols and C names.
44896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44898 # Transform the output of nm in a proper C declaration.
44899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44901 # Transform the output of nm in a C name address pair.
44902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44904 # Transform the output of nm in a C name address pair when lib prefix is needed.
44905 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44907 # The name of the directory that contains temporary libtool files.
44910 # Shell to use when invoking shell scripts.
44913 # An echo program that does not interpret backslashes.
44916 # Used to examine libraries when file_magic_cmd begins with "file".
44917 MAGIC_CMD=$MAGIC_CMD
44919 # Must we lock files when doing compilation?
44920 need_locks=$lt_need_locks
44922 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44923 DSYMUTIL=$lt_DSYMUTIL
44925 # Tool to change global to local symbols on Mac OS X.
44928 # Tool to manipulate fat objects and archives on Mac OS X.
44931 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44934 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44935 OTOOL64=$lt_OTOOL64
44937 # Old archive suffix (normally "a").
44940 # Shared library suffix (normally ".so").
44941 shrext_cmds=$lt_shrext_cmds
44943 # The commands to extract the exported symbol list from a shared archive.
44944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44946 # Variables whose values should be saved in libtool wrapper scripts and
44947 # restored at link time.
44948 variables_saved_for_relink=$lt_variables_saved_for_relink
44950 # Do we need the "lib" prefix for modules?
44951 need_lib_prefix=$need_lib_prefix
44953 # Do we need a version for libraries?
44954 need_version=$need_version
44956 # Library versioning type.
44957 version_type=$version_type
44959 # Shared library runtime path variable.
44960 runpath_var=$runpath_var
44962 # Shared library path variable.
44963 shlibpath_var=$shlibpath_var
44965 # Is shlibpath searched before the hard-coded library search path?
44966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44968 # Format of library name prefix.
44969 libname_spec=$lt_libname_spec
44971 # List of archive names. First name is the real one, the rest are links.
44972 # The last name is the one that the linker finds with -lNAME
44973 library_names_spec=$lt_library_names_spec
44975 # The coded name of the library, if different from the real name.
44976 soname_spec=$lt_soname_spec
44978 # Command to use after installation of a shared archive.
44979 postinstall_cmds=$lt_postinstall_cmds
44981 # Command to use after uninstallation of a shared archive.
44982 postuninstall_cmds=$lt_postuninstall_cmds
44984 # Commands used to finish a libtool library installation in a directory.
44985 finish_cmds=$lt_finish_cmds
44987 # As "finish_cmds", except a single script fragment to be evaled but
44989 finish_eval=$lt_finish_eval
44991 # Whether we should hardcode library paths into libraries.
44992 hardcode_into_libs=$hardcode_into_libs
44994 # Compile-time system search path for libraries.
44995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44997 # Run-time system search path for libraries.
44998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45000 # Whether dlopen is supported.
45001 dlopen_support=$enable_dlopen
45003 # Whether dlopen of programs is supported.
45004 dlopen_self=$enable_dlopen_self
45006 # Whether dlopen of statically linked programs is supported.
45007 dlopen_self_static=$enable_dlopen_self_static
45009 # Commands to strip libraries.
45010 old_striplib=$lt_old_striplib
45011 striplib=$lt_striplib
45014 # The linker used to build libraries.
45017 # Commands used to build an old-style archive.
45018 old_archive_cmds=$lt_old_archive_cmds
45020 # A language specific compiler.
45023 # Is the compiler the GNU compiler?
45026 # Compiler flag to turn off builtin functions.
45027 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45029 # How to pass a linker flag through the compiler.
45030 wl=$lt_lt_prog_compiler_wl
45032 # Additional compiler flags for building library objects.
45033 pic_flag=$lt_lt_prog_compiler_pic
45035 # Compiler flag to prevent dynamic linking.
45036 link_static_flag=$lt_lt_prog_compiler_static
45038 # Does compiler simultaneously support -c and -o options?
45039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45041 # Whether or not to add -lc for building shared libraries.
45042 build_libtool_need_lc=$archive_cmds_need_lc
45044 # Whether or not to disallow shared libs when runtime libs are static.
45045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45047 # Compiler flag to allow reflexive dlopens.
45048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45050 # Compiler flag to generate shared objects directly from archives.
45051 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45053 # Whether the compiler copes with passing no objects directly.
45054 compiler_needs_object=$lt_compiler_needs_object
45056 # Create an old-style archive from a shared archive.
45057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45059 # Create a temporary old-style archive to link instead of a shared archive.
45060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45062 # Commands used to build a shared archive.
45063 archive_cmds=$lt_archive_cmds
45064 archive_expsym_cmds=$lt_archive_expsym_cmds
45066 # Commands used to build a loadable module if different from building
45067 # a shared archive.
45068 module_cmds=$lt_module_cmds
45069 module_expsym_cmds=$lt_module_expsym_cmds
45071 # Whether we are building with GNU ld or not.
45072 with_gnu_ld=$lt_with_gnu_ld
45074 # Flag that allows shared libraries with undefined symbols to be built.
45075 allow_undefined_flag=$lt_allow_undefined_flag
45077 # Flag that enforces no undefined symbols.
45078 no_undefined_flag=$lt_no_undefined_flag
45080 # Flag to hardcode \$libdir into a binary during linking.
45081 # This must work even if \$libdir does not exist
45082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45084 # If ld is used when linking, flag to hardcode \$libdir into a binary
45085 # during linking. This must work even if \$libdir does not exist.
45086 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45088 # Whether we need a single "-rpath" flag with a separated argument.
45089 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45091 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45092 # DIR into the resulting binary.
45093 hardcode_direct=$hardcode_direct
45095 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45096 # DIR into the resulting binary and the resulting library dependency is
45097 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45098 # library is relocated.
45099 hardcode_direct_absolute=$hardcode_direct_absolute
45101 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45102 # into the resulting binary.
45103 hardcode_minus_L=$hardcode_minus_L
45105 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45106 # into the resulting binary.
45107 hardcode_shlibpath_var=$hardcode_shlibpath_var
45109 # Set to "yes" if building a shared library automatically hardcodes DIR
45110 # into the library and all subsequent libraries and executables linked
45112 hardcode_automatic=$hardcode_automatic
45114 # Set to yes if linker adds runtime paths of dependent libraries
45115 # to runtime path list.
45116 inherit_rpath=$inherit_rpath
45118 # Whether libtool must link a program against all its dependency libraries.
45119 link_all_deplibs=$link_all_deplibs
45121 # Fix the shell variable \$srcfile for the compiler.
45122 fix_srcfile_path=$lt_fix_srcfile_path
45124 # Set to "yes" if exported symbols are required.
45125 always_export_symbols=$always_export_symbols
45127 # The commands to list exported symbols.
45128 export_symbols_cmds=$lt_export_symbols_cmds
45130 # Symbols that should not be listed in the preloaded symbols.
45131 exclude_expsyms=$lt_exclude_expsyms
45133 # Symbols that must always be exported.
45134 include_expsyms=$lt_include_expsyms
45136 # Commands necessary for linking programs (against libraries) with templates.
45137 prelink_cmds=$lt_prelink_cmds
45139 # Specify filename containing input files.
45140 file_list_spec=$lt_file_list_spec
45142 # How to hardcode a shared library path into an executable.
45143 hardcode_action=$hardcode_action
45145 # The directories searched by this compiler when creating a shared library.
45146 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45148 # Dependencies to place before and after the objects being linked to
45149 # create a shared library.
45150 predep_objects=$lt_predep_objects
45151 postdep_objects=$lt_postdep_objects
45152 predeps=$lt_predeps
45153 postdeps=$lt_postdeps
45155 # The library search path used internally by the compiler when linking
45156 # a shared library.
45157 compiler_lib_search_path=$lt_compiler_lib_search_path
45159 # ### END LIBTOOL CONFIG
45165 cat <<\_LT_EOF >> "$cfgfile"
45166 # AIX sometimes has problems with the GCC collect2 program. For some
45167 # reason, if we set the COLLECT_NAMES environment variable, the problems
45168 # vanish in a puff of smoke.
45169 if test "X${COLLECT_NAMES+set}" != Xset; then
45171 export COLLECT_NAMES
45178 ltmain="$ac_aux_dir/ltmain.sh"
45181 # We use sed instead of cat because bash on DJGPP gets confused if
45182 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45183 # text mode, it properly converts lines to CR/LF. This bash problem
45184 # is reportedly fixed, but why not run on old versions too?
45185 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45186 || (rm -f "$cfgfile"; exit 1)
45190 cat << \_LT_EOF >> "$cfgfile"
45192 # func_dirname file append nondir_replacement
45193 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45194 # otherwise set result to NONDIR_REPLACEMENT.
45198 */*) func_dirname_result="${1%/*}${2}" ;;
45199 * ) func_dirname_result="${3}" ;;
45203 # func_basename file
45206 func_basename_result="${1##*/}"
45209 # func_dirname_and_basename file append nondir_replacement
45210 # perform func_basename and func_dirname in a single function
45212 # dirname: Compute the dirname of FILE. If nonempty,
45213 # add APPEND to the result, otherwise set result
45214 # to NONDIR_REPLACEMENT.
45215 # value returned in "$func_dirname_result"
45216 # basename: Compute filename of FILE.
45217 # value retuned in "$func_basename_result"
45218 # Implementation must be kept synchronized with func_dirname
45219 # and func_basename. For efficiency, we do not delegate to
45220 # those functions but instead duplicate the functionality here.
45221 func_dirname_and_basename ()
45224 */*) func_dirname_result="${1%/*}${2}" ;;
45225 * ) func_dirname_result="${3}" ;;
45227 func_basename_result="${1##*/}"
45230 # func_stripname prefix suffix name
45231 # strip PREFIX and SUFFIX off of NAME.
45232 # PREFIX and SUFFIX must not contain globbing or regex special
45233 # characters, hashes, percent signs, but SUFFIX may contain a leading
45234 # dot (in which case that matches only a dot).
45237 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45238 # positional parameters, so assign one to ordinary parameter first.
45239 func_stripname_result=${3}
45240 func_stripname_result=${func_stripname_result#"${1}"}
45241 func_stripname_result=${func_stripname_result%"${2}"}
45247 func_opt_split_opt=${1%%=*}
45248 func_opt_split_arg=${1#*=}
45255 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45256 *) func_lo2o_result=${1} ;;
45260 # func_xform libobj-or-source
45263 func_xform_result=${1%.*}.lo
45266 # func_arith arithmetic-term...
45269 func_arith_result=$(( $* ))
45273 # STRING may not start with a hyphen.
45276 func_len_result=${#1}
45281 *) # Bourne compatible functions.
45282 cat << \_LT_EOF >> "$cfgfile"
45284 # func_dirname file append nondir_replacement
45285 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45286 # otherwise set result to NONDIR_REPLACEMENT.
45289 # Extract subdirectory from the argument.
45290 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45291 if test "X$func_dirname_result" = "X${1}"; then
45292 func_dirname_result="${3}"
45294 func_dirname_result="$func_dirname_result${2}"
45298 # func_basename file
45301 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45305 # func_stripname prefix suffix name
45306 # strip PREFIX and SUFFIX off of NAME.
45307 # PREFIX and SUFFIX must not contain globbing or regex special
45308 # characters, hashes, percent signs, but SUFFIX may contain a leading
45309 # dot (in which case that matches only a dot).
45310 # func_strip_suffix prefix name
45314 .*) func_stripname_result=`$ECHO "X${3}" \
45315 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45316 *) func_stripname_result=`$ECHO "X${3}" \
45317 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45322 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45323 my_sed_long_arg='1s/^-[^=]*=//'
45328 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45329 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45335 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45338 # func_xform libobj-or-source
45341 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45344 # func_arith arithmetic-term...
45347 func_arith_result=`expr "$@"`
45351 # STRING may not start with a hyphen.
45354 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45360 case $lt_shell_append in
45362 cat << \_LT_EOF >> "$cfgfile"
45364 # func_append var value
45365 # Append VALUE to the end of shell variable VAR.
45373 cat << \_LT_EOF >> "$cfgfile"
45375 # func_append var value
45376 # Append VALUE to the end of shell variable VAR.
45387 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45388 || (rm -f "$cfgfile"; exit 1)
45390 mv -f "$cfgfile" "$ofile" ||
45391 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45395 cat <<_LT_EOF >> "$ofile"
45397 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45399 # The linker used to build libraries.
45402 # Commands used to build an old-style archive.
45403 old_archive_cmds=$lt_old_archive_cmds_CXX
45405 # A language specific compiler.
45406 CC=$lt_compiler_CXX
45408 # Is the compiler the GNU compiler?
45411 # Compiler flag to turn off builtin functions.
45412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45414 # How to pass a linker flag through the compiler.
45415 wl=$lt_lt_prog_compiler_wl_CXX
45417 # Additional compiler flags for building library objects.
45418 pic_flag=$lt_lt_prog_compiler_pic_CXX
45420 # Compiler flag to prevent dynamic linking.
45421 link_static_flag=$lt_lt_prog_compiler_static_CXX
45423 # Does compiler simultaneously support -c and -o options?
45424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45426 # Whether or not to add -lc for building shared libraries.
45427 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45429 # Whether or not to disallow shared libs when runtime libs are static.
45430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45432 # Compiler flag to allow reflexive dlopens.
45433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45435 # Compiler flag to generate shared objects directly from archives.
45436 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45438 # Whether the compiler copes with passing no objects directly.
45439 compiler_needs_object=$lt_compiler_needs_object_CXX
45441 # Create an old-style archive from a shared archive.
45442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45444 # Create a temporary old-style archive to link instead of a shared archive.
45445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45447 # Commands used to build a shared archive.
45448 archive_cmds=$lt_archive_cmds_CXX
45449 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45451 # Commands used to build a loadable module if different from building
45452 # a shared archive.
45453 module_cmds=$lt_module_cmds_CXX
45454 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45456 # Whether we are building with GNU ld or not.
45457 with_gnu_ld=$lt_with_gnu_ld_CXX
45459 # Flag that allows shared libraries with undefined symbols to be built.
45460 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45462 # Flag that enforces no undefined symbols.
45463 no_undefined_flag=$lt_no_undefined_flag_CXX
45465 # Flag to hardcode \$libdir into a binary during linking.
45466 # This must work even if \$libdir does not exist
45467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45469 # If ld is used when linking, flag to hardcode \$libdir into a binary
45470 # during linking. This must work even if \$libdir does not exist.
45471 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45473 # Whether we need a single "-rpath" flag with a separated argument.
45474 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45477 # DIR into the resulting binary.
45478 hardcode_direct=$hardcode_direct_CXX
45480 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45481 # DIR into the resulting binary and the resulting library dependency is
45482 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45483 # library is relocated.
45484 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45486 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45487 # into the resulting binary.
45488 hardcode_minus_L=$hardcode_minus_L_CXX
45490 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45491 # into the resulting binary.
45492 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45494 # Set to "yes" if building a shared library automatically hardcodes DIR
45495 # into the library and all subsequent libraries and executables linked
45497 hardcode_automatic=$hardcode_automatic_CXX
45499 # Set to yes if linker adds runtime paths of dependent libraries
45500 # to runtime path list.
45501 inherit_rpath=$inherit_rpath_CXX
45503 # Whether libtool must link a program against all its dependency libraries.
45504 link_all_deplibs=$link_all_deplibs_CXX
45506 # Fix the shell variable \$srcfile for the compiler.
45507 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45509 # Set to "yes" if exported symbols are required.
45510 always_export_symbols=$always_export_symbols_CXX
45512 # The commands to list exported symbols.
45513 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45515 # Symbols that should not be listed in the preloaded symbols.
45516 exclude_expsyms=$lt_exclude_expsyms_CXX
45518 # Symbols that must always be exported.
45519 include_expsyms=$lt_include_expsyms_CXX
45521 # Commands necessary for linking programs (against libraries) with templates.
45522 prelink_cmds=$lt_prelink_cmds_CXX
45524 # Specify filename containing input files.
45525 file_list_spec=$lt_file_list_spec_CXX
45527 # How to hardcode a shared library path into an executable.
45528 hardcode_action=$hardcode_action_CXX
45530 # The directories searched by this compiler when creating a shared library.
45531 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45533 # Dependencies to place before and after the objects being linked to
45534 # create a shared library.
45535 predep_objects=$lt_predep_objects_CXX
45536 postdep_objects=$lt_postdep_objects_CXX
45537 predeps=$lt_predeps_CXX
45538 postdeps=$lt_postdeps_CXX
45540 # The library search path used internally by the compiler when linking
45541 # a shared library.
45542 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45544 # ### END LIBTOOL TAG CONFIG: CXX
45549 for ac_file in $CONFIG_FILES; do
45550 # Support "outfile[:infile[:infile...]]"
45552 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45554 # PO directories have a Makefile.in generated from Makefile.in.in.
45555 case "$ac_file" in */Makefile.in)
45556 # Adjust a relative srcdir.
45557 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45558 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45559 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45560 # In autoconf-2.13 it is called $ac_given_srcdir.
45561 # In autoconf-2.50 it is called $srcdir.
45562 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45563 case "$ac_given_srcdir" in
45564 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45565 /*) top_srcdir="$ac_given_srcdir" ;;
45566 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
45568 # Treat a directory as a PO directory if and only if it has a
45569 # POTFILES.in file. This allows packages to have multiple PO
45570 # directories under different names or in different locations.
45571 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45572 rm -f "$ac_dir/POTFILES"
45573 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45574 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45575 POMAKEFILEDEPS="POTFILES.in"
45576 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45577 # on $ac_dir but don't depend on user-specified configuration
45579 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45580 # The LINGUAS file contains the set of available languages.
45581 if test -n "$OBSOLETE_ALL_LINGUAS"; then
45582 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45584 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45585 # Hide the ALL_LINGUAS assigment from automake.
45586 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45587 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45589 # The set of available languages was given in configure.in.
45590 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45593 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45594 # Compute UPDATEPOFILES
45595 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45596 # Compute DUMMYPOFILES
45597 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45599 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45600 case "$ac_given_srcdir" in
45602 *) srcdirpre='$(srcdir)/' ;;
45608 for lang in $ALL_LINGUAS; do
45609 POFILES="$POFILES $srcdirpre$lang.po"
45610 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45611 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45612 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45614 # CATALOGS depends on both $ac_dir and the user's LINGUAS
45615 # environment variable.
45617 if test -n "$ALL_LINGUAS"; then
45618 for presentlang in $ALL_LINGUAS; do
45620 if test "%UNSET%" != "$LINGUAS"; then
45621 desiredlanguages="$LINGUAS"
45623 desiredlanguages="$ALL_LINGUAS"
45625 for desiredlang in $desiredlanguages; do
45626 # Use the presentlang catalog if desiredlang is
45627 # a. equal to presentlang, or
45628 # b. a variant of presentlang (because in this case,
45629 # presentlang can be used as a fallback for messages
45630 # which are not translated in the desiredlang catalog).
45631 case "$desiredlang" in
45632 "$presentlang"*) useit=yes;;
45635 if test $useit = yes; then
45636 INST_LINGUAS="$INST_LINGUAS $presentlang"
45641 if test -n "$INST_LINGUAS"; then
45642 for lang in $INST_LINGUAS; do
45643 CATALOGS="$CATALOGS $lang.gmo"
45646 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45647 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"
45648 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45649 if test -f "$f"; then
45651 *.orig | *.bak | *~) ;;
45652 *) cat "$f" >> "$ac_dir/Makefile" ;;
45667 { (exit 0); exit 0; }
45669 chmod +x $CONFIG_STATUS
45670 ac_clean_files=$ac_clean_files_save
45673 # configure is writing to config.log, and then calls config.status.
45674 # config.status does its own redirection, appending to config.log.
45675 # Unfortunately, on DOS this fails, as config.log is still kept open
45676 # by configure, so config.status won't be able to write to it; its
45677 # output is simply discarded. So we exec the FD to /dev/null,
45678 # effectively closing config.log, so it can be properly (re)opened and
45679 # appended to by config.status. When coming back to configure, we
45680 # need to make the FD available again.
45681 if test "$no_create" != yes; then
45683 ac_config_status_args=
45684 test "$silent" = yes &&
45685 ac_config_status_args="$ac_config_status_args --quiet"
45687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45690 # would make configure fail if this is the last instruction.
45691 $ac_cs_success || { (exit 1); exit 1; }
45695 if test "${support_bat}" = "yes" ; then
45696 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45697 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45698 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45699 { (exit 1); exit 1; }; }
45704 if test "x$QMAKEQT4" != "xnone"; then
45709 echo "Creating bat Makefile"
45717 if test X"$GCC" = "Xyes" ; then
45718 echo "Doing make of dependencies"
45719 ${MAKE:-make} depend
45723 chmod 755 install_conf_file build-depkgs-qt-console
45727 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45728 chmod 755 dvd-handler dvd-simulator
45729 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45733 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
45734 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
45738 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
45739 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
45741 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
45742 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
45744 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
45745 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
45747 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
45748 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
45750 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
45751 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
45753 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
45754 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
45756 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45757 chmod 755 $c/sqlite
45760 chmod 755 src/win32/build-depkgs-mingw32
45762 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45763 largefile_support="yes"
45766 if test X"$GCC" = "Xyes" ; then
45767 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45768 if test "x${CCVERSION}" = "x" ; then
45769 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45771 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45772 if test x"${CXXVERSION}" = x ; then
45773 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45777 # clean up any old junk
45783 if test "x${db_type}" = "xInternal" ; then
45786 echo "You have not specified either --enable-client-only or one of the"
45787 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45788 echo " This is not permitted. Please reconfigure."
45790 echo "Aborting the configuration ..."
45797 Configuration on `date`:
45799 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45800 Bacula version: ${BACULA} ${VERSION} (${DATE})
45801 Source code location: ${srcdir}
45802 Install binaries: ${sbindir}
45803 Install libraries: ${libdir}
45804 Install config files: ${sysconfdir}
45805 Scripts directory: ${scriptdir}
45806 Archive directory: ${archivedir}
45807 Working directory: ${working_dir}
45808 PID directory: ${piddir}
45809 Subsys directory: ${subsysdir}
45810 Man directory: ${mandir}
45811 Data directory: ${datarootdir}
45812 Plugin directory: ${plugindir}
45813 C Compiler: ${CC} ${CCVERSION}
45814 C++ Compiler: ${CXX} ${CXXVERSION}
45815 Compiler flags: ${WCFLAGS} ${CFLAGS}
45816 Linker flags: ${WLDFLAGS} ${LDFLAGS}
45818 Statically Linked Tools: ${support_static_tools}
45819 Statically Linked FD: ${support_static_fd}
45820 Statically Linked SD: ${support_static_sd}
45821 Statically Linked DIR: ${support_static_dir}
45822 Statically Linked CONS: ${support_static_cons}
45823 Database type: ${db_type}
45824 Database port: ${db_port}
45825 Database lib: ${DB_LIBS}
45826 Database name: ${db_name}
45827 Database user: ${db_user}
45829 Job Output Email: ${job_email}
45830 Traceback Email: ${dump_email}
45831 SMTP Host Address: ${smtp_host}
45833 Director Port: ${dir_port}
45834 File daemon Port: ${fd_port}
45835 Storage daemon Port: ${sd_port}
45837 Director User: ${dir_user}
45838 Director Group: ${dir_group}
45839 Storage Daemon User: ${sd_user}
45840 Storage DaemonGroup: ${sd_group}
45841 File Daemon User: ${fd_user}
45842 File Daemon Group: ${fd_group}
45844 SQL binaries Directory ${SQL_BINDIR}
45846 Large file support: $largefile_support
45847 Bacula conio support: ${got_conio} ${CONS_LIBS}
45848 readline support: ${got_readline} ${PRTREADLINE_SRC}
45849 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
45850 TLS support: ${support_tls}
45851 Encryption support: ${support_crypto}
45852 ZLIB support: ${have_zlib}
45853 enable-smartalloc: ${support_smartalloc}
45854 enable-lockmgr: ${support_lockmgr}
45855 bat support: ${support_bat} ${QWT_LDFLAGS}
45856 enable-gnome: ${support_gnome} ${gnome_version}
45857 enable-bwx-console: ${support_wx_console} ${wx_version}
45858 enable-tray-monitor: ${support_tray_monitor}
45859 client-only: ${build_client_only}
45860 build-dird: ${build_dird}
45861 build-stored: ${build_stored}
45862 ACL support: ${have_acl}
45863 XATTR support: ${have_xattr}
45864 Python support: ${support_python} ${PYTHON_LIBS}
45865 Batch insert enabled: ${support_batch_insert}