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
887 DEFAULT_SHARED_OBJECT_TYPE
888 LIBTOOL_INSTALL_TARGET
889 LIBTOOL_UNINSTALL_TARGET
892 INCLUDE_INSTALL_TARGET
893 INCLUDE_UNINSTALL_TARGET
905 HAVE_FREEBSD_OS_FALSE
909 HAVE_OPENBSD_OS_FALSE
940 BUILD_INCLUDED_LIBINTL
947 INTL_LIBTOOL_SUFFIX_PREFIX
961 TRAY_MONITOR_CPPFLAGS
1048 ac_subst_files='MCOMMON'
1049 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1079 program_transform_name=s,x,x,
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1125 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1129 # Accept the important Cygnus configure options, so we can diagnose typos.
1131 case $ac_dashdash$ac_option in
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150 cache_file=$ac_optarg ;;
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1155 -datadir | --datadir | --datadi | --datad)
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1167 -disable-* | --disable-*)
1168 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174 eval enable_$ac_feature=no ;;
1176 -docdir | --docdir | --docdi | --doc | --do)
1178 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179 docdir=$ac_optarg ;;
1181 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184 dvidir=$ac_optarg ;;
1186 -enable-* | --enable-*)
1187 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193 eval enable_$ac_feature=\$ac_optarg ;;
1195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197 | --exec | --exe | --ex)
1198 ac_prev=exec_prefix ;;
1199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201 | --exec=* | --exe=* | --ex=*)
1202 exec_prefix=$ac_optarg ;;
1204 -gas | --gas | --ga | --g)
1205 # Obsolete; use --with-gas.
1208 -help | --help | --hel | --he | -h)
1209 ac_init_help=long ;;
1210 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211 ac_init_help=recursive ;;
1212 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213 ac_init_help=short ;;
1215 -host | --host | --hos | --ho)
1216 ac_prev=host_alias ;;
1217 -host=* | --host=* | --hos=* | --ho=*)
1218 host_alias=$ac_optarg ;;
1220 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 htmldir=$ac_optarg ;;
1226 -includedir | --includedir | --includedi | --included | --include \
1227 | --includ | --inclu | --incl | --inc)
1228 ac_prev=includedir ;;
1229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230 | --includ=* | --inclu=* | --incl=* | --inc=*)
1231 includedir=$ac_optarg ;;
1233 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236 infodir=$ac_optarg ;;
1238 -libdir | --libdir | --libdi | --libd)
1240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241 libdir=$ac_optarg ;;
1243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244 | --libexe | --libex | --libe)
1245 ac_prev=libexecdir ;;
1246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247 | --libexe=* | --libex=* | --libe=*)
1248 libexecdir=$ac_optarg ;;
1250 -localedir | --localedir | --localedi | --localed | --locale)
1251 ac_prev=localedir ;;
1252 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253 localedir=$ac_optarg ;;
1255 -localstatedir | --localstatedir | --localstatedi | --localstated \
1256 | --localstate | --localstat | --localsta | --localst | --locals)
1257 ac_prev=localstatedir ;;
1258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260 localstatedir=$ac_optarg ;;
1262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265 mandir=$ac_optarg ;;
1267 -nfp | --nfp | --nf)
1268 # Obsolete; use --without-fp.
1271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272 | --no-cr | --no-c | -n)
1275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281 | --oldin | --oldi | --old | --ol | --o)
1282 ac_prev=oldincludedir ;;
1283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286 oldincludedir=$ac_optarg ;;
1288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291 prefix=$ac_optarg ;;
1293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294 | --program-pre | --program-pr | --program-p)
1295 ac_prev=program_prefix ;;
1296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298 program_prefix=$ac_optarg ;;
1300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301 | --program-suf | --program-su | --program-s)
1302 ac_prev=program_suffix ;;
1303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305 program_suffix=$ac_optarg ;;
1307 -program-transform-name | --program-transform-name \
1308 | --program-transform-nam | --program-transform-na \
1309 | --program-transform-n | --program-transform- \
1310 | --program-transform | --program-transfor \
1311 | --program-transfo | --program-transf \
1312 | --program-trans | --program-tran \
1313 | --progr-tra | --program-tr | --program-t)
1314 ac_prev=program_transform_name ;;
1315 -program-transform-name=* | --program-transform-name=* \
1316 | --program-transform-nam=* | --program-transform-na=* \
1317 | --program-transform-n=* | --program-transform-=* \
1318 | --program-transform=* | --program-transfor=* \
1319 | --program-transfo=* | --program-transf=* \
1320 | --program-trans=* | --program-tran=* \
1321 | --progr-tra=* | --program-tr=* | --program-t=*)
1322 program_transform_name=$ac_optarg ;;
1324 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327 pdfdir=$ac_optarg ;;
1329 -psdir | --psdir | --psdi | --psd | --ps)
1331 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335 | -silent | --silent | --silen | --sile | --sil)
1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 sbindir=$ac_optarg ;;
1344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346 | --sharedst | --shareds | --shared | --share | --shar \
1348 ac_prev=sharedstatedir ;;
1349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 sharedstatedir=$ac_optarg ;;
1355 -site | --site | --sit)
1357 -site=* | --site=* | --sit=*)
1360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363 srcdir=$ac_optarg ;;
1365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366 | --syscon | --sysco | --sysc | --sys | --sy)
1367 ac_prev=sysconfdir ;;
1368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370 sysconfdir=$ac_optarg ;;
1372 -target | --target | --targe | --targ | --tar | --ta | --t)
1373 ac_prev=target_alias ;;
1374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375 target_alias=$ac_optarg ;;
1377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380 -version | --version | --versio | --versi | --vers | -V)
1381 ac_init_version=: ;;
1384 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 { echo "$as_me: error: invalid package name: $ac_package" >&2
1388 { (exit 1); exit 1; }; }
1389 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390 eval with_$ac_package=\$ac_optarg ;;
1392 -without-* | --without-*)
1393 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_$ac_package=no ;;
1402 # Obsolete; use --with-x.
1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406 | --x-incl | --x-inc | --x-in | --x-i)
1407 ac_prev=x_includes ;;
1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410 x_includes=$ac_optarg ;;
1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414 ac_prev=x_libraries ;;
1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417 x_libraries=$ac_optarg ;;
1419 -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421 { (exit 1); exit 1; }; }
1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429 { (exit 1); exit 1; }; }
1430 eval $ac_envvar=\$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 if test -n "$ac_prev"; then
1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446 { echo "$as_me: error: missing argument to $ac_option" >&2
1447 { (exit 1); exit 1; }; }
1450 # Be sure to have absolute directory names.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462 { (exit 1); exit 1; }; }
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 { echo "$as_me: error: Working directory cannot be determined" >&2
1493 { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495 { echo "$as_me: error: pwd does not report name of working directory" >&2
1496 { (exit 1); exit 1; }; }
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$0" : 'X\(//\)[^/]' \| \
1506 X"$0" : 'X\(//\)$' \| \
1507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536 { (exit 1); exit 1; }; }
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541 { (exit 1); exit 1; }; }
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-includes enable installing of include files [default=no]
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --enable-gnome enable build of bgnome-console GUI [default=no]
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-bwx-console enable build of wxWidgets console [default=no]
1653 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1655 --enable-smartalloc enable smartalloc debugging support [default=no]
1656 --enable-lockmgr enable lock manager support [default=no]
1657 --enable-static-tools enable static tape tools [default=no]
1658 --enable-static-fd enable static File daemon [default=no]
1659 --enable-static-sd enable static Storage daemon [default=no]
1660 --enable-static-dir enable static Director [default=no]
1661 --enable-static-cons enable static Console [default=no]
1662 --enable-client-only build client (File daemon) only [default=no]
1663 --enable-build-dird enable building of dird (Director) [default=yes]
1664 --enable-build-stored enable building of stored (Storage daemon)
1666 --disable-conio disable conio support [default=no]
1667 --enable-ipv6 enable ipv6 support [default=yes]
1668 --disable-readline disable readline support [default=yes]
1669 --enable-batch-insert enable the DB batch insert code [default=no]
1670 --disable-largefile omit support for large files
1671 --disable-acl disable acl support [default=auto]
1672 --disable-xattr disable xattr support [default=auto]
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1684 --without-libintl-prefix don't search for libintl in includedir and libdir
1685 --with-included-gettext use the GNU gettext library included here
1686 --with-qwt[=DIR] specify qwt library directory
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-scriptdir=PATH specify path of Bacula scripts directory
1697 --with-plugindir=PATH specify path of Bacula plugins directory
1698 --with-dump-email=EMAIL dump email address
1699 --with-job-email=EMAIL job output email address
1700 --with-smtp-host=HOST SMTP mail host address
1701 --with-pid-dir=PATH specify location of Bacula pid files
1702 --with-subsys-dir=PATH specify location of Bacula subsys file
1703 --with-baseport=PORT specify base port address for daemons
1704 --with-dir-password=PASSWORD
1705 specify Director's password
1706 --with-fd-password=PASSWORD
1707 specify Client's password
1708 --with-sd-password=PASSWORD
1709 specify Storage daemon's password
1710 --with-mon-dir-password=PASSWORD
1711 specify Director's password used by the monitor
1712 --with-mon-fd-password=PASSWORD
1713 specify Client's password used by the monitor
1714 --with-mon-sd-password=PASSWORD
1715 specify Storage daemon's password used by the
1717 --with-db-name=DBNAME specify database name [default=bacula]
1718 --with-db-user=UNAME specify database user [default=bacula]
1719 --with-db-password=PWD specify database password [default=*none*]
1720 --with-db-port=DBPORT specify a database port [default=null]
1721 --with-dir-user=USER specify user for Director daemon
1722 --with-dir-group=GROUP specify group for Director daemon
1723 --with-sd-user=USER specify user for Storage daemon
1724 --with-sd-group=GROUP specify group for Storage daemon
1725 --with-fd-user=USER specify user for File daemon
1726 --with-fd-group=GROUP specify group for File daemon
1727 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1728 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1729 base install directory, [default=/usr/local/pgsql]
1730 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1731 directory, default is to search through a number of
1732 common places for the MySQL files.
1733 --with-embedded-mysql[=DIR]
1734 Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1738 install directory, default is to search through a
1739 number of common places for the SQLite3 files.
1740 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1741 install directory, default is to search through a
1742 number of common places for the SQLite files.
1743 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1744 directory, default is to search through a number of
1745 common places for the DBI files.
1746 --with-dbi-driver[=DRIVER]
1747 Suport for DBI driver. DRIVER is the one DBI driver
1748 like Mysql, Postgresql, others. Default is to not
1749 configure any driver.
1750 --with-x use the X Window System
1752 Some influential environment variables:
1753 CC C compiler command
1754 CFLAGS C compiler flags
1755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1756 nonstandard directory <lib dir>
1757 LIBS libraries to pass to the linker, e.g. -l<library>
1758 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1759 you have headers in a nonstandard directory <include dir>
1760 CXX C++ compiler command
1761 CXXFLAGS C++ compiler flags
1763 WXCONFIG wx-config command. On some systems, you must set it to
1764 wx-config-2.6 to use wxWidgets 2.6.
1765 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1766 CXXCPP C++ preprocessor
1767 XMKMF Path to xmkmf, Makefile generator for X Window System
1769 Use these variables to override the choices made by `configure' or to help
1770 it to find libraries and programs with nonstandard names/locations.
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" || continue
1783 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1786 # A ".." for each directory in $ac_dir_suffix.
1787 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1788 case $ac_top_builddir_sub in
1789 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1790 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793 ac_abs_top_builddir=$ac_pwd
1794 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1795 # for backward compatibility:
1796 ac_top_builddir=$ac_top_build_prefix
1799 .) # We are building in place.
1801 ac_top_srcdir=$ac_top_builddir_sub
1802 ac_abs_top_srcdir=$ac_pwd ;;
1803 [\\/]* | ?:[\\/]* ) # Absolute name.
1804 ac_srcdir=$srcdir$ac_dir_suffix;
1805 ac_top_srcdir=$srcdir
1806 ac_abs_top_srcdir=$srcdir ;;
1808 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1809 ac_top_srcdir=$ac_top_build_prefix$srcdir
1810 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1812 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1814 cd "$ac_dir" || { ac_status=$?; continue; }
1815 # Check for guested configure.
1816 if test -f "$ac_srcdir/configure.gnu"; then
1818 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1819 elif test -f "$ac_srcdir/configure"; then
1821 $SHELL "$ac_srcdir/configure" --help=recursive
1823 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1825 cd "$ac_pwd" || { ac_status=$?; break; }
1829 test -n "$ac_init_help" && exit $ac_status
1830 if $ac_init_version; then
1833 generated by GNU Autoconf 2.61
1835 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1836 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1837 This configure script is free software; the Free Software Foundation
1838 gives unlimited permission to copy, distribute and modify it.
1842 cat >config.log <<_ACEOF
1843 This file contains any messages produced by compilers while
1844 running configure, to aid debugging if configure makes a mistake.
1846 It was created by $as_me, which was
1847 generated by GNU Autoconf 2.61. Invocation command line was
1859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1866 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1868 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1869 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1871 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1872 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1873 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1874 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 echo "PATH: $as_dir"
1899 # Keep a trace of the command line.
1900 # Strip out --no-create and --no-recursion so they do not pile up.
1901 # Strip out --silent because we don't want to record it for future runs.
1902 # Also quote any args containing shell meta-characters.
1903 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_must_keep_next=false
1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915 | -silent | --silent | --silen | --sile | --sil)
1918 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1921 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1923 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1924 if test $ac_must_keep_next = true; then
1925 ac_must_keep_next=false # Got value, back to normal.
1928 *=* | --config-cache | -C | -disable-* | --disable-* \
1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931 | -with-* | --with-* | -without-* | --without-* | --x)
1932 case "$ac_configure_args0 " in
1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936 -* ) ac_must_keep_next=true ;;
1939 ac_configure_args="$ac_configure_args '$ac_arg'"
1944 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1945 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1947 # When interrupted or exit'd, cleanup temporary files, and complete
1948 # config.log. We remove comments because anyway the quotes in there
1949 # would cause problems or look ugly.
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1952 trap 'exit_status=$?
1953 # Save into config.log some information that might help in debugging.
1958 ## ---------------- ##
1959 ## Cache variables. ##
1960 ## ---------------- ##
1963 # The following way of writing the cache mishandles newlines in values,
1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966 eval ac_val=\$$ac_var
1970 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1971 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1974 _ | IFS | as_nl) ;; #(
1975 *) $as_unset $ac_var ;;
1980 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1981 *${as_nl}ac_space=\ *)
1983 "s/'\''/'\''\\\\'\'''\''/g;
1984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995 ## ----------------- ##
1996 ## Output variables. ##
1997 ## ----------------- ##
2000 for ac_var in $ac_subst_vars
2002 eval ac_val=\$$ac_var
2004 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 echo "$ac_var='\''$ac_val'\''"
2010 if test -n "$ac_subst_files"; then
2012 ## ------------------- ##
2013 ## File substitutions. ##
2014 ## ------------------- ##
2017 for ac_var in $ac_subst_files
2019 eval ac_val=\$$ac_var
2021 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023 echo "$ac_var='\''$ac_val'\''"
2028 if test -s confdefs.h; then
2038 test "$ac_signal" != 0 &&
2039 echo "$as_me: caught signal $ac_signal"
2040 echo "$as_me: exit $exit_status"
2042 rm -f core *.core core.conftest.* &&
2043 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2046 for ac_signal in 1 2 13 15; do
2047 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2052 rm -f -r conftest* confdefs.h
2054 # Predefined preprocessor variables.
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2081 # Let the site file select an alternate cache file if it wants to.
2082 # Prefer explicitly selected file to automatically selected ones.
2083 if test -n "$CONFIG_SITE"; then
2084 set x "$CONFIG_SITE"
2085 elif test "x$prefix" != xNONE; then
2086 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2088 set x "$ac_default_prefix/share/config.site" \
2089 "$ac_default_prefix/etc/config.site"
2094 if test -r "$ac_site_file"; then
2095 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2096 echo "$as_me: loading site script $ac_site_file" >&6;}
2097 sed 's/^/| /' "$ac_site_file" >&5
2102 if test -r "$cache_file"; then
2103 # Some versions of bash will fail to source /dev/null (special
2104 # files actually), so we avoid doing that.
2105 if test -f "$cache_file"; then
2106 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2107 echo "$as_me: loading cache $cache_file" >&6;}
2109 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110 *) . "./$cache_file";;
2114 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2115 echo "$as_me: creating cache $cache_file" >&6;}
2119 # Check that the precious variables saved in the cache have kept the same
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124 eval ac_new_set=\$ac_env_${ac_var}_set
2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126 eval ac_new_val=\$ac_env_${ac_var}_value
2127 case $ac_old_set,$ac_new_set in
2129 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2133 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
2139 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2140 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2141 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2142 echo "$as_me: former value: $ac_old_val" >&2;}
2143 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2144 echo "$as_me: current value: $ac_new_val" >&2;}
2145 ac_cache_corrupted=:
2148 # Pass precious variables to config.status.
2149 if test "$ac_new_set" = set; then
2151 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 *) ac_arg=$ac_var=$ac_new_val ;;
2154 case " $ac_configure_args " in
2155 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2156 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2160 if $ac_cache_corrupted; then
2161 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2162 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2163 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2164 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2165 { (exit 1); exit 1; }; }
2185 ac_cpp='$CPP $CPPFLAGS'
2186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2199 if test -f "$ac_dir/install-sh"; then
2201 ac_install_sh="$ac_aux_dir/install-sh -c"
2203 elif test -f "$ac_dir/install.sh"; then
2205 ac_install_sh="$ac_aux_dir/install.sh -c"
2207 elif test -f "$ac_dir/shtool"; then
2209 ac_install_sh="$ac_aux_dir/shtool install -c"
2213 if test -z "$ac_aux_dir"; then
2214 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2215 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2216 { (exit 1); exit 1; }; }
2219 # These three variables are undocumented and unsupported,
2220 # and are intended to be withdrawn in a future Autoconf release.
2221 # They can cause serious problems if a builder's source tree is in a directory
2222 # whose full name contains unusual characters.
2223 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2224 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2225 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2228 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2231 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2232 WIN32MAINDIR=${BUILD_DIR}
2233 WIN32TOPDIR=${TOP_DIR}
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 TRUEPRG=$ac_cv_path_TRUEPRG
2274 if test -n "$TRUEPRG"; then
2275 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2276 echo "${ECHO_T}$TRUEPRG" >&6; }
2278 { echo "$as_me:$LINENO: result: no" >&5
2279 echo "${ECHO_T}no" >&6; }
2283 test -n "$TRUEPRG" && break
2285 test -n "$TRUEPRG" || TRUEPRG=":"
2287 for ac_prog in false
2289 # Extract the first word of "$ac_prog", so it can be a program name with args.
2290 set dummy $ac_prog; ac_word=$2
2291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2293 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 FALSEPRG=$ac_cv_path_FALSEPRG
2320 if test -n "$FALSEPRG"; then
2321 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2322 echo "${ECHO_T}$FALSEPRG" >&6; }
2324 { echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6; }
2329 test -n "$FALSEPRG" && break
2331 test -n "$FALSEPRG" || FALSEPRG=":"
2336 if test "x$BACULA" != x; then
2337 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2339 BACULA=${BACULA-Bacula}
2340 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2341 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2342 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2343 echo "configuring for ${BACULA} $VERSION ($DATE)"
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 if test -n "$ac_tool_prefix"; then
2352 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 if test -n "$CC"; then
2381 { echo "$as_me:$LINENO: result: $CC" >&5
2382 echo "${ECHO_T}$CC" >&6; }
2384 { echo "$as_me:$LINENO: result: no" >&5
2385 echo "${ECHO_T}no" >&6; }
2390 if test -z "$ac_cv_prog_CC"; then
2392 # Extract the first word of "gcc", so it can be a program name with args.
2393 set dummy gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$ac_ct_CC"; then
2400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_ac_ct_CC="gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2420 if test -n "$ac_ct_CC"; then
2421 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2422 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2428 if test "x$ac_ct_CC" = x; then
2431 case $cross_compiling:$ac_tool_warned in
2433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&5
2436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437 whose name does not start with the host triplet. If you think this
2438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439 ac_tool_warned=yes ;;
2447 if test -z "$CC"; then
2448 if test -n "$ac_tool_prefix"; then
2449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}cc; ac_word=$2
2451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453 if test "${ac_cv_prog_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_CC="${ac_tool_prefix}cc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 if test -n "$CC"; then
2478 { echo "$as_me:$LINENO: result: $CC" >&5
2479 echo "${ECHO_T}$CC" >&6; }
2481 { echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6; }
2488 if test -z "$CC"; then
2489 # Extract the first word of "cc", so it can be a program name with args.
2490 set dummy cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2508 ac_prog_rejected=yes
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 if test $ac_prog_rejected = yes; then
2520 # We found a bogon in the path, so make sure we never use it.
2521 set dummy $ac_cv_prog_CC
2523 if test $# != 0; then
2524 # We chose a different compiler from the bogus one.
2525 # However, it has the same basename, so the bogon will be chosen
2526 # first if we set CC to just the basename; use the full file name.
2528 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2534 if test -n "$CC"; then
2535 { echo "$as_me:$LINENO: result: $CC" >&5
2536 echo "${ECHO_T}$CC" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2544 if test -z "$CC"; then
2545 if test -n "$ac_tool_prefix"; then
2546 for ac_prog in cl.exe
2548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 if test -n "$CC"; then
2577 { echo "$as_me:$LINENO: result: $CC" >&5
2578 echo "${ECHO_T}$CC" >&6; }
2580 { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2585 test -n "$CC" && break
2588 if test -z "$CC"; then
2590 for ac_prog in cl.exe
2592 # Extract the first word of "$ac_prog", so it can be a program name with args.
2593 set dummy $ac_prog; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 if test -n "$ac_ct_CC"; then
2600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_ac_ct_CC="$ac_prog"
2610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2620 if test -n "$ac_ct_CC"; then
2621 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2622 echo "${ECHO_T}$ac_ct_CC" >&6; }
2624 { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2629 test -n "$ac_ct_CC" && break
2632 if test "x$ac_ct_CC" = x; then
2635 case $cross_compiling:$ac_tool_warned in
2637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&5
2640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2641 whose name does not start with the host triplet. If you think this
2642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2643 ac_tool_warned=yes ;;
2652 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: no acceptable C compiler found in \$PATH
2655 See \`config.log' for more details." >&2;}
2656 { (exit 1); exit 1; }; }
2658 # Provide some information about the compiler.
2659 echo "$as_me:$LINENO: checking for C compiler version" >&5
2660 ac_compiler=`set X $ac_compile; echo $2`
2661 { (ac_try="$ac_compiler --version >&5"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2667 (eval "$ac_compiler --version >&5") 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (ac_try="$ac_compiler -v >&5"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler -v >&5") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (ac_try="$ac_compiler -V >&5"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -V >&5") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2707 ac_clean_files_save=$ac_clean_files
2708 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2709 # Try to create an executable without -o first, disregard a.out.
2710 # It will help us diagnose broken compilers, and finding out an intuition
2712 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2713 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2714 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2716 # List of possible output files, starting from the most likely.
2717 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2718 # only as a last resort. b.out is created by i960 compilers.
2719 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2721 # The IRIX 6 linker writes into existing files which may not be
2722 # executable, retaining their permissions. Remove them first so a
2723 # subsequent execution test works.
2725 for ac_file in $ac_files
2728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2729 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734 if { (ac_try="$ac_link_default"
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_link_default") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; then
2744 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2746 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2747 # so that the user can short-circuit this test for compilers unknown to
2749 for ac_file in $ac_files ''
2751 test -f "$ac_file" || continue
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2756 # We found the default executable, but exeext='' is most
2760 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2762 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2764 # We set ac_cv_exeext here because the later test for it is not
2765 # safe: cross compilers may not add the suffix if given an `-o'
2766 # argument, so we may need to know it at that point already.
2767 # Even if this section looks crufty: it has the advantage of
2774 test "$ac_cv_exeext" = no && ac_cv_exeext=
2780 { echo "$as_me:$LINENO: result: $ac_file" >&5
2781 echo "${ECHO_T}$ac_file" >&6; }
2782 if test -z "$ac_file"; then
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790 { (exit 77); exit 77; }; }
2793 ac_exeext=$ac_cv_exeext
2795 # Check that the compiler produces executables we can run. If not, either
2796 # the compiler is broken, or we cross compile.
2797 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2798 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2799 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2800 # If not cross compiling, check that we can run a simple program.
2801 if test "$cross_compiling" != yes; then
2802 if { ac_try='./$ac_file'
2803 { (case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_try") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; }; then
2814 if test "$cross_compiling" = maybe; then
2817 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2818 If you meant to cross compile, use \`--host'.
2819 See \`config.log' for more details." >&5
2820 echo "$as_me: error: cannot run C compiled programs.
2821 If you meant to cross compile, use \`--host'.
2822 See \`config.log' for more details." >&2;}
2823 { (exit 1); exit 1; }; }
2827 { echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6; }
2830 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2831 ac_clean_files=$ac_clean_files_save
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2835 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2836 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2837 echo "${ECHO_T}$cross_compiling" >&6; }
2839 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2840 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2841 if { (ac_try="$ac_link"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_link") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2852 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2853 # work properly (i.e., refer to `conftest.exe'), while it won't with
2855 for ac_file in conftest.exe conftest conftest.*; do
2856 test -f "$ac_file" || continue
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2859 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2866 See \`config.log' for more details." >&5
2867 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }
2872 rm -f conftest$ac_cv_exeext
2873 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2874 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2876 rm -f conftest.$ac_ext
2877 EXEEXT=$ac_cv_exeext
2879 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2880 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2881 if test "${ac_cv_objext+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2899 rm -f conftest.o conftest.obj
2900 if { (ac_try="$ac_compile"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 for ac_file in conftest.o conftest.obj conftest.*; do
2911 test -f "$ac_file" || continue;
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2914 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2922 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2929 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2931 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2932 echo "${ECHO_T}$ac_cv_objext" >&6; }
2933 OBJEXT=$ac_cv_objext
2935 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2936 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2937 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2988 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2989 GCC=`test $ac_compiler_gnu = yes && echo yes`
2990 ac_test_CFLAGS=${CFLAGS+set}
2991 ac_save_CFLAGS=$CFLAGS
2992 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2993 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cc_g+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 ac_save_c_werror_flag=$ac_c_werror_flag
2998 ac_c_werror_flag=yes
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (ac_try="$ac_compile"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compile") 2>conftest.er1
3063 grep -v '^ *+' conftest.er1 >conftest.err
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 ac_c_werror_flag=$ac_save_c_werror_flag
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_c_werror_flag=$ac_save_c_werror_flag
3127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3128 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3129 if test "$ac_test_CFLAGS" = set; then
3130 CFLAGS=$ac_save_CFLAGS
3131 elif test $ac_cv_prog_cc_g = yes; then
3132 if test "$GCC" = yes; then
3138 if test "$GCC" = yes; then
3144 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3145 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3146 if test "${ac_cv_prog_cc_c89+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 ac_cv_prog_cc_c89=no
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3162 struct buf { int x; };
3163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164 static char *e (p, i)
3170 static char *f (char * (*g) (char **, int), char **p, ...)
3175 s = g (p, va_arg (v,int));
3180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3181 function prototypes and stuff, but not '\xHH' hex character constants.
3182 These don't provoke an error unfortunately, instead are silently treated
3183 as 'x'. The following induces an error, until -std is added to get
3184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3185 array size at least. It's necessary to write '\x00'==0 to get something
3186 that's true only with -std. */
3187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190 inside strings and character constants. */
3192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194 int test (int i, double x);
3195 struct s1 {int (*f) (int a);};
3196 struct s2 {int (*f) (double a);};
3197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 CC="$ac_save_CC $ac_arg"
3212 rm -f conftest.$ac_objext
3213 if { (ac_try="$ac_compile"
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compile") 2>conftest.er1
3221 grep -v '^ *+' conftest.er1 >conftest.err
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
3229 ac_cv_prog_cc_c89=$ac_arg
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3237 rm -f core conftest.err conftest.$ac_objext
3238 test "x$ac_cv_prog_cc_c89" != "xno" && break
3240 rm -f conftest.$ac_ext
3245 case "x$ac_cv_prog_cc_c89" in
3247 { echo "$as_me:$LINENO: result: none needed" >&5
3248 echo "${ECHO_T}none needed" >&6; } ;;
3250 { echo "$as_me:$LINENO: result: unsupported" >&5
3251 echo "${ECHO_T}unsupported" >&6; } ;;
3253 CC="$CC $ac_cv_prog_cc_c89"
3254 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3255 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266 ac_cpp='$CXXCPP $CPPFLAGS'
3267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3270 if test -z "$CXX"; then
3271 if test -n "$CCC"; then
3274 if test -n "$ac_tool_prefix"; then
3275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3317 if test -z "$CXX"; then
3319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 if test -n "$ac_ct_CXX"; then
3329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_ac_ct_CXX="$ac_prog"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349 if test -n "$ac_ct_CXX"; then
3350 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3351 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3353 { echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6; }
3358 test -n "$ac_ct_CXX" && break
3361 if test "x$ac_ct_CXX" = x; then
3364 case $cross_compiling:$ac_tool_warned in
3366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3367 whose name does not start with the host triplet. If you think this
3368 configuration is useful to you, please write to autoconf@gnu.org." >&5
3369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3370 whose name does not start with the host triplet. If you think this
3371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3372 ac_tool_warned=yes ;;
3380 # Provide some information about the compiler.
3381 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3382 ac_compiler=`set X $ac_compile; echo $2`
3383 { (ac_try="$ac_compiler --version >&5"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_compiler --version >&5") 2>&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }
3393 { (ac_try="$ac_compiler -v >&5"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compiler -v >&5") 2>&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403 { (ac_try="$ac_compiler -V >&5"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compiler -V >&5") 2>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }
3414 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } && {
3451 test -z "$ac_cxx_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3467 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3468 GXX=`test $ac_compiler_gnu = yes && echo yes`
3469 ac_test_CXXFLAGS=${CXXFLAGS+set}
3470 ac_save_CXXFLAGS=$CXXFLAGS
3471 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_cxx_g+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3477 ac_cxx_werror_flag=yes
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_cxx_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3512 ac_cv_prog_cxx_g=yes
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_compile") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } && {
3547 test -z "$ac_cxx_werror_flag" ||
3548 test ! -s conftest.err
3549 } && test -s conftest.$ac_objext; then
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } && {
3586 test -z "$ac_cxx_werror_flag" ||
3587 test ! -s conftest.err
3588 } && test -s conftest.$ac_objext; then
3589 ac_cv_prog_cxx_g=yes
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3608 if test "$ac_test_CXXFLAGS" = set; then
3609 CXXFLAGS=$ac_save_CXXFLAGS
3610 elif test $ac_cv_prog_cxx_g = yes; then
3611 if test "$GXX" = yes; then
3617 if test "$GXX" = yes; then
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 if test "x$CC" != xcc; then
3630 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3631 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3633 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3634 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3636 set dummy $CC; ac_cc=`echo $2 |
3637 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3638 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 cat >conftest.$ac_ext <<_ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3656 # Make sure it works both with $CC and with simple cc.
3657 # We do the test twice because some compilers refuse to overwrite an
3658 # existing .o file with -o, though they will create one.
3659 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3661 if { (case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_try") 2>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_try") 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); };
3680 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3681 if test "x$CC" != xcc; then
3682 # Test first that cc exists at all.
3683 if { ac_try='cc -c conftest.$ac_ext >&5'
3684 { (case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_try") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3695 if { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); };
3717 # cc exists but doesn't like -o.
3718 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3723 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3725 rm -f core conftest*
3728 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3729 { echo "$as_me:$LINENO: result: yes" >&5
3730 echo "${ECHO_T}yes" >&6; }
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3735 cat >>confdefs.h <<\_ACEOF
3736 #define NO_MINUS_C_MINUS_O 1
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3775 # include <limits.h>
3777 # include <assert.h>
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 # Broken: fails on valid input.
3806 rm -f conftest.err conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3818 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3834 # Broken: success on invalid input.
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Passes both tests.
3845 rm -f conftest.err conftest.$ac_ext
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3862 { echo "$as_me:$LINENO: result: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null && {
3899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 # Broken: fails on valid input.
3911 rm -f conftest.err conftest.$ac_ext
3913 # OK, works on sane cases. Now check whether nonexistent headers
3914 # can be detected and how.
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3923 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null && {
3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3939 # Broken: success on invalid input.
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Passes both tests.
3950 rm -f conftest.err conftest.$ac_ext
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3958 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3959 See \`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log' for more details." >&2;}
3962 { (exit 1); exit 1; }; }
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4023 $ac_path_GREP_found && break 3
4033 GREP="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4041 ac_cv_path_GREP=$GREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4059 # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy egrep; ac_prog_name=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_path_EGREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4071 test -z "$as_dir" && as_dir=.
4072 for ac_prog in egrep; do
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4083 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092 ac_count=`expr $ac_count + 1`
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP="$ac_path_EGREP"
4096 ac_path_EGREP_max=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 $ac_path_EGREP_found && break 3
4115 EGREP="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4123 ac_cv_path_EGREP=$EGREP
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131 EGREP="$ac_cv_path_EGREP"
4134 if test $ac_cv_c_compiler_gnu = yes; then
4135 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4136 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4137 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 ac_pattern="Autoconf.*'x'"
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4152 ac_cv_prog_gcc_traditional=yes
4154 ac_cv_prog_gcc_traditional=no
4159 if test $ac_cv_prog_gcc_traditional = no; then
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4171 ac_cv_prog_gcc_traditional=yes
4177 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4178 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4179 if test $ac_cv_prog_gcc_traditional = yes; then
4180 CC="$CC -traditional"
4184 BASECC=`basename $CC`
4186 if test "x$BASECC" = xgcc; then
4187 cat >>confdefs.h <<\_ACEOF
4193 # Extract the first word of "$CXX", so it can be a program name with args.
4194 set dummy $CXX; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_CXX+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4225 if test -n "$CXX"; then
4226 { echo "$as_me:$LINENO: result: $CXX" >&5
4227 echo "${ECHO_T}$CXX" >&6; }
4229 { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4234 if test ! -e $CXX; then
4235 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4236 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4237 { (exit 1); exit 1; }; }
4240 # Find a good install program. We prefer a C program (faster),
4241 # so one script is as good as another. But avoid the broken or
4242 # incompatible versions:
4243 # SysV /etc/install, /usr/sbin/install
4244 # SunOS /usr/etc/install
4245 # IRIX /sbin/install
4247 # AmigaOS /C/install, which installs bootblocks on floppy discs
4248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4251 # OS/2's system install, which has a completely different semantic
4252 # ./install, which can be erroneously created by make from ./install.sh.
4253 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4255 if test -z "$INSTALL"; then
4256 if test "${ac_cv_path_install+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 # Account for people who put trailing slashes in PATH elements.
4266 ./ | .// | /cC/* | \
4267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4268 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4271 # OSF1 and SCO ODT 3.0 have their own names for install.
4272 # Don't use installbsd from OSF since it installs stuff as root
4274 for ac_prog in ginstall scoinst install; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4277 if test $ac_prog = install &&
4278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279 # AIX install. It has an incompatible calling convention.
4281 elif test $ac_prog = install &&
4282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283 # program-specific install script used by HP pwplus--don't use.
4286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4299 if test "${ac_cv_path_install+set}" = set; then
4300 INSTALL=$ac_cv_path_install
4302 # As a last resort, use the slow shell script. Don't cache a
4303 # value for INSTALL within a source directory, because that will
4304 # break other packages using the cache if that directory is
4305 # removed, or if the value is a relative name.
4306 INSTALL=$ac_install_sh
4309 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4310 echo "${ECHO_T}$INSTALL" >&6; }
4312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4313 # It thinks the first close brace ends the variable substitution.
4314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4320 # Extract the first word of "mv", so it can be a program name with args.
4321 set dummy mv; ac_word=$2
4322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4324 if test "${ac_cv_path_MV+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4352 if test -n "$MV"; then
4353 { echo "$as_me:$LINENO: result: $MV" >&5
4354 echo "${ECHO_T}$MV" >&6; }
4356 { echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6; }
4361 # Extract the first word of "rm", so it can be a program name with args.
4362 set dummy rm; ac_word=$2
4363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_REMOVE+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4392 REMOVE=$ac_cv_path_REMOVE
4393 if test -n "$REMOVE"; then
4394 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4395 echo "${ECHO_T}$REMOVE" >&6; }
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4402 # Extract the first word of "cp", so it can be a program name with args.
4403 set dummy cp; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_CP+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4434 if test -n "$CP"; then
4435 { echo "$as_me:$LINENO: result: $CP" >&5
4436 echo "${ECHO_T}$CP" >&6; }
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 # Extract the first word of "sed", so it can be a program name with args.
4444 set dummy sed; ac_word=$2
4445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447 if test "${ac_cv_path_SED+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4475 if test -n "$SED"; then
4476 { echo "$as_me:$LINENO: result: $SED" >&5
4477 echo "${ECHO_T}$SED" >&6; }
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4484 # Extract the first word of "echo", so it can be a program name with args.
4485 set dummy echo; ac_word=$2
4486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_ECHO+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4515 ECHO=$ac_cv_path_ECHO
4516 if test -n "$ECHO"; then
4517 { echo "$as_me:$LINENO: result: $ECHO" >&5
4518 echo "${ECHO_T}$ECHO" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4525 # Extract the first word of "cmp", so it can be a program name with args.
4526 set dummy cmp; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_path_CMP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4557 if test -n "$CMP"; then
4558 { echo "$as_me:$LINENO: result: $CMP" >&5
4559 echo "${ECHO_T}$CMP" >&6; }
4561 { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4566 # Extract the first word of "tbl", so it can be a program name with args.
4567 set dummy tbl; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_path_TBL+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4598 if test -n "$TBL"; then
4599 { echo "$as_me:$LINENO: result: $TBL" >&5
4600 echo "${ECHO_T}$TBL" >&6; }
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4607 # Extract the first word of "ar", so it can be a program name with args.
4608 set dummy ar; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_path_AR+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4639 if test -n "$AR"; then
4640 { echo "$as_me:$LINENO: result: $AR" >&5
4641 echo "${ECHO_T}$AR" >&6; }
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4648 # Extract the first word of "openssl", so it can be a program name with args.
4649 set dummy openssl; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_OPENSSL+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4679 OPENSSL=$ac_cv_path_OPENSSL
4680 if test -n "$OPENSSL"; then
4681 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4682 echo "${ECHO_T}$OPENSSL" >&6; }
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4689 # Extract the first word of "mtx", so it can be a program name with args.
4690 set dummy mtx; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_MTX+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4721 if test -n "$MTX"; then
4722 { echo "$as_me:$LINENO: result: $MTX" >&5
4723 echo "${ECHO_T}$MTX" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4730 # Extract the first word of "dd", so it can be a program name with args.
4731 set dummy dd; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_path_DD+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4762 if test -n "$DD"; then
4763 { echo "$as_me:$LINENO: result: $DD" >&5
4764 echo "${ECHO_T}$DD" >&6; }
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 # Extract the first word of "mkisofs", so it can be a program name with args.
4772 set dummy mkisofs; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_path_MKISOFS+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4802 MKISOFS=$ac_cv_path_MKISOFS
4803 if test -n "$MKISOFS"; then
4804 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4805 echo "${ECHO_T}$MKISOFS" >&6; }
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4812 # Extract the first word of "python", so it can be a program name with args.
4813 set dummy python; ac_word=$2
4814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4816 if test "${ac_cv_path_PYTHON+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4843 PYTHON=$ac_cv_path_PYTHON
4844 if test -n "$PYTHON"; then
4845 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4846 echo "${ECHO_T}$PYTHON" >&6; }
4848 { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4853 # Extract the first word of "growisofs", so it can be a program name with args.
4854 set dummy growisofs; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4884 GROWISOFS=$ac_cv_path_GROWISOFS
4885 if test -n "$GROWISOFS"; then
4886 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4887 echo "${ECHO_T}$GROWISOFS" >&6; }
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4895 set dummy dvd+rw-mediainfo; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 case $DVDRWMEDIAINFO in
4903 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4925 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4926 if test -n "$DVDRWMEDIAINFO"; then
4927 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4928 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4930 { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4935 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4936 set dummy dvd+rw-format; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 case $DVDRWFORMAT in
4944 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4966 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4967 if test -n "$DVDRWFORMAT"; then
4968 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4969 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4976 # Extract the first word of "pkg-config", so it can be a program name with args.
4977 set dummy pkg-config; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5007 PKGCONFIG=$ac_cv_path_PKGCONFIG
5008 if test -n "$PKGCONFIG"; then
5009 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5010 echo "${ECHO_T}$PKGCONFIG" >&6; }
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5017 # Extract the first word of "qmake", so it can be a program name with args.
5018 set dummy qmake; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_QMAKE+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5048 QMAKE=$ac_cv_path_QMAKE
5049 if test -n "$QMAKE"; then
5050 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5051 echo "${ECHO_T}$QMAKE" >&6; }
5053 { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5058 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5059 set dummy qmake-qt4; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5089 QMAKEQT4=$ac_cv_path_QMAKEQT4
5090 if test -n "$QMAKEQT4"; then
5091 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5092 echo "${ECHO_T}$QMAKEQT4" >&6; }
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5100 if test "x$WXCONFIG" = x; then
5103 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5104 set dummy ${WXCONFIG}; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5134 WXCONFIG=$ac_cv_path_WXCONFIG
5135 if test -n "$WXCONFIG"; then
5136 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5137 echo "${ECHO_T}$WXCONFIG" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5145 # Extract the first word of "cdrecord", so it can be a program name with args.
5146 set dummy cdrecord; ac_word=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_CDRECORD+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5176 CDRECORD=$ac_cv_path_CDRECORD
5177 if test -n "$CDRECORD"; then
5178 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5179 echo "${ECHO_T}$CDRECORD" >&6; }
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5186 # Extract the first word of "pidof", so it can be a program name with args.
5187 set dummy pidof; ac_word=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_PIDOF+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5217 PIDOF=$ac_cv_path_PIDOF
5218 if test -n "$PIDOF"; then
5219 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5220 echo "${ECHO_T}$PIDOF" >&6; }
5222 { echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6; }
5227 for ac_prog in gawk mawk nawk awk
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_AWK+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test -n "$AWK"; then
5237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_AWK="$ac_prog"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 if test -n "$AWK"; then
5258 { echo "$as_me:$LINENO: result: $AWK" >&5
5259 echo "${ECHO_T}$AWK" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 test -n "$AWK" && break
5269 # Some AWK programs fail, so test it and warn the user
5270 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5271 { if ((prog == $2) || (("(" prog ")") == $2) ||
5272 (("" prog "") == $2) ||
5273 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5275 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5276 The regex engine of $AWK is too broken to be used you
5277 might want to install GNU AWK.
5278 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5279 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5280 The regex engine of $AWK is too broken to be used you
5281 might want to install GNU AWK.
5282 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5283 { (exit 1); exit 1; }; }
5286 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5287 set dummy $THE_AWK; ac_word=$2
5288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290 if test "${ac_cv_path_AWK+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5318 if test -n "$AWK"; then
5319 { echo "$as_me:$LINENO: result: $AWK" >&5
5320 echo "${ECHO_T}$AWK" >&6; }
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5329 test -n "$ARFLAG" || ARFLAGS="cr"
5340 # Check whether --enable-libtool was given.
5341 if test "${enable_libtool+set}" = set; then
5342 enableval=$enable_libtool;
5343 if test x$enableval = xno; then
5352 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5353 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5358 macro_version='2.2.6'
5359 macro_revision='1.3012'
5373 ltmain="$ac_aux_dir/ltmain.sh"
5375 # Make sure we can run config.sub.
5376 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5377 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5378 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5379 { (exit 1); exit 1; }; }
5381 { echo "$as_me:$LINENO: checking build system type" >&5
5382 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5383 if test "${ac_cv_build+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_build_alias=$build_alias
5387 test "x$ac_build_alias" = x &&
5388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5389 test "x$ac_build_alias" = x &&
5390 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5391 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5392 { (exit 1); exit 1; }; }
5393 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5394 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5395 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5396 { (exit 1); exit 1; }; }
5399 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5400 echo "${ECHO_T}$ac_cv_build" >&6; }
5401 case $ac_cv_build in
5403 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5404 echo "$as_me: error: invalid value of canonical build" >&2;}
5405 { (exit 1); exit 1; }; };;
5408 ac_save_IFS=$IFS; IFS='-'
5414 # Remember, the first character of IFS is used to create $*,
5415 # except with old shells:
5418 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5421 { echo "$as_me:$LINENO: checking host system type" >&5
5422 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5423 if test "${ac_cv_host+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 if test "x$host_alias" = x; then
5427 ac_cv_host=$ac_cv_build
5429 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5430 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5431 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5432 { (exit 1); exit 1; }; }
5436 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5437 echo "${ECHO_T}$ac_cv_host" >&6; }
5440 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5441 echo "$as_me: error: invalid value of canonical host" >&2;}
5442 { (exit 1); exit 1; }; };;
5445 ac_save_IFS=$IFS; IFS='-'
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5458 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5459 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5460 if test "${ac_cv_path_SED+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5464 for ac_i in 1 2 3 4 5 6 7; do
5465 ac_script="$ac_script$as_nl$ac_script"
5467 echo "$ac_script" | sed 99q >conftest.sed
5468 $as_unset ac_script || ac_script=
5469 # Extract the first word of "sed gsed" to use in msg output
5470 if test -z "$SED"; then
5471 set dummy sed gsed; ac_prog_name=$2
5472 if test "${ac_cv_path_SED+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 ac_path_SED_found=false
5476 # Loop through the user's path and test for each of PROGNAME-LIST
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_prog in sed gsed; do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5485 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5486 # Check for GNU ac_path_SED and select it if it is found.
5487 # Check for GNU $ac_path_SED
5488 case `"$ac_path_SED" --version 2>&1` in
5490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5493 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5496 cat "conftest.in" "conftest.in" >"conftest.tmp"
5497 mv "conftest.tmp" "conftest.in"
5498 cp "conftest.in" "conftest.nl"
5499 echo '' >> "conftest.nl"
5500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5502 ac_count=`expr $ac_count + 1`
5503 if test $ac_count -gt ${ac_path_SED_max-0}; then
5504 # Best one so far, save it but keep looking for a better one
5505 ac_cv_path_SED="$ac_path_SED"
5506 ac_path_SED_max=$ac_count
5508 # 10*(2^10) chars as input seems more than enough
5509 test $ac_count -gt 10 && break
5511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5515 $ac_path_SED_found && break 3
5525 SED="$ac_cv_path_SED"
5526 if test -z "$SED"; then
5527 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5528 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5529 { (exit 1); exit 1; }; }
5537 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5538 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5539 SED="$ac_cv_path_SED"
5542 test -z "$SED" && SED=sed
5543 Xsed="$SED -e 1s/^X//"
5555 { echo "$as_me:$LINENO: checking for fgrep" >&5
5556 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5557 if test "${ac_cv_path_FGREP+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5561 then ac_cv_path_FGREP="$GREP -F"
5563 # Extract the first word of "fgrep" to use in msg output
5564 if test -z "$FGREP"; then
5565 set dummy fgrep; ac_prog_name=$2
5566 if test "${ac_cv_path_FGREP+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 ac_path_FGREP_found=false
5570 # Loop through the user's path and test for each of PROGNAME-LIST
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5575 test -z "$as_dir" && as_dir=.
5576 for ac_prog in fgrep; do
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5579 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5580 # Check for GNU ac_path_FGREP and select it if it is found.
5581 # Check for GNU $ac_path_FGREP
5582 case `"$ac_path_FGREP" --version 2>&1` in
5584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5587 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5590 cat "conftest.in" "conftest.in" >"conftest.tmp"
5591 mv "conftest.tmp" "conftest.in"
5592 cp "conftest.in" "conftest.nl"
5593 echo 'FGREP' >> "conftest.nl"
5594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5596 ac_count=`expr $ac_count + 1`
5597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5598 # Best one so far, save it but keep looking for a better one
5599 ac_cv_path_FGREP="$ac_path_FGREP"
5600 ac_path_FGREP_max=$ac_count
5602 # 10*(2^10) chars as input seems more than enough
5603 test $ac_count -gt 10 && break
5605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5609 $ac_path_FGREP_found && break 3
5619 FGREP="$ac_cv_path_FGREP"
5620 if test -z "$FGREP"; then
5621 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5622 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5623 { (exit 1); exit 1; }; }
5627 ac_cv_path_FGREP=$FGREP
5633 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5634 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5635 FGREP="$ac_cv_path_FGREP"
5638 test -z "$GREP" && GREP=grep
5658 # Check whether --with-gnu-ld was given.
5659 if test "${with_gnu_ld+set}" = set; then
5660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5666 if test "$GCC" = yes; then
5667 # Check if gcc -print-prog-name=ld gives a path.
5668 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5669 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5672 # gcc leaves a trailing carriage return which upsets mingw
5673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5678 # Accept absolute paths.
5680 re_direlt='/[^/][^/]*/\.\./'
5681 # Canonicalize the pathname of ld
5682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5686 test -z "$LD" && LD="$ac_prog"
5689 # If it fails, then pretend we aren't using GCC.
5693 # If it is relative, then search for the first ld in PATH.
5697 elif test "$with_gnu_ld" = yes; then
5698 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5699 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5701 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5702 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5704 if test "${lt_cv_path_LD+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 if test -z "$LD"; then
5708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5709 for ac_dir in $PATH; do
5711 test -z "$ac_dir" && ac_dir=.
5712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5713 lt_cv_path_LD="$ac_dir/$ac_prog"
5714 # Check to see if the program is GNU ld. I'd rather use --version,
5715 # but apparently some variants of GNU ld only accept -v.
5716 # Break only if it was the GNU/non-GNU ld that we prefer.
5717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5718 *GNU* | *'with BFD'*)
5719 test "$with_gnu_ld" != no && break
5722 test "$with_gnu_ld" != yes && break
5729 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5734 if test -n "$LD"; then
5735 { echo "$as_me:$LINENO: result: $LD" >&5
5736 echo "${ECHO_T}$LD" >&6; }
5738 { echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6; }
5741 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5742 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5743 { (exit 1); exit 1; }; }
5744 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5745 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5746 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5750 case `$LD -v 2>&1 </dev/null` in
5751 *GNU* | *'with BFD'*)
5752 lt_cv_prog_gnu_ld=yes
5755 lt_cv_prog_gnu_ld=no
5759 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5760 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5761 with_gnu_ld=$lt_cv_prog_gnu_ld
5771 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5772 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5773 if test "${lt_cv_path_NM+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 if test -n "$NM"; then
5777 # Let the user override the test.
5780 lt_nm_to_check="${ac_tool_prefix}nm"
5781 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5782 lt_nm_to_check="$lt_nm_to_check nm"
5784 for lt_tmp_nm in $lt_nm_to_check; do
5785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5786 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5788 test -z "$ac_dir" && ac_dir=.
5789 tmp_nm="$ac_dir/$lt_tmp_nm"
5790 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5791 # Check to see if the nm accepts a BSD-compat flag.
5792 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5793 # nm: unknown option "B" ignored
5794 # Tru64's nm complains that /dev/null is an invalid object file
5795 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5796 */dev/null* | *'Invalid file or object type'*)
5797 lt_cv_path_NM="$tmp_nm -B"
5801 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5803 lt_cv_path_NM="$tmp_nm -p"
5807 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5808 continue # so that we can try to find one that supports BSD flags
5817 : ${lt_cv_path_NM=no}
5820 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5821 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5822 if test "$lt_cv_path_NM" != "no"; then
5825 # Didn't find any BSD compatible name lister, look for dumpbin.
5826 if test -n "$ac_tool_prefix"; then
5827 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5833 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 if test -n "$DUMPBIN"; then
5837 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 DUMPBIN=$ac_cv_prog_DUMPBIN
5857 if test -n "$DUMPBIN"; then
5858 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5859 echo "${ECHO_T}$DUMPBIN" >&6; }
5861 { echo "$as_me:$LINENO: result: no" >&5
5862 echo "${ECHO_T}no" >&6; }
5866 test -n "$DUMPBIN" && break
5869 if test -z "$DUMPBIN"; then
5870 ac_ct_DUMPBIN=$DUMPBIN
5871 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5877 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 if test -n "$ac_ct_DUMPBIN"; then
5881 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5901 if test -n "$ac_ct_DUMPBIN"; then
5902 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5903 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5905 { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5910 test -n "$ac_ct_DUMPBIN" && break
5913 if test "x$ac_ct_DUMPBIN" = x; then
5916 case $cross_compiling:$ac_tool_warned in
5918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5919 whose name does not start with the host triplet. If you think this
5920 configuration is useful to you, please write to autoconf@gnu.org." >&5
5921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5922 whose name does not start with the host triplet. If you think this
5923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5924 ac_tool_warned=yes ;;
5926 DUMPBIN=$ac_ct_DUMPBIN
5931 if test "$DUMPBIN" != ":"; then
5935 test -z "$NM" && NM=nm
5942 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5943 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5944 if test "${lt_cv_nm_interface+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 lt_cv_nm_interface="BSD nm"
5948 echo "int some_variable = 0;" > conftest.$ac_ext
5949 (eval echo "\"\$as_me:5949: $ac_compile\"" >&5)
5950 (eval "$ac_compile" 2>conftest.err)
5951 cat conftest.err >&5
5952 (eval echo "\"\$as_me:5952: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5954 cat conftest.err >&5
5955 (eval echo "\"\$as_me:5955: output\"" >&5)
5956 cat conftest.out >&5
5957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5958 lt_cv_nm_interface="MS dumpbin"
5962 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5963 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5965 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5966 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5968 if test "$LN_S" = "ln -s"; then
5969 { echo "$as_me:$LINENO: result: yes" >&5
5970 echo "${ECHO_T}yes" >&6; }
5972 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5973 echo "${ECHO_T}no, using $LN_S" >&6; }
5976 # find the maximum length of command line arguments
5977 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5978 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5979 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 # On DJGPP, this test can blow up pretty badly due to problems in libc
5988 # (any single argument exceeding 2000 bytes causes a buffer overrun
5989 # during glob expansion). Even if it were fixed, the result of this
5990 # check would be larger than it should be.
5991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5995 # Under GNU Hurd, this test is not required because there is
5996 # no limit to the length of command line arguments.
5997 # Libtool will interpret -1 as no limit whatsoever
5998 lt_cv_sys_max_cmd_len=-1;
6001 cygwin* | mingw* | cegcc*)
6002 # On Win9x/ME, this test blows up -- it succeeds, but takes
6003 # about 5 minutes as the teststring grows exponentially.
6004 # Worse, since 9x/ME are not pre-emptively multitasking,
6005 # you end up with a "frozen" computer, even though with patience
6006 # the test eventually succeeds (with a max line length of 256k).
6007 # Instead, let's just punt: use the minimum linelength reported by
6008 # all of the supported platforms: 8192 (on NT/2K/XP).
6009 lt_cv_sys_max_cmd_len=8192;
6013 # On AmigaOS with pdksh, this test takes hours, literally.
6014 # So we just punt and use a minimum line length of 8192.
6015 lt_cv_sys_max_cmd_len=8192;
6018 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6019 # This has been around since 386BSD, at least. Likely further.
6020 if test -x /sbin/sysctl; then
6021 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6022 elif test -x /usr/sbin/sysctl; then
6023 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6025 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6027 # And add a safety zone
6028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6033 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6034 lt_cv_sys_max_cmd_len=196608
6038 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6039 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6040 # nice to cause kernel panics so lets avoid the loop below.
6041 # First set a reasonable default.
6042 lt_cv_sys_max_cmd_len=16384
6044 if test -x /sbin/sysconfig; then
6045 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6046 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6051 lt_cv_sys_max_cmd_len=102400
6053 sysv5* | sco5v6* | sysv4.2uw2*)
6054 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6055 if test -n "$kargmax"; then
6056 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6058 lt_cv_sys_max_cmd_len=32768
6062 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6063 if test -n "$lt_cv_sys_max_cmd_len"; then
6064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6067 # Make teststring a little bigger before we do anything with it.
6068 # a 1K string should be a reasonable start.
6069 for i in 1 2 3 4 5 6 7 8 ; do
6070 teststring=$teststring$teststring
6072 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6073 # If test is not a shell built-in, we'll probably end up computing a
6074 # maximum length that is only half of the actual maximum length, but
6076 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6077 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6078 test $i != 17 # 1/2 MB should be enough
6081 teststring=$teststring$teststring
6083 # Only check the string length outside the loop.
6084 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6086 # Add a significant safety factor because C++ compilers can tack on
6087 # massive amounts of additional arguments before passing them to the
6088 # linker. It appears as though 1/2 is a usable value.
6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6096 if test -n $lt_cv_sys_max_cmd_len ; then
6097 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6098 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6100 { echo "$as_me:$LINENO: result: none" >&5
6101 echo "${ECHO_T}none" >&6; }
6103 max_cmd_len=$lt_cv_sys_max_cmd_len
6114 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6115 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6116 # Try some XSI features
6119 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6121 && eval 'test $(( 1 + 1 )) -eq 2 \
6122 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6124 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6125 echo "${ECHO_T}$xsi_shell" >&6; }
6128 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6129 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6131 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6133 && lt_shell_append=yes
6134 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6135 echo "${ECHO_T}$lt_shell_append" >&6; }
6138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6148 # test EBCDIC or ASCII
6149 case `echo X|tr X '\101'` in
6150 A) # ASCII based system
6151 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6152 lt_SP2NL='tr \040 \012'
6153 lt_NL2SP='tr \015\012 \040\040'
6155 *) # EBCDIC based system
6156 lt_SP2NL='tr \100 \n'
6157 lt_NL2SP='tr \r\n \100\100'
6169 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6170 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6171 if test "${lt_cv_ld_reload_flag+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 lt_cv_ld_reload_flag='-r'
6176 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6177 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6178 reload_flag=$lt_cv_ld_reload_flag
6179 case $reload_flag in
6181 *) reload_flag=" $reload_flag" ;;
6183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6186 if test "$GCC" = yes; then
6187 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6202 if test -n "$ac_tool_prefix"; then
6203 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6204 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 if test -n "$OBJDUMP"; then
6211 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 OBJDUMP=$ac_cv_prog_OBJDUMP
6231 if test -n "$OBJDUMP"; then
6232 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6233 echo "${ECHO_T}$OBJDUMP" >&6; }
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6241 if test -z "$ac_cv_prog_OBJDUMP"; then
6242 ac_ct_OBJDUMP=$OBJDUMP
6243 # Extract the first word of "objdump", so it can be a program name with args.
6244 set dummy objdump; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test -n "$ac_ct_OBJDUMP"; then
6251 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6271 if test -n "$ac_ct_OBJDUMP"; then
6272 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6273 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6279 if test "x$ac_ct_OBJDUMP" = x; then
6282 case $cross_compiling:$ac_tool_warned in
6284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet. If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&5
6287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet. If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6290 ac_tool_warned=yes ;;
6292 OBJDUMP=$ac_ct_OBJDUMP
6295 OBJDUMP="$ac_cv_prog_OBJDUMP"
6298 test -z "$OBJDUMP" && OBJDUMP=objdump
6308 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6309 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6310 if test "${lt_cv_deplibs_check_method+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 lt_cv_file_magic_cmd='$MAGIC_CMD'
6314 lt_cv_file_magic_test_file=
6315 lt_cv_deplibs_check_method='unknown'
6316 # Need to set the preceding variable on all platforms that support
6317 # interlibrary dependencies.
6318 # 'none' -- dependencies not supported.
6319 # `unknown' -- same as none, but documents that we really don't know.
6320 # 'pass_all' -- all dependencies passed with no checks.
6321 # 'test_compile' -- check by making test program.
6322 # 'file_magic [[regex]]' -- check by looking for files in library path
6323 # which responds to the $file_magic_cmd with a given extended regex.
6324 # If you have `file' or equivalent on your system and you're not sure
6325 # whether `pass_all' will *always* work, you probably want this one.
6329 lt_cv_deplibs_check_method=pass_all
6333 lt_cv_deplibs_check_method=pass_all
6337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6338 lt_cv_file_magic_cmd='/usr/bin/file -L'
6339 lt_cv_file_magic_test_file=/shlib/libc.so
6343 # func_win32_libid is a shell function defined in ltmain.sh
6344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6345 lt_cv_file_magic_cmd='func_win32_libid'
6349 # Base MSYS/MinGW do not provide the 'file' command needed by
6350 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6351 # unless we find 'file', for example because we are cross-compiling.
6352 if ( file / ) >/dev/null 2>&1; then
6353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6354 lt_cv_file_magic_cmd='func_win32_libid'
6356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6357 lt_cv_file_magic_cmd='$OBJDUMP -f'
6362 # use the weaker test based on 'objdump'. See mingw*.
6363 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6364 lt_cv_file_magic_cmd='$OBJDUMP -f'
6367 darwin* | rhapsody*)
6368 lt_cv_deplibs_check_method=pass_all
6371 freebsd* | dragonfly*)
6372 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6375 # Not sure whether the presence of OpenBSD here was a mistake.
6376 # Let's accept both of them until this is cleared up.
6377 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6378 lt_cv_file_magic_cmd=/usr/bin/file
6379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6383 lt_cv_deplibs_check_method=pass_all
6388 lt_cv_deplibs_check_method=pass_all
6391 hpux10.20* | hpux11*)
6392 lt_cv_file_magic_cmd=/usr/bin/file
6395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6399 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]'
6400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6404 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6410 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6414 irix5* | irix6* | nonstopux*)
6416 *-32|*"-32 ") libmagic=32-bit;;
6417 *-n32|*"-n32 ") libmagic=N32;;
6418 *-64|*"-64 ") libmagic=64-bit;;
6419 *) libmagic=never-match;;
6421 lt_cv_deplibs_check_method=pass_all
6424 # This must be Linux ELF.
6425 linux* | k*bsd*-gnu)
6426 lt_cv_deplibs_check_method=pass_all
6430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6439 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6444 lt_cv_deplibs_check_method=pass_all
6448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6455 osf3* | osf4* | osf5*)
6456 lt_cv_deplibs_check_method=pass_all
6460 lt_cv_deplibs_check_method=pass_all
6464 lt_cv_deplibs_check_method=pass_all
6467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6468 lt_cv_deplibs_check_method=pass_all
6472 case $host_vendor in
6474 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]'
6475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6478 lt_cv_deplibs_check_method=pass_all
6481 lt_cv_file_magic_cmd='/bin/file'
6482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6485 lt_cv_file_magic_cmd='/bin/file'
6486 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6487 lt_cv_file_magic_test_file=/lib/libc.so
6490 lt_cv_deplibs_check_method=pass_all
6493 lt_cv_deplibs_check_method=pass_all
6499 lt_cv_deplibs_check_method=pass_all
6504 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6505 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6506 file_magic_cmd=$lt_cv_file_magic_cmd
6507 deplibs_check_method=$lt_cv_deplibs_check_method
6508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6521 if test -n "$ac_tool_prefix"; then
6522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}ar; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_prog_AR+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 if test -n "$AR"; then
6530 ac_cv_prog_AR="$AR" # Let the user override the test.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539 ac_cv_prog_AR="${ac_tool_prefix}ar"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 if test -n "$AR"; then
6551 { echo "$as_me:$LINENO: result: $AR" >&5
6552 echo "${ECHO_T}$AR" >&6; }
6554 { echo "$as_me:$LINENO: result: no" >&5
6555 echo "${ECHO_T}no" >&6; }
6560 if test -z "$ac_cv_prog_AR"; then
6562 # Extract the first word of "ar", so it can be a program name with args.
6563 set dummy ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 if test -n "$ac_ct_AR"; then
6570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_ac_ct_AR="ar"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6590 if test -n "$ac_ct_AR"; then
6591 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6592 echo "${ECHO_T}$ac_ct_AR" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6598 if test "x$ac_ct_AR" = x; then
6601 case $cross_compiling:$ac_tool_warned in
6603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6604 whose name does not start with the host triplet. If you think this
6605 configuration is useful to you, please write to autoconf@gnu.org." >&5
6606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet. If you think this
6608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6609 ac_tool_warned=yes ;;
6617 test -z "$AR" && AR=ar
6618 test -z "$AR_FLAGS" && AR_FLAGS=cru
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}strip; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_STRIP+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 if test -n "$STRIP"; then
6639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 STRIP=$ac_cv_prog_STRIP
6659 if test -n "$STRIP"; then
6660 { echo "$as_me:$LINENO: result: $STRIP" >&5
6661 echo "${ECHO_T}$STRIP" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6669 if test -z "$ac_cv_prog_STRIP"; then
6671 # Extract the first word of "strip", so it can be a program name with args.
6672 set dummy strip; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 if test -n "$ac_ct_STRIP"; then
6679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_STRIP="strip"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6699 if test -n "$ac_ct_STRIP"; then
6700 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6701 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6707 if test "x$ac_ct_STRIP" = x; then
6710 case $cross_compiling:$ac_tool_warned in
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet. If you think this
6714 configuration is useful to you, please write to autoconf@gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet. If you think this
6717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6723 STRIP="$ac_cv_prog_STRIP"
6726 test -z "$STRIP" && STRIP=:
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_RANLIB+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 if test -n "$RANLIB"; then
6742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 RANLIB=$ac_cv_prog_RANLIB
6762 if test -n "$RANLIB"; then
6763 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6764 echo "${ECHO_T}$RANLIB" >&6; }
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6772 if test -z "$ac_cv_prog_RANLIB"; then
6773 ac_ct_RANLIB=$RANLIB
6774 # Extract the first word of "ranlib", so it can be a program name with args.
6775 set dummy ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 if test -n "$ac_ct_RANLIB"; then
6782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_ac_ct_RANLIB="ranlib"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6802 if test -n "$ac_ct_RANLIB"; then
6803 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6804 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6806 { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6810 if test "x$ac_ct_RANLIB" = x; then
6813 case $cross_compiling:$ac_tool_warned in
6815 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6816 whose name does not start with the host triplet. If you think this
6817 configuration is useful to you, please write to autoconf@gnu.org." >&5
6818 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6819 whose name does not start with the host triplet. If you think this
6820 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6821 ac_tool_warned=yes ;;
6823 RANLIB=$ac_ct_RANLIB
6826 RANLIB="$ac_cv_prog_RANLIB"
6829 test -z "$RANLIB" && RANLIB=:
6836 # Determine commands to create old-style static archives.
6837 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6838 old_postinstall_cmds='chmod 644 $oldlib'
6839 old_postuninstall_cmds=
6841 if test -n "$RANLIB"; then
6844 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6847 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6850 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6886 # If no C compiler was specified, use CC.
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6892 # Allow CC to be a program name with arguments.
6896 # Check for command to grab the raw symbol name followed by C symbol from nm.
6897 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6898 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6899 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 # These are sane defaults that work on at least a few old systems.
6904 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6906 # Character class describing NM global symbol codes.
6907 symcode='[BCDEGRST]'
6909 # Regexp to match symbols that can be accessed directly from C.
6910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6912 # Define system-specific variables.
6917 cygwin* | mingw* | pw32* | cegcc*)
6918 symcode='[ABCDGISTW]'
6921 if test "$host_cpu" = ia64; then
6922 symcode='[ABCDEGRST]'
6926 symcode='[BCDEGRST]'
6929 symcode='[BCDEGQRST]'
6940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948 # If we're using GNU nm, then use its standard symbol codes.
6949 case `$NM -V 2>&1` in
6950 *GNU* | *'with BFD'*)
6951 symcode='[ABCDGIRSTW]' ;;
6954 # Transform an extracted symbol line into a proper C declaration.
6955 # Some systems (esp. on ia64) link data and code symbols differently,
6956 # so use this general approach.
6957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6959 # Transform an extracted symbol line into symbol name and symbol address
6960 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6961 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'"
6963 # Handle CRLF in mingw tool chain
6967 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6971 # Try without a prefix underscore, then with it.
6972 for ac_symprfx in "" "_"; do
6974 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6975 symxfrm="\\1 $ac_symprfx\\2 \\2"
6977 # Write the raw and C identifiers.
6978 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979 # Fake it for dumpbin and say T for any non-static function
6980 # and D for any global variable.
6981 # Also find C++ and __fastcall symbols from MSVC++,
6982 # which start with @ or ?.
6983 lt_cv_sys_global_symbol_pipe="$AWK '"\
6984 " {last_section=section; section=\$ 3};"\
6985 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6986 " \$ 0!~/External *\|/{next};"\
6987 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6988 " {if(hide[section]) next};"\
6989 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6990 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6991 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6992 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6993 " ' prfx=^$ac_symprfx"
6995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6998 # Check to see that the pipe works correctly.
7002 cat > conftest.$ac_ext <<_LT_EOF
7007 void nm_test_func(void);
7008 void nm_test_func(void){}
7012 int main(){nm_test_var='a';nm_test_func();return(0);}
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016 (eval $ac_compile) 2>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; then
7020 # Now try to grab the symbols.
7022 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7023 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && test -s "$nlist"; then
7027 # Try sorting and uniquifying the output.
7028 if sort "$nlist" | uniq > "$nlist"T; then
7029 mv -f "$nlist"T "$nlist"
7034 # Make sure that we snagged all the symbols we need.
7035 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7036 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7037 cat <<_LT_EOF > conftest.$ac_ext
7043 # Now generate the symbol file.
7044 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7046 cat <<_LT_EOF >> conftest.$ac_ext
7048 /* The mapping between symbol names and symbols. */
7053 lt__PROGRAM__LTX_preloaded_symbols[] =
7055 { "@PROGRAM@", (void *) 0 },
7057 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7058 cat <<\_LT_EOF >> conftest.$ac_ext
7062 /* This works around a problem in FreeBSD linker */
7063 #ifdef FREEBSD_WORKAROUND
7064 static const void *lt_preloaded_setup() {
7065 return lt__PROGRAM__LTX_preloaded_symbols;
7073 # Now try linking the two files.
7074 mv conftest.$ac_objext conftstm.$ac_objext
7075 lt_save_LIBS="$LIBS"
7076 lt_save_CFLAGS="$CFLAGS"
7077 LIBS="conftstm.$ac_objext"
7078 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7086 LIBS="$lt_save_LIBS"
7087 CFLAGS="$lt_save_CFLAGS"
7089 echo "cannot find nm_test_func in $nlist" >&5
7092 echo "cannot find nm_test_var in $nlist" >&5
7095 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7098 echo "$progname: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7101 rm -rf conftest* conftst*
7103 # Do not use the global_symbol_pipe unless it works.
7104 if test "$pipe_works" = yes; then
7107 lt_cv_sys_global_symbol_pipe=
7113 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7114 lt_cv_sys_global_symbol_to_cdecl=
7116 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7117 { echo "$as_me:$LINENO: result: failed" >&5
7118 echo "${ECHO_T}failed" >&6; }
7120 { echo "$as_me:$LINENO: result: ok" >&5
7121 echo "${ECHO_T}ok" >&6; }
7145 # Check whether --enable-libtool-lock was given.
7146 if test "${enable_libtool_lock+set}" = set; then
7147 enableval=$enable_libtool_lock;
7150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7152 # Some flags need to be propagated to the compiler or linker for good
7156 # Find out which ABI we are using.
7157 echo 'int i;' > conftest.$ac_ext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; then
7163 case `/usr/bin/file conftest.$ac_objext` in
7175 # Find out which ABI we are using.
7176 echo '#line 7176 "configure"' > conftest.$ac_ext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; then
7182 if test "$lt_cv_prog_gnu_ld" = yes; then
7183 case `/usr/bin/file conftest.$ac_objext` in
7185 LD="${LD-ld} -melf32bsmip"
7188 LD="${LD-ld} -melf32bmipn32"
7191 LD="${LD-ld} -melf64bmip"
7195 case `/usr/bin/file conftest.$ac_objext` in
7211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7213 # Find out which ABI we are using.
7214 echo 'int i;' > conftest.$ac_ext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; then
7220 case `/usr/bin/file conftest.o` in
7223 x86_64-*kfreebsd*-gnu)
7224 LD="${LD-ld} -m elf_i386_fbsd"
7227 LD="${LD-ld} -m elf_i386"
7229 ppc64-*linux*|powerpc64-*linux*)
7230 LD="${LD-ld} -m elf32ppclinux"
7233 LD="${LD-ld} -m elf_s390"
7236 LD="${LD-ld} -m elf32_sparc"
7242 x86_64-*kfreebsd*-gnu)
7243 LD="${LD-ld} -m elf_x86_64_fbsd"
7246 LD="${LD-ld} -m elf_x86_64"
7248 ppc*-*linux*|powerpc*-*linux*)
7249 LD="${LD-ld} -m elf64ppc"
7251 s390*-*linux*|s390*-*tpf*)
7252 LD="${LD-ld} -m elf64_s390"
7255 LD="${LD-ld} -m elf64_sparc"
7265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7266 SAVE_CFLAGS="$CFLAGS"
7267 CFLAGS="$CFLAGS -belf"
7268 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7270 if test "${lt_cv_cc_needs_belf+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (ac_try="$ac_link"
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301 (eval "$ac_link") 2>conftest.er1
7303 grep -v '^ *+' conftest.er1 >conftest.err
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest$ac_exeext &&
7311 $as_test_x conftest$ac_exeext; then
7312 lt_cv_cc_needs_belf=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 lt_cv_cc_needs_belf=no
7320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7321 conftest$ac_exeext conftest.$ac_ext
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7330 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7333 CFLAGS="$SAVE_CFLAGS"
7337 # Find out which ABI we are using.
7338 echo 'int i;' > conftest.$ac_ext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; then
7344 case `/usr/bin/file conftest.o` in
7346 case $lt_cv_prog_gnu_ld in
7347 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7349 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7361 need_locks="$enable_libtool_lock"
7365 rhapsody* | darwin*)
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 if test -n "$DSYMUTIL"; then
7375 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7395 if test -n "$DSYMUTIL"; then
7396 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7397 echo "${ECHO_T}$DSYMUTIL" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7405 if test -z "$ac_cv_prog_DSYMUTIL"; then
7406 ac_ct_DSYMUTIL=$DSYMUTIL
7407 # Extract the first word of "dsymutil", so it can be a program name with args.
7408 set dummy dsymutil; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 if test -n "$ac_ct_DSYMUTIL"; then
7415 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7435 if test -n "$ac_ct_DSYMUTIL"; then
7436 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7437 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7443 if test "x$ac_ct_DSYMUTIL" = x; then
7446 case $cross_compiling:$ac_tool_warned in
7448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7449 whose name does not start with the host triplet. If you think this
7450 configuration is useful to you, please write to autoconf@gnu.org." >&5
7451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7452 whose name does not start with the host triplet. If you think this
7453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7454 ac_tool_warned=yes ;;
7456 DSYMUTIL=$ac_ct_DSYMUTIL
7459 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7462 if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 if test -n "$NMEDIT"; then
7471 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 NMEDIT=$ac_cv_prog_NMEDIT
7491 if test -n "$NMEDIT"; then
7492 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7493 echo "${ECHO_T}$NMEDIT" >&6; }
7495 { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7501 if test -z "$ac_cv_prog_NMEDIT"; then
7502 ac_ct_NMEDIT=$NMEDIT
7503 # Extract the first word of "nmedit", so it can be a program name with args.
7504 set dummy nmedit; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 if test -n "$ac_ct_NMEDIT"; then
7511 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7531 if test -n "$ac_ct_NMEDIT"; then
7532 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7533 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7535 { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7539 if test "x$ac_ct_NMEDIT" = x; then
7542 case $cross_compiling:$ac_tool_warned in
7544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7545 whose name does not start with the host triplet. If you think this
7546 configuration is useful to you, please write to autoconf@gnu.org." >&5
7547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7548 whose name does not start with the host triplet. If you think this
7549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7550 ac_tool_warned=yes ;;
7552 NMEDIT=$ac_ct_NMEDIT
7555 NMEDIT="$ac_cv_prog_NMEDIT"
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7563 if test "${ac_cv_prog_LIPO+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 if test -n "$LIPO"; then
7567 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 LIPO=$ac_cv_prog_LIPO
7587 if test -n "$LIPO"; then
7588 { echo "$as_me:$LINENO: result: $LIPO" >&5
7589 echo "${ECHO_T}$LIPO" >&6; }
7591 { echo "$as_me:$LINENO: result: no" >&5
7592 echo "${ECHO_T}no" >&6; }
7597 if test -z "$ac_cv_prog_LIPO"; then
7599 # Extract the first word of "lipo", so it can be a program name with args.
7600 set dummy lipo; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 if test -n "$ac_ct_LIPO"; then
7607 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_ac_ct_LIPO="lipo"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7627 if test -n "$ac_ct_LIPO"; then
7628 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7629 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7631 { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7635 if test "x$ac_ct_LIPO" = x; then
7638 case $cross_compiling:$ac_tool_warned in
7640 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7641 whose name does not start with the host triplet. If you think this
7642 configuration is useful to you, please write to autoconf@gnu.org." >&5
7643 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7644 whose name does not start with the host triplet. If you think this
7645 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7646 ac_tool_warned=yes ;;
7651 LIPO="$ac_cv_prog_LIPO"
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}otool; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_prog_OTOOL+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 if test -n "$OTOOL"; then
7663 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 OTOOL=$ac_cv_prog_OTOOL
7683 if test -n "$OTOOL"; then
7684 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7685 echo "${ECHO_T}$OTOOL" >&6; }
7687 { echo "$as_me:$LINENO: result: no" >&5
7688 echo "${ECHO_T}no" >&6; }
7693 if test -z "$ac_cv_prog_OTOOL"; then
7695 # Extract the first word of "otool", so it can be a program name with args.
7696 set dummy otool; ac_word=$2
7697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test -n "$ac_ct_OTOOL"; then
7703 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_ac_ct_OTOOL="otool"
7713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7723 if test -n "$ac_ct_OTOOL"; then
7724 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7725 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7727 { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7731 if test "x$ac_ct_OTOOL" = x; then
7734 case $cross_compiling:$ac_tool_warned in
7736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7737 whose name does not start with the host triplet. If you think this
7738 configuration is useful to you, please write to autoconf@gnu.org." >&5
7739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7740 whose name does not start with the host triplet. If you think this
7741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7742 ac_tool_warned=yes ;;
7747 OTOOL="$ac_cv_prog_OTOOL"
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7752 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7755 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 if test -n "$OTOOL64"; then
7759 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7768 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 OTOOL64=$ac_cv_prog_OTOOL64
7779 if test -n "$OTOOL64"; then
7780 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7781 echo "${ECHO_T}$OTOOL64" >&6; }
7783 { echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6; }
7789 if test -z "$ac_cv_prog_OTOOL64"; then
7790 ac_ct_OTOOL64=$OTOOL64
7791 # Extract the first word of "otool64", so it can be a program name with args.
7792 set dummy otool64; ac_word=$2
7793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 if test -n "$ac_ct_OTOOL64"; then
7799 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_ac_ct_OTOOL64="otool64"
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7819 if test -n "$ac_ct_OTOOL64"; then
7820 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7821 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7827 if test "x$ac_ct_OTOOL64" = x; then
7830 case $cross_compiling:$ac_tool_warned in
7832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7833 whose name does not start with the host triplet. If you think this
7834 configuration is useful to you, please write to autoconf@gnu.org." >&5
7835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7836 whose name does not start with the host triplet. If you think this
7837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7838 ac_tool_warned=yes ;;
7840 OTOOL64=$ac_ct_OTOOL64
7843 OTOOL64="$ac_cv_prog_OTOOL64"
7872 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7873 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7874 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 lt_cv_apple_cc_single_mod=no
7878 if test -z "${LT_MULTI_MODULE}"; then
7879 # By default we will add the -single_module flag. You can override
7880 # by either setting the environment variable LT_MULTI_MODULE
7881 # non-empty at configure time, or by adding -multi_module to the
7883 rm -rf libconftest.dylib*
7884 echo "int foo(void){return 1;}" > conftest.c
7885 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7886 -dynamiclib -Wl,-single_module conftest.c" >&5
7887 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7888 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7890 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7891 lt_cv_apple_cc_single_mod=yes
7893 cat conftest.err >&5
7895 rm -rf libconftest.dylib*
7899 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7900 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7901 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7902 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7903 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 lt_cv_ld_exported_symbols_list=no
7907 save_LDFLAGS=$LDFLAGS
7908 echo "_main" > conftest.sym
7909 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (ac_try="$ac_link"
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_link") 2>conftest.er1
7934 grep -v '^ *+' conftest.er1 >conftest.err
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest$ac_exeext &&
7942 $as_test_x conftest$ac_exeext; then
7943 lt_cv_ld_exported_symbols_list=yes
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 lt_cv_ld_exported_symbols_list=no
7951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7952 conftest$ac_exeext conftest.$ac_ext
7953 LDFLAGS="$save_LDFLAGS"
7956 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7957 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7959 rhapsody* | darwin1.[012])
7960 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7963 darwin*) # darwin 5.x on
7964 # if running on 10.5 or later, the deployment target defaults
7965 # to the OS version, if on x86, and 10.4, the deployment
7966 # target defaults to 10.4. Don't you love it?
7967 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7968 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7969 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7973 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7977 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7978 _lt_dar_single_mod='$single_module'
7980 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7981 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7983 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7985 if test "$DSYMUTIL" != ":"; then
7986 _lt_dsymutil='~$DSYMUTIL $lib || :'
7993 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7995 if test "${ac_cv_header_stdc+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 cat >conftest.$ac_ext <<_ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
8034 ac_cv_header_stdc=yes
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 ac_cv_header_stdc=no
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 if test $ac_cv_header_stdc = yes; then
8045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8056 $EGREP "memchr" >/dev/null 2>&1; then
8059 ac_cv_header_stdc=no
8065 if test $ac_cv_header_stdc = yes; then
8066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "free" >/dev/null 2>&1; then
8080 ac_cv_header_stdc=no
8086 if test $ac_cv_header_stdc = yes; then
8087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8088 if test "$cross_compiling" = yes; then
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8099 #if ((' ' & 0x0FF) == 0x020)
8100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8103 # define ISLOWER(c) \
8104 (('a' <= (c) && (c) <= 'i') \
8105 || ('j' <= (c) && (c) <= 'r') \
8106 || ('s' <= (c) && (c) <= 'z'))
8107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8115 for (i = 0; i < 256; i++)
8116 if (XOR (islower (i), ISLOWER (i))
8117 || toupper (i) != TOUPPER (i))
8122 rm -f conftest$ac_exeext
8123 if { (ac_try="$ac_link"
8125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126 *) ac_try_echo=$ac_try;;
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_link") 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8133 { (case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_try") 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8144 echo "$as_me: program exited with status $ac_status" >&5
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_cv_header_stdc=no
8151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8157 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8158 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8159 if test $ac_cv_header_stdc = yes; then
8161 cat >>confdefs.h <<\_ACEOF
8162 #define STDC_HEADERS 1
8167 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8178 inttypes.h stdint.h unistd.h
8180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8194 #include <$ac_header>
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1 >conftest.err
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.$ac_objext; then
8213 eval "$as_ac_Header=yes"
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8218 eval "$as_ac_Header=no"
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 ac_res=`eval echo '${'$as_ac_Header'}'`
8224 { echo "$as_me:$LINENO: result: $ac_res" >&5
8225 echo "${ECHO_T}$ac_res" >&6; }
8226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237 for ac_header in dlfcn.h
8239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.$ac_ext <<_ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 $ac_includes_default
8253 #include <$ac_header>
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8272 eval "$as_ac_Header=yes"
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8277 eval "$as_ac_Header=no"
8280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 ac_res=`eval echo '${'$as_ac_Header'}'`
8283 { echo "$as_me:$LINENO: result: $ac_res" >&5
8284 echo "${ECHO_T}$ac_res" >&6; }
8285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8286 cat >>confdefs.h <<_ACEOF
8287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8297 ac_cpp='$CXXCPP $CPPFLAGS'
8298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8301 if test -z "$CXX"; then
8302 if test -n "$CCC"; then
8305 if test -n "$ac_tool_prefix"; then
8306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8312 if test "${ac_cv_prog_CXX+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 if test -n "$CXX"; then
8316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 if test -n "$CXX"; then
8337 { echo "$as_me:$LINENO: result: $CXX" >&5
8338 echo "${ECHO_T}$CXX" >&6; }
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8345 test -n "$CXX" && break
8348 if test -z "$CXX"; then
8350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8352 # Extract the first word of "$ac_prog", so it can be a program name with args.
8353 set dummy $ac_prog; ac_word=$2
8354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 if test -n "$ac_ct_CXX"; then
8360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_ac_ct_CXX="$ac_prog"
8370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8380 if test -n "$ac_ct_CXX"; then
8381 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8382 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8384 { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8389 test -n "$ac_ct_CXX" && break
8392 if test "x$ac_ct_CXX" = x; then
8395 case $cross_compiling:$ac_tool_warned in
8397 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8398 whose name does not start with the host triplet. If you think this
8399 configuration is useful to you, please write to autoconf@gnu.org." >&5
8400 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8401 whose name does not start with the host triplet. If you think this
8402 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8403 ac_tool_warned=yes ;;
8411 # Provide some information about the compiler.
8412 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8413 ac_compiler=`set X $ac_compile; echo $2`
8414 { (ac_try="$ac_compiler --version >&5"
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compiler --version >&5") 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }
8424 { (ac_try="$ac_compiler -v >&5"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compiler -v >&5") 2>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }
8434 { (ac_try="$ac_compiler -V >&5"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_compiler -V >&5") 2>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }
8445 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8446 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8447 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8468 rm -f conftest.$ac_objext
8469 if { (ac_try="$ac_compile"
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_cxx_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest.$ac_objext; then
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8497 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8499 GXX=`test $ac_compiler_gnu = yes && echo yes`
8500 ac_test_CXXFLAGS=${CXXFLAGS+set}
8501 ac_save_CXXFLAGS=$CXXFLAGS
8502 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8504 if test "${ac_cv_prog_cxx_g+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8508 ac_cxx_werror_flag=yes
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_cxx_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_cv_prog_cxx_g=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_cxx_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && {
8617 test -z "$ac_cxx_werror_flag" ||
8618 test ! -s conftest.err
8619 } && test -s conftest.$ac_objext; then
8620 ac_cv_prog_cxx_g=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8637 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8638 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8639 if test "$ac_test_CXXFLAGS" = set; then
8640 CXXFLAGS=$ac_save_CXXFLAGS
8641 elif test $ac_cv_prog_cxx_g = yes; then
8642 if test "$GXX" = yes; then
8648 if test "$GXX" = yes; then
8655 ac_cpp='$CPP $CPPFLAGS'
8656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8661 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8662 (test "X$CXX" != "Xg++"))) ; then
8664 ac_cpp='$CXXCPP $CPPFLAGS'
8665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8668 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8669 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8670 if test -z "$CXXCPP"; then
8671 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 # Double quotes because CXXCPP needs to be expanded
8675 for CXXCPP in "$CXX -E" "/lib/cpp"
8678 for ac_cxx_preproc_warn_flag in '' yes
8680 # Use a header file that comes with gcc, so configuring glibc
8681 # with a fresh cross-compiler works.
8682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8683 # <limits.h> exists even on freestanding compilers.
8684 # On the NeXT, cc -E runs the code through the compiler's parser,
8685 # not just through cpp. "Syntax error" is here to catch this case.
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 # include <limits.h>
8695 # include <assert.h>
8699 if { (ac_try="$ac_cpp conftest.$ac_ext"
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8707 grep -v '^ *+' conftest.er1 >conftest.err
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } >/dev/null && {
8712 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8713 test ! -s conftest.err
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 # Broken: fails on valid input.
8724 rm -f conftest.err conftest.$ac_ext
8726 # OK, works on sane cases. Now check whether nonexistent headers
8727 # can be detected and how.
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 #include <ac_nonexistent.h>
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null && {
8749 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8750 test ! -s conftest.err
8752 # Broken: success on invalid input.
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 # Passes both tests.
8763 rm -f conftest.err conftest.$ac_ext
8766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8767 rm -f conftest.err conftest.$ac_ext
8768 if $ac_preproc_ok; then
8773 ac_cv_prog_CXXCPP=$CXXCPP
8776 CXXCPP=$ac_cv_prog_CXXCPP
8778 ac_cv_prog_CXXCPP=$CXXCPP
8780 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8781 echo "${ECHO_T}$CXXCPP" >&6; }
8783 for ac_cxx_preproc_warn_flag in '' yes
8785 # Use a header file that comes with gcc, so configuring glibc
8786 # with a fresh cross-compiler works.
8787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8788 # <limits.h> exists even on freestanding compilers.
8789 # On the NeXT, cc -E runs the code through the compiler's parser,
8790 # not just through cpp. "Syntax error" is here to catch this case.
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8798 # include <limits.h>
8800 # include <assert.h>
8804 if { (ac_try="$ac_cpp conftest.$ac_ext"
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } >/dev/null && {
8817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8818 test ! -s conftest.err
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 # Broken: fails on valid input.
8829 rm -f conftest.err conftest.$ac_ext
8831 # OK, works on sane cases. Now check whether nonexistent headers
8832 # can be detected and how.
8833 cat >conftest.$ac_ext <<_ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 #include <ac_nonexistent.h>
8841 if { (ac_try="$ac_cpp conftest.$ac_ext"
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } >/dev/null && {
8854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8855 test ! -s conftest.err
8857 # Broken: success on invalid input.
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 # Passes both tests.
8868 rm -f conftest.err conftest.$ac_ext
8871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8872 rm -f conftest.err conftest.$ac_ext
8873 if $ac_preproc_ok; then
8876 _lt_caught_CXX_error=yes
8880 ac_cpp='$CPP $CPPFLAGS'
8881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886 _lt_caught_CXX_error=yes
8894 # Check whether --enable-shared was given.
8895 if test "${enable_shared+set}" = set; then
8896 enableval=$enable_shared; p=${PACKAGE-default}
8898 yes) enable_shared=yes ;;
8899 no) enable_shared=no ;;
8902 # Look at the argument we got. We use all the common list separators.
8903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8904 for pkg in $enableval; do
8906 if test "X$pkg" = "X$p"; then
8923 # Check whether --enable-static was given.
8924 if test "${enable_static+set}" = set; then
8925 enableval=$enable_static; p=${PACKAGE-default}
8927 yes) enable_static=yes ;;
8928 no) enable_static=no ;;
8931 # Look at the argument we got. We use all the common list separators.
8932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8933 for pkg in $enableval; do
8935 if test "X$pkg" = "X$p"; then
8964 # Check whether --with-pic was given.
8965 if test "${with_pic+set}" = set; then
8966 withval=$with_pic; pic_mode="$withval"
8972 test -z "$pic_mode" && pic_mode=default
8980 # Check whether --enable-fast-install was given.
8981 if test "${enable_fast_install+set}" = set; then
8982 enableval=$enable_fast_install; p=${PACKAGE-default}
8984 yes) enable_fast_install=yes ;;
8985 no) enable_fast_install=no ;;
8987 enable_fast_install=no
8988 # Look at the argument we got. We use all the common list separators.
8989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8990 for pkg in $enableval; do
8992 if test "X$pkg" = "X$p"; then
8993 enable_fast_install=yes
9000 enable_fast_install=yes
9013 # This can be used to rebuild libtool when needed
9014 LIBTOOL_DEPS="$ltmain"
9016 # Always use our own libtool.
9017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9043 test -z "$LN_S" && LN_S="ln -s"
9058 if test -n "${ZSH_VERSION+set}" ; then
9059 setopt NO_GLOB_SUBST
9062 { echo "$as_me:$LINENO: checking for objdir" >&5
9063 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9064 if test "${lt_cv_objdir+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 rm -f .libs 2>/dev/null
9068 mkdir .libs 2>/dev/null
9069 if test -d .libs; then
9072 # MS-DOS does not allow filenames that begin with a dot.
9075 rmdir .libs 2>/dev/null
9077 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9078 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9079 objdir=$lt_cv_objdir
9085 cat >>confdefs.h <<_ACEOF
9086 #define LT_OBJDIR "$lt_cv_objdir/"
9107 # AIX sometimes has problems with the GCC collect2 program. For some
9108 # reason, if we set the COLLECT_NAMES environment variable, the problems
9109 # vanish in a puff of smoke.
9110 if test "X${COLLECT_NAMES+set}" != Xset; then
9112 export COLLECT_NAMES
9117 # Sed substitution that helps us do robust quoting. It backslashifies
9118 # metacharacters that are still active within double-quoted strings.
9119 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9121 # Same as above, but do not quote variable references.
9122 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9124 # Sed substitution to delay expansion of an escaped shell variable in a
9125 # double_quote_subst'ed string.
9126 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9128 # Sed substitution to delay expansion of an escaped single quote.
9129 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9131 # Sed substitution to avoid accidental globbing in evaled expressions
9132 no_glob_subst='s/\*/\\\*/g'
9136 can_build_shared=yes
9138 # All known linkers require a `.a' archive for static linking (except MSVC,
9139 # which needs '.lib').
9142 with_gnu_ld="$lt_cv_prog_gnu_ld"
9145 old_CFLAGS="$CFLAGS"
9147 # Set sane defaults for various variables
9148 test -z "$CC" && CC=cc
9149 test -z "$LTCC" && LTCC=$CC
9150 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9151 test -z "$LD" && LD=ld
9152 test -z "$ac_objext" && ac_objext=o
9154 for cc_temp in $compiler""; do
9156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9162 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9165 # Only perform the check for file, if the check method requires it
9166 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9167 case $deplibs_check_method in
9169 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9170 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9171 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9172 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9180 lt_save_MAGIC_CMD="$MAGIC_CMD"
9181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9183 for ac_dir in $ac_dummy; do
9185 test -z "$ac_dir" && ac_dir=.
9186 if test -f $ac_dir/${ac_tool_prefix}file; then
9187 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9188 if test -n "$file_magic_test_file"; then
9189 case $deplibs_check_method in
9191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9194 $EGREP "$file_magic_regex" > /dev/null; then
9199 *** Warning: the command libtool uses to detect shared libraries,
9200 *** $file_magic_cmd, produces output that libtool cannot recognize.
9201 *** The result is that libtool may fail to recognize shared libraries
9202 *** as such. This will affect the creation of libtool libraries that
9203 *** depend on shared libraries, but programs linked with such libtool
9204 *** libraries will work regardless of this problem. Nevertheless, you
9205 *** may want to report the problem to your system manager and/or to
9206 *** bug-libtool@gnu.org
9216 MAGIC_CMD="$lt_save_MAGIC_CMD"
9221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9222 if test -n "$MAGIC_CMD"; then
9223 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9224 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9226 { echo "$as_me:$LINENO: result: no" >&5
9227 echo "${ECHO_T}no" >&6; }
9234 if test -z "$lt_cv_path_MAGIC_CMD"; then
9235 if test -n "$ac_tool_prefix"; then
9236 { echo "$as_me:$LINENO: checking for file" >&5
9237 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9238 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9246 lt_save_MAGIC_CMD="$MAGIC_CMD"
9247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9248 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9249 for ac_dir in $ac_dummy; do
9251 test -z "$ac_dir" && ac_dir=.
9252 if test -f $ac_dir/file; then
9253 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9254 if test -n "$file_magic_test_file"; then
9255 case $deplibs_check_method in
9257 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9260 $EGREP "$file_magic_regex" > /dev/null; then
9265 *** Warning: the command libtool uses to detect shared libraries,
9266 *** $file_magic_cmd, produces output that libtool cannot recognize.
9267 *** The result is that libtool may fail to recognize shared libraries
9268 *** as such. This will affect the creation of libtool libraries that
9269 *** depend on shared libraries, but programs linked with such libtool
9270 *** libraries will work regardless of this problem. Nevertheless, you
9271 *** may want to report the problem to your system manager and/or to
9272 *** bug-libtool@gnu.org
9282 MAGIC_CMD="$lt_save_MAGIC_CMD"
9287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9288 if test -n "$MAGIC_CMD"; then
9289 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9290 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9292 { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9306 # Use C for the default configuration in the libtool script
9310 ac_cpp='$CPP $CPPFLAGS'
9311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9316 # Source file extension for C test sources.
9319 # Object file extension for compiled C test sources.
9323 # Code to be used in simple compile tests
9324 lt_simple_compile_test_code="int some_variable = 0;"
9326 # Code to be used in simple link tests
9327 lt_simple_link_test_code='int main(){return(0);}'
9335 # If no C compiler was specified, use CC.
9338 # If no C compiler flags were specified, use CFLAGS.
9339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9341 # Allow CC to be a program name with arguments.
9344 # Save the default compiler, since it gets overwritten when the other
9345 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9346 compiler_DEFAULT=$CC
9348 # save warnings/boilerplate of simple test code
9349 ac_outfile=conftest.$ac_objext
9350 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9351 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9352 _lt_compiler_boilerplate=`cat conftest.err`
9355 ac_outfile=conftest.$ac_objext
9356 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9357 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9358 _lt_linker_boilerplate=`cat conftest.err`
9363 ## There is no encapsulation within the following macros, do not change
9364 ## the running order or otherwise move them around unless you know exactly
9365 ## what you are doing...
9366 if test -n "$compiler"; then
9368 lt_prog_compiler_no_builtin_flag=
9370 if test "$GCC" = yes; then
9371 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9373 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9374 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9375 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 lt_cv_prog_compiler_rtti_exceptions=no
9379 ac_outfile=conftest.$ac_objext
9380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9381 lt_compiler_flag="-fno-rtti -fno-exceptions"
9382 # Insert the option either (1) after the last *FLAGS variable, or
9383 # (2) before a word containing "conftest.", or (3) at the end.
9384 # Note that $ac_compile itself does not contain backslashes and begins
9385 # with a dollar sign (not a hyphen), so the echo should work correctly.
9386 # The option is referenced via a variable to avoid confusing sed.
9387 lt_compile=`echo "$ac_compile" | $SED \
9388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9390 -e 's:$: $lt_compiler_flag:'`
9391 (eval echo "\"\$as_me:9391: $lt_compile\"" >&5)
9392 (eval "$lt_compile" 2>conftest.err)
9394 cat conftest.err >&5
9395 echo "$as_me:9395: \$? = $ac_status" >&5
9396 if (exit $ac_status) && test -s "$ac_outfile"; then
9397 # The compiler can only warn and ignore the option if not recognized
9398 # So say no if there are warnings other than the usual output.
9399 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9402 lt_cv_prog_compiler_rtti_exceptions=yes
9408 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9409 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9411 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9424 lt_prog_compiler_wl=
9425 lt_prog_compiler_pic=
9426 lt_prog_compiler_static=
9428 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9429 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9431 if test "$GCC" = yes; then
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_static='-static'
9437 # All AIX code is PIC.
9438 if test "$host_cpu" = ia64; then
9439 # AIX 5 now supports IA64 processor
9440 lt_prog_compiler_static='-Bstatic'
9447 # see comment about AmigaOS4 .so support
9448 lt_prog_compiler_pic='-fPIC'
9451 # FIXME: we need at least 68020 code to build shared libraries, but
9452 # adding the `-m68020' flag to GCC prevents building anything better,
9454 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9460 # PIC is the default for these OSes.
9463 mingw* | cygwin* | pw32* | os2* | cegcc*)
9464 # This hack is so that the source file can tell whether it is being
9465 # built for inclusion in a dll (and should export symbols for example).
9466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9467 # (--disable-auto-import) libraries
9468 lt_prog_compiler_pic='-DDLL_EXPORT'
9471 darwin* | rhapsody*)
9472 # PIC is the default on this platform
9473 # Common symbols not allowed in MH_DYLIB files
9474 lt_prog_compiler_pic='-fno-common'
9478 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9479 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9480 # sets the default TLS model and affects inlining.
9486 lt_prog_compiler_pic='-fPIC'
9492 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9493 # Instead, we relocate shared libraries at runtime.
9497 # Just because we use GCC doesn't mean we suddenly get shared libraries
9498 # on systems that don't support them.
9499 lt_prog_compiler_can_build_shared=no
9504 # QNX uses GNU C++, but need to define -shared option too, otherwise
9506 lt_prog_compiler_pic='-fPIC -shared'
9510 if test -d /usr/nec; then
9511 lt_prog_compiler_pic=-Kconform_pic
9516 lt_prog_compiler_pic='-fPIC'
9520 # PORTME Check for flag to pass linker flags through the system compiler.
9523 lt_prog_compiler_wl='-Wl,'
9524 if test "$host_cpu" = ia64; then
9525 # AIX 5 now supports IA64 processor
9526 lt_prog_compiler_static='-Bstatic'
9528 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9532 mingw* | cygwin* | pw32* | os2* | cegcc*)
9533 # This hack is so that the source file can tell whether it is being
9534 # built for inclusion in a dll (and should export symbols for example).
9535 lt_prog_compiler_pic='-DDLL_EXPORT'
9538 hpux9* | hpux10* | hpux11*)
9539 lt_prog_compiler_wl='-Wl,'
9540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9547 lt_prog_compiler_pic='+Z'
9550 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9551 lt_prog_compiler_static='${wl}-a ${wl}archive'
9554 irix5* | irix6* | nonstopux*)
9555 lt_prog_compiler_wl='-Wl,'
9556 # PIC (with -KPIC) is the default.
9557 lt_prog_compiler_static='-non_shared'
9560 linux* | k*bsd*-gnu)
9561 case $cc_basename in
9562 # old Intel for x86_64 which still supported -KPIC.
9564 lt_prog_compiler_wl='-Wl,'
9565 lt_prog_compiler_pic='-KPIC'
9566 lt_prog_compiler_static='-static'
9568 # icc used to be incompatible with GCC.
9569 # ICC 10 doesn't accept -KPIC any more.
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_pic='-fPIC'
9573 lt_prog_compiler_static='-static'
9575 # Lahey Fortran 8.1.
9577 lt_prog_compiler_wl='-Wl,'
9578 lt_prog_compiler_pic='--shared'
9579 lt_prog_compiler_static='--static'
9581 pgcc* | pgf77* | pgf90* | pgf95*)
9582 # Portland Group compilers (*not* the Pentium gcc compiler,
9583 # which looks to be a dead project)
9584 lt_prog_compiler_wl='-Wl,'
9585 lt_prog_compiler_pic='-fpic'
9586 lt_prog_compiler_static='-Bstatic'
9589 lt_prog_compiler_wl='-Wl,'
9590 # All Alpha code is PIC.
9591 lt_prog_compiler_static='-non_shared'
9594 # IBM XL C 8.0/Fortran 10.1 on PPC
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='-qpic'
9597 lt_prog_compiler_static='-qstaticlink'
9600 case `$CC -V 2>&1 | sed 5q` in
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9605 lt_prog_compiler_wl='-Wl,'
9608 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9609 lt_prog_compiler_pic='-KPIC'
9610 lt_prog_compiler_static='-Bstatic'
9611 lt_prog_compiler_wl=''
9619 lt_prog_compiler_pic='-KPIC'
9620 lt_prog_compiler_static='-Bstatic'
9624 # QNX uses GNU C++, but need to define -shared option too, otherwise
9626 lt_prog_compiler_pic='-fPIC -shared'
9629 osf3* | osf4* | osf5*)
9630 lt_prog_compiler_wl='-Wl,'
9631 # All OSF/1 code is PIC.
9632 lt_prog_compiler_static='-non_shared'
9636 lt_prog_compiler_static='-non_shared'
9640 lt_prog_compiler_pic='-KPIC'
9641 lt_prog_compiler_static='-Bstatic'
9642 case $cc_basename in
9644 lt_prog_compiler_wl='-Qoption ld ';;
9646 lt_prog_compiler_wl='-Wl,';;
9651 lt_prog_compiler_wl='-Qoption ld '
9652 lt_prog_compiler_pic='-PIC'
9653 lt_prog_compiler_static='-Bstatic'
9656 sysv4 | sysv4.2uw2* | sysv4.3*)
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_pic='-KPIC'
9659 lt_prog_compiler_static='-Bstatic'
9663 if test -d /usr/nec ;then
9664 lt_prog_compiler_pic='-Kconform_pic'
9665 lt_prog_compiler_static='-Bstatic'
9669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9670 lt_prog_compiler_wl='-Wl,'
9671 lt_prog_compiler_pic='-KPIC'
9672 lt_prog_compiler_static='-Bstatic'
9676 lt_prog_compiler_wl='-Wl,'
9677 lt_prog_compiler_can_build_shared=no
9681 lt_prog_compiler_pic='-pic'
9682 lt_prog_compiler_static='-Bstatic'
9686 lt_prog_compiler_can_build_shared=no
9692 # For platforms which do not support PIC, -DPIC is meaningless:
9694 lt_prog_compiler_pic=
9697 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9700 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9701 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9709 # Check to make sure the PIC flag actually works.
9711 if test -n "$lt_prog_compiler_pic"; then
9712 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9714 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 lt_cv_prog_compiler_pic_works=no
9718 ac_outfile=conftest.$ac_objext
9719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9720 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9721 # Insert the option either (1) after the last *FLAGS variable, or
9722 # (2) before a word containing "conftest.", or (3) at the end.
9723 # Note that $ac_compile itself does not contain backslashes and begins
9724 # with a dollar sign (not a hyphen), so the echo should work correctly.
9725 # The option is referenced via a variable to avoid confusing sed.
9726 lt_compile=`echo "$ac_compile" | $SED \
9727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9729 -e 's:$: $lt_compiler_flag:'`
9730 (eval echo "\"\$as_me:9730: $lt_compile\"" >&5)
9731 (eval "$lt_compile" 2>conftest.err)
9733 cat conftest.err >&5
9734 echo "$as_me:9734: \$? = $ac_status" >&5
9735 if (exit $ac_status) && test -s "$ac_outfile"; then
9736 # The compiler can only warn and ignore the option if not recognized
9737 # So say no if there are warnings other than the usual output.
9738 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9741 lt_cv_prog_compiler_pic_works=yes
9747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9748 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9750 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9751 case $lt_prog_compiler_pic in
9753 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9756 lt_prog_compiler_pic=
9757 lt_prog_compiler_can_build_shared=no
9768 # Check to make sure the static flag actually works.
9770 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9771 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9772 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9773 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 lt_cv_prog_compiler_static_works=no
9777 save_LDFLAGS="$LDFLAGS"
9778 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9779 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9780 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9781 # The linker can only warn and ignore the option if not recognized
9782 # So say no if there are warnings
9783 if test -s conftest.err; then
9784 # Append any errors to the config.log.
9785 cat conftest.err 1>&5
9786 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9788 if diff conftest.exp conftest.er2 >/dev/null; then
9789 lt_cv_prog_compiler_static_works=yes
9792 lt_cv_prog_compiler_static_works=yes
9796 LDFLAGS="$save_LDFLAGS"
9799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9800 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9802 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9805 lt_prog_compiler_static=
9814 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9815 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9816 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 lt_cv_prog_compiler_c_o=no
9820 $RM -r conftest 2>/dev/null
9824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9826 lt_compiler_flag="-o out/conftest2.$ac_objext"
9827 # Insert the option either (1) after the last *FLAGS variable, or
9828 # (2) before a word containing "conftest.", or (3) at the end.
9829 # Note that $ac_compile itself does not contain backslashes and begins
9830 # with a dollar sign (not a hyphen), so the echo should work correctly.
9831 lt_compile=`echo "$ac_compile" | $SED \
9832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9834 -e 's:$: $lt_compiler_flag:'`
9835 (eval echo "\"\$as_me:9835: $lt_compile\"" >&5)
9836 (eval "$lt_compile" 2>out/conftest.err)
9838 cat out/conftest.err >&5
9839 echo "$as_me:9839: \$? = $ac_status" >&5
9840 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9842 # The compiler can only warn and ignore the option if not recognized
9843 # So say no if there are warnings
9844 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9845 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9846 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9847 lt_cv_prog_compiler_c_o=yes
9852 # SGI C++ compiler will create directory out/ii_files/ for
9853 # template instantiation
9854 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9855 $RM out/* && rmdir out
9861 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9862 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9871 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 lt_cv_prog_compiler_c_o=no
9875 $RM -r conftest 2>/dev/null
9879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881 lt_compiler_flag="-o out/conftest2.$ac_objext"
9882 # Insert the option either (1) after the last *FLAGS variable, or
9883 # (2) before a word containing "conftest.", or (3) at the end.
9884 # Note that $ac_compile itself does not contain backslashes and begins
9885 # with a dollar sign (not a hyphen), so the echo should work correctly.
9886 lt_compile=`echo "$ac_compile" | $SED \
9887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9889 -e 's:$: $lt_compiler_flag:'`
9890 (eval echo "\"\$as_me:9890: $lt_compile\"" >&5)
9891 (eval "$lt_compile" 2>out/conftest.err)
9893 cat out/conftest.err >&5
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9897 # The compiler can only warn and ignore the option if not recognized
9898 # So say no if there are warnings
9899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9902 lt_cv_prog_compiler_c_o=yes
9907 # SGI C++ compiler will create directory out/ii_files/ for
9908 # template instantiation
9909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9910 $RM out/* && rmdir out
9916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9922 hard_links="nottested"
9923 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9924 # do not overwrite the value of need_locks provided by the user
9925 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9926 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9931 ln conftest.a conftest.b 2>&5 || hard_links=no
9932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9933 { echo "$as_me:$LINENO: result: $hard_links" >&5
9934 echo "${ECHO_T}$hard_links" >&6; }
9935 if test "$hard_links" = no; then
9936 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9937 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9949 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9950 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9953 allow_undefined_flag=
9954 always_export_symbols=no
9956 archive_expsym_cmds=
9957 compiler_needs_object=no
9958 enable_shared_with_static_runtimes=no
9959 export_dynamic_flag_spec=
9960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9961 hardcode_automatic=no
9963 hardcode_direct_absolute=no
9964 hardcode_libdir_flag_spec=
9965 hardcode_libdir_flag_spec_ld=
9966 hardcode_libdir_separator=
9968 hardcode_shlibpath_var=unsupported
9970 link_all_deplibs=unknown
9973 old_archive_from_new_cmds=
9974 old_archive_from_expsyms_cmds=
9975 thread_safe_flag_spec=
9976 whole_archive_flag_spec=
9977 # include_expsyms should be a list of space-separated symbols to be *always*
9978 # included in the symbol list
9980 # exclude_expsyms can be an extended regexp of symbols to exclude
9981 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9982 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9983 # as well as any symbol that contains `d'.
9984 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9985 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9986 # platforms (ab)use it in PIC code, but their linkers get confused if
9987 # the symbol is explicitly referenced. Since portable code cannot
9988 # rely on this symbol name, it's probably fine to never include it in
9989 # preloaded symbol tables.
9990 # Exclude shared library initialization/finalization symbols.
9991 extract_expsyms_cmds=
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9996 # When not using gcc, we currently assume that we are using
9997 # Microsoft Visual C++.
9998 if test "$GCC" != yes; then
10003 # we just hope/assume this is gcc and not c89 (= MSVC++)
10012 if test "$with_gnu_ld" = yes; then
10013 # If archive_cmds runs LD, not CC, wlarc should be empty
10016 # Set some defaults for GNU ld with shared library support. These
10017 # are reset later if shared libraries are not supported. Putting them
10018 # here allows them to be overridden if necessary.
10019 runpath_var=LD_RUN_PATH
10020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10021 export_dynamic_flag_spec='${wl}--export-dynamic'
10022 # ancient GNU ld didn't support --whole-archive et. al.
10023 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10024 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10026 whole_archive_flag_spec=
10028 supports_anon_versioning=no
10029 case `$LD -v 2>&1` in
10030 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10031 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10032 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10033 *\ 2.11.*) ;; # other 2.11 versions
10034 *) supports_anon_versioning=yes ;;
10037 # See if GNU ld supports shared libraries.
10040 # On AIX/PPC, the GNU linker is very broken
10041 if test "$host_cpu" != ia64; then
10045 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10046 *** to be unable to reliably create shared libraries on AIX.
10047 *** Therefore, libtool is disabling shared libraries support. If you
10048 *** really care for shared libraries, you may want to modify your PATH
10049 *** so that a non-GNU linker is found, and then restart.
10058 # see comment about AmigaOS4 .so support
10059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060 archive_expsym_cmds=''
10063 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)'
10064 hardcode_libdir_flag_spec='-L$libdir'
10065 hardcode_minus_L=yes
10071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072 allow_undefined_flag=unsupported
10073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10074 # support --undefined. This deserves some investigation. FIXME
10075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 cygwin* | mingw* | pw32* | cegcc*)
10082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10083 # as there is no search path for DLLs.
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 allow_undefined_flag=unsupported
10086 always_export_symbols=no
10087 enable_shared_with_static_runtimes=yes
10088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10092 # If the export-symbols file already is a .def file (1st line
10093 # is EXPORTS), use it as is; otherwise, prepend...
10094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10095 cp $export_symbols $output_objdir/$soname.def;
10097 echo EXPORTS > $output_objdir/$soname.def;
10098 cat $export_symbols >> $output_objdir/$soname.def;
10100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10108 hardcode_shlibpath_var=no
10109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110 export_dynamic_flag_spec='${wl}-E'
10111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10112 # Instead, shared libraries are loaded at an image base (0x10000000 by
10113 # default) and relocated if they conflict, which is a slow very memory
10114 # consuming and fragmenting process. To avoid this, we pick a random,
10115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10118 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'
10121 gnu* | linux* | tpf* | k*bsd*-gnu)
10123 if test "$host_os" = linux-dietlibc; then
10124 case $cc_basename in
10125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10129 && test "$tmp_diet" = no
10132 tmp_sharedflag='-shared'
10133 case $cc_basename,$host_cpu in
10134 pgcc*) # Portland Group C compiler
10135 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'
10136 tmp_addflag=' $pic_flag'
10138 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10139 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'
10140 tmp_addflag=' $pic_flag -Mnomain' ;;
10141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10142 tmp_addflag=' -i_dynamic' ;;
10143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10144 tmp_addflag=' -i_dynamic -nofor_main' ;;
10145 ifc* | ifort*) # Intel Fortran compiler
10146 tmp_addflag=' -nofor_main' ;;
10147 lf95*) # Lahey Fortran 8.1
10148 whole_archive_flag_spec=
10149 tmp_sharedflag='--shared' ;;
10150 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10151 tmp_sharedflag='-qmkshrobj'
10154 case `$CC -V 2>&1 | sed 5q` in
10155 *Sun\ C*) # Sun C 5.9
10156 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'
10157 compiler_needs_object=yes
10158 tmp_sharedflag='-G' ;;
10159 *Sun\ F*) # Sun Fortran 8.3
10160 tmp_sharedflag='-G' ;;
10162 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164 if test "x$supports_anon_versioning" = xyes; then
10165 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10166 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10167 echo "local: *; };" >> $output_objdir/$libname.ver~
10168 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10171 case $cc_basename in
10173 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10174 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10175 hardcode_libdir_flag_spec=
10176 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10177 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10178 if test "x$supports_anon_versioning" = xyes; then
10179 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10181 echo "local: *; };" >> $output_objdir/$libname.ver~
10182 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10193 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10202 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10206 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10207 *** create shared libraries on Solaris systems. Therefore, libtool
10208 *** is disabling shared libraries support. We urge you to upgrade GNU
10209 *** binutils to release 2.9.1 or newer. Another option is to modify
10210 *** your PATH or compiler configuration so that the native linker is
10211 *** used, and then restart.
10214 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10223 case `$LD -v 2>&1` in
10224 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10228 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10229 *** reliably create shared libraries on SCO systems. Therefore, libtool
10230 *** is disabling shared libraries support. We urge you to upgrade GNU
10231 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10232 *** your PATH or compiler configuration so that the native linker is
10233 *** used, and then restart.
10238 # For security reasons, it is highly recommended that you always
10239 # use absolute paths for naming shared libraries, and exclude the
10240 # DT_RUNPATH tag from executables and libraries. But doing so
10241 # requires that you compile everything twice, which is a pain.
10242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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'
10254 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10256 hardcode_direct=yes
10257 hardcode_shlibpath_var=no
10261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10270 if test "$ld_shlibs" = no; then
10272 hardcode_libdir_flag_spec=
10273 export_dynamic_flag_spec=
10274 whole_archive_flag_spec=
10277 # PORTME fill in a description of your system's linker (not GNU ld)
10280 allow_undefined_flag=unsupported
10281 always_export_symbols=yes
10282 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'
10283 # Note: this linker hardcodes the directories in LIBPATH if there
10284 # are no directories specified by -L.
10285 hardcode_minus_L=yes
10286 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10287 # Neither direct hardcoding nor static linking is supported with a
10289 hardcode_direct=unsupported
10294 if test "$host_cpu" = ia64; then
10295 # On IA64, the linker does run time linking by default, so we don't
10296 # have to do anything special.
10297 aix_use_runtimelinking=no
10298 exp_sym_flag='-Bexport'
10301 # If we're using GNU nm, then we don't want the "-C" option.
10302 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10303 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10304 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'
10306 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'
10308 aix_use_runtimelinking=no
10310 # Test if we are trying to use run time linking or normal
10311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10312 # need to do runtime linking.
10313 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10314 for ld_flag in $LDFLAGS; do
10315 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10316 aix_use_runtimelinking=yes
10323 exp_sym_flag='-bexport'
10324 no_entry_flag='-bnoentry'
10327 # When large executables or shared objects are built, AIX ld can
10328 # have problems creating the table of contents. If linking a library
10329 # or program results in "error TOC overflow" add -mminimal-toc to
10330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10334 hardcode_direct=yes
10335 hardcode_direct_absolute=yes
10336 hardcode_libdir_separator=':'
10337 link_all_deplibs=yes
10338 file_list_spec='${wl}-f,'
10340 if test "$GCC" = yes; then
10341 case $host_os in aix4.[012]|aix4.[012].*)
10342 # We only want to do this on AIX 4.2 and lower, the check
10343 # below for broken collect2 doesn't work under 4.3+
10344 collect2name=`${CC} -print-prog-name=collect2`
10345 if test -f "$collect2name" &&
10346 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10348 # We have reworked collect2
10351 # We have old collect2
10352 hardcode_direct=unsupported
10353 # It fails to find uninstalled libraries when the uninstalled
10354 # path is not listed in the libpath. Setting hardcode_minus_L
10355 # to unsupported forces relinking
10356 hardcode_minus_L=yes
10357 hardcode_libdir_flag_spec='-L$libdir'
10358 hardcode_libdir_separator=
10362 shared_flag='-shared'
10363 if test "$aix_use_runtimelinking" = yes; then
10364 shared_flag="$shared_flag "'${wl}-G'
10368 if test "$host_cpu" = ia64; then
10369 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10370 # chokes on -Wl,-G. The following line is correct:
10373 if test "$aix_use_runtimelinking" = yes; then
10374 shared_flag='${wl}-G'
10376 shared_flag='${wl}-bM:SRE'
10381 export_dynamic_flag_spec='${wl}-bexpall'
10382 # It seems that -bexpall does not export symbols beginning with
10383 # underscore (_), so it is better to generate a list of symbols to export.
10384 always_export_symbols=yes
10385 if test "$aix_use_runtimelinking" = yes; then
10386 # Warning - without using the other runtime loading flags (-brtl),
10387 # -berok will link without error, but may produce a broken library.
10388 allow_undefined_flag='-berok'
10389 # Determine the default libpath from the value encoded in an
10390 # empty executable.
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (ac_try="$ac_link"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_link") 2>conftest.er1
10415 grep -v '^ *+' conftest.er1 >conftest.err
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest$ac_exeext &&
10423 $as_test_x conftest$ac_exeext; then
10425 lt_aix_libpath_sed='
10426 /Import File Strings/,/^$/ {
10432 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10433 # Check for a 64-bit object if we didn't find anything.
10434 if test -z "$aix_libpath"; then
10435 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10449 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"
10451 if test "$host_cpu" = ia64; then
10452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10453 allow_undefined_flag="-z nodefs"
10454 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"
10456 # Determine the default libpath from the value encoded in an
10457 # empty executable.
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10492 lt_aix_libpath_sed='
10493 /Import File Strings/,/^$/ {
10499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10500 # Check for a 64-bit object if we didn't find anything.
10501 if test -z "$aix_libpath"; then
10502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10512 conftest$ac_exeext conftest.$ac_ext
10513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10516 # Warning - without using the other run time loading flags,
10517 # -berok will link without error, but may produce a broken library.
10518 no_undefined_flag=' ${wl}-bernotok'
10519 allow_undefined_flag=' ${wl}-berok'
10520 # Exported symbols can be pulled into shared objects from archives
10521 whole_archive_flag_spec='$convenience'
10522 archive_cmds_need_lc=yes
10523 # This is similar to how AIX traditionally builds its shared libraries.
10524 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'
10532 # see comment about AmigaOS4 .so support
10533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10534 archive_expsym_cmds=''
10537 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)'
10538 hardcode_libdir_flag_spec='-L$libdir'
10539 hardcode_minus_L=yes
10545 export_dynamic_flag_spec=-rdynamic
10548 cygwin* | mingw* | pw32* | cegcc*)
10549 # When not using gcc, we currently assume that we are using
10550 # Microsoft Visual C++.
10551 # hardcode_libdir_flag_spec is actually meaningless, as there is
10552 # no search path for DLLs.
10553 hardcode_libdir_flag_spec=' '
10554 allow_undefined_flag=unsupported
10555 # Tell ltmain to make .lib files, not .a files.
10557 # Tell ltmain to make .dll files, not .so files.
10559 # FIXME: Setting linknames here is a bad hack.
10560 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10561 # The linker will automatically build a .lib file if we build a DLL.
10562 old_archive_from_new_cmds='true'
10563 # FIXME: Should let the user specify the lib program.
10564 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10565 fix_srcfile_path='`cygpath -w "$srcfile"`'
10566 enable_shared_with_static_runtimes=yes
10569 darwin* | rhapsody*)
10572 archive_cmds_need_lc=no
10574 hardcode_automatic=yes
10575 hardcode_shlibpath_var=unsupported
10576 whole_archive_flag_spec=''
10577 link_all_deplibs=yes
10578 allow_undefined_flag="$_lt_dar_allow_undefined"
10579 case $cc_basename in
10580 ifort*) _lt_dar_can_shared=yes ;;
10581 *) _lt_dar_can_shared=$GCC ;;
10583 if test "$_lt_dar_can_shared" = "yes"; then
10584 output_verbose_link_cmd=echo
10585 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10586 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10587 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}"
10588 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}"
10597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10598 hardcode_libdir_flag_spec='-L$libdir'
10599 hardcode_shlibpath_var=no
10606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10607 # support. Future versions do this automatically, but an explicit c++rt0.o
10608 # does not break anything, and helps significantly (at the cost of a little
10611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10612 hardcode_libdir_flag_spec='-R$libdir'
10613 hardcode_direct=yes
10614 hardcode_shlibpath_var=no
10617 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10620 hardcode_direct=yes
10621 hardcode_minus_L=yes
10622 hardcode_shlibpath_var=no
10625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10626 freebsd* | dragonfly*)
10627 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10628 hardcode_libdir_flag_spec='-R$libdir'
10629 hardcode_direct=yes
10630 hardcode_shlibpath_var=no
10634 if test "$GCC" = yes; then
10635 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'
10637 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'
10639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10640 hardcode_libdir_separator=:
10641 hardcode_direct=yes
10643 # hardcode_minus_L: Not really in the search PATH,
10644 # but as the default location of the library.
10645 hardcode_minus_L=yes
10646 export_dynamic_flag_spec='${wl}-E'
10650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10651 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10655 if test "$with_gnu_ld" = no; then
10656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10657 hardcode_libdir_flag_spec_ld='+b $libdir'
10658 hardcode_libdir_separator=:
10659 hardcode_direct=yes
10660 hardcode_direct_absolute=yes
10661 export_dynamic_flag_spec='${wl}-E'
10662 # hardcode_minus_L: Not really in the search PATH,
10663 # but as the default location of the library.
10664 hardcode_minus_L=yes
10669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10672 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10678 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10684 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10687 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10690 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10694 if test "$with_gnu_ld" = no; then
10695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10696 hardcode_libdir_separator=:
10701 hardcode_shlibpath_var=no
10704 hardcode_direct=yes
10705 hardcode_direct_absolute=yes
10706 export_dynamic_flag_spec='${wl}-E'
10708 # hardcode_minus_L: Not really in the search PATH,
10709 # but as the default location of the library.
10710 hardcode_minus_L=yes
10716 irix5* | irix6* | nonstopux*)
10717 if test "$GCC" = yes; then
10718 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'
10719 # Try to use the -exported_symbol ld option, if it does not
10720 # work, assume that -exports_file does not work either and
10721 # implicitly export all symbols.
10722 save_LDFLAGS="$LDFLAGS"
10723 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10724 cat >conftest.$ac_ext <<_ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_link") 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest$ac_exeext &&
10744 $as_test_x conftest$ac_exeext; then
10745 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'
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LDFLAGS="$save_LDFLAGS"
10758 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'
10759 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'
10761 archive_cmds_need_lc='no'
10762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10763 hardcode_libdir_separator=:
10765 link_all_deplibs=yes
10769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10772 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10774 hardcode_libdir_flag_spec='-R$libdir'
10775 hardcode_direct=yes
10776 hardcode_shlibpath_var=no
10780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10781 hardcode_direct=yes
10782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10783 hardcode_libdir_separator=:
10784 hardcode_shlibpath_var=no
10791 if test -f /usr/libexec/ld.so; then
10792 hardcode_direct=yes
10793 hardcode_shlibpath_var=no
10794 hardcode_direct_absolute=yes
10795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10799 export_dynamic_flag_spec='${wl}-E'
10802 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_libdir_flag_spec='-R$libdir'
10807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10818 hardcode_libdir_flag_spec='-L$libdir'
10819 hardcode_minus_L=yes
10820 allow_undefined_flag=unsupported
10821 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'
10822 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10826 if test "$GCC" = yes; then
10827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10828 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'
10830 allow_undefined_flag=' -expect_unresolved \*'
10831 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'
10833 archive_cmds_need_lc='no'
10834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10835 hardcode_libdir_separator=:
10838 osf4* | osf5*) # as osf3* with the addition of -msym flag
10839 if test "$GCC" = yes; then
10840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10841 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'
10842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10844 allow_undefined_flag=' -expect_unresolved \*'
10845 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'
10846 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~
10847 $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'
10849 # Both c and cxx compiler support -rpath directly
10850 hardcode_libdir_flag_spec='-rpath $libdir'
10852 archive_cmds_need_lc='no'
10853 hardcode_libdir_separator=:
10857 no_undefined_flag=' -z defs'
10858 if test "$GCC" = yes; then
10860 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10862 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10864 case `$CC -V 2>&1` in
10867 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10869 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10873 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10875 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10879 hardcode_libdir_flag_spec='-R$libdir'
10880 hardcode_shlibpath_var=no
10882 solaris2.[0-5] | solaris2.[0-5].*) ;;
10884 # The compiler driver will combine and reorder linker options,
10885 # but understands `-z linker_flag'. GCC discards it without `$wl',
10886 # but is careful enough not to reorder.
10887 # Supported since Solaris 2.6 (maybe 2.5.1?)
10888 if test "$GCC" = yes; then
10889 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10891 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10895 link_all_deplibs=yes
10899 if test "x$host_vendor" = xsequent; then
10900 # Use $CC to link under sequent, because it throws in some extra .o
10901 # files that make .init and .fini sections work.
10902 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10904 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_libdir_flag_spec='-L$libdir'
10907 hardcode_direct=yes
10908 hardcode_minus_L=yes
10909 hardcode_shlibpath_var=no
10913 case $host_vendor in
10915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 hardcode_direct=yes # is this really true???
10919 ## LD is ld it makes a PLAMLIB
10920 ## CC just makes a GrossModule.
10921 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10922 reload_cmds='$CC -r -o $output$reload_objs'
10926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10930 runpath_var='LD_RUN_PATH'
10931 hardcode_shlibpath_var=no
10935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10936 hardcode_shlibpath_var=no
10937 export_dynamic_flag_spec='-Bexport'
10941 if test -d /usr/nec; then
10942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943 hardcode_shlibpath_var=no
10944 runpath_var=LD_RUN_PATH
10945 hardcode_runpath_var=yes
10950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10951 no_undefined_flag='${wl}-z,text'
10952 archive_cmds_need_lc=no
10953 hardcode_shlibpath_var=no
10954 runpath_var='LD_RUN_PATH'
10956 if test "$GCC" = yes; then
10957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965 sysv5* | sco3.2v5* | sco5v6*)
10966 # Note: We can NOT use -z defs as we might desire, because we do not
10967 # link with -lc, and that would cause any symbols used from libc to
10968 # always be unresolved, which means just about no library would
10969 # ever link correctly. If we're not using GNU ld we use -z text
10970 # though, which does catch some bad symbols but isn't as heavy-handed
10972 no_undefined_flag='${wl}-z,text'
10973 allow_undefined_flag='${wl}-z,nodefs'
10974 archive_cmds_need_lc=no
10975 hardcode_shlibpath_var=no
10976 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10977 hardcode_libdir_separator=':'
10978 link_all_deplibs=yes
10979 export_dynamic_flag_spec='${wl}-Bexport'
10980 runpath_var='LD_RUN_PATH'
10982 if test "$GCC" = yes; then
10983 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993 hardcode_libdir_flag_spec='-L$libdir'
10994 hardcode_shlibpath_var=no
11002 if test x$host_vendor = xsni; then
11004 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11005 export_dynamic_flag_spec='${wl}-Blargedynsym'
11011 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11012 echo "${ECHO_T}$ld_shlibs" >&6; }
11013 test "$ld_shlibs" = no && can_build_shared=no
11015 with_gnu_ld=$with_gnu_ld
11032 # Do we need to explicitly link libc?
11034 case "x$archive_cmds_need_lc" in
11036 # Assume -lc should be added
11037 archive_cmds_need_lc=yes
11039 if test "$enable_shared" = yes && test "$GCC" = yes; then
11040 case $archive_cmds in
11042 # FIXME: we may have to deal with multi-command sequences.
11045 # Test whether the compiler implicitly links with -lc since on some
11046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11047 # to ld, don't add -lc before -lgcc.
11048 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054 (eval $ac_compile) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } 2>conftest.err; then
11060 libobjs=conftest.$ac_objext
11062 wl=$lt_prog_compiler_wl
11063 pic_flag=$lt_prog_compiler_pic
11069 lt_save_allow_undefined_flag=$allow_undefined_flag
11070 allow_undefined_flag=
11071 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11072 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }
11077 archive_cmds_need_lc=no
11079 archive_cmds_need_lc=yes
11081 allow_undefined_flag=$lt_save_allow_undefined_flag
11083 cat conftest.err 1>&5
11086 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11087 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11250 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11251 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11253 if test "$GCC" = yes; then
11255 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11256 *) lt_awk_arg="/^libraries:/" ;;
11258 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11259 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11260 # if the path contains ";" then we assume it to be the separator
11261 # otherwise default to the standard path separator (i.e. ":") - it is
11262 # assumed that no part of a normal pathname contains ";" but that should
11263 # okay in the real world where ";" in dirpaths is itself problematic.
11264 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 # Ok, now we have the path, separated by spaces, we can step through it
11269 # and add multilib dir if necessary.
11270 lt_tmp_lt_search_path_spec=
11271 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11272 for lt_sys_path in $lt_search_path_spec; do
11273 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11276 test -d "$lt_sys_path" && \
11277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11280 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11281 BEGIN {RS=" "; FS="/|\n";} {
11284 for (lt_i = NF; lt_i > 0; lt_i--) {
11285 if ($lt_i != "" && $lt_i != ".") {
11286 if ($lt_i == "..") {
11289 if (lt_count == 0) {
11290 lt_foo="/" $lt_i lt_foo;
11297 if (lt_foo != "") { lt_freq[lt_foo]++; }
11298 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11300 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11304 library_names_spec=
11305 libname_spec='lib$name'
11309 postuninstall_cmds=
11313 shlibpath_overrides_runpath=unknown
11315 dynamic_linker="$host_os ld.so"
11316 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11317 need_lib_prefix=unknown
11318 hardcode_into_libs=no
11320 # when you set need_version to no, make sure it does not cause -set_version
11321 # flags to be left without arguments
11322 need_version=unknown
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11328 shlibpath_var=LIBPATH
11330 # AIX 3 has no versioning support, so we append a major version to the name.
11331 soname_spec='${libname}${release}${shared_ext}$major'
11338 hardcode_into_libs=yes
11339 if test "$host_cpu" = ia64; then
11340 # AIX 5 supports IA64
11341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11342 shlibpath_var=LD_LIBRARY_PATH
11344 # With GCC up to 2.95.x, collect2 would create an import file
11345 # for dependence libraries. The import file would start with
11346 # the line `#! .'. This would cause the generated library to
11347 # depend on `.', always an invalid library. This was fixed in
11348 # development snapshots of GCC prior to 3.0.
11350 aix4 | aix4.[01] | aix4.[01].*)
11351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11353 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11356 can_build_shared=no
11360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11361 # soname into executable. Probably we can add versioning support to
11362 # collect2, so additional links can be useful in future.
11363 if test "$aix_use_runtimelinking" = yes; then
11364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11365 # instead of lib<name>.a to let people know that these are not
11366 # typical AIX shared libraries.
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 # We preserve .a as extension for shared libraries through AIX4.2
11370 # and later when we are not doing run time linking.
11371 library_names_spec='${libname}${release}.a $libname.a'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11374 shlibpath_var=LIBPATH
11381 # Since July 2007 AmigaOS4 officially supports .so libraries.
11382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 library_names_spec='$libname.ixlibrary $libname.a'
11387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11388 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'
11394 library_names_spec='${libname}${shared_ext}'
11395 dynamic_linker="$host_os ld.so"
11396 shlibpath_var=LIBRARY_PATH
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11408 # the default ld.so.conf also contains /usr/contrib/lib and
11409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11410 # libtool to hard-code these into programs
11413 cygwin* | mingw* | pw32* | cegcc*)
11414 version_type=windows
11419 case $GCC,$host_os in
11420 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11421 library_names_spec='$libname.dll.a'
11422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11423 postinstall_cmds='base_file=`basename \${file}`~
11424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11425 dldir=$destdir/`dirname \$dlpath`~
11426 test -d \$dldir || mkdir -p \$dldir~
11427 $install_prog $dir/$dlname \$dldir/$dlname~
11428 chmod a+x \$dldir/$dlname~
11429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11433 dlpath=$dir/\$dldll~
11435 shlibpath_overrides_runpath=yes
11439 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11440 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11441 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11444 # MinGW DLLs use traditional 'lib' prefix
11445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11446 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11447 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11448 # It is most probably a Windows format PATH printed by
11449 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11450 # path with ; separators, and with drive letters. We can handle the
11451 # drive letters (cygwin fileutils understands them), so leave them,
11452 # especially as we might pass files found there to a mingw objdump,
11453 # which wouldn't understand a cygwinified path. Ahh.
11454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11460 # pw32 DLLs use 'pw' prefix rather than 'lib'
11461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11467 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11470 dynamic_linker='Win32 ld.exe'
11471 # FIXME: first we should search . and the directory the executable is in
11475 darwin* | rhapsody*)
11476 dynamic_linker="$host_os dyld"
11477 version_type=darwin
11480 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11481 soname_spec='${libname}${release}${major}$shared_ext'
11482 shlibpath_overrides_runpath=yes
11483 shlibpath_var=DYLD_LIBRARY_PATH
11484 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11495 soname_spec='${libname}${release}${shared_ext}$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11503 freebsd* | dragonfly*)
11504 # DragonFly does not have aout. When/if they implement a new
11505 # versioning mechanism, adjust this.
11506 if test -x /usr/bin/objformat; then
11507 objformat=`/usr/bin/objformat`
11510 freebsd[123]*) objformat=aout ;;
11511 *) objformat=elf ;;
11514 version_type=freebsd-$objformat
11515 case $version_type in
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11526 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=yes
11531 freebsd3.[01]* | freebsdelf3.[01]*)
11532 shlibpath_overrides_runpath=yes
11533 hardcode_into_libs=yes
11535 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11536 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11540 *) # from 4.6 on, and DragonFly
11541 shlibpath_overrides_runpath=yes
11542 hardcode_into_libs=yes
11551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11552 soname_spec='${libname}${release}${shared_ext}$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 hardcode_into_libs=yes
11557 hpux9* | hpux10* | hpux11*)
11558 # Give a soname corresponding to the major version so that dld.sl refuses to
11559 # link against other versions.
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.so"
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 if test "X$HPUX_IA64_MODE" = X32; then
11573 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11575 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11581 hardcode_into_libs=yes
11582 dynamic_linker="$host_os dld.sl"
11583 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11592 dynamic_linker="$host_os dld.sl"
11593 shlibpath_var=SHLIB_PATH
11594 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11599 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11600 postinstall_cmds='chmod 555 $lib'
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath=no
11612 hardcode_into_libs=yes
11615 irix5* | irix6* | nonstopux*)
11617 nonstopux*) version_type=nonstopux ;;
11619 if test "$lt_cv_prog_gnu_ld" = yes; then
11627 soname_spec='${libname}${release}${shared_ext}$major'
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11630 irix5* | nonstopux*)
11631 libsuff= shlibsuff=
11634 case $LD in # libtool.m4 will add one of these switches to LD
11635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11636 libsuff= shlibsuff= libmagic=32-bit;;
11637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11638 libsuff=32 shlibsuff=N32 libmagic=N32;;
11639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11641 *) libsuff= shlibsuff= libmagic=never-match;;
11645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11646 shlibpath_overrides_runpath=no
11647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11649 hardcode_into_libs=yes
11652 # No shared lib support for Linux oldld, aout, or coff.
11653 linux*oldld* | linux*aout* | linux*coff*)
11657 # This must be Linux ELF.
11658 linux* | k*bsd*-gnu)
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=no
11667 # Some binutils ld are patched to set DT_RUNPATH
11668 save_LDFLAGS=$LDFLAGS
11669 save_libdir=$libdir
11670 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11671 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_link") 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest$ac_exeext &&
11704 $as_test_x conftest$ac_exeext; then
11705 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11706 shlibpath_overrides_runpath=yes
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11718 LDFLAGS=$save_LDFLAGS
11719 libdir=$save_libdir
11721 # This implies no fast_install, which is unacceptable.
11722 # Some rework will be needed to allow for fast_install
11723 # before this can be enabled.
11724 hardcode_into_libs=yes
11726 # Append ld.so.conf contents to the search path
11727 if test -f /etc/ld.so.conf; then
11728 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' ' '`
11729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11732 # We used to test for /lib/ld.so.1 and disable shared libraries on
11733 # powerpc, because MkLinux only supported shared libraries with the
11734 # GNU dynamic linker. Since this was broken with cross compilers,
11735 # most powerpc-linux boxes support dynamic linking these days and
11736 # people can always --disable-shared, the test was removed, and we
11737 # assume the GNU/Linux dynamic linker is in use.
11738 dynamic_linker='GNU/Linux ld.so'
11745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11748 dynamic_linker='NetBSD (a.out) ld.so'
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 dynamic_linker='NetBSD ld.elf_so'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 shlibpath_overrides_runpath=yes
11756 hardcode_into_libs=yes
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=no
11774 hardcode_into_libs=yes
11775 dynamic_linker='ldqnx.so'
11780 sys_lib_dlsearch_path_spec="/usr/lib"
11782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11784 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11785 *) need_version=no ;;
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792 openbsd2.[89] | openbsd2.[89].*)
11793 shlibpath_overrides_runpath=no
11796 shlibpath_overrides_runpath=yes
11800 shlibpath_overrides_runpath=yes
11805 libname_spec='$name'
11808 library_names_spec='$libname${shared_ext} $libname.a'
11809 dynamic_linker='OS/2 ld.exe'
11810 shlibpath_var=LIBPATH
11813 osf3* | osf4* | osf5*)
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 shlibpath_overrides_runpath=yes
11836 hardcode_into_libs=yes
11837 # ldd complains unless libraries are executable
11838 postinstall_cmds='chmod +x $lib'
11843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11845 shlibpath_var=LD_LIBRARY_PATH
11846 shlibpath_overrides_runpath=yes
11847 if test "$with_gnu_ld" = yes; then
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11857 shlibpath_var=LD_LIBRARY_PATH
11858 case $host_vendor in
11860 shlibpath_overrides_runpath=no
11862 runpath_var=LD_RUN_PATH
11870 shlibpath_overrides_runpath=no
11871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11877 if test -d /usr/nec ;then
11879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11880 soname_spec='$libname${shared_ext}.$major'
11881 shlibpath_var=LD_LIBRARY_PATH
11885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11886 version_type=freebsd-elf
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11893 hardcode_into_libs=yes
11894 if test "$with_gnu_ld" = yes; then
11895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11904 sys_lib_dlsearch_path_spec='/usr/lib'
11908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=no
11915 hardcode_into_libs=yes
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 shlibpath_var=LD_LIBRARY_PATH
11929 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11930 echo "${ECHO_T}$dynamic_linker" >&6; }
11931 test "$dynamic_linker" = no && can_build_shared=no
11933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11934 if test "$GCC" = yes; then
11935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11938 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11939 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11941 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11942 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12031 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12032 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12034 if test -n "$hardcode_libdir_flag_spec" ||
12035 test -n "$runpath_var" ||
12036 test "X$hardcode_automatic" = "Xyes" ; then
12038 # We can hardcode non-existent directories.
12039 if test "$hardcode_direct" != no &&
12040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12041 # have to relink, otherwise we might link with an installed library
12042 # when we should be linking with a yet-to-be-installed one
12043 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12044 test "$hardcode_minus_L" != no; then
12045 # Linking always hardcodes the temporary library directory.
12046 hardcode_action=relink
12048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12049 hardcode_action=immediate
12052 # We cannot hardcode anything, or else we can only hardcode existing
12054 hardcode_action=unsupported
12056 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12057 echo "${ECHO_T}$hardcode_action" >&6; }
12059 if test "$hardcode_action" = relink ||
12060 test "$inherit_rpath" = yes; then
12061 # Fast installation is not supported
12062 enable_fast_install=no
12063 elif test "$shlibpath_overrides_runpath" = yes ||
12064 test "$enable_shared" = no; then
12065 # Fast installation is not necessary
12066 enable_fast_install=needless
12074 if test "x$enable_dlopen" != xyes; then
12075 enable_dlopen=unknown
12076 enable_dlopen_self=unknown
12077 enable_dlopen_self_static=unknown
12084 lt_cv_dlopen="load_add_on"
12086 lt_cv_dlopen_self=yes
12089 mingw* | pw32* | cegcc*)
12090 lt_cv_dlopen="LoadLibrary"
12095 lt_cv_dlopen="dlopen"
12100 # if libdl is installed we need to link against it
12101 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12102 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12103 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 ac_check_lib_save_LIBS=$LIBS
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (ac_try="$ac_link"
12132 case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_link") 2>conftest.er1
12139 grep -v '^ *+' conftest.er1 >conftest.err
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest$ac_exeext &&
12147 $as_test_x conftest$ac_exeext; then
12148 ac_cv_lib_dl_dlopen=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_lib_dl_dlopen=no
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12162 if test $ac_cv_lib_dl_dlopen = yes; then
12163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12166 lt_cv_dlopen="dyld"
12168 lt_cv_dlopen_self=yes
12175 { echo "$as_me:$LINENO: checking for shl_load" >&5
12176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12177 if test "${ac_cv_func_shl_load+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 cat >conftest.$ac_ext <<_ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12188 #define shl_load innocuous_shl_load
12190 /* System header to define __stub macros and hopefully few prototypes,
12191 which can conflict with char shl_load (); below.
12192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12193 <limits.h> exists even on freestanding compilers. */
12196 # include <limits.h>
12198 # include <assert.h>
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12210 /* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213 #if defined __stub_shl_load || defined __stub___shl_load
12220 return shl_load ();
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (ac_try="$ac_link"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_link") 2>conftest.er1
12234 grep -v '^ *+' conftest.er1 >conftest.err
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } && {
12239 test -z "$ac_c_werror_flag" ||
12240 test ! -s conftest.err
12241 } && test -s conftest$ac_exeext &&
12242 $as_test_x conftest$ac_exeext; then
12243 ac_cv_func_shl_load=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 ac_cv_func_shl_load=no
12251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12252 conftest$ac_exeext conftest.$ac_ext
12254 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12255 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12256 if test $ac_cv_func_shl_load = yes; then
12257 lt_cv_dlopen="shl_load"
12259 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12260 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12261 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 ac_check_lib_save_LIBS=$LIBS
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12283 return shl_load ();
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_link") 2>conftest.er1
12297 grep -v '^ *+' conftest.er1 >conftest.err
12299 cat conftest.err >&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } && {
12302 test -z "$ac_c_werror_flag" ||
12303 test ! -s conftest.err
12304 } && test -s conftest$ac_exeext &&
12305 $as_test_x conftest$ac_exeext; then
12306 ac_cv_lib_dld_shl_load=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_cv_lib_dld_shl_load=no
12314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12315 conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12319 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12320 if test $ac_cv_lib_dld_shl_load = yes; then
12321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12323 { echo "$as_me:$LINENO: checking for dlopen" >&5
12324 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12325 if test "${ac_cv_func_dlopen+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12336 #define dlopen innocuous_dlopen
12338 /* System header to define __stub macros and hopefully few prototypes,
12339 which can conflict with char dlopen (); below.
12340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12341 <limits.h> exists even on freestanding compilers. */
12344 # include <limits.h>
12346 # include <assert.h>
12351 /* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
12358 /* The GNU C library defines this for functions which it implements
12359 to always fail with ENOSYS. Some functions are actually named
12360 something starting with __ and the normal name is an alias. */
12361 #if defined __stub_dlopen || defined __stub___dlopen
12373 rm -f conftest.$ac_objext conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_link") 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } && {
12387 test -z "$ac_c_werror_flag" ||
12388 test ! -s conftest.err
12389 } && test -s conftest$ac_exeext &&
12390 $as_test_x conftest$ac_exeext; then
12391 ac_cv_func_dlopen=yes
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_cv_func_dlopen=no
12399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12400 conftest$ac_exeext conftest.$ac_ext
12402 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12403 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12404 if test $ac_cv_func_dlopen = yes; then
12405 lt_cv_dlopen="dlopen"
12407 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 ac_check_lib_save_LIBS=$LIBS
12414 cat >conftest.$ac_ext <<_ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12421 /* Override any GCC internal prototype to avoid an error.
12422 Use char because int might match the return type of a GCC
12423 builtin and then its argument prototype would still apply. */
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_link") 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && {
12450 test -z "$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 } && test -s conftest$ac_exeext &&
12453 $as_test_x conftest$ac_exeext; then
12454 ac_cv_lib_dl_dlopen=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_lib_dl_dlopen=no
12462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12467 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12468 if test $ac_cv_lib_dl_dlopen = yes; then
12469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12471 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12472 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12473 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-lsvld $LIBS"
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 /* Override any GCC internal prototype to avoid an error.
12486 Use char because int might match the return type of a GCC
12487 builtin and then its argument prototype would still apply. */
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && {
12514 test -z "$ac_c_werror_flag" ||
12515 test ! -s conftest.err
12516 } && test -s conftest$ac_exeext &&
12517 $as_test_x conftest$ac_exeext; then
12518 ac_cv_lib_svld_dlopen=yes
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_cv_lib_svld_dlopen=no
12526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12527 conftest$ac_exeext conftest.$ac_ext
12528 LIBS=$ac_check_lib_save_LIBS
12530 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12531 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12532 if test $ac_cv_lib_svld_dlopen = yes; then
12533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12535 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12536 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12537 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 ac_check_lib_save_LIBS=$LIBS
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12559 return dld_link ();
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest$ac_exeext &&
12581 $as_test_x conftest$ac_exeext; then
12582 ac_cv_lib_dld_dld_link=yes
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 ac_cv_lib_dld_dld_link=no
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591 conftest$ac_exeext conftest.$ac_ext
12592 LIBS=$ac_check_lib_save_LIBS
12594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12595 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12596 if test $ac_cv_lib_dld_dld_link = yes; then
12597 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12618 if test "x$lt_cv_dlopen" != xno; then
12624 case $lt_cv_dlopen in
12626 save_CPPFLAGS="$CPPFLAGS"
12627 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12629 save_LDFLAGS="$LDFLAGS"
12630 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12633 LIBS="$lt_cv_dlopen_libs $LIBS"
12635 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12636 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12637 if test "${lt_cv_dlopen_self+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 if test "$cross_compiling" = yes; then :
12641 lt_cv_dlopen_self=cross
12643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12644 lt_status=$lt_dlunknown
12645 cat > conftest.$ac_ext <<_LT_EOF
12646 #line 12646 "configure"
12647 #include "confdefs.h"
12656 # define LT_DLGLOBAL RTLD_GLOBAL
12659 # define LT_DLGLOBAL DL_GLOBAL
12661 # define LT_DLGLOBAL 0
12665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12666 find out it does not work in some platform. */
12667 #ifndef LT_DLLAZY_OR_NOW
12669 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12672 # define LT_DLLAZY_OR_NOW DL_LAZY
12675 # define LT_DLLAZY_OR_NOW RTLD_NOW
12678 # define LT_DLLAZY_OR_NOW DL_NOW
12680 # define LT_DLLAZY_OR_NOW 0
12687 void fnord() { int i=42;}
12690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12691 int status = $lt_dlunknown;
12695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12697 /* dlclose (self); */
12705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706 (eval $ac_link) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12710 (./conftest; exit; ) >&5 2>/dev/null
12712 case x$lt_status in
12713 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12714 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12715 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12718 # compilation failed
12719 lt_cv_dlopen_self=no
12726 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12727 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12729 if test "x$lt_cv_dlopen_self" = xyes; then
12730 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12731 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12732 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12733 if test "${lt_cv_dlopen_self_static+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 if test "$cross_compiling" = yes; then :
12737 lt_cv_dlopen_self_static=cross
12739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12740 lt_status=$lt_dlunknown
12741 cat > conftest.$ac_ext <<_LT_EOF
12742 #line 12742 "configure"
12743 #include "confdefs.h"
12752 # define LT_DLGLOBAL RTLD_GLOBAL
12755 # define LT_DLGLOBAL DL_GLOBAL
12757 # define LT_DLGLOBAL 0
12761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12762 find out it does not work in some platform. */
12763 #ifndef LT_DLLAZY_OR_NOW
12765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12768 # define LT_DLLAZY_OR_NOW DL_LAZY
12771 # define LT_DLLAZY_OR_NOW RTLD_NOW
12774 # define LT_DLLAZY_OR_NOW DL_NOW
12776 # define LT_DLLAZY_OR_NOW 0
12783 void fnord() { int i=42;}
12786 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12787 int status = $lt_dlunknown;
12791 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12792 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12793 /* dlclose (self); */
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12806 (./conftest; exit; ) >&5 2>/dev/null
12808 case x$lt_status in
12809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12811 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12814 # compilation failed
12815 lt_cv_dlopen_self_static=no
12822 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12823 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12826 CPPFLAGS="$save_CPPFLAGS"
12827 LDFLAGS="$save_LDFLAGS"
12832 case $lt_cv_dlopen_self in
12833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12834 *) enable_dlopen_self=unknown ;;
12837 case $lt_cv_dlopen_self_static in
12838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12839 *) enable_dlopen_self_static=unknown ;;
12861 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12862 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12863 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12866 { echo "$as_me:$LINENO: result: yes" >&5
12867 echo "${ECHO_T}yes" >&6; }
12869 # FIXME - insert some real tests, host_os isn't really good enough
12872 if test -n "$STRIP" ; then
12873 striplib="$STRIP -x"
12874 old_striplib="$STRIP -S"
12875 { echo "$as_me:$LINENO: result: yes" >&5
12876 echo "${ECHO_T}yes" >&6; }
12878 { echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6; }
12883 { echo "$as_me:$LINENO: result: no" >&5
12884 echo "${ECHO_T}no" >&6; }
12900 # Report which library types will actually be built
12901 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12902 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12903 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12904 echo "${ECHO_T}$can_build_shared" >&6; }
12906 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12907 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12908 test "$can_build_shared" = "no" && enable_shared=no
12910 # On AIX, shared libraries and static libraries use the same namespace, and
12911 # are all built from PIC.
12914 test "$enable_shared" = yes && enable_static=no
12915 if test -n "$RANLIB"; then
12916 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12917 postinstall_cmds='$RANLIB $lib'
12922 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12923 test "$enable_shared" = yes && enable_static=no
12927 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12928 echo "${ECHO_T}$enable_shared" >&6; }
12930 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12931 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12932 # Make sure either enable_shared or enable_static is yes.
12933 test "$enable_shared" = yes || enable_static=yes
12934 { echo "$as_me:$LINENO: result: $enable_static" >&5
12935 echo "${ECHO_T}$enable_static" >&6; }
12942 ac_cpp='$CPP $CPPFLAGS'
12943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12951 ac_cpp='$CXXCPP $CPPFLAGS'
12952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12956 archive_cmds_need_lc_CXX=no
12957 allow_undefined_flag_CXX=
12958 always_export_symbols_CXX=no
12959 archive_expsym_cmds_CXX=
12960 compiler_needs_object_CXX=no
12961 export_dynamic_flag_spec_CXX=
12962 hardcode_direct_CXX=no
12963 hardcode_direct_absolute_CXX=no
12964 hardcode_libdir_flag_spec_CXX=
12965 hardcode_libdir_flag_spec_ld_CXX=
12966 hardcode_libdir_separator_CXX=
12967 hardcode_minus_L_CXX=no
12968 hardcode_shlibpath_var_CXX=unsupported
12969 hardcode_automatic_CXX=no
12970 inherit_rpath_CXX=no
12972 module_expsym_cmds_CXX=
12973 link_all_deplibs_CXX=unknown
12974 old_archive_cmds_CXX=$old_archive_cmds
12975 no_undefined_flag_CXX=
12976 whole_archive_flag_spec_CXX=
12977 enable_shared_with_static_runtimes_CXX=no
12979 # Source file extension for C++ test sources.
12982 # Object file extension for compiled C++ test sources.
12986 # No sense in running all these tests if we already determined that
12987 # the CXX compiler isn't working. Some variables (like enable_shared)
12988 # are currently assumed to apply to all compilers on this platform,
12989 # and will be corrupted by setting them based on a non-working compiler.
12990 if test "$_lt_caught_CXX_error" != yes; then
12991 # Code to be used in simple compile tests
12992 lt_simple_compile_test_code="int some_variable = 0;"
12994 # Code to be used in simple link tests
12995 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12997 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13004 # If no C compiler was specified, use CC.
13007 # If no C compiler flags were specified, use CFLAGS.
13008 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13010 # Allow CC to be a program name with arguments.
13014 # save warnings/boilerplate of simple test code
13015 ac_outfile=conftest.$ac_objext
13016 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13017 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13018 _lt_compiler_boilerplate=`cat conftest.err`
13021 ac_outfile=conftest.$ac_objext
13022 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13023 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13024 _lt_linker_boilerplate=`cat conftest.err`
13028 # Allow CC to be a program name with arguments.
13033 lt_save_with_gnu_ld=$with_gnu_ld
13034 lt_save_path_LD=$lt_cv_path_LD
13035 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13036 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13038 $as_unset lt_cv_prog_gnu_ld
13040 if test -n "${lt_cv_path_LDCXX+set}"; then
13041 lt_cv_path_LD=$lt_cv_path_LDCXX
13043 $as_unset lt_cv_path_LD
13045 test -z "${LDCXX+set}" || LD=$LDCXX
13049 for cc_temp in $compiler""; do
13051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13057 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13060 if test -n "$compiler"; then
13061 # We don't want -fno-exception when compiling C++ code, so set the
13062 # no_builtin_flag separately
13063 if test "$GXX" = yes; then
13064 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13066 lt_prog_compiler_no_builtin_flag_CXX=
13069 if test "$GXX" = yes; then
13070 # Set up default GNU C++ configuration
13074 # Check whether --with-gnu-ld was given.
13075 if test "${with_gnu_ld+set}" = set; then
13076 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13082 if test "$GCC" = yes; then
13083 # Check if gcc -print-prog-name=ld gives a path.
13084 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13085 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13088 # gcc leaves a trailing carriage return which upsets mingw
13089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13094 # Accept absolute paths.
13096 re_direlt='/[^/][^/]*/\.\./'
13097 # Canonicalize the pathname of ld
13098 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13099 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13100 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13102 test -z "$LD" && LD="$ac_prog"
13105 # If it fails, then pretend we aren't using GCC.
13109 # If it is relative, then search for the first ld in PATH.
13110 with_gnu_ld=unknown
13113 elif test "$with_gnu_ld" = yes; then
13114 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13115 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13117 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13118 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13120 if test "${lt_cv_path_LD+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 if test -z "$LD"; then
13124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13125 for ac_dir in $PATH; do
13127 test -z "$ac_dir" && ac_dir=.
13128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13129 lt_cv_path_LD="$ac_dir/$ac_prog"
13130 # Check to see if the program is GNU ld. I'd rather use --version,
13131 # but apparently some variants of GNU ld only accept -v.
13132 # Break only if it was the GNU/non-GNU ld that we prefer.
13133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13134 *GNU* | *'with BFD'*)
13135 test "$with_gnu_ld" != no && break
13138 test "$with_gnu_ld" != yes && break
13145 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13149 LD="$lt_cv_path_LD"
13150 if test -n "$LD"; then
13151 { echo "$as_me:$LINENO: result: $LD" >&5
13152 echo "${ECHO_T}$LD" >&6; }
13154 { echo "$as_me:$LINENO: result: no" >&5
13155 echo "${ECHO_T}no" >&6; }
13157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13159 { (exit 1); exit 1; }; }
13160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13162 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13166 case `$LD -v 2>&1 </dev/null` in
13167 *GNU* | *'with BFD'*)
13168 lt_cv_prog_gnu_ld=yes
13171 lt_cv_prog_gnu_ld=no
13175 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13176 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13177 with_gnu_ld=$lt_cv_prog_gnu_ld
13185 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13186 # archiving commands below assume that GNU ld is being used.
13187 if test "$with_gnu_ld" = yes; then
13188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 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'
13191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13194 # If archive_cmds runs LD, not CC, wlarc should be empty
13195 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13196 # investigate it a little bit more. (MM)
13199 # ancient GNU ld didn't support --whole-archive et. al.
13200 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13201 $GREP 'no-whole-archive' > /dev/null; then
13202 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13204 whole_archive_flag_spec_CXX=
13210 # A generic and very simple default shared library creation
13211 # command for GNU C++ for the case where it uses the native
13212 # linker, instead of GNU ld. If possible, this setting should
13213 # overridden to take advantage of the native linker features on
13214 # the platform it is being used on.
13215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13218 # Commands to make compiler produce verbose output that lists
13219 # what "hidden" libraries, object files and flags are used when
13220 # linking a shared library.
13221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13229 # PORTME: fill in a description of your system's C++ link characteristics
13230 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13231 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13235 # FIXME: insert proper C++ library support
13239 if test "$host_cpu" = ia64; then
13240 # On IA64, the linker does run time linking by default, so we don't
13241 # have to do anything special.
13242 aix_use_runtimelinking=no
13243 exp_sym_flag='-Bexport'
13246 aix_use_runtimelinking=no
13248 # Test if we are trying to use run time linking or normal
13249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13250 # need to do runtime linking.
13251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13252 for ld_flag in $LDFLAGS; do
13255 aix_use_runtimelinking=yes
13263 exp_sym_flag='-bexport'
13264 no_entry_flag='-bnoentry'
13267 # When large executables or shared objects are built, AIX ld can
13268 # have problems creating the table of contents. If linking a library
13269 # or program results in "error TOC overflow" add -mminimal-toc to
13270 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13271 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13273 archive_cmds_CXX=''
13274 hardcode_direct_CXX=yes
13275 hardcode_direct_absolute_CXX=yes
13276 hardcode_libdir_separator_CXX=':'
13277 link_all_deplibs_CXX=yes
13278 file_list_spec_CXX='${wl}-f,'
13280 if test "$GXX" = yes; then
13281 case $host_os in aix4.[012]|aix4.[012].*)
13282 # We only want to do this on AIX 4.2 and lower, the check
13283 # below for broken collect2 doesn't work under 4.3+
13284 collect2name=`${CC} -print-prog-name=collect2`
13285 if test -f "$collect2name" &&
13286 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13288 # We have reworked collect2
13291 # We have old collect2
13292 hardcode_direct_CXX=unsupported
13293 # It fails to find uninstalled libraries when the uninstalled
13294 # path is not listed in the libpath. Setting hardcode_minus_L
13295 # to unsupported forces relinking
13296 hardcode_minus_L_CXX=yes
13297 hardcode_libdir_flag_spec_CXX='-L$libdir'
13298 hardcode_libdir_separator_CXX=
13301 shared_flag='-shared'
13302 if test "$aix_use_runtimelinking" = yes; then
13303 shared_flag="$shared_flag "'${wl}-G'
13307 if test "$host_cpu" = ia64; then
13308 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13309 # chokes on -Wl,-G. The following line is correct:
13312 if test "$aix_use_runtimelinking" = yes; then
13313 shared_flag='${wl}-G'
13315 shared_flag='${wl}-bM:SRE'
13320 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13321 # It seems that -bexpall does not export symbols beginning with
13322 # underscore (_), so it is better to generate a list of symbols to
13324 always_export_symbols_CXX=yes
13325 if test "$aix_use_runtimelinking" = yes; then
13326 # Warning - without using the other runtime loading flags (-brtl),
13327 # -berok will link without error, but may produce a broken library.
13328 allow_undefined_flag_CXX='-berok'
13329 # Determine the default libpath from the value encoded in an empty
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_link") 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_cxx_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext &&
13363 $as_test_x conftest$ac_exeext; then
13365 lt_aix_libpath_sed='
13366 /Import File Strings/,/^$/ {
13372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13373 # Check for a 64-bit object if we didn't find anything.
13374 if test -z "$aix_libpath"; then
13375 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13385 conftest$ac_exeext conftest.$ac_ext
13386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13390 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"
13392 if test "$host_cpu" = ia64; then
13393 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13394 allow_undefined_flag_CXX="-z nodefs"
13395 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"
13397 # Determine the default libpath from the value encoded in an
13398 # empty executable.
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_cxx_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest$ac_exeext &&
13431 $as_test_x conftest$ac_exeext; then
13433 lt_aix_libpath_sed='
13434 /Import File Strings/,/^$/ {
13440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13441 # Check for a 64-bit object if we didn't find anything.
13442 if test -z "$aix_libpath"; then
13443 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13453 conftest$ac_exeext conftest.$ac_ext
13454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13456 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13457 # Warning - without using the other run time loading flags,
13458 # -berok will link without error, but may produce a broken library.
13459 no_undefined_flag_CXX=' ${wl}-bernotok'
13460 allow_undefined_flag_CXX=' ${wl}-berok'
13461 # Exported symbols can be pulled into shared objects from archives
13462 whole_archive_flag_spec_CXX='$convenience'
13463 archive_cmds_need_lc_CXX=yes
13464 # This is similar to how AIX traditionally builds its shared
13466 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'
13472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13473 allow_undefined_flag_CXX=unsupported
13474 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13475 # support --undefined. This deserves some investigation. FIXME
13476 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13483 case $cc_basename in
13485 # FIXME: insert proper C++ library support
13491 cygwin* | mingw* | pw32* | cegcc*)
13492 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13493 # as there is no search path for DLLs.
13494 hardcode_libdir_flag_spec_CXX='-L$libdir'
13495 allow_undefined_flag_CXX=unsupported
13496 always_export_symbols_CXX=no
13497 enable_shared_with_static_runtimes_CXX=yes
13499 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13500 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'
13501 # If the export-symbols file already is a .def file (1st line
13502 # is EXPORTS), use it as is; otherwise, prepend...
13503 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13504 cp $export_symbols $output_objdir/$soname.def;
13506 echo EXPORTS > $output_objdir/$soname.def;
13507 cat $export_symbols >> $output_objdir/$soname.def;
13509 $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'
13514 darwin* | rhapsody*)
13517 archive_cmds_need_lc_CXX=no
13518 hardcode_direct_CXX=no
13519 hardcode_automatic_CXX=yes
13520 hardcode_shlibpath_var_CXX=unsupported
13521 whole_archive_flag_spec_CXX=''
13522 link_all_deplibs_CXX=yes
13523 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13524 case $cc_basename in
13525 ifort*) _lt_dar_can_shared=yes ;;
13526 *) _lt_dar_can_shared=$GCC ;;
13528 if test "$_lt_dar_can_shared" = "yes"; then
13529 output_verbose_link_cmd=echo
13530 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}"
13531 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13532 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}"
13533 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}"
13534 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13535 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}"
13536 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}"
13546 case $cc_basename in
13548 # FIXME: insert proper C++ library support
13552 # Green Hills C++ Compiler
13553 # FIXME: insert proper C++ library support
13557 # FIXME: insert proper C++ library support
13564 # C++ shared libraries reported to be fairly broken before
13570 archive_cmds_need_lc_CXX=no
13573 freebsd* | dragonfly*)
13574 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13583 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13584 hardcode_libdir_separator_CXX=:
13585 export_dynamic_flag_spec_CXX='${wl}-E'
13586 hardcode_direct_CXX=yes
13587 hardcode_minus_L_CXX=yes # Not in the search PATH,
13588 # but as the default
13589 # location of the library.
13591 case $cc_basename in
13593 # FIXME: insert proper C++ library support
13597 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'
13598 # Commands to make compiler produce verbose output that lists
13599 # what "hidden" libraries, object files and flags are used when
13600 # linking a shared library.
13602 # There doesn't appear to be a way to prevent this compiler from
13603 # explicitly linking system object files so we need to strip them
13604 # from the output so that they don't get included in the library
13606 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'
13609 if test "$GXX" = yes; then
13610 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'
13612 # FIXME: insert proper C++ library support
13620 if test $with_gnu_ld = no; then
13621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13622 hardcode_libdir_separator_CXX=:
13628 export_dynamic_flag_spec_CXX='${wl}-E'
13634 hardcode_direct_CXX=no
13635 hardcode_shlibpath_var_CXX=no
13638 hardcode_direct_CXX=yes
13639 hardcode_direct_absolute_CXX=yes
13640 hardcode_minus_L_CXX=yes # Not in the search PATH,
13641 # but as the default
13642 # location of the library.
13646 case $cc_basename in
13648 # FIXME: insert proper C++ library support
13654 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13657 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13660 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13663 # Commands to make compiler produce verbose output that lists
13664 # what "hidden" libraries, object files and flags are used when
13665 # linking a shared library.
13667 # There doesn't appear to be a way to prevent this compiler from
13668 # explicitly linking system object files so we need to strip them
13669 # from the output so that they don't get included in the library
13671 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'
13674 if test "$GXX" = yes; then
13675 if test $with_gnu_ld = no; then
13678 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13681 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13684 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'
13689 # FIXME: insert proper C++ library support
13697 hardcode_direct_CXX=no
13698 hardcode_shlibpath_var_CXX=no
13699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13700 export_dynamic_flag_spec_CXX='${wl}-E'
13701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13702 # Instead, shared libraries are loaded at an image base (0x10000000 by
13703 # default) and relocated if they conflict, which is a slow very memory
13704 # consuming and fragmenting process. To avoid this, we pick a random,
13705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13706 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13707 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'
13708 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'
13711 case $cc_basename in
13714 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'
13716 # Archives containing C++ object files must be created using
13717 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13718 # necessary to make sure instantiated templates are included
13720 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13723 if test "$GXX" = yes; then
13724 if test "$with_gnu_ld" = no; then
13725 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'
13727 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'
13730 link_all_deplibs_CXX=yes
13733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13734 hardcode_libdir_separator_CXX=:
13735 inherit_rpath_CXX=yes
13738 linux* | k*bsd*-gnu)
13739 case $cc_basename in
13741 # Kuck and Associates, Inc. (KAI) C++ Compiler
13743 # KCC will only create a shared library if the output file
13744 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13745 # to its proper name (with version) after linking.
13746 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'
13747 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'
13748 # Commands to make compiler produce verbose output that lists
13749 # what "hidden" libraries, object files and flags are used when
13750 # linking a shared library.
13752 # There doesn't appear to be a way to prevent this compiler from
13753 # explicitly linking system object files so we need to strip them
13754 # from the output so that they don't get included in the library
13756 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'
13758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13761 # Archives containing C++ object files must be created using
13762 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13763 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13768 # version 8.0 and above of icpc choke on multiply defined symbols
13769 # if we add $predep_objects and $postdep_objects, however 7.1 and
13770 # earlier do not add the objects themselves.
13771 case `$CC -V 2>&1` in
13773 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13774 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'
13776 *) # Version 8.0 or newer
13779 ia64*) tmp_idyn=' -i_dynamic';;
13781 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13782 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'
13785 archive_cmds_need_lc_CXX=no
13786 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13788 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13791 # Portland Group C++ compiler
13793 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13794 prelink_cmds_CXX='tpldir=Template.dir~
13796 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13797 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13798 old_archive_cmds_CXX='tpldir=Template.dir~
13800 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13801 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13803 archive_cmds_CXX='tpldir=Template.dir~
13805 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13806 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13807 archive_expsym_cmds_CXX='tpldir=Template.dir~
13809 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13810 $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'
13812 *) # Version 6 will use weak symbols
13813 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13814 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'
13818 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13820 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'
13824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825 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'
13827 runpath_var=LD_RUN_PATH
13828 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13829 hardcode_libdir_separator_CXX=:
13831 # Commands to make compiler produce verbose output that lists
13832 # what "hidden" libraries, object files and flags are used when
13833 # linking a shared library.
13835 # There doesn't appear to be a way to prevent this compiler from
13836 # explicitly linking system object files so we need to strip them
13837 # from the output so that they don't get included in the library
13839 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'
13842 # IBM XL 8.0 on PPC, with GNU ld
13843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13845 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13846 if test "x$supports_anon_versioning" = xyes; then
13847 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13848 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13849 echo "local: *; };" >> $output_objdir/$libname.ver~
13850 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13854 case `$CC -V 2>&1 | sed 5q` in
13857 no_undefined_flag_CXX=' -zdefs'
13858 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13859 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'
13860 hardcode_libdir_flag_spec_CXX='-R$libdir'
13861 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'
13862 compiler_needs_object_CXX=yes
13864 # Not sure whether something based on
13865 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13867 output_verbose_link_cmd='echo'
13869 # Archives containing C++ object files must be created using
13870 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13871 # necessary to make sure instantiated templates are included
13873 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13881 # FIXME: insert proper C++ library support
13886 # FIXME: insert proper C++ library support
13891 case $cc_basename in
13893 # FIXME: insert proper C++ library support
13897 # FIXME: insert proper C++ library support
13904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13905 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13907 hardcode_libdir_flag_spec_CXX='-R$libdir'
13908 hardcode_direct_CXX=yes
13909 hardcode_shlibpath_var_CXX=no
13911 # Workaround some broken pre-1.5 toolchains
13912 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13920 # C++ shared libraries are fairly broken
13925 if test -f /usr/libexec/ld.so; then
13926 hardcode_direct_CXX=yes
13927 hardcode_shlibpath_var_CXX=no
13928 hardcode_direct_absolute_CXX=yes
13929 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13932 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13933 export_dynamic_flag_spec_CXX='${wl}-E'
13934 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13936 output_verbose_link_cmd=echo
13942 osf3* | osf4* | osf5*)
13943 case $cc_basename in
13945 # Kuck and Associates, Inc. (KAI) C++ Compiler
13947 # KCC will only create a shared library if the output file
13948 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13949 # to its proper name (with version) after linking.
13950 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'
13952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13953 hardcode_libdir_separator_CXX=:
13955 # Archives containing C++ object files must be created using
13956 # the KAI C++ compiler.
13958 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13959 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13963 # Rational C++ 2.4.1
13964 # FIXME: insert proper C++ library support
13970 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13971 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'
13972 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13975 allow_undefined_flag_CXX=' -expect_unresolved \*'
13976 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'
13977 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13978 echo "-hidden">> $lib.exp~
13979 $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~
13981 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13985 hardcode_libdir_separator_CXX=:
13987 # Commands to make compiler produce verbose output that lists
13988 # what "hidden" libraries, object files and flags are used when
13989 # linking a shared library.
13991 # There doesn't appear to be a way to prevent this compiler from
13992 # explicitly linking system object files so we need to strip them
13993 # from the output so that they don't get included in the library
13995 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'
13998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13999 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14002 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'
14005 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'
14009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14010 hardcode_libdir_separator_CXX=:
14012 # Commands to make compiler produce verbose output that lists
14013 # what "hidden" libraries, object files and flags are used when
14014 # linking a shared library.
14015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14018 # FIXME: insert proper C++ library support
14026 # FIXME: insert proper C++ library support
14031 case $cc_basename in
14034 # FIXME: insert proper C++ library support
14039 # FIXME: insert proper C++ library support
14043 # FIXME: insert proper C++ library support
14050 case $cc_basename in
14052 # Sun C++ 4.2, 5.x and Centerline C++
14053 archive_cmds_need_lc_CXX=yes
14054 no_undefined_flag_CXX=' -zdefs'
14055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14056 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14057 $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'
14059 hardcode_libdir_flag_spec_CXX='-R$libdir'
14060 hardcode_shlibpath_var_CXX=no
14062 solaris2.[0-5] | solaris2.[0-5].*) ;;
14064 # The compiler driver will combine and reorder linker options,
14065 # but understands `-z linker_flag'.
14066 # Supported since Solaris 2.6 (maybe 2.5.1?)
14067 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14070 link_all_deplibs_CXX=yes
14072 output_verbose_link_cmd='echo'
14074 # Archives containing C++ object files must be created using
14075 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14076 # necessary to make sure instantiated templates are included
14078 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14081 # Green Hills C++ Compiler
14082 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14084 # The C++ compiler must be used to create the archive.
14085 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14088 # GNU C++ compiler with Solaris linker
14089 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14090 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14091 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14092 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14096 # Commands to make compiler produce verbose output that lists
14097 # what "hidden" libraries, object files and flags are used when
14098 # linking a shared library.
14099 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14101 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14103 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
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 -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14107 # Commands to make compiler produce verbose output that lists
14108 # what "hidden" libraries, object files and flags are used when
14109 # linking a shared library.
14110 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14113 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14115 solaris2.[0-5] | solaris2.[0-5].*) ;;
14117 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14125 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14126 no_undefined_flag_CXX='${wl}-z,text'
14127 archive_cmds_need_lc_CXX=no
14128 hardcode_shlibpath_var_CXX=no
14129 runpath_var='LD_RUN_PATH'
14131 case $cc_basename in
14133 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14134 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14143 sysv5* | sco3.2v5* | sco5v6*)
14144 # Note: We can NOT use -z defs as we might desire, because we do not
14145 # link with -lc, and that would cause any symbols used from libc to
14146 # always be unresolved, which means just about no library would
14147 # ever link correctly. If we're not using GNU ld we use -z text
14148 # though, which does catch some bad symbols but isn't as heavy-handed
14150 no_undefined_flag_CXX='${wl}-z,text'
14151 allow_undefined_flag_CXX='${wl}-z,nodefs'
14152 archive_cmds_need_lc_CXX=no
14153 hardcode_shlibpath_var_CXX=no
14154 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14155 hardcode_libdir_separator_CXX=':'
14156 link_all_deplibs_CXX=yes
14157 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14158 runpath_var='LD_RUN_PATH'
14160 case $cc_basename in
14162 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14163 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14167 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14173 case $cc_basename in
14175 # NonStop-UX NCC 3.20
14176 # FIXME: insert proper C++ library support
14180 # FIXME: insert proper C++ library support
14187 # FIXME: insert proper C++ library support
14192 # FIXME: insert proper C++ library support
14197 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14198 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14199 test "$ld_shlibs_CXX" = no && can_build_shared=no
14205 ## There is no encapsulation within the following macros, do not change
14206 ## the running order or otherwise move them around unless you know exactly
14207 ## what you are doing...
14208 # Dependencies to place before and after the object being linked:
14209 predep_objects_CXX=
14210 postdep_objects_CXX=
14213 compiler_lib_search_path_CXX=
14215 cat > conftest.$ac_ext <<_LT_EOF
14219 Foo (void) { a = 0; }
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; then
14230 # Parse the compiler output and extract the necessary
14231 # objects, libraries and library flags.
14233 # Sentinel used to keep track of whether or not we are before
14234 # the conftest object file.
14235 pre_test_object_deps_done=no
14237 for p in `eval "$output_verbose_link_cmd"`; do
14241 # Some compilers place space between "-{L,R}" and the path.
14242 # Remove the space.
14243 if test $p = "-L" ||
14244 test $p = "-R"; then
14251 if test "$pre_test_object_deps_done" = no; then
14254 # Internal compiler library paths should come after those
14255 # provided the user. The postdeps already come after the
14256 # user supplied libs so there is no need to process them.
14257 if test -z "$compiler_lib_search_path_CXX"; then
14258 compiler_lib_search_path_CXX="${prev}${p}"
14260 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14263 # The "-l" case would never come before the object being
14264 # linked, so don't bother handling this case.
14267 if test -z "$postdeps_CXX"; then
14268 postdeps_CXX="${prev}${p}"
14270 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14276 # This assumes that the test object file only shows up
14277 # once in the compiler output.
14278 if test "$p" = "conftest.$objext"; then
14279 pre_test_object_deps_done=yes
14283 if test "$pre_test_object_deps_done" = no; then
14284 if test -z "$predep_objects_CXX"; then
14285 predep_objects_CXX="$p"
14287 predep_objects_CXX="$predep_objects_CXX $p"
14290 if test -z "$postdep_objects_CXX"; then
14291 postdep_objects_CXX="$p"
14293 postdep_objects_CXX="$postdep_objects_CXX $p"
14298 *) ;; # Ignore the rest.
14306 echo "libtool.m4: error: problem compiling CXX test program"
14309 $RM -f confest.$objext
14311 # PORTME: override above test on systems where it is broken
14314 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14315 # hack all around it, let's just trust "g++" to DTRT.
14316 predep_objects_CXX=
14317 postdep_objects_CXX=
14322 case `$CC -V 2>&1 | sed 5q` in
14326 # The more standards-conforming stlport4 library is
14327 # incompatible with the Cstd library. Avoid specifying
14328 # it if it's in CXXFLAGS. Ignore libCrun as
14329 # -library=stlport4 depends on it.
14330 case " $CXX $CXXFLAGS " in
14331 *" -library=stlport4 "*)
14332 solaris_use_stlport4=yes
14336 if test "$solaris_use_stlport4" != yes; then
14337 postdeps_CXX='-library=Cstd -library=Crun'
14344 case $cc_basename in
14346 # The more standards-conforming stlport4 library is
14347 # incompatible with the Cstd library. Avoid specifying
14348 # it if it's in CXXFLAGS. Ignore libCrun as
14349 # -library=stlport4 depends on it.
14350 case " $CXX $CXXFLAGS " in
14351 *" -library=stlport4 "*)
14352 solaris_use_stlport4=yes
14356 # Adding this requires a known-good setup of shared libraries for
14357 # Sun compiler versions before 5.6, else PIC objects from an old
14358 # archive will be linked into the output, leading to subtle bugs.
14359 if test "$solaris_use_stlport4" != yes; then
14360 postdeps_CXX='-library=Cstd -library=Crun'
14368 case " $postdeps_CXX " in
14369 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14371 compiler_lib_search_dirs_CXX=
14372 if test -n "${compiler_lib_search_path_CXX}"; then
14373 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14406 lt_prog_compiler_wl_CXX=
14407 lt_prog_compiler_pic_CXX=
14408 lt_prog_compiler_static_CXX=
14410 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14411 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14413 # C++ specific cases for pic, static, wl, etc.
14414 if test "$GXX" = yes; then
14415 lt_prog_compiler_wl_CXX='-Wl,'
14416 lt_prog_compiler_static_CXX='-static'
14420 # All AIX code is PIC.
14421 if test "$host_cpu" = ia64; then
14422 # AIX 5 now supports IA64 processor
14423 lt_prog_compiler_static_CXX='-Bstatic'
14430 # see comment about AmigaOS4 .so support
14431 lt_prog_compiler_pic_CXX='-fPIC'
14434 # FIXME: we need at least 68020 code to build shared libraries, but
14435 # adding the `-m68020' flag to GCC prevents building anything better,
14437 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14442 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14443 # PIC is the default for these OSes.
14445 mingw* | cygwin* | os2* | pw32* | cegcc*)
14446 # This hack is so that the source file can tell whether it is being
14447 # built for inclusion in a dll (and should export symbols for example).
14448 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14449 # (--disable-auto-import) libraries
14450 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14452 darwin* | rhapsody*)
14453 # PIC is the default on this platform
14454 # Common symbols not allowed in MH_DYLIB files
14455 lt_prog_compiler_pic_CXX='-fno-common'
14458 # DJGPP does not support shared libraries at all
14459 lt_prog_compiler_pic_CXX=
14462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14463 # Instead, we relocate shared libraries at runtime.
14466 if test -d /usr/nec; then
14467 lt_prog_compiler_pic_CXX=-Kconform_pic
14471 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14472 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14473 # sets the default TLS model and affects inlining.
14478 lt_prog_compiler_pic_CXX='-fPIC'
14483 # QNX uses GNU C++, but need to define -shared option too, otherwise
14484 # it will coredump.
14485 lt_prog_compiler_pic_CXX='-fPIC -shared'
14488 lt_prog_compiler_pic_CXX='-fPIC'
14494 # All AIX code is PIC.
14495 if test "$host_cpu" = ia64; then
14496 # AIX 5 now supports IA64 processor
14497 lt_prog_compiler_static_CXX='-Bstatic'
14499 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14503 case $cc_basename in
14505 # Green Hills C++ Compiler
14506 # _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"
14511 case $cc_basename in
14513 lt_prog_compiler_pic_CXX='-KPIC'
14516 # Green Hills C++ Compiler
14517 lt_prog_compiler_pic_CXX='-pic'
14523 freebsd* | dragonfly*)
14524 # FreeBSD uses GNU C++
14526 hpux9* | hpux10* | hpux11*)
14527 case $cc_basename in
14529 lt_prog_compiler_wl_CXX='-Wl,'
14530 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14531 if test "$host_cpu" != ia64; then
14532 lt_prog_compiler_pic_CXX='+Z'
14536 lt_prog_compiler_wl_CXX='-Wl,'
14537 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14543 lt_prog_compiler_pic_CXX='+Z'
14552 # This is c89, which is MS Visual C++ (no shared libs)
14553 # Anyone wants to do a port?
14555 irix5* | irix6* | nonstopux*)
14556 case $cc_basename in
14558 lt_prog_compiler_wl_CXX='-Wl,'
14559 lt_prog_compiler_static_CXX='-non_shared'
14560 # CC pic flag -KPIC is the default.
14566 linux* | k*bsd*-gnu)
14567 case $cc_basename in
14570 lt_prog_compiler_wl_CXX='--backend -Wl,'
14571 lt_prog_compiler_pic_CXX='-fPIC'
14574 # old Intel C++ for x86_64 which still supported -KPIC.
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_pic_CXX='-KPIC'
14577 lt_prog_compiler_static_CXX='-static'
14580 # Intel C++, used to be incompatible with GCC.
14581 # ICC 10 doesn't accept -KPIC any more.
14582 lt_prog_compiler_wl_CXX='-Wl,'
14583 lt_prog_compiler_pic_CXX='-fPIC'
14584 lt_prog_compiler_static_CXX='-static'
14587 # Portland Group C++ compiler
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_pic_CXX='-fpic'
14590 lt_prog_compiler_static_CXX='-Bstatic'
14594 # Make sure the PIC flag is empty. It appears that all Alpha
14595 # Linux and Compaq Tru64 Unix objects are PIC.
14596 lt_prog_compiler_pic_CXX=
14597 lt_prog_compiler_static_CXX='-non_shared'
14600 # IBM XL 8.0 on PPC
14601 lt_prog_compiler_wl_CXX='-Wl,'
14602 lt_prog_compiler_pic_CXX='-qpic'
14603 lt_prog_compiler_static_CXX='-qstaticlink'
14606 case `$CC -V 2>&1 | sed 5q` in
14609 lt_prog_compiler_pic_CXX='-KPIC'
14610 lt_prog_compiler_static_CXX='-Bstatic'
14611 lt_prog_compiler_wl_CXX='-Qoption ld '
14622 case $cc_basename in
14624 lt_prog_compiler_pic_CXX='-W c,exportall'
14633 # QNX uses GNU C++, but need to define -shared option too, otherwise
14634 # it will coredump.
14635 lt_prog_compiler_pic_CXX='-fPIC -shared'
14637 osf3* | osf4* | osf5*)
14638 case $cc_basename in
14640 lt_prog_compiler_wl_CXX='--backend -Wl,'
14643 # Rational C++ 2.4.1
14644 lt_prog_compiler_pic_CXX='-pic'
14647 # Digital/Compaq C++
14648 lt_prog_compiler_wl_CXX='-Wl,'
14649 # Make sure the PIC flag is empty. It appears that all Alpha
14650 # Linux and Compaq Tru64 Unix objects are PIC.
14651 lt_prog_compiler_pic_CXX=
14652 lt_prog_compiler_static_CXX='-non_shared'
14661 case $cc_basename in
14663 # Sun C++ 4.2, 5.x and Centerline C++
14664 lt_prog_compiler_pic_CXX='-KPIC'
14665 lt_prog_compiler_static_CXX='-Bstatic'
14666 lt_prog_compiler_wl_CXX='-Qoption ld '
14669 # Green Hills C++ Compiler
14670 lt_prog_compiler_pic_CXX='-PIC'
14677 case $cc_basename in
14680 lt_prog_compiler_pic_CXX='-pic'
14681 lt_prog_compiler_static_CXX='-Bstatic'
14685 lt_prog_compiler_pic_CXX='-pic'
14691 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14692 case $cc_basename in
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 lt_prog_compiler_pic_CXX='-KPIC'
14696 lt_prog_compiler_static_CXX='-Bstatic'
14701 case $cc_basename in
14703 # NonStop-UX NCC 3.20
14704 lt_prog_compiler_pic_CXX='-KPIC'
14713 lt_prog_compiler_can_build_shared_CXX=no
14719 # For platforms which do not support PIC, -DPIC is meaningless:
14721 lt_prog_compiler_pic_CXX=
14724 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14727 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14728 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14733 # Check to make sure the PIC flag actually works.
14735 if test -n "$lt_prog_compiler_pic_CXX"; then
14736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14738 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 lt_cv_prog_compiler_pic_works_CXX=no
14742 ac_outfile=conftest.$ac_objext
14743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14745 # Insert the option either (1) after the last *FLAGS variable, or
14746 # (2) before a word containing "conftest.", or (3) at the end.
14747 # Note that $ac_compile itself does not contain backslashes and begins
14748 # with a dollar sign (not a hyphen), so the echo should work correctly.
14749 # The option is referenced via a variable to avoid confusing sed.
14750 lt_compile=`echo "$ac_compile" | $SED \
14751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753 -e 's:$: $lt_compiler_flag:'`
14754 (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755 (eval "$lt_compile" 2>conftest.err)
14757 cat conftest.err >&5
14758 echo "$as_me:14758: \$? = $ac_status" >&5
14759 if (exit $ac_status) && test -s "$ac_outfile"; then
14760 # The compiler can only warn and ignore the option if not recognized
14761 # So say no if there are warnings other than the usual output.
14762 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14765 lt_cv_prog_compiler_pic_works_CXX=yes
14771 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14772 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14774 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14775 case $lt_prog_compiler_pic_CXX in
14777 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14780 lt_prog_compiler_pic_CXX=
14781 lt_prog_compiler_can_build_shared_CXX=no
14789 # Check to make sure the static flag actually works.
14791 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14792 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14793 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14794 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 lt_cv_prog_compiler_static_works_CXX=no
14798 save_LDFLAGS="$LDFLAGS"
14799 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14802 # The linker can only warn and ignore the option if not recognized
14803 # So say no if there are warnings
14804 if test -s conftest.err; then
14805 # Append any errors to the config.log.
14806 cat conftest.err 1>&5
14807 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14809 if diff conftest.exp conftest.er2 >/dev/null; then
14810 lt_cv_prog_compiler_static_works_CXX=yes
14813 lt_cv_prog_compiler_static_works_CXX=yes
14817 LDFLAGS="$save_LDFLAGS"
14820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14821 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14823 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14826 lt_prog_compiler_static_CXX=
14832 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14833 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 lt_cv_prog_compiler_c_o_CXX=no
14838 $RM -r conftest 2>/dev/null
14842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14844 lt_compiler_flag="-o out/conftest2.$ac_objext"
14845 # Insert the option either (1) after the last *FLAGS variable, or
14846 # (2) before a word containing "conftest.", or (3) at the end.
14847 # Note that $ac_compile itself does not contain backslashes and begins
14848 # with a dollar sign (not a hyphen), so the echo should work correctly.
14849 lt_compile=`echo "$ac_compile" | $SED \
14850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852 -e 's:$: $lt_compiler_flag:'`
14853 (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14854 (eval "$lt_compile" 2>out/conftest.err)
14856 cat out/conftest.err >&5
14857 echo "$as_me:14857: \$? = $ac_status" >&5
14858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14860 # The compiler can only warn and ignore the option if not recognized
14861 # So say no if there are warnings
14862 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14865 lt_cv_prog_compiler_c_o_CXX=yes
14870 # SGI C++ compiler will create directory out/ii_files/ for
14871 # template instantiation
14872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14873 $RM out/* && rmdir out
14879 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14880 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14884 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14885 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 lt_cv_prog_compiler_c_o_CXX=no
14890 $RM -r conftest 2>/dev/null
14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14896 lt_compiler_flag="-o out/conftest2.$ac_objext"
14897 # Insert the option either (1) after the last *FLAGS variable, or
14898 # (2) before a word containing "conftest.", or (3) at the end.
14899 # Note that $ac_compile itself does not contain backslashes and begins
14900 # with a dollar sign (not a hyphen), so the echo should work correctly.
14901 lt_compile=`echo "$ac_compile" | $SED \
14902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904 -e 's:$: $lt_compiler_flag:'`
14905 (eval echo "\"\$as_me:14905: $lt_compile\"" >&5)
14906 (eval "$lt_compile" 2>out/conftest.err)
14908 cat out/conftest.err >&5
14909 echo "$as_me:14909: \$? = $ac_status" >&5
14910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14912 # The compiler can only warn and ignore the option if not recognized
14913 # So say no if there are warnings
14914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917 lt_cv_prog_compiler_c_o_CXX=yes
14922 # SGI C++ compiler will create directory out/ii_files/ for
14923 # template instantiation
14924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925 $RM out/* && rmdir out
14931 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14932 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14937 hard_links="nottested"
14938 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14939 # do not overwrite the value of need_locks provided by the user
14940 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14941 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14944 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14946 ln conftest.a conftest.b 2>&5 || hard_links=no
14947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14948 { echo "$as_me:$LINENO: result: $hard_links" >&5
14949 echo "${ECHO_T}$hard_links" >&6; }
14950 if test "$hard_links" = no; then
14951 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14952 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14961 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14962 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14967 # If we're using GNU nm, then we don't want the "-C" option.
14968 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14969 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14970 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'
14972 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'
14976 export_symbols_cmds_CXX="$ltdll_cmds"
14978 cygwin* | mingw* | cegcc*)
14979 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'
14982 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14985 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14987 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14988 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14989 test "$ld_shlibs_CXX" = no && can_build_shared=no
14991 with_gnu_ld_CXX=$with_gnu_ld
14999 # Do we need to explicitly link libc?
15001 case "x$archive_cmds_need_lc_CXX" in
15003 # Assume -lc should be added
15004 archive_cmds_need_lc_CXX=yes
15006 if test "$enable_shared" = yes && test "$GCC" = yes; then
15007 case $archive_cmds_CXX in
15009 # FIXME: we may have to deal with multi-command sequences.
15012 # Test whether the compiler implicitly links with -lc since on some
15013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15014 # to ld, don't add -lc before -lgcc.
15015 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021 (eval $ac_compile) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } 2>conftest.err; then
15027 libobjs=conftest.$ac_objext
15029 wl=$lt_prog_compiler_wl_CXX
15030 pic_flag=$lt_prog_compiler_pic_CXX
15036 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15037 allow_undefined_flag_CXX=
15038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15039 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }
15044 archive_cmds_need_lc_CXX=no
15046 archive_cmds_need_lc_CXX=yes
15048 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15050 cat conftest.err 1>&5
15053 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15054 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15124 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15125 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15127 library_names_spec=
15128 libname_spec='lib$name'
15132 postuninstall_cmds=
15136 shlibpath_overrides_runpath=unknown
15138 dynamic_linker="$host_os ld.so"
15139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15140 need_lib_prefix=unknown
15141 hardcode_into_libs=no
15143 # when you set need_version to no, make sure it does not cause -set_version
15144 # flags to be left without arguments
15145 need_version=unknown
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15151 shlibpath_var=LIBPATH
15153 # AIX 3 has no versioning support, so we append a major version to the name.
15154 soname_spec='${libname}${release}${shared_ext}$major'
15161 hardcode_into_libs=yes
15162 if test "$host_cpu" = ia64; then
15163 # AIX 5 supports IA64
15164 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15165 shlibpath_var=LD_LIBRARY_PATH
15167 # With GCC up to 2.95.x, collect2 would create an import file
15168 # for dependence libraries. The import file would start with
15169 # the line `#! .'. This would cause the generated library to
15170 # depend on `.', always an invalid library. This was fixed in
15171 # development snapshots of GCC prior to 3.0.
15173 aix4 | aix4.[01] | aix4.[01].*)
15174 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15176 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15179 can_build_shared=no
15183 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15184 # soname into executable. Probably we can add versioning support to
15185 # collect2, so additional links can be useful in future.
15186 if test "$aix_use_runtimelinking" = yes; then
15187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15188 # instead of lib<name>.a to let people know that these are not
15189 # typical AIX shared libraries.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 # We preserve .a as extension for shared libraries through AIX4.2
15193 # and later when we are not doing run time linking.
15194 library_names_spec='${libname}${release}.a $libname.a'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15197 shlibpath_var=LIBPATH
15204 # Since July 2007 AmigaOS4 officially supports .so libraries.
15205 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209 library_names_spec='$libname.ixlibrary $libname.a'
15210 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15211 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'
15217 library_names_spec='${libname}${shared_ext}'
15218 dynamic_linker="$host_os ld.so"
15219 shlibpath_var=LIBRARY_PATH
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15231 # the default ld.so.conf also contains /usr/contrib/lib and
15232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15233 # libtool to hard-code these into programs
15236 cygwin* | mingw* | pw32* | cegcc*)
15237 version_type=windows
15242 case $GCC,$host_os in
15243 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15244 library_names_spec='$libname.dll.a'
15245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15246 postinstall_cmds='base_file=`basename \${file}`~
15247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15248 dldir=$destdir/`dirname \$dlpath`~
15249 test -d \$dldir || mkdir -p \$dldir~
15250 $install_prog $dir/$dlname \$dldir/$dlname~
15251 chmod a+x \$dldir/$dlname~
15252 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15253 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15256 dlpath=$dir/\$dldll~
15258 shlibpath_overrides_runpath=yes
15262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15264 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15267 # MinGW DLLs use traditional 'lib' prefix
15268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15269 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15270 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15271 # It is most probably a Windows format PATH printed by
15272 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15273 # path with ; separators, and with drive letters. We can handle the
15274 # drive letters (cygwin fileutils understands them), so leave them,
15275 # especially as we might pass files found there to a mingw objdump,
15276 # which wouldn't understand a cygwinified path. Ahh.
15277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15283 # pw32 DLLs use 'pw' prefix rather than 'lib'
15284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15293 dynamic_linker='Win32 ld.exe'
15294 # FIXME: first we should search . and the directory the executable is in
15298 darwin* | rhapsody*)
15299 dynamic_linker="$host_os dyld"
15300 version_type=darwin
15303 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15304 soname_spec='${libname}${release}${major}$shared_ext'
15305 shlibpath_overrides_runpath=yes
15306 shlibpath_var=DYLD_LIBRARY_PATH
15307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15325 freebsd* | dragonfly*)
15326 # DragonFly does not have aout. When/if they implement a new
15327 # versioning mechanism, adjust this.
15328 if test -x /usr/bin/objformat; then
15329 objformat=`/usr/bin/objformat`
15332 freebsd[123]*) objformat=aout ;;
15333 *) objformat=elf ;;
15336 version_type=freebsd-$objformat
15337 case $version_type in
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15348 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes
15353 freebsd3.[01]* | freebsdelf3.[01]*)
15354 shlibpath_overrides_runpath=yes
15355 hardcode_into_libs=yes
15357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15359 shlibpath_overrides_runpath=no
15360 hardcode_into_libs=yes
15362 *) # from 4.6 on, and DragonFly
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15374 soname_spec='${libname}${release}${shared_ext}$major'
15375 shlibpath_var=LD_LIBRARY_PATH
15376 hardcode_into_libs=yes
15379 hpux9* | hpux10* | hpux11*)
15380 # Give a soname corresponding to the major version so that dld.sl refuses to
15381 # link against other versions.
15388 hardcode_into_libs=yes
15389 dynamic_linker="$host_os dld.so"
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 if test "X$HPUX_IA64_MODE" = X32; then
15395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15403 hardcode_into_libs=yes
15404 dynamic_linker="$host_os dld.sl"
15405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408 soname_spec='${libname}${release}${shared_ext}$major'
15409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15414 dynamic_linker="$host_os dld.sl"
15415 shlibpath_var=SHLIB_PATH
15416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15422 postinstall_cmds='chmod 555 $lib'
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 shlibpath_overrides_runpath=no
15434 hardcode_into_libs=yes
15437 irix5* | irix6* | nonstopux*)
15439 nonstopux*) version_type=nonstopux ;;
15441 if test "$lt_cv_prog_gnu_ld" = yes; then
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15452 irix5* | nonstopux*)
15453 libsuff= shlibsuff=
15456 case $LD in # libtool.m4 will add one of these switches to LD
15457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15458 libsuff= shlibsuff= libmagic=32-bit;;
15459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15460 libsuff=32 shlibsuff=N32 libmagic=N32;;
15461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15463 *) libsuff= shlibsuff= libmagic=never-match;;
15467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15468 shlibpath_overrides_runpath=no
15469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15471 hardcode_into_libs=yes
15474 # No shared lib support for Linux oldld, aout, or coff.
15475 linux*oldld* | linux*aout* | linux*coff*)
15479 # This must be Linux ELF.
15480 linux* | k*bsd*-gnu)
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 shlibpath_overrides_runpath=no
15489 # Some binutils ld are patched to set DT_RUNPATH
15490 save_LDFLAGS=$LDFLAGS
15491 save_libdir=$libdir
15492 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15493 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15509 rm -f conftest.$ac_objext conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_link") 2>conftest.er1
15518 grep -v '^ *+' conftest.er1 >conftest.err
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } && {
15523 test -z "$ac_cxx_werror_flag" ||
15524 test ! -s conftest.err
15525 } && test -s conftest$ac_exeext &&
15526 $as_test_x conftest$ac_exeext; then
15527 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15528 shlibpath_overrides_runpath=yes
15532 echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15539 conftest$ac_exeext conftest.$ac_ext
15540 LDFLAGS=$save_LDFLAGS
15541 libdir=$save_libdir
15543 # This implies no fast_install, which is unacceptable.
15544 # Some rework will be needed to allow for fast_install
15545 # before this can be enabled.
15546 hardcode_into_libs=yes
15548 # Append ld.so.conf contents to the search path
15549 if test -f /etc/ld.so.conf; then
15550 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' ' '`
15551 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15554 # We used to test for /lib/ld.so.1 and disable shared libraries on
15555 # powerpc, because MkLinux only supported shared libraries with the
15556 # GNU dynamic linker. Since this was broken with cross compilers,
15557 # most powerpc-linux boxes support dynamic linking these days and
15558 # people can always --disable-shared, the test was removed, and we
15559 # assume the GNU/Linux dynamic linker is in use.
15560 dynamic_linker='GNU/Linux ld.so'
15567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15570 dynamic_linker='NetBSD (a.out) ld.so'
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 dynamic_linker='NetBSD ld.elf_so'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=yes
15578 hardcode_into_libs=yes
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 shlibpath_overrides_runpath=yes
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 soname_spec='${libname}${release}${shared_ext}$major'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=no
15596 hardcode_into_libs=yes
15597 dynamic_linker='ldqnx.so'
15602 sys_lib_dlsearch_path_spec="/usr/lib"
15604 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15606 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15607 *) need_version=no ;;
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15611 shlibpath_var=LD_LIBRARY_PATH
15612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15614 openbsd2.[89] | openbsd2.[89].*)
15615 shlibpath_overrides_runpath=no
15618 shlibpath_overrides_runpath=yes
15622 shlibpath_overrides_runpath=yes
15627 libname_spec='$name'
15630 library_names_spec='$libname${shared_ext} $libname.a'
15631 dynamic_linker='OS/2 ld.exe'
15632 shlibpath_var=LIBPATH
15635 osf3* | osf4* | osf5*)
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 shlibpath_var=LD_LIBRARY_PATH
15642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655 soname_spec='${libname}${release}${shared_ext}$major'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=yes
15658 hardcode_into_libs=yes
15659 # ldd complains unless libraries are executable
15660 postinstall_cmds='chmod +x $lib'
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15666 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath=yes
15669 if test "$with_gnu_ld" = yes; then
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 shlibpath_var=LD_LIBRARY_PATH
15680 case $host_vendor in
15682 shlibpath_overrides_runpath=no
15684 runpath_var=LD_RUN_PATH
15692 shlibpath_overrides_runpath=no
15693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15699 if test -d /usr/nec ;then
15701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15702 soname_spec='$libname${shared_ext}.$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15708 version_type=freebsd-elf
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LD_LIBRARY_PATH
15714 shlibpath_overrides_runpath=yes
15715 hardcode_into_libs=yes
15716 if test "$with_gnu_ld" = yes; then
15717 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15726 sys_lib_dlsearch_path_spec='/usr/lib'
15730 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 shlibpath_overrides_runpath=no
15737 hardcode_into_libs=yes
15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 shlibpath_var=LD_LIBRARY_PATH
15751 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15752 echo "${ECHO_T}$dynamic_linker" >&6; }
15753 test "$dynamic_linker" = no && can_build_shared=no
15755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15756 if test "$GCC" = yes; then
15757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15760 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15761 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15763 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15764 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15802 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15803 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15804 hardcode_action_CXX=
15805 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15806 test -n "$runpath_var_CXX" ||
15807 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15809 # We can hardcode non-existent directories.
15810 if test "$hardcode_direct_CXX" != no &&
15811 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15812 # have to relink, otherwise we might link with an installed library
15813 # when we should be linking with a yet-to-be-installed one
15814 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15815 test "$hardcode_minus_L_CXX" != no; then
15816 # Linking always hardcodes the temporary library directory.
15817 hardcode_action_CXX=relink
15819 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15820 hardcode_action_CXX=immediate
15823 # We cannot hardcode anything, or else we can only hardcode existing
15825 hardcode_action_CXX=unsupported
15827 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15828 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15830 if test "$hardcode_action_CXX" = relink ||
15831 test "$inherit_rpath_CXX" = yes; then
15832 # Fast installation is not supported
15833 enable_fast_install=no
15834 elif test "$shlibpath_overrides_runpath" = yes ||
15835 test "$enable_shared" = no; then
15836 # Fast installation is not necessary
15837 enable_fast_install=needless
15846 fi # test -n "$compiler"
15852 with_gnu_ld=$lt_save_with_gnu_ld
15853 lt_cv_path_LDCXX=$lt_cv_path_LD
15854 lt_cv_path_LD=$lt_save_path_LD
15855 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15856 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15857 fi # test "$_lt_caught_CXX_error" != yes
15860 ac_cpp='$CPP $CPPFLAGS'
15861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15877 ac_config_commands="$ac_config_commands libtool"
15882 # Only expand once:
15887 if test x$use_libtool != xno; then
15888 DEFAULT_OBJECT_TYPE=".lo"
15889 DEFAULT_ARCHIVE_TYPE=".la"
15890 DEFAULT_SHARED_OBJECT_TYPE=".la"
15891 LIBTOOL="\$(LIBTOOL)"
15892 LIBTOOL_INSTALL_TARGET="libtool-install"
15893 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15894 LIBTOOL_CLEAN_TARGET="libtool-clean"
15895 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15897 DEFAULT_OBJECT_TYPE=".o"
15898 DEFAULT_ARCHIVE_TYPE=".a"
15899 DEFAULT_SHARED_OBJECT_TYPE=".so"
15900 LIBTOOL="# \$(LIBTOOL)"
15901 LIBTOOL_INSTALL_TARGET=""
15902 LIBTOOL_UNINSTALL_TARGET=""
15903 LIBTOOL_CLEAN_TARGET=""
15904 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15916 # Check whether --enable-includes was given.
15917 if test "${enable_includes+set}" = set; then
15918 enableval=$enable_includes;
15919 if test x$enableval = xyes; then
15920 install_includes=yes
15928 if test x$use_libtool != xno -a x$install_includes = xyes; then
15929 INCLUDE_INSTALL_TARGET="install-includes"
15930 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15932 INCLUDE_INSTALL_TARGET=""
15933 INCLUDE_UNINSTALL_TARGET=""
15939 { echo "$as_me:$LINENO: checking host system type" >&5
15940 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15941 if test "${ac_cv_host+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 if test "x$host_alias" = x; then
15945 ac_cv_host=$ac_cv_build
15947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15948 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15949 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15950 { (exit 1); exit 1; }; }
15954 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15955 echo "${ECHO_T}$ac_cv_host" >&6; }
15956 case $ac_cv_host in
15958 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15959 echo "$as_me: error: invalid value of canonical host" >&2;}
15960 { (exit 1); exit 1; }; };;
15963 ac_save_IFS=$IFS; IFS='-'
15969 # Remember, the first character of IFS is used to create $*,
15970 # except with old shells:
15973 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15977 *cygwin* ) CYGWIN=yes;;
15981 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15987 HAVE_SUN_OS_FALSE='#'
15989 HAVE_SUN_OS_TRUE='#'
15992 cat >>confdefs.h <<\_ACEOF
15993 #define HAVE_SUN_OS 1
16001 HAVE_SUN_OS_FALSE='#'
16003 HAVE_SUN_OS_TRUE='#'
16008 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16014 HAVE_OSF1_OS_FALSE='#'
16016 HAVE_OSF1_OS_TRUE='#'
16017 HAVE_OSF1_OS_FALSE=
16019 cat >>confdefs.h <<\_ACEOF
16020 #define HAVE_OSF1_OS 1
16028 HAVE_OSF1_OS_FALSE='#'
16030 HAVE_OSF1_OS_TRUE='#'
16031 HAVE_OSF1_OS_FALSE=
16035 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16041 HAVE_AIX_OS_FALSE='#'
16043 HAVE_AIX_OS_TRUE='#'
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_AIX_OS 1
16055 HAVE_AIX_OS_FALSE='#'
16057 HAVE_AIX_OS_TRUE='#'
16062 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16068 HAVE_HPUX_OS_FALSE='#'
16070 HAVE_HPUX_OS_TRUE='#'
16071 HAVE_HPUX_OS_FALSE=
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_HPUX_OS 1
16082 HAVE_HPUX_OS_FALSE='#'
16084 HAVE_HPUX_OS_TRUE='#'
16085 HAVE_HPUX_OS_FALSE=
16089 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16094 HAVE_LINUX_OS_TRUE=
16095 HAVE_LINUX_OS_FALSE='#'
16097 HAVE_LINUX_OS_TRUE='#'
16098 HAVE_LINUX_OS_FALSE=
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_LINUX_OS 1
16108 HAVE_LINUX_OS_TRUE=
16109 HAVE_LINUX_OS_FALSE='#'
16111 HAVE_LINUX_OS_TRUE='#'
16112 HAVE_LINUX_OS_FALSE=
16116 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16121 HAVE_FREEBSD_OS_TRUE=
16122 HAVE_FREEBSD_OS_FALSE='#'
16124 HAVE_FREEBSD_OS_TRUE='#'
16125 HAVE_FREEBSD_OS_FALSE=
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_FREEBSD_OS 1
16135 HAVE_FREEBSD_OS_TRUE=
16136 HAVE_FREEBSD_OS_FALSE='#'
16138 HAVE_FREEBSD_OS_TRUE='#'
16139 HAVE_FREEBSD_OS_FALSE=
16143 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16148 HAVE_NETBSD_OS_TRUE=
16149 HAVE_NETBSD_OS_FALSE='#'
16151 HAVE_NETBSD_OS_TRUE='#'
16152 HAVE_NETBSD_OS_FALSE=
16154 cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_NETBSD_OS 1
16162 HAVE_NETBSD_OS_TRUE=
16163 HAVE_NETBSD_OS_FALSE='#'
16165 HAVE_NETBSD_OS_TRUE='#'
16166 HAVE_NETBSD_OS_FALSE=
16170 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16175 HAVE_OPENBSD_OS_TRUE=
16176 HAVE_OPENBSD_OS_FALSE='#'
16178 HAVE_OPENBSD_OS_TRUE='#'
16179 HAVE_OPENBSD_OS_FALSE=
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_OPENBSD_OS 1
16189 HAVE_OPENBSD_OS_TRUE=
16190 HAVE_OPENBSD_OS_FALSE='#'
16192 HAVE_OPENBSD_OS_TRUE='#'
16193 HAVE_OPENBSD_OS_FALSE=
16197 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16203 HAVE_BSDI_OS_FALSE='#'
16205 HAVE_BSDI_OS_TRUE='#'
16206 HAVE_BSDI_OS_FALSE=
16208 cat >>confdefs.h <<\_ACEOF
16209 #define HAVE_BSDI_OS 1
16217 HAVE_BSDI_OS_FALSE='#'
16219 HAVE_BSDI_OS_TRUE='#'
16220 HAVE_BSDI_OS_FALSE=
16224 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16230 HAVE_SGI_OS_FALSE='#'
16232 HAVE_SGI_OS_TRUE='#'
16235 cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_SGI_OS 1
16244 HAVE_SGI_OS_FALSE='#'
16246 HAVE_SGI_OS_TRUE='#'
16251 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16257 HAVE_IRIX_OS_FALSE='#'
16259 HAVE_IRIX_OS_TRUE='#'
16260 HAVE_IRIX_OS_FALSE=
16262 cat >>confdefs.h <<\_ACEOF
16263 #define HAVE_IRIX_OS 1
16271 HAVE_IRIX_OS_FALSE='#'
16273 HAVE_IRIX_OS_TRUE='#'
16274 HAVE_IRIX_OS_FALSE=
16278 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16283 HAVE_DARWIN_OS_TRUE=
16284 HAVE_DARWIN_OS_FALSE='#'
16286 HAVE_DARWIN_OS_TRUE='#'
16287 HAVE_DARWIN_OS_FALSE=
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_DARWIN_OS 1
16297 HAVE_DARWIN_OS_TRUE=
16298 HAVE_DARWIN_OS_FALSE='#'
16300 HAVE_DARWIN_OS_TRUE='#'
16301 HAVE_DARWIN_OS_FALSE=
16306 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16307 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16308 if test "x$DISTNAME" != "x"
16310 echo "distname set to $DISTNAME"
16311 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16314 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16317 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16320 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16323 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16326 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16329 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16332 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16335 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16338 elif test -f /etc/SuSE-release
16341 elif test -d /etc/SuSEconfig
16344 elif test -f /etc/mandrake-release
16347 elif test -f /etc/whitebox-release
16350 elif test -f /etc/redhat-release
16353 elif test -f /etc/gentoo-release
16356 elif test -f /etc/debian_version
16359 elif test -f /etc/slackware-version
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16365 elif test -f /etc/engarde-version
16368 elif test "$CYGWIN" = yes
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE_CYGWIN 1
16378 { echo "$as_me:$LINENO: result: done" >&5
16379 echo "${ECHO_T}done" >&6; }
16382 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16383 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16384 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16385 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 cat >conftest.make <<\_ACEOF
16391 @echo '@@@%%%=$(MAKE)=@@@%%%'
16393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16395 *@@@%%%=?*=@@@%%%*)
16396 eval ac_cv_prog_make_${ac_make}_set=yes;;
16398 eval ac_cv_prog_make_${ac_make}_set=no;;
16400 rm -f conftest.make
16402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16403 { echo "$as_me:$LINENO: result: yes" >&5
16404 echo "${ECHO_T}yes" >&6; }
16407 { echo "$as_me:$LINENO: result: no" >&5
16408 echo "${ECHO_T}no" >&6; }
16409 SET_MAKE="MAKE=${MAKE-make}"
16415 if test -n "$ac_aux_dir"; then
16416 case "$ac_aux_dir" in
16417 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16418 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16421 if test -z "$MKINSTALLDIRS"; then
16422 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16427 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16428 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16429 # Check whether --enable-nls was given.
16430 if test "${enable_nls+set}" = set; then
16431 enableval=$enable_nls; USE_NLS=$enableval
16436 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16437 echo "${ECHO_T}$USE_NLS" >&6; }
16444 # Prepare PATH_SEPARATOR.
16445 # The user is always right.
16446 if test "${PATH_SEPARATOR+set}" != set; then
16447 echo "#! /bin/sh" >conf$$.sh
16448 echo "exit 0" >>conf$$.sh
16450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16458 # Find out how to test for executable files. Don't use a zero-byte file,
16459 # as systems may use methods other than mode bits to determine executability.
16460 cat >conf$$.file <<_ASEOF
16464 chmod +x conf$$.file
16465 if test -x conf$$.file >/dev/null 2>&1; then
16466 ac_executable_p="test -x"
16468 ac_executable_p="test -f"
16472 # Extract the first word of "msgfmt", so it can be a program name with args.
16473 set dummy msgfmt; ac_word=$2
16474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16476 if test "${ac_cv_path_MSGFMT+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16484 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16485 for ac_dir in $PATH; do
16487 test -z "$ac_dir" && ac_dir=.
16488 for ac_exec_ext in '' $ac_executable_extensions; do
16489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16490 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16491 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16492 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16493 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16500 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16504 MSGFMT="$ac_cv_path_MSGFMT"
16505 if test "$MSGFMT" != ":"; then
16506 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16507 echo "${ECHO_T}$MSGFMT" >&6; }
16509 { echo "$as_me:$LINENO: result: no" >&5
16510 echo "${ECHO_T}no" >&6; }
16513 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16514 set dummy gmsgfmt; ac_word=$2
16515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16517 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526 for as_dir in $PATH
16529 test -z "$as_dir" && as_dir=.
16530 for ac_exec_ext in '' $ac_executable_extensions; do
16531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16532 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16540 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16544 GMSGFMT=$ac_cv_path_GMSGFMT
16545 if test -n "$GMSGFMT"; then
16546 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16547 echo "${ECHO_T}$GMSGFMT" >&6; }
16549 { echo "$as_me:$LINENO: result: no" >&5
16550 echo "${ECHO_T}no" >&6; }
16556 # Prepare PATH_SEPARATOR.
16557 # The user is always right.
16558 if test "${PATH_SEPARATOR+set}" != set; then
16559 echo "#! /bin/sh" >conf$$.sh
16560 echo "exit 0" >>conf$$.sh
16562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16570 # Find out how to test for executable files. Don't use a zero-byte file,
16571 # as systems may use methods other than mode bits to determine executability.
16572 cat >conf$$.file <<_ASEOF
16576 chmod +x conf$$.file
16577 if test -x conf$$.file >/dev/null 2>&1; then
16578 ac_executable_p="test -x"
16580 ac_executable_p="test -f"
16584 # Extract the first word of "xgettext", so it can be a program name with args.
16585 set dummy xgettext; ac_word=$2
16586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16588 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 case "$XGETTEXT" in
16593 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16597 for ac_dir in $PATH; do
16599 test -z "$ac_dir" && ac_dir=.
16600 for ac_exec_ext in '' $ac_executable_extensions; do
16601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16602 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16603 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16604 (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
16605 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16612 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16616 XGETTEXT="$ac_cv_path_XGETTEXT"
16617 if test "$XGETTEXT" != ":"; then
16618 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16619 echo "${ECHO_T}$XGETTEXT" >&6; }
16621 { echo "$as_me:$LINENO: result: no" >&5
16622 echo "${ECHO_T}no" >&6; }
16628 # Prepare PATH_SEPARATOR.
16629 # The user is always right.
16630 if test "${PATH_SEPARATOR+set}" != set; then
16631 echo "#! /bin/sh" >conf$$.sh
16632 echo "exit 0" >>conf$$.sh
16634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16642 # Find out how to test for executable files. Don't use a zero-byte file,
16643 # as systems may use methods other than mode bits to determine executability.
16644 cat >conf$$.file <<_ASEOF
16648 chmod +x conf$$.file
16649 if test -x conf$$.file >/dev/null 2>&1; then
16650 ac_executable_p="test -x"
16652 ac_executable_p="test -f"
16656 # Extract the first word of "msgmerge", so it can be a program name with args.
16657 set dummy msgmerge; ac_word=$2
16658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16660 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 case "$MSGMERGE" in
16665 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16668 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16669 for ac_dir in $PATH; do
16671 test -z "$ac_dir" && ac_dir=.
16672 for ac_exec_ext in '' $ac_executable_extensions; do
16673 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16674 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16675 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16676 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16683 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16687 MSGMERGE="$ac_cv_path_MSGMERGE"
16688 if test "$MSGMERGE" != ":"; then
16689 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16690 echo "${ECHO_T}$MSGMERGE" >&6; }
16692 { echo "$as_me:$LINENO: result: no" >&5
16693 echo "${ECHO_T}no" >&6; }
16697 if test "$GMSGFMT" != ":"; then
16698 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16699 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16702 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16703 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16704 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16709 if test "$XGETTEXT" != ":"; then
16710 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16711 (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
16714 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16715 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16721 ac_config_commands="$ac_config_commands default-1"
16725 if test "X$prefix" = "XNONE"; then
16726 acl_final_prefix="$ac_default_prefix"
16728 acl_final_prefix="$prefix"
16730 if test "X$exec_prefix" = "XNONE"; then
16731 acl_final_exec_prefix='${prefix}'
16733 acl_final_exec_prefix="$exec_prefix"
16735 acl_save_prefix="$prefix"
16736 prefix="$acl_final_prefix"
16737 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16738 prefix="$acl_save_prefix"
16741 # Check whether --with-gnu-ld was given.
16742 if test "${with_gnu_ld+set}" = set; then
16743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16748 # Prepare PATH_SEPARATOR.
16749 # The user is always right.
16750 if test "${PATH_SEPARATOR+set}" != set; then
16751 echo "#! /bin/sh" >conf$$.sh
16752 echo "exit 0" >>conf$$.sh
16754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16762 if test "$GCC" = yes; then
16763 # Check if gcc -print-prog-name=ld gives a path.
16764 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16765 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16768 # gcc leaves a trailing carriage return which upsets mingw
16769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16774 # Accept absolute paths.
16775 [\\/]* | [A-Za-z]:[\\/]*)
16776 re_direlt='/[^/][^/]*/\.\./'
16777 # Canonicalize the path of ld
16778 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16779 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16780 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16782 test -z "$LD" && LD="$ac_prog"
16785 # If it fails, then pretend we aren't using GCC.
16789 # If it is relative, then search for the first ld in PATH.
16790 with_gnu_ld=unknown
16793 elif test "$with_gnu_ld" = yes; then
16794 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16795 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16797 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16798 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16800 if test "${acl_cv_path_LD+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 if test -z "$LD"; then
16804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16805 for ac_dir in $PATH; do
16806 test -z "$ac_dir" && ac_dir=.
16807 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16808 acl_cv_path_LD="$ac_dir/$ac_prog"
16809 # Check to see if the program is GNU ld. I'd rather use --version,
16810 # but apparently some GNU ld's only accept -v.
16811 # Break only if it was the GNU/non-GNU ld that we prefer.
16812 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16813 *GNU* | *'with BFD'*)
16814 test "$with_gnu_ld" != no && break ;;
16816 test "$with_gnu_ld" != yes && break ;;
16822 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16826 LD="$acl_cv_path_LD"
16827 if test -n "$LD"; then
16828 { echo "$as_me:$LINENO: result: $LD" >&5
16829 echo "${ECHO_T}$LD" >&6; }
16831 { echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6; }
16834 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16835 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16836 { (exit 1); exit 1; }; }
16837 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16838 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16839 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16843 case `$LD -v 2>&1 </dev/null` in
16844 *GNU* | *'with BFD'*)
16845 acl_cv_prog_gnu_ld=yes ;;
16847 acl_cv_prog_gnu_ld=no ;;
16850 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16851 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16852 with_gnu_ld=$acl_cv_prog_gnu_ld
16857 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16858 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16859 if test "${acl_cv_rpath+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16864 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16866 rm -f ./conftest.sh
16870 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16871 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16873 libext="$acl_cv_libext"
16874 shlibext="$acl_cv_shlibext"
16875 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16876 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16877 hardcode_direct="$acl_cv_hardcode_direct"
16878 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16879 # Check whether --enable-rpath was given.
16880 if test "${enable_rpath+set}" = set; then
16881 enableval=$enable_rpath; :
16895 acl_save_prefix="$prefix"
16896 prefix="$acl_final_prefix"
16897 acl_save_exec_prefix="$exec_prefix"
16898 exec_prefix="$acl_final_exec_prefix"
16900 eval additional_includedir=\"$includedir\"
16901 eval additional_libdir=\"$libdir\"
16903 exec_prefix="$acl_save_exec_prefix"
16904 prefix="$acl_save_prefix"
16907 # Check whether --with-libiconv-prefix was given.
16908 if test "${with_libiconv_prefix+set}" = set; then
16909 withval=$with_libiconv_prefix;
16910 if test "X$withval" = "Xno"; then
16913 if test "X$withval" = "X"; then
16915 acl_save_prefix="$prefix"
16916 prefix="$acl_final_prefix"
16917 acl_save_exec_prefix="$exec_prefix"
16918 exec_prefix="$acl_final_exec_prefix"
16920 eval additional_includedir=\"$includedir\"
16921 eval additional_libdir=\"$libdir\"
16923 exec_prefix="$acl_save_exec_prefix"
16924 prefix="$acl_save_prefix"
16927 additional_includedir="$withval/include"
16928 additional_libdir="$withval/lib"
16939 names_already_handled=
16940 names_next_round='iconv '
16941 while test -n "$names_next_round"; do
16942 names_this_round="$names_next_round"
16944 for name in $names_this_round; do
16946 for n in $names_already_handled; do
16947 if test "$n" = "$name"; then
16948 already_handled=yes
16952 if test -z "$already_handled"; then
16953 names_already_handled="$names_already_handled $name"
16954 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16955 eval value=\"\$HAVE_LIB$uppername\"
16956 if test -n "$value"; then
16957 if test "$value" = yes; then
16958 eval value=\"\$LIB$uppername\"
16959 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16960 eval value=\"\$LTLIB$uppername\"
16961 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16970 if test $use_additional = yes; then
16971 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16972 found_dir="$additional_libdir"
16973 found_so="$additional_libdir/lib$name.$shlibext"
16974 if test -f "$additional_libdir/lib$name.la"; then
16975 found_la="$additional_libdir/lib$name.la"
16978 if test -f "$additional_libdir/lib$name.$libext"; then
16979 found_dir="$additional_libdir"
16980 found_a="$additional_libdir/lib$name.$libext"
16981 if test -f "$additional_libdir/lib$name.la"; then
16982 found_la="$additional_libdir/lib$name.la"
16987 if test "X$found_dir" = "X"; then
16988 for x in $LDFLAGS $LTLIBICONV; do
16990 acl_save_prefix="$prefix"
16991 prefix="$acl_final_prefix"
16992 acl_save_exec_prefix="$exec_prefix"
16993 exec_prefix="$acl_final_exec_prefix"
16995 exec_prefix="$acl_save_exec_prefix"
16996 prefix="$acl_save_prefix"
17000 dir=`echo "X$x" | sed -e 's/^X-L//'`
17001 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17003 found_so="$dir/lib$name.$shlibext"
17004 if test -f "$dir/lib$name.la"; then
17005 found_la="$dir/lib$name.la"
17008 if test -f "$dir/lib$name.$libext"; then
17010 found_a="$dir/lib$name.$libext"
17011 if test -f "$dir/lib$name.la"; then
17012 found_la="$dir/lib$name.la"
17018 if test "X$found_dir" != "X"; then
17023 if test "X$found_dir" != "X"; then
17024 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17025 if test "X$found_so" != "X"; then
17026 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17030 for x in $ltrpathdirs; do
17031 if test "X$x" = "X$found_dir"; then
17036 if test -z "$haveit"; then
17037 ltrpathdirs="$ltrpathdirs $found_dir"
17039 if test "$hardcode_direct" = yes; then
17040 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17042 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17043 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17045 for x in $rpathdirs; do
17046 if test "X$x" = "X$found_dir"; then
17051 if test -z "$haveit"; then
17052 rpathdirs="$rpathdirs $found_dir"
17056 for x in $LDFLAGS $LIBICONV; do
17058 acl_save_prefix="$prefix"
17059 prefix="$acl_final_prefix"
17060 acl_save_exec_prefix="$exec_prefix"
17061 exec_prefix="$acl_final_exec_prefix"
17063 exec_prefix="$acl_save_exec_prefix"
17064 prefix="$acl_save_prefix"
17066 if test "X$x" = "X-L$found_dir"; then
17071 if test -z "$haveit"; then
17072 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17074 if test "$hardcode_minus_L" != no; then
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17077 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17083 if test "X$found_a" != "X"; then
17084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17086 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17089 additional_includedir=
17090 case "$found_dir" in
17092 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17093 additional_includedir="$basedir/include"
17096 if test "X$additional_includedir" != "X"; then
17097 if test "X$additional_includedir" != "X/usr/include"; then
17099 if test "X$additional_includedir" = "X/usr/local/include"; then
17100 if test -n "$GCC"; then
17102 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17106 if test -z "$haveit"; then
17107 for x in $CPPFLAGS $INCICONV; do
17109 acl_save_prefix="$prefix"
17110 prefix="$acl_final_prefix"
17111 acl_save_exec_prefix="$exec_prefix"
17112 exec_prefix="$acl_final_exec_prefix"
17114 exec_prefix="$acl_save_exec_prefix"
17115 prefix="$acl_save_prefix"
17117 if test "X$x" = "X-I$additional_includedir"; then
17122 if test -z "$haveit"; then
17123 if test -d "$additional_includedir"; then
17124 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17130 if test -n "$found_la"; then
17131 save_libdir="$libdir"
17132 case "$found_la" in
17133 */* | *\\*) . "$found_la" ;;
17134 *) . "./$found_la" ;;
17136 libdir="$save_libdir"
17137 for dep in $dependency_libs; do
17140 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17141 if test "X$additional_libdir" != "X/usr/lib"; then
17143 if test "X$additional_libdir" = "X/usr/local/lib"; then
17144 if test -n "$GCC"; then
17146 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17150 if test -z "$haveit"; then
17152 for x in $LDFLAGS $LIBICONV; do
17154 acl_save_prefix="$prefix"
17155 prefix="$acl_final_prefix"
17156 acl_save_exec_prefix="$exec_prefix"
17157 exec_prefix="$acl_final_exec_prefix"
17159 exec_prefix="$acl_save_exec_prefix"
17160 prefix="$acl_save_prefix"
17162 if test "X$x" = "X-L$additional_libdir"; then
17167 if test -z "$haveit"; then
17168 if test -d "$additional_libdir"; then
17169 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17173 for x in $LDFLAGS $LTLIBICONV; do
17175 acl_save_prefix="$prefix"
17176 prefix="$acl_final_prefix"
17177 acl_save_exec_prefix="$exec_prefix"
17178 exec_prefix="$acl_final_exec_prefix"
17180 exec_prefix="$acl_save_exec_prefix"
17181 prefix="$acl_save_prefix"
17183 if test "X$x" = "X-L$additional_libdir"; then
17188 if test -z "$haveit"; then
17189 if test -d "$additional_libdir"; then
17190 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17197 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17198 if test "$enable_rpath" != no; then
17200 for x in $rpathdirs; do
17201 if test "X$x" = "X$dir"; then
17206 if test -z "$haveit"; then
17207 rpathdirs="$rpathdirs $dir"
17210 for x in $ltrpathdirs; do
17211 if test "X$x" = "X$dir"; then
17216 if test -z "$haveit"; then
17217 ltrpathdirs="$ltrpathdirs $dir"
17222 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17225 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17228 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17229 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17235 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17236 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17242 if test "X$rpathdirs" != "X"; then
17243 if test -n "$hardcode_libdir_separator"; then
17245 for found_dir in $rpathdirs; do
17246 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17248 acl_save_libdir="$libdir"
17250 eval flag=\"$hardcode_libdir_flag_spec\"
17251 libdir="$acl_save_libdir"
17252 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17254 for found_dir in $rpathdirs; do
17255 acl_save_libdir="$libdir"
17256 libdir="$found_dir"
17257 eval flag=\"$hardcode_libdir_flag_spec\"
17258 libdir="$acl_save_libdir"
17259 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17263 if test "X$ltrpathdirs" != "X"; then
17264 for found_dir in $ltrpathdirs; do
17265 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17286 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17287 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17288 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 gt_save_CPPFLAGS="$CPPFLAGS"
17292 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17293 gt_save_LIBS="$LIBS"
17294 LIBS="$LIBS -framework CoreFoundation"
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 #include <CFPreferences.h>
17305 CFPreferencesCopyAppValue(NULL, NULL)
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328 gt_cv_func_CFPreferencesCopyAppValue=yes
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 gt_cv_func_CFPreferencesCopyAppValue=no
17336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338 CPPFLAGS="$gt_save_CPPFLAGS"
17339 LIBS="$gt_save_LIBS"
17341 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17342 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17343 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17345 cat >>confdefs.h <<\_ACEOF
17346 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17350 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17351 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17352 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 gt_save_CPPFLAGS="$CPPFLAGS"
17356 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17357 gt_save_LIBS="$LIBS"
17358 LIBS="$LIBS -framework CoreFoundation"
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 #include <CFLocale.h>
17369 CFLocaleCopyCurrent();
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (ac_try="$ac_link"
17376 case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_link") 2>conftest.er1
17383 grep -v '^ *+' conftest.er1 >conftest.err
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && {
17388 test -z "$ac_c_werror_flag" ||
17389 test ! -s conftest.err
17390 } && test -s conftest$ac_exeext &&
17391 $as_test_x conftest$ac_exeext; then
17392 gt_cv_func_CFLocaleCopyCurrent=yes
17394 echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 gt_cv_func_CFLocaleCopyCurrent=no
17400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17401 conftest$ac_exeext conftest.$ac_ext
17402 CPPFLAGS="$gt_save_CPPFLAGS"
17403 LIBS="$gt_save_LIBS"
17405 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17406 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17407 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_CFLOCALECOPYCURRENT 1
17415 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17416 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17422 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17423 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17424 # Check whether --enable-nls was given.
17425 if test "${enable_nls+set}" = set; then
17426 enableval=$enable_nls; USE_NLS=$enableval
17431 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17432 echo "${ECHO_T}$USE_NLS" >&6; }
17441 if test "$USE_NLS" = "yes"; then
17442 gt_use_preinstalled_gnugettext=no
17449 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17450 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17451 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 cat >conftest.$ac_ext <<_ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 #include <libintl.h>
17461 extern int _nl_msg_cat_cntr;
17462 extern int *_nl_domain_bindings;
17466 bindtextdomain ("", "");
17467 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && {
17486 test -z "$ac_c_werror_flag" ||
17487 test ! -s conftest.err
17488 } && test -s conftest$ac_exeext &&
17489 $as_test_x conftest$ac_exeext; then
17490 gt_cv_func_gnugettext1_libc=yes
17492 echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 gt_cv_func_gnugettext1_libc=no
17498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17499 conftest$ac_exeext conftest.$ac_ext
17501 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17502 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17504 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17510 am_save_CPPFLAGS="$CPPFLAGS"
17512 for element in $INCICONV; do
17514 for x in $CPPFLAGS; do
17516 acl_save_prefix="$prefix"
17517 prefix="$acl_final_prefix"
17518 acl_save_exec_prefix="$exec_prefix"
17519 exec_prefix="$acl_final_exec_prefix"
17521 exec_prefix="$acl_save_exec_prefix"
17522 prefix="$acl_save_prefix"
17524 if test "X$x" = "X$element"; then
17529 if test -z "$haveit"; then
17530 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17535 { echo "$as_me:$LINENO: checking for iconv" >&5
17536 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17537 if test "${am_cv_func_iconv+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 am_cv_func_iconv="no, consider installing GNU libiconv"
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <stdlib.h>
17554 iconv_t cd = iconv_open("","");
17555 iconv(cd,NULL,NULL,NULL,NULL);
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_link") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17572 cat conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && {
17575 test -z "$ac_c_werror_flag" ||
17576 test ! -s conftest.err
17577 } && test -s conftest$ac_exeext &&
17578 $as_test_x conftest$ac_exeext; then
17579 am_cv_func_iconv=yes
17581 echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17588 conftest$ac_exeext conftest.$ac_ext
17589 if test "$am_cv_func_iconv" != yes; then
17590 am_save_LIBS="$LIBS"
17591 LIBS="$LIBS $LIBICONV"
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <stdlib.h>
17603 iconv_t cd = iconv_open("","");
17604 iconv(cd,NULL,NULL,NULL,NULL);
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest$ac_exeext &&
17627 $as_test_x conftest$ac_exeext; then
17628 am_cv_lib_iconv=yes
17629 am_cv_func_iconv=yes
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17638 conftest$ac_exeext conftest.$ac_ext
17639 LIBS="$am_save_LIBS"
17643 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17644 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17645 if test "$am_cv_func_iconv" = yes; then
17647 cat >>confdefs.h <<\_ACEOF
17648 #define HAVE_ICONV 1
17652 if test "$am_cv_lib_iconv" = yes; then
17653 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17654 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17655 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17656 echo "${ECHO_T}$LIBICONV" >&6; }
17658 CPPFLAGS="$am_save_CPPFLAGS"
17670 acl_save_prefix="$prefix"
17671 prefix="$acl_final_prefix"
17672 acl_save_exec_prefix="$exec_prefix"
17673 exec_prefix="$acl_final_exec_prefix"
17675 eval additional_includedir=\"$includedir\"
17676 eval additional_libdir=\"$libdir\"
17678 exec_prefix="$acl_save_exec_prefix"
17679 prefix="$acl_save_prefix"
17682 # Check whether --with-libintl-prefix was given.
17683 if test "${with_libintl_prefix+set}" = set; then
17684 withval=$with_libintl_prefix;
17685 if test "X$withval" = "Xno"; then
17688 if test "X$withval" = "X"; then
17690 acl_save_prefix="$prefix"
17691 prefix="$acl_final_prefix"
17692 acl_save_exec_prefix="$exec_prefix"
17693 exec_prefix="$acl_final_exec_prefix"
17695 eval additional_includedir=\"$includedir\"
17696 eval additional_libdir=\"$libdir\"
17698 exec_prefix="$acl_save_exec_prefix"
17699 prefix="$acl_save_prefix"
17702 additional_includedir="$withval/include"
17703 additional_libdir="$withval/lib"
17714 names_already_handled=
17715 names_next_round='intl '
17716 while test -n "$names_next_round"; do
17717 names_this_round="$names_next_round"
17719 for name in $names_this_round; do
17721 for n in $names_already_handled; do
17722 if test "$n" = "$name"; then
17723 already_handled=yes
17727 if test -z "$already_handled"; then
17728 names_already_handled="$names_already_handled $name"
17729 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17730 eval value=\"\$HAVE_LIB$uppername\"
17731 if test -n "$value"; then
17732 if test "$value" = yes; then
17733 eval value=\"\$LIB$uppername\"
17734 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17735 eval value=\"\$LTLIB$uppername\"
17736 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17745 if test $use_additional = yes; then
17746 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17747 found_dir="$additional_libdir"
17748 found_so="$additional_libdir/lib$name.$shlibext"
17749 if test -f "$additional_libdir/lib$name.la"; then
17750 found_la="$additional_libdir/lib$name.la"
17753 if test -f "$additional_libdir/lib$name.$libext"; then
17754 found_dir="$additional_libdir"
17755 found_a="$additional_libdir/lib$name.$libext"
17756 if test -f "$additional_libdir/lib$name.la"; then
17757 found_la="$additional_libdir/lib$name.la"
17762 if test "X$found_dir" = "X"; then
17763 for x in $LDFLAGS $LTLIBINTL; do
17765 acl_save_prefix="$prefix"
17766 prefix="$acl_final_prefix"
17767 acl_save_exec_prefix="$exec_prefix"
17768 exec_prefix="$acl_final_exec_prefix"
17770 exec_prefix="$acl_save_exec_prefix"
17771 prefix="$acl_save_prefix"
17775 dir=`echo "X$x" | sed -e 's/^X-L//'`
17776 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17778 found_so="$dir/lib$name.$shlibext"
17779 if test -f "$dir/lib$name.la"; then
17780 found_la="$dir/lib$name.la"
17783 if test -f "$dir/lib$name.$libext"; then
17785 found_a="$dir/lib$name.$libext"
17786 if test -f "$dir/lib$name.la"; then
17787 found_la="$dir/lib$name.la"
17793 if test "X$found_dir" != "X"; then
17798 if test "X$found_dir" != "X"; then
17799 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17800 if test "X$found_so" != "X"; then
17801 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17805 for x in $ltrpathdirs; do
17806 if test "X$x" = "X$found_dir"; then
17811 if test -z "$haveit"; then
17812 ltrpathdirs="$ltrpathdirs $found_dir"
17814 if test "$hardcode_direct" = yes; then
17815 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17817 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17818 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17820 for x in $rpathdirs; do
17821 if test "X$x" = "X$found_dir"; then
17826 if test -z "$haveit"; then
17827 rpathdirs="$rpathdirs $found_dir"
17831 for x in $LDFLAGS $LIBINTL; do
17833 acl_save_prefix="$prefix"
17834 prefix="$acl_final_prefix"
17835 acl_save_exec_prefix="$exec_prefix"
17836 exec_prefix="$acl_final_exec_prefix"
17838 exec_prefix="$acl_save_exec_prefix"
17839 prefix="$acl_save_prefix"
17841 if test "X$x" = "X-L$found_dir"; then
17846 if test -z "$haveit"; then
17847 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17849 if test "$hardcode_minus_L" != no; then
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17852 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17858 if test "X$found_a" != "X"; then
17859 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17861 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17864 additional_includedir=
17865 case "$found_dir" in
17867 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17868 additional_includedir="$basedir/include"
17871 if test "X$additional_includedir" != "X"; then
17872 if test "X$additional_includedir" != "X/usr/include"; then
17874 if test "X$additional_includedir" = "X/usr/local/include"; then
17875 if test -n "$GCC"; then
17877 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17881 if test -z "$haveit"; then
17882 for x in $CPPFLAGS $INCINTL; do
17884 acl_save_prefix="$prefix"
17885 prefix="$acl_final_prefix"
17886 acl_save_exec_prefix="$exec_prefix"
17887 exec_prefix="$acl_final_exec_prefix"
17889 exec_prefix="$acl_save_exec_prefix"
17890 prefix="$acl_save_prefix"
17892 if test "X$x" = "X-I$additional_includedir"; then
17897 if test -z "$haveit"; then
17898 if test -d "$additional_includedir"; then
17899 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17905 if test -n "$found_la"; then
17906 save_libdir="$libdir"
17907 case "$found_la" in
17908 */* | *\\*) . "$found_la" ;;
17909 *) . "./$found_la" ;;
17911 libdir="$save_libdir"
17912 for dep in $dependency_libs; do
17915 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17916 if test "X$additional_libdir" != "X/usr/lib"; then
17918 if test "X$additional_libdir" = "X/usr/local/lib"; then
17919 if test -n "$GCC"; then
17921 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17925 if test -z "$haveit"; then
17927 for x in $LDFLAGS $LIBINTL; do
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 acl_save_exec_prefix="$exec_prefix"
17932 exec_prefix="$acl_final_exec_prefix"
17934 exec_prefix="$acl_save_exec_prefix"
17935 prefix="$acl_save_prefix"
17937 if test "X$x" = "X-L$additional_libdir"; then
17942 if test -z "$haveit"; then
17943 if test -d "$additional_libdir"; then
17944 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17948 for x in $LDFLAGS $LTLIBINTL; do
17950 acl_save_prefix="$prefix"
17951 prefix="$acl_final_prefix"
17952 acl_save_exec_prefix="$exec_prefix"
17953 exec_prefix="$acl_final_exec_prefix"
17955 exec_prefix="$acl_save_exec_prefix"
17956 prefix="$acl_save_prefix"
17958 if test "X$x" = "X-L$additional_libdir"; then
17963 if test -z "$haveit"; then
17964 if test -d "$additional_libdir"; then
17965 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17972 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17973 if test "$enable_rpath" != no; then
17975 for x in $rpathdirs; do
17976 if test "X$x" = "X$dir"; then
17981 if test -z "$haveit"; then
17982 rpathdirs="$rpathdirs $dir"
17985 for x in $ltrpathdirs; do
17986 if test "X$x" = "X$dir"; then
17991 if test -z "$haveit"; then
17992 ltrpathdirs="$ltrpathdirs $dir"
17997 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18000 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18003 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18004 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18010 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18011 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18017 if test "X$rpathdirs" != "X"; then
18018 if test -n "$hardcode_libdir_separator"; then
18020 for found_dir in $rpathdirs; do
18021 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18023 acl_save_libdir="$libdir"
18025 eval flag=\"$hardcode_libdir_flag_spec\"
18026 libdir="$acl_save_libdir"
18027 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18029 for found_dir in $rpathdirs; do
18030 acl_save_libdir="$libdir"
18031 libdir="$found_dir"
18032 eval flag=\"$hardcode_libdir_flag_spec\"
18033 libdir="$acl_save_libdir"
18034 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18038 if test "X$ltrpathdirs" != "X"; then
18039 for found_dir in $ltrpathdirs; do
18040 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18044 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18045 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18046 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 gt_save_CPPFLAGS="$CPPFLAGS"
18050 CPPFLAGS="$CPPFLAGS $INCINTL"
18051 gt_save_LIBS="$LIBS"
18052 LIBS="$LIBS $LIBINTL"
18053 cat >conftest.$ac_ext <<_ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 #include <libintl.h>
18060 extern int _nl_msg_cat_cntr;
18065 const char *_nl_expand_alias (const char *);
18069 bindtextdomain ("", "");
18070 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18075 rm -f conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18082 (eval "$ac_link") 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } && {
18089 test -z "$ac_c_werror_flag" ||
18090 test ! -s conftest.err
18091 } && test -s conftest$ac_exeext &&
18092 $as_test_x conftest$ac_exeext; then
18093 gt_cv_func_gnugettext1_libintl=yes
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 gt_cv_func_gnugettext1_libintl=no
18101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18102 conftest$ac_exeext conftest.$ac_ext
18103 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18104 LIBS="$LIBS $LIBICONV"
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 #include <libintl.h>
18112 extern int _nl_msg_cat_cntr;
18117 const char *_nl_expand_alias (const char *);
18121 bindtextdomain ("", "");
18122 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_link") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest$ac_exeext &&
18144 $as_test_x conftest$ac_exeext; then
18145 LIBINTL="$LIBINTL $LIBICONV"
18146 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18147 gt_cv_func_gnugettext1_libintl=yes
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18157 conftest$ac_exeext conftest.$ac_ext
18159 CPPFLAGS="$gt_save_CPPFLAGS"
18160 LIBS="$gt_save_LIBS"
18162 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18163 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18166 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18167 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18168 && test "$PACKAGE" != gettext-runtime \
18169 && test "$PACKAGE" != gettext-tools; }; then
18170 gt_use_preinstalled_gnugettext=yes
18179 if test -n "$INTL_MACOSX_LIBS"; then
18180 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18181 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18182 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18183 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18187 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18188 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18190 cat >>confdefs.h <<\_ACEOF
18191 #define ENABLE_NLS 1
18199 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18200 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18201 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18202 echo "${ECHO_T}$USE_NLS" >&6; }
18203 if test "$USE_NLS" = "yes"; then
18204 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18205 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18206 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18207 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18208 gt_source="external libintl"
18213 gt_source="included intl directory"
18215 { echo "$as_me:$LINENO: result: $gt_source" >&5
18216 echo "${ECHO_T}$gt_source" >&6; }
18219 if test "$USE_NLS" = "yes"; then
18221 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18222 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18223 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18224 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18225 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18226 echo "${ECHO_T}$LIBINTL" >&6; }
18228 for element in $INCINTL; do
18230 for x in $CPPFLAGS; do
18232 acl_save_prefix="$prefix"
18233 prefix="$acl_final_prefix"
18234 acl_save_exec_prefix="$exec_prefix"
18235 exec_prefix="$acl_final_exec_prefix"
18237 exec_prefix="$acl_save_exec_prefix"
18238 prefix="$acl_save_prefix"
18240 if test "X$x" = "X$element"; then
18245 if test -z "$haveit"; then
18246 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18253 cat >>confdefs.h <<\_ACEOF
18254 #define HAVE_GETTEXT 1
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE_DCGETTEXT 1
18269 INTLLIBS="$LIBINTL"
18276 if test x${prefix} = xNONE ; then
18277 if test `eval echo ${datarootdir}` = NONE/share ; then
18278 datarootdir=/usr/share
18282 if test x${prefix} = xNONE ; then
18283 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18284 sysconfdir=/etc/bacula
18287 if test `eval echo ${libdir}` = NONE/lib ; then
18291 if test `eval echo ${includedir}` = NONE/include ; then
18292 includedir=/usr/include
18298 if test x${exec_prefix} = xNONE ; then
18299 exec_prefix=${prefix}
18302 sysconfdir=`eval echo ${sysconfdir}`
18303 datarootdir=`eval echo ${datarootdir}`
18304 libdir=`eval echo ${libdir}`
18305 includedir=`eval echo ${includedir}`
18306 localedir=`eval echo ${datarootdir}/locale`
18307 cat >>confdefs.h <<_ACEOF
18308 #define SYSCONFDIR "$sysconfdir"
18311 cat >>confdefs.h <<_ACEOF
18312 #define LOCALEDIR "$localedir"
18316 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18317 sbindir=${exec_prefix}/sbin
18319 sbindir=`eval echo ${sbindir}`
18321 if test x$mandir = x'${prefix}/man' ; then
18322 mandir=/usr/share/man
18325 for ac_prog in msgfmt
18327 # Extract the first word of "$ac_prog", so it can be a program name with args.
18328 set dummy $ac_prog; ac_word=$2
18329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18331 if test "${ac_cv_path_MSGFMT+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18340 for as_dir in $PATH
18343 test -z "$as_dir" && as_dir=.
18344 for ac_exec_ext in '' $ac_executable_extensions; do
18345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18346 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18357 MSGFMT=$ac_cv_path_MSGFMT
18358 if test -n "$MSGFMT"; then
18359 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18360 echo "${ECHO_T}$MSGFMT" >&6; }
18362 { echo "$as_me:$LINENO: result: no" >&5
18363 echo "${ECHO_T}no" >&6; }
18367 test -n "$MSGFMT" && break
18369 test -n "$MSGFMT" || MSGFMT="no"
18371 if test "$MSGFMT" = "no"
18373 echo 'msgfmt program not found, disabling NLS !'
18375 USE_INCLUDED_LIBINTL=no
18378 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18379 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18380 if test "${ac_cv_gnu_library_2+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18390 #include <features.h>
18391 #ifdef __GNU_LIBRARY__
18392 #if (__GLIBC__ >= 2)
18398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18399 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18400 ac_cv_gnu_library_2=yes
18402 ac_cv_gnu_library_2=no
18409 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18410 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18412 GLIBC2="$ac_cv_gnu_library_2"
18415 if test -n "$ac_tool_prefix"; then
18416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18420 if test "${ac_cv_prog_RANLIB+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 if test -n "$RANLIB"; then
18424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18430 test -z "$as_dir" && as_dir=.
18431 for ac_exec_ext in '' $ac_executable_extensions; do
18432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18443 RANLIB=$ac_cv_prog_RANLIB
18444 if test -n "$RANLIB"; then
18445 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18446 echo "${ECHO_T}$RANLIB" >&6; }
18448 { echo "$as_me:$LINENO: result: no" >&5
18449 echo "${ECHO_T}no" >&6; }
18454 if test -z "$ac_cv_prog_RANLIB"; then
18455 ac_ct_RANLIB=$RANLIB
18456 # Extract the first word of "ranlib", so it can be a program name with args.
18457 set dummy ranlib; ac_word=$2
18458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 if test -n "$ac_ct_RANLIB"; then
18464 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467 for as_dir in $PATH
18470 test -z "$as_dir" && as_dir=.
18471 for ac_exec_ext in '' $ac_executable_extensions; do
18472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18473 ac_cv_prog_ac_ct_RANLIB="ranlib"
18474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18484 if test -n "$ac_ct_RANLIB"; then
18485 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18486 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18488 { echo "$as_me:$LINENO: result: no" >&5
18489 echo "${ECHO_T}no" >&6; }
18492 if test "x$ac_ct_RANLIB" = x; then
18495 case $cross_compiling:$ac_tool_warned in
18497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18498 whose name does not start with the host triplet. If you think this
18499 configuration is useful to you, please write to autoconf@gnu.org." >&5
18500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18501 whose name does not start with the host triplet. If you think this
18502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18503 ac_tool_warned=yes ;;
18505 RANLIB=$ac_ct_RANLIB
18508 RANLIB="$ac_cv_prog_RANLIB"
18512 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18513 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18514 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 ac_check_lib_save_LIBS=$LIBS
18518 LIBS="-lcposix $LIBS"
18519 cat >conftest.$ac_ext <<_ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18526 /* Override any GCC internal prototype to avoid an error.
18527 Use char because int might match the return type of a GCC
18528 builtin and then its argument prototype would still apply. */
18536 return strerror ();
18541 rm -f conftest.$ac_objext conftest$ac_exeext
18542 if { (ac_try="$ac_link"
18543 case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_link") 2>conftest.er1
18550 grep -v '^ *+' conftest.er1 >conftest.err
18552 cat conftest.err >&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); } && {
18555 test -z "$ac_c_werror_flag" ||
18556 test ! -s conftest.err
18557 } && test -s conftest$ac_exeext &&
18558 $as_test_x conftest$ac_exeext; then
18559 ac_cv_lib_cposix_strerror=yes
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 ac_cv_lib_cposix_strerror=no
18567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18572 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18573 if test $ac_cv_lib_cposix_strerror = yes; then
18574 LIBS="$LIBS -lcposix"
18579 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18580 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18581 if test "${ac_cv_c_const+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18594 /* FIXME: Include the comments suggested by Paul. */
18595 #ifndef __cplusplus
18596 /* Ultrix mips cc rejects this. */
18597 typedef int charset[2];
18599 /* SunOS 4.1.1 cc rejects this. */
18600 char const *const *pcpcc;
18602 /* NEC SVR4.0.2 mips cc rejects this. */
18603 struct point {int x, y;};
18604 static struct point const zero = {0,0};
18605 /* AIX XL C 1.02.0.0 rejects this.
18606 It does not let you subtract one const X* pointer from another in
18607 an arm of an if-expression whose if-part is not a constant
18609 const char *g = "string";
18610 pcpcc = &g + (g ? g-g : 0);
18611 /* HPUX 7.0 cc rejects these. */
18613 ppc = (char**) pcpcc;
18614 pcpcc = (char const *const *) ppc;
18615 { /* SCO 3.2v4 cc rejects this. */
18617 char const *s = 0 ? (char *) 0 : (char const *) 0;
18622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18623 int x[] = {25, 17};
18624 const int *foo = &x[0];
18627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18628 typedef const int *iptr;
18632 { /* AIX XL C 1.02.0.0 rejects this saying
18633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18634 struct s { int j; const int *ap[3]; };
18635 struct s *b; b->j = 5;
18637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18638 const int foo = 10;
18639 if (!foo) return 0;
18641 return !cs[0] && !zero.x;
18648 rm -f conftest.$ac_objext
18649 if { (ac_try="$ac_compile"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_compile") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest.$ac_objext; then
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18675 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18676 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18677 if test $ac_cv_c_const = no; then
18679 cat >>confdefs.h <<\_ACEOF
18686 { echo "$as_me:$LINENO: checking for signed" >&5
18687 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18688 if test "${bh_cv_c_signed+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18706 rm -f conftest.$ac_objext
18707 if { (ac_try="$ac_compile"
18708 case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_compile") 2>conftest.er1
18715 grep -v '^ *+' conftest.er1 >conftest.err
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && {
18720 test -z "$ac_c_werror_flag" ||
18721 test ! -s conftest.err
18722 } && test -s conftest.$ac_objext; then
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18733 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18734 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18735 if test $bh_cv_c_signed = no; then
18737 cat >>confdefs.h <<\_ACEOF
18743 { echo "$as_me:$LINENO: checking for inline" >&5
18744 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18745 if test "${ac_cv_c_inline+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18749 for ac_kw in inline __inline__ __inline; do
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 #ifndef __cplusplus
18758 static $ac_kw foo_t static_foo () {return 0; }
18759 $ac_kw foo_t foo () {return 0; }
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
18780 ac_cv_c_inline=$ac_kw
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
18789 test "$ac_cv_c_inline" != no && break
18793 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18794 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18797 case $ac_cv_c_inline in
18800 case $ac_cv_c_inline in
18802 *) ac_val=$ac_cv_c_inline;;
18804 cat >>confdefs.h <<_ACEOF
18805 #ifndef __cplusplus
18806 #define inline $ac_val
18812 { echo "$as_me:$LINENO: checking for off_t" >&5
18813 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18814 if test "${ac_cv_type_off_t+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 $ac_includes_default
18824 typedef off_t ac__type_new_;
18828 if ((ac__type_new_ *) 0)
18830 if (sizeof (ac__type_new_))
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_compile") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest.$ac_objext; then
18853 ac_cv_type_off_t=yes
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 ac_cv_type_off_t=no
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18863 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18864 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18865 if test $ac_cv_type_off_t = yes; then
18869 cat >>confdefs.h <<_ACEOF
18870 #define off_t long int
18875 { echo "$as_me:$LINENO: checking for size_t" >&5
18876 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18877 if test "${ac_cv_type_size_t+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18887 typedef size_t ac__type_new_;
18891 if ((ac__type_new_ *) 0)
18893 if (sizeof (ac__type_new_))
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_compile") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest.$ac_objext; then
18916 ac_cv_type_size_t=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_cv_type_size_t=no
18924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18927 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18928 if test $ac_cv_type_size_t = yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define size_t unsigned int
18939 { echo "$as_me:$LINENO: checking for long long" >&5
18940 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18941 if test "${ac_cv_type_long_long+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 cat >conftest.$ac_ext <<_ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 long long ll = 1LL; int i = 63;
18954 long long llmax = (long long) -1;
18955 return ll << i | ll >> i | llmax / ll | llmax % ll;
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_type_long_long=yes
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_type_long_long=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18989 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18990 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18991 if test $ac_cv_type_long_long = yes; then
18993 cat >>confdefs.h <<\_ACEOF
18994 #define HAVE_LONG_LONG 1
19000 { echo "$as_me:$LINENO: checking for long double" >&5
19001 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19002 if test "${gt_cv_c_long_double+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 if test "$GCC" = yes; then
19006 gt_cv_c_long_double=yes
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19015 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19016 long double foo = 0.0;
19017 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19018 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19028 rm -f conftest.$ac_objext
19029 if { (ac_try="$ac_compile"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_compile") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } && {
19042 test -z "$ac_c_werror_flag" ||
19043 test ! -s conftest.err
19044 } && test -s conftest.$ac_objext; then
19045 gt_cv_c_long_double=yes
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 gt_cv_c_long_double=no
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19057 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19058 if test $gt_cv_c_long_double = yes; then
19060 cat >>confdefs.h <<\_ACEOF
19061 #define HAVE_LONG_DOUBLE 1
19067 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19068 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19069 if test "${gt_cv_c_wchar_t+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 #include <stddef.h>
19079 wchar_t foo = (wchar_t)'\0';
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_compile") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest.$ac_objext; then
19105 gt_cv_c_wchar_t=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19116 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19117 if test $gt_cv_c_wchar_t = yes; then
19119 cat >>confdefs.h <<\_ACEOF
19120 #define HAVE_WCHAR_T 1
19126 { echo "$as_me:$LINENO: checking for wint_t" >&5
19127 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19128 if test "${gt_cv_c_wint_t+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19138 wint_t foo = (wchar_t)'\0';
19147 rm -f conftest.$ac_objext
19148 if { (ac_try="$ac_compile"
19149 case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_compile") 2>conftest.er1
19156 grep -v '^ *+' conftest.er1 >conftest.err
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest.$ac_objext; then
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19174 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19175 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19176 if test $gt_cv_c_wint_t = yes; then
19178 cat >>confdefs.h <<\_ACEOF
19179 #define HAVE_WINT_T 1
19185 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19186 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19187 if test "${gl_cv_header_inttypes_h+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 #include <sys/types.h>
19197 #include <inttypes.h>
19201 uintmax_t i = (uintmax_t) -1;
19206 rm -f conftest.$ac_objext
19207 if { (ac_try="$ac_compile"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_compile") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest.$ac_objext; then
19223 gl_cv_header_inttypes_h=yes
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 gl_cv_header_inttypes_h=no
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19234 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19235 if test $gl_cv_header_inttypes_h = yes; then
19237 cat >>confdefs.h <<_ACEOF
19238 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19244 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19245 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19246 if test "${gl_cv_header_stdint_h+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 cat >conftest.$ac_ext <<_ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h. */
19255 #include <sys/types.h>
19256 #include <stdint.h>
19260 uintmax_t i = (uintmax_t) -1;
19265 rm -f conftest.$ac_objext
19266 if { (ac_try="$ac_compile"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_compile") 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } && {
19279 test -z "$ac_c_werror_flag" ||
19280 test ! -s conftest.err
19281 } && test -s conftest.$ac_objext; then
19282 gl_cv_header_stdint_h=yes
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 gl_cv_header_stdint_h=no
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19293 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19294 if test $gl_cv_header_stdint_h = yes; then
19296 cat >>confdefs.h <<_ACEOF
19297 #define HAVE_STDINT_H_WITH_UINTMAX 1
19305 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19306 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19307 if test "${gt_cv_c_intmax_t+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 cat >conftest.$ac_ext <<_ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19317 #include <stddef.h>
19318 #include <stdlib.h>
19319 #if HAVE_STDINT_H_WITH_UINTMAX
19320 #include <stdint.h>
19322 #if HAVE_INTTYPES_H_WITH_UINTMAX
19323 #include <inttypes.h>
19334 rm -f conftest.$ac_objext
19335 if { (ac_try="$ac_compile"
19336 case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_compile") 2>conftest.er1
19343 grep -v '^ *+' conftest.er1 >conftest.err
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && {
19348 test -z "$ac_c_werror_flag" ||
19349 test ! -s conftest.err
19350 } && test -s conftest.$ac_objext; then
19351 gt_cv_c_intmax_t=yes
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 gt_cv_c_intmax_t=no
19359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19361 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19362 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19363 if test $gt_cv_c_intmax_t = yes; then
19365 cat >>confdefs.h <<\_ACEOF
19366 #define HAVE_INTMAX_T 1
19373 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19374 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19375 if test "${gt_cv_func_printf_posix+set}" = set; then
19376 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 if test "$cross_compiling" = yes; then
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19394 $EGREP "notposix" >/dev/null 2>&1; then
19395 gt_cv_func_printf_posix="guessing no"
19397 gt_cv_func_printf_posix="guessing yes"
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19411 #include <string.h>
19412 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19413 dollar expansion (possibly an autoconf bug). */
19414 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19415 static char buf[100];
19418 sprintf (buf, format, 33, 55);
19419 return (strcmp (buf, "55 33") != 0);
19422 rm -f conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_link") 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 gt_cv_func_printf_posix=yes
19444 echo "$as_me: program exited with status $ac_status" >&5
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ( exit $ac_status )
19449 gt_cv_func_printf_posix=no
19451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19457 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19458 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19459 case $gt_cv_func_printf_posix in
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_POSIX_PRINTF 1
19469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19470 # for constant arguments. Useless!
19471 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19472 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19473 if test "${ac_cv_working_alloca_h+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 #include <alloca.h>
19486 char *p = (char *) alloca (2 * sizeof (int));
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && {
19506 test -z "$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 } && test -s conftest$ac_exeext &&
19509 $as_test_x conftest$ac_exeext; then
19510 ac_cv_working_alloca_h=yes
19512 echo "$as_me: failed program was:" >&5
19513 sed 's/^/| /' conftest.$ac_ext >&5
19515 ac_cv_working_alloca_h=no
19518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19519 conftest$ac_exeext conftest.$ac_ext
19521 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19522 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19523 if test $ac_cv_working_alloca_h = yes; then
19525 cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_ALLOCA_H 1
19531 { echo "$as_me:$LINENO: checking for alloca" >&5
19532 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19533 if test "${ac_cv_func_alloca_works+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 cat >conftest.$ac_ext <<_ACEOF
19539 cat confdefs.h >>conftest.$ac_ext
19540 cat >>conftest.$ac_ext <<_ACEOF
19541 /* end confdefs.h. */
19543 # define alloca __builtin_alloca
19546 # include <malloc.h>
19547 # define alloca _alloca
19549 # ifdef HAVE_ALLOCA_H
19550 # include <alloca.h>
19555 # ifndef alloca /* predefined by HP cc +Olibcalls */
19566 char *p = (char *) alloca (1);
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest$ac_exeext &&
19589 $as_test_x conftest$ac_exeext; then
19590 ac_cv_func_alloca_works=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_func_alloca_works=no
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19601 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19602 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19604 if test $ac_cv_func_alloca_works = yes; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_ALLOCA 1
19611 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19612 # that cause trouble. Some versions do not even contain alloca or
19613 # contain a buggy version. If you still want to use their alloca,
19614 # use ar to extract alloca.o from them instead of compiling alloca.c.
19616 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19618 cat >>confdefs.h <<\_ACEOF
19623 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19624 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19625 if test "${ac_cv_os_cray+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #if defined CRAY && ! defined CRAY2
19641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19642 $EGREP "webecray" >/dev/null 2>&1; then
19650 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19651 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19652 if test $ac_cv_os_cray = yes; then
19653 for ac_func in _getb67 GETB67 getb67; do
19654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19668 #define $ac_func innocuous_$ac_func
19670 /* System header to define __stub macros and hopefully few prototypes,
19671 which can conflict with char $ac_func (); below.
19672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19673 <limits.h> exists even on freestanding compilers. */
19676 # include <limits.h>
19678 # include <assert.h>
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19690 /* The GNU C library defines this for functions which it implements
19691 to always fail with ENOSYS. Some functions are actually named
19692 something starting with __ and the normal name is an alias. */
19693 #if defined __stub_$ac_func || defined __stub___$ac_func
19700 return $ac_func ();
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (ac_try="$ac_link"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>conftest.er1
19714 grep -v '^ *+' conftest.er1 >conftest.err
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && {
19719 test -z "$ac_c_werror_flag" ||
19720 test ! -s conftest.err
19721 } && test -s conftest$ac_exeext &&
19722 $as_test_x conftest$ac_exeext; then
19723 eval "$as_ac_var=yes"
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 eval "$as_ac_var=no"
19731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732 conftest$ac_exeext conftest.$ac_ext
19734 ac_res=`eval echo '${'$as_ac_var'}'`
19735 { echo "$as_me:$LINENO: result: $ac_res" >&5
19736 echo "${ECHO_T}$ac_res" >&6; }
19737 if test `eval echo '${'$as_ac_var'}'` = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 #define CRAY_STACKSEG_END $ac_func
19749 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19751 if test "${ac_cv_c_stack_direction+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 if test "$cross_compiling" = yes; then
19755 ac_cv_c_stack_direction=0
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 $ac_includes_default
19765 find_stack_direction ()
19767 static char *addr = 0;
19772 return find_stack_direction ();
19775 return (&dummy > addr) ? 1 : -1;
19781 return find_stack_direction () < 0;
19784 rm -f conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_link") 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19795 { (case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_try") 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804 ac_cv_c_stack_direction=1
19806 echo "$as_me: program exited with status $ac_status" >&5
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ( exit $ac_status )
19811 ac_cv_c_stack_direction=-1
19813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19818 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19819 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19821 cat >>confdefs.h <<_ACEOF
19822 #define STACK_DIRECTION $ac_cv_c_stack_direction
19830 for ac_header in stdlib.h unistd.h
19832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 ac_res=`eval echo '${'$as_ac_Header'}'`
19840 { echo "$as_me:$LINENO: result: $ac_res" >&5
19841 echo "${ECHO_T}$ac_res" >&6; }
19843 # Is the header compilable?
19844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19846 cat >conftest.$ac_ext <<_ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19852 $ac_includes_default
19853 #include <$ac_header>
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_compile") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest.$ac_objext; then
19872 ac_header_compiler=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_header_compiler=no
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19882 echo "${ECHO_T}$ac_header_compiler" >&6; }
19884 # Is the header present?
19885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <$ac_header>
19895 if { (ac_try="$ac_cpp conftest.$ac_ext"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } >/dev/null && {
19908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19911 ac_header_preproc=yes
19913 echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19916 ac_header_preproc=no
19919 rm -f conftest.err conftest.$ac_ext
19920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19921 echo "${ECHO_T}$ac_header_preproc" >&6; }
19923 # So? What about this header?
19924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19930 ac_header_preproc=yes
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 eval "$as_ac_Header=\$ac_header_preproc"
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956 { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19961 cat >>confdefs.h <<_ACEOF
19962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19970 for ac_func in getpagesize
19972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 cat >conftest.$ac_ext <<_ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19986 #define $ac_func innocuous_$ac_func
19988 /* System header to define __stub macros and hopefully few prototypes,
19989 which can conflict with char $ac_func (); below.
19990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19991 <limits.h> exists even on freestanding compilers. */
19994 # include <limits.h>
19996 # include <assert.h>
20001 /* Override any GCC internal prototype to avoid an error.
20002 Use char because int might match the return type of a GCC
20003 builtin and then its argument prototype would still apply. */
20008 /* The GNU C library defines this for functions which it implements
20009 to always fail with ENOSYS. Some functions are actually named
20010 something starting with __ and the normal name is an alias. */
20011 #if defined __stub_$ac_func || defined __stub___$ac_func
20018 return $ac_func ();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 eval "$as_ac_var=yes"
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 eval "$as_ac_var=no"
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20052 ac_res=`eval echo '${'$as_ac_var'}'`
20053 { echo "$as_me:$LINENO: result: $ac_res" >&5
20054 echo "${ECHO_T}$ac_res" >&6; }
20055 if test `eval echo '${'$as_ac_var'}'` = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20063 { echo "$as_me:$LINENO: checking for working mmap" >&5
20064 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20065 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 if test "$cross_compiling" = yes; then
20069 ac_cv_func_mmap_fixed_mapped=no
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 $ac_includes_default
20078 /* malloc might have been renamed as rpl_malloc. */
20081 /* Thanks to Mike Haertel and Jim Avera for this test.
20082 Here is a matrix of mmap possibilities:
20083 mmap private not fixed
20084 mmap private fixed at somewhere currently unmapped
20085 mmap private fixed at somewhere already mapped
20086 mmap shared not fixed
20087 mmap shared fixed at somewhere currently unmapped
20088 mmap shared fixed at somewhere already mapped
20089 For private mappings, we should verify that changes cannot be read()
20090 back from the file, nor mmap's back from the file at a different
20091 address. (There have been systems where private was not correctly
20092 implemented like the infamous i386 svr4.0, and systems where the
20093 VM page cache was not coherent with the file system buffer cache
20094 like early versions of FreeBSD and possibly contemporary NetBSD.)
20095 For shared mappings, we should conversely verify that changes get
20096 propagated back to all the places they're supposed to be.
20098 Grep wants private fixed already mapped.
20099 The main things grep needs to know about mmap are:
20100 * does it exist and is it safe to write into the mmap'd area
20101 * how to use it (BSD variants) */
20104 #include <sys/mman.h>
20106 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20110 /* This mess was copied from the GNU getpagesize.h. */
20111 #ifndef HAVE_GETPAGESIZE
20112 /* Assume that all systems that can run configure have sys/param.h. */
20113 # ifndef HAVE_SYS_PARAM_H
20114 # define HAVE_SYS_PARAM_H 1
20117 # ifdef _SC_PAGESIZE
20118 # define getpagesize() sysconf(_SC_PAGESIZE)
20119 # else /* no _SC_PAGESIZE */
20120 # ifdef HAVE_SYS_PARAM_H
20121 # include <sys/param.h>
20122 # ifdef EXEC_PAGESIZE
20123 # define getpagesize() EXEC_PAGESIZE
20124 # else /* no EXEC_PAGESIZE */
20126 # define getpagesize() NBPG * CLSIZE
20129 # endif /* no CLSIZE */
20130 # else /* no NBPG */
20132 # define getpagesize() NBPC
20133 # else /* no NBPC */
20135 # define getpagesize() PAGESIZE
20136 # endif /* PAGESIZE */
20137 # endif /* no NBPC */
20138 # endif /* no NBPG */
20139 # endif /* no EXEC_PAGESIZE */
20140 # else /* no HAVE_SYS_PARAM_H */
20141 # define getpagesize() 8192 /* punt totally */
20142 # endif /* no HAVE_SYS_PARAM_H */
20143 # endif /* no _SC_PAGESIZE */
20145 #endif /* no HAVE_GETPAGESIZE */
20150 char *data, *data2, *data3;
20154 pagesize = getpagesize ();
20156 /* First, make a file with some known garbage in it. */
20157 data = (char *) malloc (pagesize);
20160 for (i = 0; i < pagesize; ++i)
20161 *(data + i) = rand ();
20163 fd = creat ("conftest.mmap", 0600);
20166 if (write (fd, data, pagesize) != pagesize)
20170 /* Next, try to mmap the file at a fixed address which already has
20171 something else allocated at it. If we can, also make sure that
20172 we see the same garbage. */
20173 fd = open ("conftest.mmap", O_RDWR);
20176 data2 = (char *) malloc (2 * pagesize);
20179 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20181 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20183 for (i = 0; i < pagesize; ++i)
20184 if (*(data + i) != *(data2 + i))
20187 /* Finally, make sure that changes to the mapped area do not
20188 percolate back to the file as seen by read(). (This is a bug on
20189 some variants of i386 svr4.0.) */
20190 for (i = 0; i < pagesize; ++i)
20191 *(data2 + i) = *(data2 + i) + 1;
20192 data3 = (char *) malloc (pagesize);
20195 if (read (fd, data3, pagesize) != pagesize)
20197 for (i = 0; i < pagesize; ++i)
20198 if (*(data + i) != *(data3 + i))
20204 rm -f conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20215 { (case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_try") 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_cv_func_mmap_fixed_mapped=yes
20226 echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ( exit $ac_status )
20231 ac_cv_func_mmap_fixed_mapped=no
20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20238 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20239 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20242 cat >>confdefs.h <<\_ACEOF
20243 #define HAVE_MMAP 1
20247 rm -f conftest.mmap
20250 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20251 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20252 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 #include <features.h>
20263 #ifdef __GNU_LIBRARY__
20264 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20271 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20272 ac_cv_gnu_library_2_1=yes
20274 ac_cv_gnu_library_2_1=no
20281 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20282 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20284 GLIBC21="$ac_cv_gnu_library_2_1"
20289 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20290 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20291 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 if test "$cross_compiling" = yes; then
20297 # Guess based on the CPU.
20298 case "$host_cpu" in
20299 alpha* | i3456786 | m68k | s390*)
20300 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20302 gt_cv_int_divbyzero_sigfpe="guessing no";;
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20313 #include <stdlib.h>
20314 #include <signal.h>
20318 sigfpe_handler (int sig)
20320 sigfpe_handler (sig) int sig;
20323 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20324 exit (sig != SIGFPE);
20334 signal (SIGFPE, sigfpe_handler);
20335 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20336 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20337 signal (SIGTRAP, sigfpe_handler);
20339 /* Linux/SPARC yields signal SIGILL. */
20340 #if defined (__sparc__) && defined (__linux__)
20341 signal (SIGILL, sigfpe_handler);
20350 rm -f conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_link") 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20361 { (case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_try") 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 gt_cv_int_divbyzero_sigfpe=yes
20372 echo "$as_me: program exited with status $ac_status" >&5
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ( exit $ac_status )
20377 gt_cv_int_divbyzero_sigfpe=no
20379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20385 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20386 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20387 case "$gt_cv_int_divbyzero_sigfpe" in
20392 cat >>confdefs.h <<_ACEOF
20393 #define INTDIV0_RAISES_SIGFPE $value
20398 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20399 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20400 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 unsigned long long ull = 1ULL; int i = 63;
20413 unsigned long long ullmax = (unsigned long long) -1;
20414 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_link") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest$ac_exeext &&
20436 $as_test_x conftest$ac_exeext; then
20437 ac_cv_type_unsigned_long_long=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20442 ac_cv_type_unsigned_long_long=no
20445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20446 conftest$ac_exeext conftest.$ac_ext
20448 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20449 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20450 if test $ac_cv_type_unsigned_long_long = yes; then
20452 cat >>confdefs.h <<\_ACEOF
20453 #define HAVE_UNSIGNED_LONG_LONG 1
20461 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20463 test $ac_cv_type_unsigned_long_long = yes \
20464 && ac_type='unsigned long long' \
20465 || ac_type='unsigned long'
20467 cat >>confdefs.h <<_ACEOF
20468 #define uintmax_t $ac_type
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_UINTMAX_T 1
20480 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20481 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20482 if test "${gt_cv_header_inttypes_h+set}" = set; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 #include <sys/types.h>
20493 #include <inttypes.h>
20502 rm -f conftest.$ac_objext
20503 if { (ac_try="$ac_compile"
20504 case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_compile") 2>conftest.er1
20511 grep -v '^ *+' conftest.er1 >conftest.err
20513 cat conftest.err >&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); } && {
20516 test -z "$ac_c_werror_flag" ||
20517 test ! -s conftest.err
20518 } && test -s conftest.$ac_objext; then
20519 gt_cv_header_inttypes_h=yes
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 gt_cv_header_inttypes_h=no
20527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20530 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20531 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20532 if test $gt_cv_header_inttypes_h = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_INTTYPES_H 1
20542 if test $gt_cv_header_inttypes_h = yes; then
20543 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20544 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20545 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20555 #include <inttypes.h>
20568 rm -f conftest.$ac_objext
20569 if { (ac_try="$ac_compile"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_compile") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest.$ac_objext; then
20585 gt_cv_inttypes_pri_broken=no
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 gt_cv_inttypes_pri_broken=yes
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20596 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20597 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20599 if test "$gt_cv_inttypes_pri_broken" = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define PRI_MACROS_BROKEN 1
20609 for ac_header in stdint.h
20611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20616 echo $ECHO_N "(cached) $ECHO_C" >&6
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619 { echo "$as_me:$LINENO: result: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20622 # Is the header compilable?
20623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 $ac_includes_default
20632 #include <$ac_header>
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_compile") 2>conftest.er1
20643 grep -v '^ *+' conftest.er1 >conftest.err
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && {
20648 test -z "$ac_c_werror_flag" ||
20649 test ! -s conftest.err
20650 } && test -s conftest.$ac_objext; then
20651 ac_header_compiler=yes
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20656 ac_header_compiler=no
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20661 echo "${ECHO_T}$ac_header_compiler" >&6; }
20663 # Is the header present?
20664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <$ac_header>
20674 if { (ac_try="$ac_cpp conftest.$ac_ext"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1 >conftest.err
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } >/dev/null && {
20687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20690 ac_header_preproc=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_header_preproc=no
20698 rm -f conftest.err conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20700 echo "${ECHO_T}$ac_header_preproc" >&6; }
20702 # So? What about this header?
20703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20709 ac_header_preproc=yes
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 eval "$as_ac_Header=\$ac_header_preproc"
20734 ac_res=`eval echo '${'$as_ac_Header'}'`
20735 { echo "$as_me:$LINENO: result: $ac_res" >&5
20736 echo "${ECHO_T}$ac_res" >&6; }
20739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20748 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20749 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20758 #include <limits.h>
20760 #include <stdint.h>
20767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20768 $EGREP "Found it" >/dev/null 2>&1; then
20773 if test -z "$result"; then
20774 if test "$cross_compiling" = yes; then
20775 # Depending upon the size, compute the lo and hi bounds.
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 #include <stddef.h>
20786 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20793 rm -f conftest.$ac_objext
20794 if { (ac_try="$ac_compile"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_compile") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest.$ac_objext; then
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 #include <stddef.h>
20822 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_compile") 2>conftest.er1
20838 grep -v '^ *+' conftest.er1 >conftest.err
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest.$ac_objext; then
20846 ac_hi=$ac_mid; break
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 ac_lo=`expr $ac_mid + 1`
20852 if test $ac_lo -le $ac_mid; then
20856 ac_mid=`expr 2 '*' $ac_mid + 1`
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 #include <stddef.h>
20875 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20907 #include <stddef.h>
20911 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 ac_lo=$ac_mid; break
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_hi=`expr '(' $ac_mid ')' - 1`
20941 if test $ac_mid -le $ac_hi; then
20945 ac_mid=`expr 2 '*' $ac_mid`
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 # Binary search between lo and hi bounds.
20962 while test "x$ac_lo" != "x$ac_hi"; do
20963 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 #include <stddef.h>
20974 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20981 rm -f conftest.$ac_objext
20982 if { (ac_try="$ac_compile"
20983 case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_compile") 2>conftest.er1
20990 grep -v '^ *+' conftest.er1 >conftest.err
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } && {
20995 test -z "$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20997 } && test -s conftest.$ac_objext; then
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_lo=`expr '(' $ac_mid ')' + 1`
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 ?*) res_hi=$ac_lo;;
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #include <stddef.h>
21020 static long int longval () { return ~(size_t)0 / 10; }
21021 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21023 #include <stdlib.h>
21028 FILE *f = fopen ("conftest.val", "w");
21031 if ((~(size_t)0 / 10) < 0)
21033 long int i = longval ();
21034 if (i != (~(size_t)0 / 10))
21036 fprintf (f, "%ld\n", i);
21040 unsigned long int i = ulongval ();
21041 if (i != (~(size_t)0 / 10))
21043 fprintf (f, "%lu\n", i);
21045 return ferror (f) || fclose (f) != 0;
21051 rm -f conftest$ac_exeext
21052 if { (ac_try="$ac_link"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_link") 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21062 { (case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_try") 2>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071 res_hi=`cat conftest.val`
21073 echo "$as_me: program exited with status $ac_status" >&5
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21077 ( exit $ac_status )
21080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21084 if test "$cross_compiling" = yes; then
21085 # Depending upon the size, compute the lo and hi bounds.
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21096 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21103 rm -f conftest.$ac_objext
21104 if { (ac_try="$ac_compile"
21105 case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110 (eval "$ac_compile") 2>conftest.er1
21112 grep -v '^ *+' conftest.er1 >conftest.err
21114 cat conftest.err >&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } && {
21117 test -z "$ac_c_werror_flag" ||
21118 test ! -s conftest.err
21119 } && test -s conftest.$ac_objext; then
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <stddef.h>
21132 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_compile") 2>conftest.er1
21148 grep -v '^ *+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } && {
21153 test -z "$ac_c_werror_flag" ||
21154 test ! -s conftest.err
21155 } && test -s conftest.$ac_objext; then
21156 ac_hi=$ac_mid; break
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_lo=`expr $ac_mid + 1`
21162 if test $ac_lo -le $ac_mid; then
21166 ac_mid=`expr 2 '*' $ac_mid + 1`
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21181 #include <stddef.h>
21185 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21192 rm -f conftest.$ac_objext
21193 if { (ac_try="$ac_compile"
21194 case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_compile") 2>conftest.er1
21201 grep -v '^ *+' conftest.er1 >conftest.err
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } && {
21206 test -z "$ac_c_werror_flag" ||
21207 test ! -s conftest.err
21208 } && test -s conftest.$ac_objext; then
21211 cat >conftest.$ac_ext <<_ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 #include <stddef.h>
21221 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21228 rm -f conftest.$ac_objext
21229 if { (ac_try="$ac_compile"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_compile") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest.$ac_objext; then
21245 ac_lo=$ac_mid; break
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_hi=`expr '(' $ac_mid ')' - 1`
21251 if test $ac_mid -le $ac_hi; then
21255 ac_mid=`expr 2 '*' $ac_mid`
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 # Binary search between lo and hi bounds.
21272 while test "x$ac_lo" != "x$ac_hi"; do
21273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 #include <stddef.h>
21284 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21291 rm -f conftest.$ac_objext
21292 if { (ac_try="$ac_compile"
21293 case "(($ac_try" in
21294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295 *) ac_try_echo=$ac_try;;
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_compile") 2>conftest.er1
21300 grep -v '^ *+' conftest.er1 >conftest.err
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest.$ac_objext; then
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ac_lo=`expr '(' $ac_mid ')' + 1`
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 ?*) res_lo=$ac_lo;;
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 #include <stddef.h>
21330 static long int longval () { return ~(size_t)0 % 10; }
21331 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21333 #include <stdlib.h>
21338 FILE *f = fopen ("conftest.val", "w");
21341 if ((~(size_t)0 % 10) < 0)
21343 long int i = longval ();
21344 if (i != (~(size_t)0 % 10))
21346 fprintf (f, "%ld\n", i);
21350 unsigned long int i = ulongval ();
21351 if (i != (~(size_t)0 % 10))
21353 fprintf (f, "%lu\n", i);
21355 return ferror (f) || fclose (f) != 0;
21361 rm -f conftest$ac_exeext
21362 if { (ac_try="$ac_link"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_link") 2>&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21372 { (case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_try") 2>&5
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 res_lo=`cat conftest.val`
21383 echo "$as_me: program exited with status $ac_status" >&5
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ( exit $ac_status )
21390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21394 if test "$cross_compiling" = yes; then
21395 # Depending upon the size, compute the lo and hi bounds.
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 #include <stddef.h>
21406 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && {
21427 test -z "$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21429 } && test -s conftest.$ac_objext; then
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <stddef.h>
21442 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21449 rm -f conftest.$ac_objext
21450 if { (ac_try="$ac_compile"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_compile") 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } && {
21463 test -z "$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21465 } && test -s conftest.$ac_objext; then
21466 ac_hi=$ac_mid; break
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_lo=`expr $ac_mid + 1`
21472 if test $ac_lo -le $ac_mid; then
21476 ac_mid=`expr 2 '*' $ac_mid + 1`
21479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21491 #include <stddef.h>
21495 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21502 rm -f conftest.$ac_objext
21503 if { (ac_try="$ac_compile"
21504 case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_compile") 2>conftest.er1
21511 grep -v '^ *+' conftest.er1 >conftest.err
21513 cat conftest.err >&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } && {
21516 test -z "$ac_c_werror_flag" ||
21517 test ! -s conftest.err
21518 } && test -s conftest.$ac_objext; then
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21527 #include <stddef.h>
21531 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_compile") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest.$ac_objext; then
21555 ac_lo=$ac_mid; break
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_hi=`expr '(' $ac_mid ')' - 1`
21561 if test $ac_mid -le $ac_hi; then
21565 ac_mid=`expr 2 '*' $ac_mid`
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 # Binary search between lo and hi bounds.
21582 while test "x$ac_lo" != "x$ac_hi"; do
21583 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <stddef.h>
21594 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21601 rm -f conftest.$ac_objext
21602 if { (ac_try="$ac_compile"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_compile") 2>conftest.er1
21610 grep -v '^ *+' conftest.er1 >conftest.err
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } && {
21615 test -z "$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 } && test -s conftest.$ac_objext; then
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21623 ac_lo=`expr '(' $ac_mid ')' + 1`
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 ?*) fits_in_uint=$ac_lo;;
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 #include <stddef.h>
21640 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21641 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21643 #include <stdlib.h>
21648 FILE *f = fopen ("conftest.val", "w");
21651 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21653 long int i = longval ();
21654 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21656 fprintf (f, "%ld\n", i);
21660 unsigned long int i = ulongval ();
21661 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21663 fprintf (f, "%lu\n", i);
21665 return ferror (f) || fclose (f) != 0;
21671 rm -f conftest$ac_exeext
21672 if { (ac_try="$ac_link"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_link") 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21682 { (case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_try") 2>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 fits_in_uint=`cat conftest.val`
21693 echo "$as_me: program exited with status $ac_status" >&5
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ( exit $ac_status )
21700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21704 if test "$fits_in_uint" = 1; then
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <stddef.h>
21713 extern unsigned long foo;
21723 rm -f conftest.$ac_objext
21724 if { (ac_try="$ac_compile"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_compile") 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } && {
21737 test -z "$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21739 } && test -s conftest.$ac_objext; then
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 if test -z "$result"; then
21751 if test "$fits_in_uint" = 1; then
21752 result="$res_hi$res_lo"U
21754 result="$res_hi$res_lo"UL
21757 result='~(size_t)0'
21760 { echo "$as_me:$LINENO: result: $result" >&5
21761 echo "${ECHO_T}$result" >&6; }
21762 if test "$result" != yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define SIZE_MAX $result
21774 for ac_header in stdint.h
21776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 ac_res=`eval echo '${'$as_ac_Header'}'`
21784 { echo "$as_me:$LINENO: result: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21787 # Is the header compilable?
21788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 $ac_includes_default
21797 #include <$ac_header>
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_compile") 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest.$ac_objext; then
21816 ac_header_compiler=yes
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_compiler=no
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21826 echo "${ECHO_T}$ac_header_compiler" >&6; }
21828 # Is the header present?
21829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 #include <$ac_header>
21839 if { (ac_try="$ac_cpp conftest.$ac_ext"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } >/dev/null && {
21852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21855 ac_header_preproc=yes
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_header_preproc=no
21863 rm -f conftest.err conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21865 echo "${ECHO_T}$ac_header_preproc" >&6; }
21867 # So? What about this header?
21868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21874 ac_header_preproc=yes
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 eval "$as_ac_Header=\$ac_header_preproc"
21899 ac_res=`eval echo '${'$as_ac_Header'}'`
21900 { echo "$as_me:$LINENO: result: $ac_res" >&5
21901 echo "${ECHO_T}$ac_res" >&6; }
21904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21905 cat >>confdefs.h <<_ACEOF
21906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21920 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21921 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21922 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 $ac_includes_default
21932 typedef ptrdiff_t ac__type_new_;
21936 if ((ac__type_new_ *) 0)
21938 if (sizeof (ac__type_new_))
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21961 ac_cv_type_ptrdiff_t=yes
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_cv_type_ptrdiff_t=no
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21972 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21973 if test $ac_cv_type_ptrdiff_t = yes; then
21977 cat >>confdefs.h <<\_ACEOF
21978 #define ptrdiff_t long
21994 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21995 stdlib.h string.h unistd.h sys/param.h
21997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 ac_res=`eval echo '${'$as_ac_Header'}'`
22005 { echo "$as_me:$LINENO: result: $ac_res" >&5
22006 echo "${ECHO_T}$ac_res" >&6; }
22008 # Is the header compilable?
22009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22011 cat >conftest.$ac_ext <<_ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h. */
22017 $ac_includes_default
22018 #include <$ac_header>
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_compile") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && {
22034 test -z "$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 } && test -s conftest.$ac_objext; then
22037 ac_header_compiler=yes
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_header_compiler=no
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22047 echo "${ECHO_T}$ac_header_compiler" >&6; }
22049 # Is the header present?
22050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22052 cat >conftest.$ac_ext <<_ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h. */
22058 #include <$ac_header>
22060 if { (ac_try="$ac_cpp conftest.$ac_ext"
22061 case "(($ac_try" in
22062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063 *) ac_try_echo=$ac_try;;
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22068 grep -v '^ *+' conftest.er1 >conftest.err
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } >/dev/null && {
22073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22076 ac_header_preproc=yes
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ac_header_preproc=no
22084 rm -f conftest.err conftest.$ac_ext
22085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086 echo "${ECHO_T}$ac_header_preproc" >&6; }
22088 # So? What about this header?
22089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22095 ac_header_preproc=yes
22098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22118 eval "$as_ac_Header=\$ac_header_preproc"
22120 ac_res=`eval echo '${'$as_ac_Header'}'`
22121 { echo "$as_me:$LINENO: result: $ac_res" >&5
22122 echo "${ECHO_T}$ac_res" >&6; }
22125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22126 cat >>confdefs.h <<_ACEOF
22127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22157 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22158 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22159 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22176 #define $ac_func innocuous_$ac_func
22178 /* System header to define __stub macros and hopefully few prototypes,
22179 which can conflict with char $ac_func (); below.
22180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22181 <limits.h> exists even on freestanding compilers. */
22184 # include <limits.h>
22186 # include <assert.h>
22191 /* Override any GCC internal prototype to avoid an error.
22192 Use char because int might match the return type of a GCC
22193 builtin and then its argument prototype would still apply. */
22198 /* The GNU C library defines this for functions which it implements
22199 to always fail with ENOSYS. Some functions are actually named
22200 something starting with __ and the normal name is an alias. */
22201 #if defined __stub_$ac_func || defined __stub___$ac_func
22208 return $ac_func ();
22213 rm -f conftest.$ac_objext conftest$ac_exeext
22214 if { (ac_try="$ac_link"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_link") 2>conftest.er1
22222 grep -v '^ *+' conftest.er1 >conftest.err
22224 cat conftest.err >&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest$ac_exeext &&
22230 $as_test_x conftest$ac_exeext; then
22231 eval "$as_ac_var=yes"
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 eval "$as_ac_var=no"
22239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22240 conftest$ac_exeext conftest.$ac_ext
22242 ac_res=`eval echo '${'$as_ac_var'}'`
22243 { echo "$as_me:$LINENO: result: $ac_res" >&5
22244 echo "${ECHO_T}$ac_res" >&6; }
22245 if test `eval echo '${'$as_ac_var'}'` = yes; then
22246 cat >>confdefs.h <<_ACEOF
22247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22255 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22256 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22257 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 cat >conftest.$ac_ext <<_ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22272 char *p = (char *) _snprintf;
22279 rm -f conftest.$ac_objext
22280 if { (ac_try="$ac_compile"
22281 case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_compile") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest.$ac_objext; then
22296 ac_cv_have_decl__snprintf=yes
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_cv_have_decl__snprintf=no
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22307 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22308 if test $ac_cv_have_decl__snprintf = yes; then
22314 cat >>confdefs.h <<_ACEOF
22315 #define HAVE_DECL__SNPRINTF $gt_value
22320 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22321 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22322 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22337 char *p = (char *) _snwprintf;
22344 rm -f conftest.$ac_objext
22345 if { (ac_try="$ac_compile"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_compile") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest.$ac_objext; then
22361 ac_cv_have_decl__snwprintf=yes
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_cv_have_decl__snwprintf=no
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22371 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22372 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22373 if test $ac_cv_have_decl__snwprintf = yes; then
22379 cat >>confdefs.h <<_ACEOF
22380 #define HAVE_DECL__SNWPRINTF $gt_value
22386 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22387 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22388 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22402 #ifndef feof_unlocked
22403 char *p = (char *) feof_unlocked;
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_compile") 2>conftest.er1
22419 grep -v '^ *+' conftest.er1 >conftest.err
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest.$ac_objext; then
22427 ac_cv_have_decl_feof_unlocked=yes
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ac_cv_have_decl_feof_unlocked=no
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22438 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22439 if test $ac_cv_have_decl_feof_unlocked = yes; then
22445 cat >>confdefs.h <<_ACEOF
22446 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22451 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22452 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22453 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22454 echo $ECHO_N "(cached) $ECHO_C" >&6
22456 cat >conftest.$ac_ext <<_ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22467 #ifndef fgets_unlocked
22468 char *p = (char *) fgets_unlocked;
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22484 grep -v '^ *+' conftest.er1 >conftest.err
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && {
22489 test -z "$ac_c_werror_flag" ||
22490 test ! -s conftest.err
22491 } && test -s conftest.$ac_objext; then
22492 ac_cv_have_decl_fgets_unlocked=yes
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 ac_cv_have_decl_fgets_unlocked=no
22500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22503 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22504 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22510 cat >>confdefs.h <<_ACEOF
22511 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22516 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22517 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22518 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 cat >conftest.$ac_ext <<_ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22532 #ifndef getc_unlocked
22533 char *p = (char *) getc_unlocked;
22540 rm -f conftest.$ac_objext
22541 if { (ac_try="$ac_compile"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_compile") 2>conftest.er1
22549 grep -v '^ *+' conftest.er1 >conftest.err
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && {
22554 test -z "$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 } && test -s conftest.$ac_objext; then
22557 ac_cv_have_decl_getc_unlocked=yes
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22562 ac_cv_have_decl_getc_unlocked=no
22565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22568 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22569 if test $ac_cv_have_decl_getc_unlocked = yes; then
22575 cat >>confdefs.h <<_ACEOF
22576 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22581 case $gt_cv_func_printf_posix in
22582 *yes) HAVE_POSIX_PRINTF=1 ;;
22583 *) HAVE_POSIX_PRINTF=0 ;;
22586 if test "$ac_cv_func_asprintf" = yes; then
22592 if test "$ac_cv_func_snprintf" = yes; then
22598 if test "$ac_cv_func_wprintf" = yes; then
22610 am_save_CPPFLAGS="$CPPFLAGS"
22612 for element in $INCICONV; do
22614 for x in $CPPFLAGS; do
22616 acl_save_prefix="$prefix"
22617 prefix="$acl_final_prefix"
22618 acl_save_exec_prefix="$exec_prefix"
22619 exec_prefix="$acl_final_exec_prefix"
22621 exec_prefix="$acl_save_exec_prefix"
22622 prefix="$acl_save_prefix"
22624 if test "X$x" = "X$element"; then
22629 if test -z "$haveit"; then
22630 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22635 { echo "$as_me:$LINENO: checking for iconv" >&5
22636 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22637 if test "${am_cv_func_iconv+set}" = set; then
22638 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 am_cv_func_iconv="no, consider installing GNU libiconv"
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 #include <stdlib.h>
22654 iconv_t cd = iconv_open("","");
22655 iconv(cd,NULL,NULL,NULL,NULL);
22661 rm -f conftest.$ac_objext conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_link") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1 >conftest.err
22672 cat conftest.err >&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest$ac_exeext &&
22678 $as_test_x conftest$ac_exeext; then
22679 am_cv_func_iconv=yes
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22688 conftest$ac_exeext conftest.$ac_ext
22689 if test "$am_cv_func_iconv" != yes; then
22690 am_save_LIBS="$LIBS"
22691 LIBS="$LIBS $LIBICONV"
22692 cat >conftest.$ac_ext <<_ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22698 #include <stdlib.h>
22703 iconv_t cd = iconv_open("","");
22704 iconv(cd,NULL,NULL,NULL,NULL);
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_link") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest$ac_exeext &&
22727 $as_test_x conftest$ac_exeext; then
22728 am_cv_lib_iconv=yes
22729 am_cv_func_iconv=yes
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22738 conftest$ac_exeext conftest.$ac_ext
22739 LIBS="$am_save_LIBS"
22743 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22744 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22745 if test "$am_cv_func_iconv" = yes; then
22747 cat >>confdefs.h <<\_ACEOF
22748 #define HAVE_ICONV 1
22752 if test "$am_cv_lib_iconv" = yes; then
22753 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22754 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22755 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22756 echo "${ECHO_T}$LIBICONV" >&6; }
22758 CPPFLAGS="$am_save_CPPFLAGS"
22765 if test "$am_cv_func_iconv" = yes; then
22766 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22767 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22768 if test "${am_cv_proto_iconv+set}" = set; then
22769 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22779 #include <stdlib.h>
22785 #if defined(__STDC__) || defined(__cplusplus)
22786 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } && {
22813 test -z "$ac_c_werror_flag" ||
22814 test ! -s conftest.err
22815 } && test -s conftest.$ac_objext; then
22816 am_cv_proto_iconv_arg1=""
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22821 am_cv_proto_iconv_arg1="const"
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22825 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);"
22828 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22829 { echo "$as_me:$LINENO: result: ${ac_t:-
22830 }$am_cv_proto_iconv" >&5
22831 echo "${ECHO_T}${ac_t:-
22832 }$am_cv_proto_iconv" >&6; }
22834 cat >>confdefs.h <<_ACEOF
22835 #define ICONV_CONST $am_cv_proto_iconv_arg1
22841 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22842 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22843 if test "${am_cv_langinfo_codeset+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 cat >conftest.$ac_ext <<_ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 #include <langinfo.h>
22856 char* cs = nl_langinfo(CODESET);
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (ac_try="$ac_link"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_link") 2>conftest.er1
22870 grep -v '^ *+' conftest.er1 >conftest.err
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } && {
22875 test -z "$ac_c_werror_flag" ||
22876 test ! -s conftest.err
22877 } && test -s conftest$ac_exeext &&
22878 $as_test_x conftest$ac_exeext; then
22879 am_cv_langinfo_codeset=yes
22881 echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 am_cv_langinfo_codeset=no
22887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22888 conftest$ac_exeext conftest.$ac_ext
22891 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22892 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22893 if test $am_cv_langinfo_codeset = yes; then
22895 cat >>confdefs.h <<\_ACEOF
22896 #define HAVE_LANGINFO_CODESET 1
22901 if test $ac_cv_header_locale_h = yes; then
22903 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22904 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22905 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 #include <locale.h>
22923 rm -f conftest.$ac_objext conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930 (eval "$ac_link") 2>conftest.er1
22932 grep -v '^ *+' conftest.er1 >conftest.err
22934 cat conftest.err >&5
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } && {
22937 test -z "$ac_c_werror_flag" ||
22938 test ! -s conftest.err
22939 } && test -s conftest$ac_exeext &&
22940 $as_test_x conftest$ac_exeext; then
22941 gt_cv_val_LC_MESSAGES=yes
22943 echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22946 gt_cv_val_LC_MESSAGES=no
22949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22950 conftest$ac_exeext conftest.$ac_ext
22952 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22953 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22954 if test $gt_cv_val_LC_MESSAGES = yes; then
22956 cat >>confdefs.h <<\_ACEOF
22957 #define HAVE_LC_MESSAGES 1
22964 if test -n "$INTL_MACOSX_LIBS"; then
22965 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22968 for ac_prog in bison
22970 # Extract the first word of "$ac_prog", so it can be a program name with args.
22971 set dummy $ac_prog; ac_word=$2
22972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22974 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22975 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 if test -n "$INTLBISON"; then
22978 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981 for as_dir in $PATH
22984 test -z "$as_dir" && as_dir=.
22985 for ac_exec_ext in '' $ac_executable_extensions; do
22986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22987 ac_cv_prog_INTLBISON="$ac_prog"
22988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22997 INTLBISON=$ac_cv_prog_INTLBISON
22998 if test -n "$INTLBISON"; then
22999 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23000 echo "${ECHO_T}$INTLBISON" >&6; }
23002 { echo "$as_me:$LINENO: result: no" >&5
23003 echo "${ECHO_T}no" >&6; }
23007 test -n "$INTLBISON" && break
23010 if test -z "$INTLBISON"; then
23013 { echo "$as_me:$LINENO: checking version of bison" >&5
23014 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23015 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23016 case $ac_prog_version in
23017 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23018 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23019 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23020 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23022 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23023 echo "${ECHO_T}$ac_prog_version" >&6; }
23025 if test $ac_verc_fail = yes; then
23044 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23045 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23046 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23049 gt_save_CPPFLAGS="$CPPFLAGS"
23050 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23051 gt_save_LIBS="$LIBS"
23052 LIBS="$LIBS -framework CoreFoundation"
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 #include <CFPreferences.h>
23063 CFPreferencesCopyAppValue(NULL, NULL)
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (ac_try="$ac_link"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_link") 2>conftest.er1
23077 grep -v '^ *+' conftest.er1 >conftest.err
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest$ac_exeext &&
23085 $as_test_x conftest$ac_exeext; then
23086 gt_cv_func_CFPreferencesCopyAppValue=yes
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23091 gt_cv_func_CFPreferencesCopyAppValue=no
23094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23095 conftest$ac_exeext conftest.$ac_ext
23096 CPPFLAGS="$gt_save_CPPFLAGS"
23097 LIBS="$gt_save_LIBS"
23099 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23100 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23101 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23108 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23109 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23110 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 gt_save_CPPFLAGS="$CPPFLAGS"
23114 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23115 gt_save_LIBS="$LIBS"
23116 LIBS="$LIBS -framework CoreFoundation"
23117 cat >conftest.$ac_ext <<_ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23123 #include <CFLocale.h>
23127 CFLocaleCopyCurrent();
23132 rm -f conftest.$ac_objext conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest$ac_exeext &&
23149 $as_test_x conftest$ac_exeext; then
23150 gt_cv_func_CFLocaleCopyCurrent=yes
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 gt_cv_func_CFLocaleCopyCurrent=no
23158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23159 conftest$ac_exeext conftest.$ac_ext
23160 CPPFLAGS="$gt_save_CPPFLAGS"
23161 LIBS="$gt_save_LIBS"
23163 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23164 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23165 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23167 cat >>confdefs.h <<\_ACEOF
23168 #define HAVE_CFLOCALECOPYCURRENT 1
23173 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23174 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23180 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23181 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23182 # Check whether --enable-nls was given.
23183 if test "${enable_nls+set}" = set; then
23184 enableval=$enable_nls; USE_NLS=$enableval
23189 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23190 echo "${ECHO_T}$USE_NLS" >&6; }
23195 BUILD_INCLUDED_LIBINTL=no
23196 USE_INCLUDED_LIBINTL=no
23202 if test "$USE_NLS" = "yes"; then
23203 gt_use_preinstalled_gnugettext=no
23205 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23206 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23208 # Check whether --with-included-gettext was given.
23209 if test "${with_included_gettext+set}" = set; then
23210 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23212 nls_cv_force_use_gnu_gettext=no
23215 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23216 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23218 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23219 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23226 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23227 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23228 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 cat >conftest.$ac_ext <<_ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 #include <libintl.h>
23238 extern int _nl_msg_cat_cntr;
23239 extern int *_nl_domain_bindings;
23243 bindtextdomain ("", "");
23244 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23249 rm -f conftest.$ac_objext conftest$ac_exeext
23250 if { (ac_try="$ac_link"
23251 case "(($ac_try" in
23252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253 *) ac_try_echo=$ac_try;;
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256 (eval "$ac_link") 2>conftest.er1
23258 grep -v '^ *+' conftest.er1 >conftest.err
23260 cat conftest.err >&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } && {
23263 test -z "$ac_c_werror_flag" ||
23264 test ! -s conftest.err
23265 } && test -s conftest$ac_exeext &&
23266 $as_test_x conftest$ac_exeext; then
23267 gt_cv_func_gnugettext1_libc=yes
23269 echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23272 gt_cv_func_gnugettext1_libc=no
23275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23276 conftest$ac_exeext conftest.$ac_ext
23278 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23279 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23281 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23287 acl_save_prefix="$prefix"
23288 prefix="$acl_final_prefix"
23289 acl_save_exec_prefix="$exec_prefix"
23290 exec_prefix="$acl_final_exec_prefix"
23292 eval additional_includedir=\"$includedir\"
23293 eval additional_libdir=\"$libdir\"
23295 exec_prefix="$acl_save_exec_prefix"
23296 prefix="$acl_save_prefix"
23299 # Check whether --with-libintl-prefix was given.
23300 if test "${with_libintl_prefix+set}" = set; then
23301 withval=$with_libintl_prefix;
23302 if test "X$withval" = "Xno"; then
23305 if test "X$withval" = "X"; then
23307 acl_save_prefix="$prefix"
23308 prefix="$acl_final_prefix"
23309 acl_save_exec_prefix="$exec_prefix"
23310 exec_prefix="$acl_final_exec_prefix"
23312 eval additional_includedir=\"$includedir\"
23313 eval additional_libdir=\"$libdir\"
23315 exec_prefix="$acl_save_exec_prefix"
23316 prefix="$acl_save_prefix"
23319 additional_includedir="$withval/include"
23320 additional_libdir="$withval/lib"
23331 names_already_handled=
23332 names_next_round='intl '
23333 while test -n "$names_next_round"; do
23334 names_this_round="$names_next_round"
23336 for name in $names_this_round; do
23338 for n in $names_already_handled; do
23339 if test "$n" = "$name"; then
23340 already_handled=yes
23344 if test -z "$already_handled"; then
23345 names_already_handled="$names_already_handled $name"
23346 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23347 eval value=\"\$HAVE_LIB$uppername\"
23348 if test -n "$value"; then
23349 if test "$value" = yes; then
23350 eval value=\"\$LIB$uppername\"
23351 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23352 eval value=\"\$LTLIB$uppername\"
23353 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23362 if test $use_additional = yes; then
23363 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23364 found_dir="$additional_libdir"
23365 found_so="$additional_libdir/lib$name.$shlibext"
23366 if test -f "$additional_libdir/lib$name.la"; then
23367 found_la="$additional_libdir/lib$name.la"
23370 if test -f "$additional_libdir/lib$name.$libext"; then
23371 found_dir="$additional_libdir"
23372 found_a="$additional_libdir/lib$name.$libext"
23373 if test -f "$additional_libdir/lib$name.la"; then
23374 found_la="$additional_libdir/lib$name.la"
23379 if test "X$found_dir" = "X"; then
23380 for x in $LDFLAGS $LTLIBINTL; do
23382 acl_save_prefix="$prefix"
23383 prefix="$acl_final_prefix"
23384 acl_save_exec_prefix="$exec_prefix"
23385 exec_prefix="$acl_final_exec_prefix"
23387 exec_prefix="$acl_save_exec_prefix"
23388 prefix="$acl_save_prefix"
23392 dir=`echo "X$x" | sed -e 's/^X-L//'`
23393 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23395 found_so="$dir/lib$name.$shlibext"
23396 if test -f "$dir/lib$name.la"; then
23397 found_la="$dir/lib$name.la"
23400 if test -f "$dir/lib$name.$libext"; then
23402 found_a="$dir/lib$name.$libext"
23403 if test -f "$dir/lib$name.la"; then
23404 found_la="$dir/lib$name.la"
23410 if test "X$found_dir" != "X"; then
23415 if test "X$found_dir" != "X"; then
23416 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23417 if test "X$found_so" != "X"; then
23418 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23419 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23422 for x in $ltrpathdirs; do
23423 if test "X$x" = "X$found_dir"; then
23428 if test -z "$haveit"; then
23429 ltrpathdirs="$ltrpathdirs $found_dir"
23431 if test "$hardcode_direct" = yes; then
23432 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23434 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23435 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23437 for x in $rpathdirs; do
23438 if test "X$x" = "X$found_dir"; then
23443 if test -z "$haveit"; then
23444 rpathdirs="$rpathdirs $found_dir"
23448 for x in $LDFLAGS $LIBINTL; do
23450 acl_save_prefix="$prefix"
23451 prefix="$acl_final_prefix"
23452 acl_save_exec_prefix="$exec_prefix"
23453 exec_prefix="$acl_final_exec_prefix"
23455 exec_prefix="$acl_save_exec_prefix"
23456 prefix="$acl_save_prefix"
23458 if test "X$x" = "X-L$found_dir"; then
23463 if test -z "$haveit"; then
23464 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23466 if test "$hardcode_minus_L" != no; then
23467 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23469 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23475 if test "X$found_a" != "X"; then
23476 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23478 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23481 additional_includedir=
23482 case "$found_dir" in
23484 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23485 additional_includedir="$basedir/include"
23488 if test "X$additional_includedir" != "X"; then
23489 if test "X$additional_includedir" != "X/usr/include"; then
23491 if test "X$additional_includedir" = "X/usr/local/include"; then
23492 if test -n "$GCC"; then
23494 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23498 if test -z "$haveit"; then
23499 for x in $CPPFLAGS $INCINTL; do
23501 acl_save_prefix="$prefix"
23502 prefix="$acl_final_prefix"
23503 acl_save_exec_prefix="$exec_prefix"
23504 exec_prefix="$acl_final_exec_prefix"
23506 exec_prefix="$acl_save_exec_prefix"
23507 prefix="$acl_save_prefix"
23509 if test "X$x" = "X-I$additional_includedir"; then
23514 if test -z "$haveit"; then
23515 if test -d "$additional_includedir"; then
23516 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23522 if test -n "$found_la"; then
23523 save_libdir="$libdir"
23524 case "$found_la" in
23525 */* | *\\*) . "$found_la" ;;
23526 *) . "./$found_la" ;;
23528 libdir="$save_libdir"
23529 for dep in $dependency_libs; do
23532 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23533 if test "X$additional_libdir" != "X/usr/lib"; then
23535 if test "X$additional_libdir" = "X/usr/local/lib"; then
23536 if test -n "$GCC"; then
23538 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23542 if test -z "$haveit"; then
23544 for x in $LDFLAGS $LIBINTL; do
23546 acl_save_prefix="$prefix"
23547 prefix="$acl_final_prefix"
23548 acl_save_exec_prefix="$exec_prefix"
23549 exec_prefix="$acl_final_exec_prefix"
23551 exec_prefix="$acl_save_exec_prefix"
23552 prefix="$acl_save_prefix"
23554 if test "X$x" = "X-L$additional_libdir"; then
23559 if test -z "$haveit"; then
23560 if test -d "$additional_libdir"; then
23561 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23565 for x in $LDFLAGS $LTLIBINTL; do
23567 acl_save_prefix="$prefix"
23568 prefix="$acl_final_prefix"
23569 acl_save_exec_prefix="$exec_prefix"
23570 exec_prefix="$acl_final_exec_prefix"
23572 exec_prefix="$acl_save_exec_prefix"
23573 prefix="$acl_save_prefix"
23575 if test "X$x" = "X-L$additional_libdir"; then
23580 if test -z "$haveit"; then
23581 if test -d "$additional_libdir"; then
23582 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23589 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23590 if test "$enable_rpath" != no; then
23592 for x in $rpathdirs; do
23593 if test "X$x" = "X$dir"; then
23598 if test -z "$haveit"; then
23599 rpathdirs="$rpathdirs $dir"
23602 for x in $ltrpathdirs; do
23603 if test "X$x" = "X$dir"; then
23608 if test -z "$haveit"; then
23609 ltrpathdirs="$ltrpathdirs $dir"
23614 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23617 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23620 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23621 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23627 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23628 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23634 if test "X$rpathdirs" != "X"; then
23635 if test -n "$hardcode_libdir_separator"; then
23637 for found_dir in $rpathdirs; do
23638 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23640 acl_save_libdir="$libdir"
23642 eval flag=\"$hardcode_libdir_flag_spec\"
23643 libdir="$acl_save_libdir"
23644 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23646 for found_dir in $rpathdirs; do
23647 acl_save_libdir="$libdir"
23648 libdir="$found_dir"
23649 eval flag=\"$hardcode_libdir_flag_spec\"
23650 libdir="$acl_save_libdir"
23651 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23655 if test "X$ltrpathdirs" != "X"; then
23656 for found_dir in $ltrpathdirs; do
23657 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23661 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23662 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23663 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 gt_save_CPPFLAGS="$CPPFLAGS"
23667 CPPFLAGS="$CPPFLAGS $INCINTL"
23668 gt_save_LIBS="$LIBS"
23669 LIBS="$LIBS $LIBINTL"
23670 cat >conftest.$ac_ext <<_ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 #include <libintl.h>
23677 extern int _nl_msg_cat_cntr;
23682 const char *_nl_expand_alias (const char *);
23686 bindtextdomain ("", "");
23687 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23692 rm -f conftest.$ac_objext conftest$ac_exeext
23693 if { (ac_try="$ac_link"
23694 case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_link") 2>conftest.er1
23701 grep -v '^ *+' conftest.er1 >conftest.err
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } && {
23706 test -z "$ac_c_werror_flag" ||
23707 test ! -s conftest.err
23708 } && test -s conftest$ac_exeext &&
23709 $as_test_x conftest$ac_exeext; then
23710 gt_cv_func_gnugettext1_libintl=yes
23712 echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 gt_cv_func_gnugettext1_libintl=no
23718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23719 conftest$ac_exeext conftest.$ac_ext
23720 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23721 LIBS="$LIBS $LIBICONV"
23722 cat >conftest.$ac_ext <<_ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 #include <libintl.h>
23729 extern int _nl_msg_cat_cntr;
23734 const char *_nl_expand_alias (const char *);
23738 bindtextdomain ("", "");
23739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23744 rm -f conftest.$ac_objext conftest$ac_exeext
23745 if { (ac_try="$ac_link"
23746 case "(($ac_try" in
23747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_link") 2>conftest.er1
23753 grep -v '^ *+' conftest.er1 >conftest.err
23755 cat conftest.err >&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && {
23758 test -z "$ac_c_werror_flag" ||
23759 test ! -s conftest.err
23760 } && test -s conftest$ac_exeext &&
23761 $as_test_x conftest$ac_exeext; then
23762 LIBINTL="$LIBINTL $LIBICONV"
23763 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23764 gt_cv_func_gnugettext1_libintl=yes
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774 conftest$ac_exeext conftest.$ac_ext
23776 CPPFLAGS="$gt_save_CPPFLAGS"
23777 LIBS="$gt_save_LIBS"
23779 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23780 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23783 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23784 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23785 && test "$PACKAGE" != gettext-runtime \
23786 && test "$PACKAGE" != gettext-tools; }; then
23787 gt_use_preinstalled_gnugettext=yes
23795 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23796 nls_cv_use_gnu_gettext=yes
23800 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23801 BUILD_INCLUDED_LIBINTL=yes
23802 USE_INCLUDED_LIBINTL=yes
23803 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23804 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23805 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23809 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23810 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23815 if test -n "$INTL_MACOSX_LIBS"; then
23816 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23817 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23818 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23819 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23823 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23824 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23826 cat >>confdefs.h <<\_ACEOF
23827 #define ENABLE_NLS 1
23835 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23836 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23837 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23838 echo "${ECHO_T}$USE_NLS" >&6; }
23839 if test "$USE_NLS" = "yes"; then
23840 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23841 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23842 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23843 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23844 gt_source="external libintl"
23849 gt_source="included intl directory"
23851 { echo "$as_me:$LINENO: result: $gt_source" >&5
23852 echo "${ECHO_T}$gt_source" >&6; }
23855 if test "$USE_NLS" = "yes"; then
23857 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23858 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23859 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23860 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23861 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23862 echo "${ECHO_T}$LIBINTL" >&6; }
23864 for element in $INCINTL; do
23866 for x in $CPPFLAGS; do
23868 acl_save_prefix="$prefix"
23869 prefix="$acl_final_prefix"
23870 acl_save_exec_prefix="$exec_prefix"
23871 exec_prefix="$acl_final_exec_prefix"
23873 exec_prefix="$acl_save_exec_prefix"
23874 prefix="$acl_save_prefix"
23876 if test "X$x" = "X$element"; then
23881 if test -z "$haveit"; then
23882 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23889 cat >>confdefs.h <<\_ACEOF
23890 #define HAVE_GETTEXT 1
23894 cat >>confdefs.h <<\_ACEOF
23895 #define HAVE_DCGETTEXT 1
23904 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23905 BUILD_INCLUDED_LIBINTL=yes
23912 nls_cv_header_intl=
23913 nls_cv_header_libgt=
23925 if test "$USE_INCLUDED_LIBINTL" = yes; then
23926 INTLOBJS="\$(GETTOBJS)"
23930 INTL_LIBTOOL_SUFFIX_PREFIX=
23934 INTLLIBS="$LIBINTL"
23946 support_postgresql=no
23948 support_smartalloc=yes
23949 support_readline=yes
23953 support_wx_console=no
23954 support_tray_monitor=no
23959 support_static_tools=no
23960 support_static_fd=no
23961 support_static_sd=no
23962 support_static_dir=no
23963 support_static_cons=no
23965 build_client_only=no
23974 # Check whether --enable-gnome was given.
23975 if test "${enable_gnome+set}" = set; then
23976 enableval=$enable_gnome;
23977 if test x$enableval = xyes; then
23986 if test x$support_gnome = xyes; then
23987 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23989 if test $pkg = 0; then
23990 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23991 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23992 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23993 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23998 GNOME_DIR=src/gnome2-console
23999 gnome_version="Version 2.x"
24001 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24002 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24003 { (exit 1); exit 1; }; }
24008 # Check whether --enable-bat was given.
24009 if test "${enable_bat+set}" = set; then
24010 enableval=$enable_bat;
24011 if test x$enableval = xyes; then
24013 cat >>confdefs.h <<\_ACEOF
24025 if test x$support_bat = xyes; then
24026 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24028 if test $pkg = 0; then
24029 BAT_DIR=src/qt-console
24031 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24032 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24033 { (exit 1); exit 1; }; }
24043 if test x$support_bat = xyes; then
24044 { echo "$as_me:$LINENO: checking for qwt support" >&5
24045 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24047 # Check whether --with-qwt was given.
24048 if test "${with_qwt+set}" = set; then
24050 case "$with_qwt" in
24055 if test -f ${with_qwt}/include/qwt.h; then
24056 QWT_INC="${with_qwt}/include"
24057 QWT_LDFLAGS="-L${with_qwt}/lib"
24068 if test $no_qwt = no; then
24069 if test x$QWT_INC = x; then
24070 for root in /usr /usr/local; do
24071 for ver in qwt qwt5 qwt-qt4; do
24072 if test -f ${root}/include/${ver}/qwt.h; then
24073 QWT_INC="${root}/include/${ver}"
24074 if test -d ${root}/lib64/; then
24075 QWT_LDFLAGS="-L${root}/lib64"
24076 elif test -d ${root}/lib/64/; then
24077 QWT_LDFLAGS="-L${root}/64"
24079 QWT_LDFLAGS="-L${root}/lib"
24090 if test x$QWT_INC = x; then
24091 { echo "$as_me:$LINENO: result: no" >&5
24092 echo "${ECHO_T}no" >&6; }
24095 cat >>confdefs.h <<\_ACEOF
24099 { echo "$as_me:$LINENO: result: yes" >&5
24100 echo "${ECHO_T}yes" >&6; }
24110 # Check whether --enable-bwx-console was given.
24111 if test "${enable_bwx_console+set}" = set; then
24112 enableval=$enable_bwx_console;
24113 if test x$enableval = xyes; then
24114 support_wx_console=yes
24122 if test x$support_wx_console = xyes; then
24123 abc=`$WXCONFIG $WXFLAGS --cppflags`
24125 if test $pkg = 0; then
24126 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24127 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24128 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24132 WX_DIR=src/wx-console
24135 echo "wx-config program not found. bwx-console disabled."
24137 support_wx_console=no
24142 # Check whether --enable-tray-monitor was given.
24143 if test "${enable_tray_monitor+set}" = set; then
24144 enableval=$enable_tray_monitor;
24145 if test x$enableval = xyes; then
24146 support_tray_monitor=yes
24154 if test x$support_tray_monitor = xyes; then
24155 abc=`$PKGCONFIG --exists gtk+-2.0`
24157 if test $pkg = 0; then
24158 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24159 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24162 TRAY_MONITOR_DIR=src/tray-monitor
24163 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24165 if test $pkg = 0; then
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_GTK_2_4 1
24176 # Check whether --enable-smartalloc was given.
24177 if test "${enable_smartalloc+set}" = set; then
24178 enableval=$enable_smartalloc;
24179 if test x$enableval = xno; then
24180 support_smartalloc=no
24187 if test x$support_smartalloc = xyes; then
24189 cat >>confdefs.h <<\_ACEOF
24190 #define SMARTALLOC 1
24195 # Check whether --enable-lockmgr was given.
24196 if test "${enable_lockmgr+set}" = set; then
24197 enableval=$enable_lockmgr;
24198 if test x$enableval = xyes; then
24199 support_lockmgr=yes
24206 if test x$support_lockmgr = xyes; then
24208 cat >>confdefs.h <<\_ACEOF
24209 #define _USE_LOCKMGR 1
24215 # Check whether --enable-static-tools was given.
24216 if test "${enable_static_tools+set}" = set; then
24217 enableval=$enable_static_tools;
24218 if test x$enableval = xyes; then
24219 support_static_tools=yes
24227 if test x$support_static_tools = xyes; then
24228 TTOOL_LDFLAGS="-static"
24232 # Check whether --enable-static-fd was given.
24233 if test "${enable_static_fd+set}" = set; then
24234 enableval=$enable_static_fd;
24235 if test x$enableval = xyes; then
24236 support_static_fd=yes
24244 if test x$support_static_fd = xyes; then
24245 STATIC_FD="static-bacula-fd"
24249 # Check whether --enable-static-sd was given.
24250 if test "${enable_static_sd+set}" = set; then
24251 enableval=$enable_static_sd;
24252 if test x$enableval = xyes; then
24253 support_static_sd=yes
24261 if test x$support_static_sd = xyes; then
24262 STATIC_SD="static-bacula-sd"
24266 # Check whether --enable-static-dir was given.
24267 if test "${enable_static_dir+set}" = set; then
24268 enableval=$enable_static_dir;
24269 if test x$enableval = xyes; then
24270 support_static_dir=yes
24278 if test x$support_static_dir = xyes; then
24279 STATIC_DIR="static-bacula-dir"
24283 # Check whether --enable-static-cons was given.
24284 if test "${enable_static_cons+set}" = set; then
24285 enableval=$enable_static_cons;
24286 if test x$enableval = xyes; then
24287 support_static_cons=yes
24297 if test x$support_static_cons = xyes; then
24298 STATIC_CONS="static-bconsole"
24299 STATIC_GNOME_CONS="static-bgnome-console"
24300 STATIC_WX_CONS="static-bwx-console"
24306 # Check whether --enable-client-only was given.
24307 if test "${enable_client_only+set}" = set; then
24308 enableval=$enable_client_only;
24309 if test x$enableval = xyes; then
24310 build_client_only=yes
24318 if test x$build_client_only = xno; then
24325 # Check whether --enable-build-dird was given.
24326 if test "${enable_build_dird+set}" = set; then
24327 enableval=$enable_build_dird;
24328 if test x$enableval = xno; then
24335 if test x$build_dird = xyes; then
24336 DIRD_DIR="src/dird"
24337 DIR_TOOLS="DIRTOOLS"
24340 DIR_TOOLS="NODIRTOOLS"
24345 # Check whether --enable-build-stored was given.
24346 if test "${enable_build_stored+set}" = set; then
24347 enableval=$enable_build_stored;
24348 if test x$enableval = xno; then
24355 if test x$build_stored = xyes; then
24356 STORED_DIR="src/stored"
24362 # Check whether --enable-conio was given.
24363 if test "${enable_conio+set}" = set; then
24364 enableval=$enable_conio;
24365 if test x$enableval = xno; then
24375 # Check whether --enable-ipv6 was given.
24376 if test "${enable_ipv6+set}" = set; then
24377 enableval=$enable_ipv6;
24378 if test x$enableval = xno; then
24386 if test x$support_ipv6 = xyes; then
24387 cat >conftest.$ac_ext <<_ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h. */
24393 #include <sys/types.h>
24394 #include <sys/socket.h>
24395 #include <netinet/in.h>
24399 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24404 rm -f conftest.$ac_objext conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408 *) ac_try_echo=$ac_try;;
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411 (eval "$ac_link") 2>conftest.er1
24413 grep -v '^ *+' conftest.er1 >conftest.err
24415 cat conftest.err >&5
24416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); } && {
24418 test -z "$ac_c_werror_flag" ||
24419 test ! -s conftest.err
24420 } && test -s conftest$ac_exeext &&
24421 $as_test_x conftest$ac_exeext; then
24424 echo "$as_me: failed program was:" >&5
24425 sed 's/^/| /' conftest.$ac_ext >&5
24430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431 conftest$ac_exeext conftest.$ac_ext
24434 if test x$support_ipv6 = xyes; then
24436 cat >>confdefs.h <<\_ACEOF
24437 #define HAVE_IPV6 1
24443 if test x$support_conio = xyes; then
24444 if test "${ac_cv_header_termcap_h+set}" = set; then
24445 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24446 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24447 if test "${ac_cv_header_termcap_h+set}" = set; then
24448 echo $ECHO_N "(cached) $ECHO_C" >&6
24450 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24451 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24453 # Is the header compilable?
24454 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24455 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24456 cat >conftest.$ac_ext <<_ACEOF
24459 cat confdefs.h >>conftest.$ac_ext
24460 cat >>conftest.$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24462 $ac_includes_default
24463 #include <termcap.h>
24465 rm -f conftest.$ac_objext
24466 if { (ac_try="$ac_compile"
24467 case "(($ac_try" in
24468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469 *) ac_try_echo=$ac_try;;
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472 (eval "$ac_compile") 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } && {
24479 test -z "$ac_c_werror_flag" ||
24480 test ! -s conftest.err
24481 } && test -s conftest.$ac_objext; then
24482 ac_header_compiler=yes
24484 echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.$ac_ext >&5
24487 ac_header_compiler=no
24490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24492 echo "${ECHO_T}$ac_header_compiler" >&6; }
24494 # Is the header present?
24495 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24496 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24497 cat >conftest.$ac_ext <<_ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h. */
24503 #include <termcap.h>
24505 if { (ac_try="$ac_cpp conftest.$ac_ext"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } >/dev/null && {
24518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24521 ac_header_preproc=yes
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_header_preproc=no
24529 rm -f conftest.err conftest.$ac_ext
24530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24531 echo "${ECHO_T}$ac_header_preproc" >&6; }
24533 # So? What about this header?
24534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24536 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24537 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24538 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24539 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24540 ac_header_preproc=yes
24543 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24544 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24545 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24546 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24547 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24548 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24549 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24550 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24551 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24552 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24553 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24554 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24558 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24559 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24560 if test "${ac_cv_header_termcap_h+set}" = set; then
24561 echo $ECHO_N "(cached) $ECHO_C" >&6
24563 ac_cv_header_termcap_h=$ac_header_preproc
24565 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24566 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24569 if test $ac_cv_header_termcap_h = yes; then
24570 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24571 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24572 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24575 ac_check_lib_save_LIBS=$LIBS
24576 LIBS="-ltermcap $LIBS"
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24584 /* Override any GCC internal prototype to avoid an error.
24585 Use char because int might match the return type of a GCC
24586 builtin and then its argument prototype would still apply. */
24599 rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (ac_try="$ac_link"
24601 case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606 (eval "$ac_link") 2>conftest.er1
24608 grep -v '^ *+' conftest.er1 >conftest.err
24610 cat conftest.err >&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } && {
24613 test -z "$ac_c_werror_flag" ||
24614 test ! -s conftest.err
24615 } && test -s conftest$ac_exeext &&
24616 $as_test_x conftest$ac_exeext; then
24617 ac_cv_lib_termcap_tgetent=yes
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24622 ac_cv_lib_termcap_tgetent=no
24625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24626 conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24629 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24630 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24631 if test $ac_cv_lib_termcap_tgetent = yes; then
24632 CONS_LIBS="-ltermcap"
24636 support_readline=no
24638 cat >>confdefs.h <<\_ACEOF
24639 #define HAVE_CONIO 1
24644 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24645 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24646 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24647 echo $ECHO_N "(cached) $ECHO_C" >&6
24649 ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-lncurses $LIBS"
24651 cat >conftest.$ac_ext <<_ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24658 /* Override any GCC internal prototype to avoid an error.
24659 Use char because int might match the return type of a GCC
24660 builtin and then its argument prototype would still apply. */
24673 rm -f conftest.$ac_objext conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_link") 2>conftest.er1
24682 grep -v '^ *+' conftest.er1 >conftest.err
24684 cat conftest.err >&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); } && {
24687 test -z "$ac_c_werror_flag" ||
24688 test ! -s conftest.err
24689 } && test -s conftest$ac_exeext &&
24690 $as_test_x conftest$ac_exeext; then
24691 ac_cv_lib_ncurses_tgetent=yes
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24696 ac_cv_lib_ncurses_tgetent=no
24699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24700 conftest$ac_exeext conftest.$ac_ext
24701 LIBS=$ac_check_lib_save_LIBS
24703 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24704 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24705 if test $ac_cv_lib_ncurses_tgetent = yes; then
24706 CONS_LIBS="-lncurses"
24710 support_readline=no
24712 cat >>confdefs.h <<\_ACEOF
24713 #define HAVE_CONIO 1
24726 for ac_header in curses.h
24728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 ac_res=`eval echo '${'$as_ac_Header'}'`
24736 { echo "$as_me:$LINENO: result: $ac_res" >&5
24737 echo "${ECHO_T}$ac_res" >&6; }
24739 # Is the header compilable?
24740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24742 cat >conftest.$ac_ext <<_ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h. */
24748 $ac_includes_default
24749 #include <$ac_header>
24751 rm -f conftest.$ac_objext
24752 if { (ac_try="$ac_compile"
24753 case "(($ac_try" in
24754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755 *) ac_try_echo=$ac_try;;
24757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24758 (eval "$ac_compile") 2>conftest.er1
24760 grep -v '^ *+' conftest.er1 >conftest.err
24762 cat conftest.err >&5
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest.$ac_objext; then
24768 ac_header_compiler=yes
24770 echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24773 ac_header_compiler=no
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24778 echo "${ECHO_T}$ac_header_compiler" >&6; }
24780 # Is the header present?
24781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24783 cat >conftest.$ac_ext <<_ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h. */
24789 #include <$ac_header>
24791 if { (ac_try="$ac_cpp conftest.$ac_ext"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24799 grep -v '^ *+' conftest.er1 >conftest.err
24801 cat conftest.err >&5
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); } >/dev/null && {
24804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24805 test ! -s conftest.err
24807 ac_header_preproc=yes
24809 echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24812 ac_header_preproc=no
24815 rm -f conftest.err conftest.$ac_ext
24816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24817 echo "${ECHO_T}$ac_header_preproc" >&6; }
24819 # So? What about this header?
24820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24826 ac_header_preproc=yes
24829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24847 echo $ECHO_N "(cached) $ECHO_C" >&6
24849 eval "$as_ac_Header=\$ac_header_preproc"
24851 ac_res=`eval echo '${'$as_ac_Header'}'`
24852 { echo "$as_me:$LINENO: result: $ac_res" >&5
24853 echo "${ECHO_T}$ac_res" >&6; }
24856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24857 cat >>confdefs.h <<_ACEOF
24858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24865 { echo "$as_me:$LINENO: checking for term.h" >&5
24866 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24867 if test "${ac_cv_header_term_h+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 cat >conftest.$ac_ext <<_ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24877 #include <curses.h>
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_compile") 2>conftest.er1
24892 grep -v '^ *+' conftest.er1 >conftest.err
24894 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && {
24897 test -z "$ac_c_werror_flag" ||
24898 test ! -s conftest.err
24899 } && test -s conftest.$ac_objext; then
24900 ac_cv_header_term_h=yes
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24905 ac_cv_header_term_h=no
24908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24911 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24912 if test $ac_cv_header_term_h = yes; then
24913 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24914 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24915 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24916 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 ac_check_lib_save_LIBS=$LIBS
24919 LIBS="-lcurses $LIBS"
24920 cat >conftest.$ac_ext <<_ACEOF
24923 cat confdefs.h >>conftest.$ac_ext
24924 cat >>conftest.$ac_ext <<_ACEOF
24925 /* end confdefs.h. */
24927 /* Override any GCC internal prototype to avoid an error.
24928 Use char because int might match the return type of a GCC
24929 builtin and then its argument prototype would still apply. */
24942 rm -f conftest.$ac_objext conftest$ac_exeext
24943 if { (ac_try="$ac_link"
24944 case "(($ac_try" in
24945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946 *) ac_try_echo=$ac_try;;
24948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24949 (eval "$ac_link") 2>conftest.er1
24951 grep -v '^ *+' conftest.er1 >conftest.err
24953 cat conftest.err >&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); } && {
24956 test -z "$ac_c_werror_flag" ||
24957 test ! -s conftest.err
24958 } && test -s conftest$ac_exeext &&
24959 $as_test_x conftest$ac_exeext; then
24960 ac_cv_lib_curses_tgetent=yes
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24965 ac_cv_lib_curses_tgetent=no
24968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24969 conftest$ac_exeext conftest.$ac_ext
24970 LIBS=$ac_check_lib_save_LIBS
24972 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24973 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24974 if test $ac_cv_lib_curses_tgetent = yes; then
24975 CONS_LIBS="-lcurses"
24979 support_readline=no
24981 cat >>confdefs.h <<\_ACEOF
24982 #define HAVE_CONIO 1
24990 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25001 # Check whether --enable-readline was given.
25002 if test "${enable_readline+set}" = set; then
25003 enableval=$enable_readline;
25004 if test x$enableval = xno; then
25005 support_readline=no
25014 if test x$support_readline = xyes; then
25016 # Check whether --with-readline was given.
25017 if test "${with_readline+set}" = set; then
25018 withval=$with_readline;
25019 case "$with_readline" in
25024 if test -f ${with_readline}/readline.h; then
25025 CONS_INC="-I${with_readline}"
25026 CONS_LDFLAGS="-L$with_readline"
25027 elif test -f ${with_readline}/include/readline/readline.h; then
25028 CONS_INC="-I${with_readline}/include/readline"
25029 CONS_LDFLAGS="-L${with_readline}/lib"
25030 with_readline="${with_readline}/include/readline"
25032 with_readline="/usr/include/readline"
25035 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25037 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25038 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25040 echo $ECHO_N "(cached) $ECHO_C" >&6
25042 ac_res=`eval echo '${'$as_ac_Header'}'`
25043 { echo "$as_me:$LINENO: result: $ac_res" >&5
25044 echo "${ECHO_T}$ac_res" >&6; }
25046 # Is the header compilable?
25047 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25048 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25049 cat >conftest.$ac_ext <<_ACEOF
25052 cat confdefs.h >>conftest.$ac_ext
25053 cat >>conftest.$ac_ext <<_ACEOF
25054 /* end confdefs.h. */
25055 $ac_includes_default
25056 #include <${with_readline}/readline.h>
25058 rm -f conftest.$ac_objext
25059 if { (ac_try="$ac_compile"
25060 case "(($ac_try" in
25061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25062 *) ac_try_echo=$ac_try;;
25064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25065 (eval "$ac_compile") 2>conftest.er1
25067 grep -v '^ *+' conftest.er1 >conftest.err
25069 cat conftest.err >&5
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); } && {
25072 test -z "$ac_c_werror_flag" ||
25073 test ! -s conftest.err
25074 } && test -s conftest.$ac_objext; then
25075 ac_header_compiler=yes
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25080 ac_header_compiler=no
25083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25085 echo "${ECHO_T}$ac_header_compiler" >&6; }
25087 # Is the header present?
25088 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25089 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25090 cat >conftest.$ac_ext <<_ACEOF
25093 cat confdefs.h >>conftest.$ac_ext
25094 cat >>conftest.$ac_ext <<_ACEOF
25095 /* end confdefs.h. */
25096 #include <${with_readline}/readline.h>
25098 if { (ac_try="$ac_cpp conftest.$ac_ext"
25099 case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25106 grep -v '^ *+' conftest.er1 >conftest.err
25108 cat conftest.err >&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } >/dev/null && {
25111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25112 test ! -s conftest.err
25114 ac_header_preproc=yes
25116 echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ac_header_preproc=no
25122 rm -f conftest.err conftest.$ac_ext
25123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25124 echo "${ECHO_T}$ac_header_preproc" >&6; }
25126 # So? What about this header?
25127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25129 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25130 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25131 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25132 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25133 ac_header_preproc=yes
25136 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25137 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25138 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25139 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25140 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25141 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25142 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25143 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25144 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25145 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25146 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25147 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25151 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25152 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25154 echo $ECHO_N "(cached) $ECHO_C" >&6
25156 eval "$as_ac_Header=\$ac_header_preproc"
25158 ac_res=`eval echo '${'$as_ac_Header'}'`
25159 { echo "$as_me:$LINENO: result: $ac_res" >&5
25160 echo "${ECHO_T}$ac_res" >&6; }
25163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25166 cat >>confdefs.h <<\_ACEOF
25167 #define HAVE_READLINE 1
25170 CONS_LIBS="-lreadline -lhistory -ltermcap"
25176 echo "readline.h not found. readline turned off ..."
25188 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25189 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25190 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25191 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25195 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25197 # Is the header compilable?
25198 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25199 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25200 cat >conftest.$ac_ext <<_ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 $ac_includes_default
25207 #include </usr/include/readline/readline.h>
25209 rm -f conftest.$ac_objext
25210 if { (ac_try="$ac_compile"
25211 case "(($ac_try" in
25212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213 *) ac_try_echo=$ac_try;;
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25218 grep -v '^ *+' conftest.er1 >conftest.err
25220 cat conftest.err >&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.$ac_objext; then
25226 ac_header_compiler=yes
25228 echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 ac_header_compiler=no
25234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25236 echo "${ECHO_T}$ac_header_compiler" >&6; }
25238 # Is the header present?
25239 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25240 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25241 cat >conftest.$ac_ext <<_ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h. */
25247 #include </usr/include/readline/readline.h>
25249 if { (ac_try="$ac_cpp conftest.$ac_ext"
25250 case "(($ac_try" in
25251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252 *) ac_try_echo=$ac_try;;
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25257 grep -v '^ *+' conftest.er1 >conftest.err
25259 cat conftest.err >&5
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } >/dev/null && {
25262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25263 test ! -s conftest.err
25265 ac_header_preproc=yes
25267 echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25270 ac_header_preproc=no
25273 rm -f conftest.err conftest.$ac_ext
25274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25275 echo "${ECHO_T}$ac_header_preproc" >&6; }
25277 # So? What about this header?
25278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25280 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25281 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25283 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25284 ac_header_preproc=yes
25287 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25288 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25289 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25290 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25291 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25292 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25293 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25294 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25295 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25296 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25297 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25298 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25302 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25303 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25304 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25305 echo $ECHO_N "(cached) $ECHO_C" >&6
25307 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25309 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25310 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25313 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_READLINE 1
25321 CONS_INC="-I/usr/include/readline"
25322 CONS_LIBS="-lreadline -ltermcap"
25326 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25328 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25329 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25333 ac_res=`eval echo '${'$as_ac_Header'}'`
25334 { echo "$as_me:$LINENO: result: $ac_res" >&5
25335 echo "${ECHO_T}$ac_res" >&6; }
25337 # Is the header compilable?
25338 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25339 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25340 cat >conftest.$ac_ext <<_ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346 $ac_includes_default
25347 #include <${TOP_DIR}/depkgs/readline/readline.h>
25349 rm -f conftest.$ac_objext
25350 if { (ac_try="$ac_compile"
25351 case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25356 (eval "$ac_compile") 2>conftest.er1
25358 grep -v '^ *+' conftest.er1 >conftest.err
25360 cat conftest.err >&5
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); } && {
25363 test -z "$ac_c_werror_flag" ||
25364 test ! -s conftest.err
25365 } && test -s conftest.$ac_objext; then
25366 ac_header_compiler=yes
25368 echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25371 ac_header_compiler=no
25374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25376 echo "${ECHO_T}$ac_header_compiler" >&6; }
25378 # Is the header present?
25379 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25380 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25381 cat >conftest.$ac_ext <<_ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h. */
25387 #include <${TOP_DIR}/depkgs/readline/readline.h>
25389 if { (ac_try="$ac_cpp conftest.$ac_ext"
25390 case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25397 grep -v '^ *+' conftest.er1 >conftest.err
25399 cat conftest.err >&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } >/dev/null && {
25402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25403 test ! -s conftest.err
25405 ac_header_preproc=yes
25407 echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.$ac_ext >&5
25410 ac_header_preproc=no
25413 rm -f conftest.err conftest.$ac_ext
25414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25415 echo "${ECHO_T}$ac_header_preproc" >&6; }
25417 # So? What about this header?
25418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25420 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25421 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25422 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25423 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25424 ac_header_preproc=yes
25427 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25428 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25429 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25430 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25431 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25432 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25433 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25434 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25435 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25436 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25437 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25438 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25442 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25443 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25445 echo $ECHO_N "(cached) $ECHO_C" >&6
25447 eval "$as_ac_Header=\$ac_header_preproc"
25449 ac_res=`eval echo '${'$as_ac_Header'}'`
25450 { echo "$as_me:$LINENO: result: $ac_res" >&5
25451 echo "${ECHO_T}$ac_res" >&6; }
25454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25457 cat >>confdefs.h <<\_ACEOF
25458 #define HAVE_READLINE 1
25462 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25463 CONS_LIBS="-lreadline -lhistory -ltermcap"
25464 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25465 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25470 echo "readline.h not found. readline turned off ..."
25497 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25498 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25499 if test "${ac_cv_header_stat_broken+set}" = set; then
25500 echo $ECHO_N "(cached) $ECHO_C" >&6
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 #include <sys/types.h>
25509 #include <sys/stat.h>
25511 #if defined S_ISBLK && defined S_IFDIR
25512 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25515 #if defined S_ISBLK && defined S_IFCHR
25516 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25519 #if defined S_ISLNK && defined S_IFREG
25520 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25523 #if defined S_ISSOCK && defined S_IFREG
25524 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535 (eval "$ac_compile") 2>conftest.er1
25537 grep -v '^ *+' conftest.er1 >conftest.err
25539 cat conftest.err >&5
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); } && {
25542 test -z "$ac_c_werror_flag" ||
25543 test ! -s conftest.err
25544 } && test -s conftest.$ac_objext; then
25545 ac_cv_header_stat_broken=no
25547 echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25550 ac_cv_header_stat_broken=yes
25553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25556 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25557 if test $ac_cv_header_stat_broken = yes; then
25559 cat >>confdefs.h <<\_ACEOF
25560 #define STAT_MACROS_BROKEN 1
25570 ac_header_dirent=no
25571 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25572 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25573 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25574 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25576 echo $ECHO_N "(cached) $ECHO_C" >&6
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25584 #include <sys/types.h>
25596 rm -f conftest.$ac_objext
25597 if { (ac_try="$ac_compile"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_compile") 2>conftest.er1
25605 grep -v '^ *+' conftest.er1 >conftest.err
25607 cat conftest.err >&5
25608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609 (exit $ac_status); } && {
25610 test -z "$ac_c_werror_flag" ||
25611 test ! -s conftest.err
25612 } && test -s conftest.$ac_objext; then
25613 eval "$as_ac_Header=yes"
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25618 eval "$as_ac_Header=no"
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25623 ac_res=`eval echo '${'$as_ac_Header'}'`
25624 { echo "$as_me:$LINENO: result: $ac_res" >&5
25625 echo "${ECHO_T}$ac_res" >&6; }
25626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25627 cat >>confdefs.h <<_ACEOF
25628 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25631 ac_header_dirent=$ac_hdr; break
25635 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25636 if test $ac_header_dirent = dirent.h; then
25637 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25638 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25639 if test "${ac_cv_search_opendir+set}" = set; then
25640 echo $ECHO_N "(cached) $ECHO_C" >&6
25642 ac_func_search_save_LIBS=$LIBS
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25650 /* Override any GCC internal prototype to avoid an error.
25651 Use char because int might match the return type of a GCC
25652 builtin and then its argument prototype would still apply. */
25665 for ac_lib in '' dir; do
25666 if test -z "$ac_lib"; then
25667 ac_res="none required"
25670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25672 rm -f conftest.$ac_objext conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25679 (eval "$ac_link") 2>conftest.er1
25681 grep -v '^ *+' conftest.er1 >conftest.err
25683 cat conftest.err >&5
25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && {
25686 test -z "$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25688 } && test -s conftest$ac_exeext &&
25689 $as_test_x conftest$ac_exeext; then
25690 ac_cv_search_opendir=$ac_res
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25700 if test "${ac_cv_search_opendir+set}" = set; then
25704 if test "${ac_cv_search_opendir+set}" = set; then
25707 ac_cv_search_opendir=no
25709 rm conftest.$ac_ext
25710 LIBS=$ac_func_search_save_LIBS
25712 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25713 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25714 ac_res=$ac_cv_search_opendir
25715 if test "$ac_res" != no; then
25716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25721 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25722 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25723 if test "${ac_cv_search_opendir+set}" = set; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25726 ac_func_search_save_LIBS=$LIBS
25727 cat >conftest.$ac_ext <<_ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25734 /* Override any GCC internal prototype to avoid an error.
25735 Use char because int might match the return type of a GCC
25736 builtin and then its argument prototype would still apply. */
25749 for ac_lib in '' x; do
25750 if test -z "$ac_lib"; then
25751 ac_res="none required"
25754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25756 rm -f conftest.$ac_objext conftest$ac_exeext
25757 if { (ac_try="$ac_link"
25758 case "(($ac_try" in
25759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25760 *) ac_try_echo=$ac_try;;
25762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25763 (eval "$ac_link") 2>conftest.er1
25765 grep -v '^ *+' conftest.er1 >conftest.err
25767 cat conftest.err >&5
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); } && {
25770 test -z "$ac_c_werror_flag" ||
25771 test ! -s conftest.err
25772 } && test -s conftest$ac_exeext &&
25773 $as_test_x conftest$ac_exeext; then
25774 ac_cv_search_opendir=$ac_res
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25784 if test "${ac_cv_search_opendir+set}" = set; then
25788 if test "${ac_cv_search_opendir+set}" = set; then
25791 ac_cv_search_opendir=no
25793 rm conftest.$ac_ext
25794 LIBS=$ac_func_search_save_LIBS
25796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25798 ac_res=$ac_cv_search_opendir
25799 if test "$ac_res" != no; then
25800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25813 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25821 cat >conftest.$ac_ext <<_ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25829 #define $ac_func innocuous_$ac_func
25831 /* System header to define __stub macros and hopefully few prototypes,
25832 which can conflict with char $ac_func (); below.
25833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25834 <limits.h> exists even on freestanding compilers. */
25837 # include <limits.h>
25839 # include <assert.h>
25844 /* Override any GCC internal prototype to avoid an error.
25845 Use char because int might match the return type of a GCC
25846 builtin and then its argument prototype would still apply. */
25851 /* The GNU C library defines this for functions which it implements
25852 to always fail with ENOSYS. Some functions are actually named
25853 something starting with __ and the normal name is an alias. */
25854 #if defined __stub_$ac_func || defined __stub___$ac_func
25861 return $ac_func ();
25866 rm -f conftest.$ac_objext conftest$ac_exeext
25867 if { (ac_try="$ac_link"
25868 case "(($ac_try" in
25869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870 *) ac_try_echo=$ac_try;;
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873 (eval "$ac_link") 2>conftest.er1
25875 grep -v '^ *+' conftest.er1 >conftest.err
25877 cat conftest.err >&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); } && {
25880 test -z "$ac_c_werror_flag" ||
25881 test ! -s conftest.err
25882 } && test -s conftest$ac_exeext &&
25883 $as_test_x conftest$ac_exeext; then
25884 eval "$as_ac_var=yes"
25886 echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25889 eval "$as_ac_var=no"
25892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25893 conftest$ac_exeext conftest.$ac_ext
25895 ac_res=`eval echo '${'$as_ac_var'}'`
25896 { echo "$as_me:$LINENO: result: $ac_res" >&5
25897 echo "${ECHO_T}$ac_res" >&6; }
25898 if test `eval echo '${'$as_ac_var'}'` = yes; then
25899 cat >>confdefs.h <<_ACEOF
25900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25908 for ac_func in nanosleep nl_langinfo
25910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25914 echo $ECHO_N "(cached) $ECHO_C" >&6
25916 cat >conftest.$ac_ext <<_ACEOF
25919 cat confdefs.h >>conftest.$ac_ext
25920 cat >>conftest.$ac_ext <<_ACEOF
25921 /* end confdefs.h. */
25922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25924 #define $ac_func innocuous_$ac_func
25926 /* System header to define __stub macros and hopefully few prototypes,
25927 which can conflict with char $ac_func (); below.
25928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25929 <limits.h> exists even on freestanding compilers. */
25932 # include <limits.h>
25934 # include <assert.h>
25939 /* Override any GCC internal prototype to avoid an error.
25940 Use char because int might match the return type of a GCC
25941 builtin and then its argument prototype would still apply. */
25946 /* The GNU C library defines this for functions which it implements
25947 to always fail with ENOSYS. Some functions are actually named
25948 something starting with __ and the normal name is an alias. */
25949 #if defined __stub_$ac_func || defined __stub___$ac_func
25956 return $ac_func ();
25961 rm -f conftest.$ac_objext conftest$ac_exeext
25962 if { (ac_try="$ac_link"
25963 case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_link") 2>conftest.er1
25970 grep -v '^ *+' conftest.er1 >conftest.err
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && {
25975 test -z "$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 } && test -s conftest$ac_exeext &&
25978 $as_test_x conftest$ac_exeext; then
25979 eval "$as_ac_var=yes"
25981 echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25984 eval "$as_ac_var=no"
25987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25988 conftest$ac_exeext conftest.$ac_ext
25990 ac_res=`eval echo '${'$as_ac_var'}'`
25991 { echo "$as_me:$LINENO: result: $ac_res" >&5
25992 echo "${ECHO_T}$ac_res" >&6; }
25993 if test `eval echo '${'$as_ac_var'}'` = yes; then
25994 cat >>confdefs.h <<_ACEOF
25995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26002 for ac_header in varargs.h
26004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26009 echo $ECHO_N "(cached) $ECHO_C" >&6
26011 ac_res=`eval echo '${'$as_ac_Header'}'`
26012 { echo "$as_me:$LINENO: result: $ac_res" >&5
26013 echo "${ECHO_T}$ac_res" >&6; }
26015 # Is the header compilable?
26016 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26018 cat >conftest.$ac_ext <<_ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h. */
26024 $ac_includes_default
26025 #include <$ac_header>
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031 *) ac_try_echo=$ac_try;;
26033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26034 (eval "$ac_compile") 2>conftest.er1
26036 grep -v '^ *+' conftest.er1 >conftest.err
26038 cat conftest.err >&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } && {
26041 test -z "$ac_c_werror_flag" ||
26042 test ! -s conftest.err
26043 } && test -s conftest.$ac_objext; then
26044 ac_header_compiler=yes
26046 echo "$as_me: failed program was:" >&5
26047 sed 's/^/| /' conftest.$ac_ext >&5
26049 ac_header_compiler=no
26052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26054 echo "${ECHO_T}$ac_header_compiler" >&6; }
26056 # Is the header present?
26057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26059 cat >conftest.$ac_ext <<_ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h. */
26065 #include <$ac_header>
26067 if { (ac_try="$ac_cpp conftest.$ac_ext"
26068 case "(($ac_try" in
26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } >/dev/null && {
26080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26081 test ! -s conftest.err
26083 ac_header_preproc=yes
26085 echo "$as_me: failed program was:" >&5
26086 sed 's/^/| /' conftest.$ac_ext >&5
26088 ac_header_preproc=no
26091 rm -f conftest.err conftest.$ac_ext
26092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26093 echo "${ECHO_T}$ac_header_preproc" >&6; }
26095 # So? What about this header?
26096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26102 ac_header_preproc=yes
26105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26125 eval "$as_ac_Header=\$ac_header_preproc"
26127 ac_res=`eval echo '${'$as_ac_Header'}'`
26128 { echo "$as_me:$LINENO: result: $ac_res" >&5
26129 echo "${ECHO_T}$ac_res" >&6; }
26132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26133 cat >>confdefs.h <<_ACEOF
26134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26143 { echo "$as_me:$LINENO: checking for Python support" >&5
26144 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26146 # Check whether --with-python was given.
26147 if test "${with_python+set}" = set; then
26148 withval=$with_python;
26151 if test "$withval" != "no"; then
26152 if test "$withval" = "yes"; then
26153 for python_root in /usr /usr/local /usr/sfw; do
26154 for ver in python2.2 python2.3 python2.4 python2.5; do
26155 if test -f $python_root/include/${ver}/Python.h; then
26156 PYTHON_INCDIR=-I$python_root/include/${ver}
26157 if test -d $python_root/lib64/${ver}/config; then
26158 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26160 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26167 if test x$PYTHON_INCDIR = x; then
26168 if test -f $prefix/include/Python.h; then
26169 PYTHON_INCDIR=-I$prefix/include
26170 if test -d $prefix/lib64/config; then
26171 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26173 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26176 { echo "$as_me:$LINENO: result: no" >&5
26177 echo "${ECHO_T}no" >&6; }
26178 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26179 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26180 { (exit 1); exit 1; }; }
26184 if test -f $withval/Python.h; then
26185 PYTHON_INCDIR=-I$withval
26186 PYTHON_LIBS="-L$withval/config -lpython"
26187 elif test -f $withval/include/Python.h; then
26188 PYTHON_INCDIR=-I$withval/include
26189 if test -d $withval/lib64/config; then
26190 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26192 PYTHON_LIBS="-L$withval/lib/config -lpython"
26194 elif test -f $withval/include/python/Python.h; then
26195 PYTHON_INCDIR=-I$withval/include/python
26196 if test -d $withval/lib64/python/config; then
26197 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26199 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26202 { echo "$as_me:$LINENO: result: no" >&5
26203 echo "${ECHO_T}no" >&6; }
26204 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26205 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26206 { (exit 1); exit 1; }; }
26210 cat >>confdefs.h <<\_ACEOF
26211 #define HAVE_PYTHON 1
26214 { echo "$as_me:$LINENO: result: yes" >&5
26215 echo "${ECHO_T}yes" >&6; }
26217 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26218 echo "$as_me: checking for more Python libs" >&6;}
26219 saved_LIBS="$LIBS"; LIBS=
26220 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26221 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26222 if test "${ac_cv_search_shm_open+set}" = set; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26225 ac_func_search_save_LIBS=$LIBS
26226 cat >conftest.$ac_ext <<_ACEOF
26229 cat confdefs.h >>conftest.$ac_ext
26230 cat >>conftest.$ac_ext <<_ACEOF
26231 /* end confdefs.h. */
26233 /* Override any GCC internal prototype to avoid an error.
26234 Use char because int might match the return type of a GCC
26235 builtin and then its argument prototype would still apply. */
26243 return shm_open ();
26248 for ac_lib in '' rt; do
26249 if test -z "$ac_lib"; then
26250 ac_res="none required"
26253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26255 rm -f conftest.$ac_objext conftest$ac_exeext
26256 if { (ac_try="$ac_link"
26257 case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_link") 2>conftest.er1
26264 grep -v '^ *+' conftest.er1 >conftest.err
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } && {
26269 test -z "$ac_c_werror_flag" ||
26270 test ! -s conftest.err
26271 } && test -s conftest$ac_exeext &&
26272 $as_test_x conftest$ac_exeext; then
26273 ac_cv_search_shm_open=$ac_res
26275 echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26283 if test "${ac_cv_search_shm_open+set}" = set; then
26287 if test "${ac_cv_search_shm_open+set}" = set; then
26290 ac_cv_search_shm_open=no
26292 rm conftest.$ac_ext
26293 LIBS=$ac_func_search_save_LIBS
26295 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26296 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26297 ac_res=$ac_cv_search_shm_open
26298 if test "$ac_res" != no; then
26299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26304 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26305 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26306 if test "${ac_cv_lib_util_openpty+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26309 ac_check_lib_save_LIBS=$LIBS
26310 LIBS="-lutil $LIBS"
26311 cat >conftest.$ac_ext <<_ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26318 /* Override any GCC internal prototype to avoid an error.
26319 Use char because int might match the return type of a GCC
26320 builtin and then its argument prototype would still apply. */
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_link") 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } && {
26347 test -z "$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 } && test -s conftest$ac_exeext &&
26350 $as_test_x conftest$ac_exeext; then
26351 ac_cv_lib_util_openpty=yes
26353 echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26356 ac_cv_lib_util_openpty=no
26359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26360 conftest$ac_exeext conftest.$ac_ext
26361 LIBS=$ac_check_lib_save_LIBS
26363 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26364 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26365 if test $ac_cv_lib_util_openpty = yes; then
26366 cat >>confdefs.h <<_ACEOF
26367 #define HAVE_LIBUTIL 1
26370 LIBS="-lutil $LIBS"
26374 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26377 { echo "$as_me:$LINENO: result: no" >&5
26378 echo "${ECHO_T}no" >&6; }
26383 { echo "$as_me:$LINENO: result: no" >&5
26384 echo "${ECHO_T}no" >&6; }
26392 { echo "$as_me:$LINENO: checking for socket" >&5
26393 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26394 if test "${ac_cv_func_socket+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26397 cat >conftest.$ac_ext <<_ACEOF
26400 cat confdefs.h >>conftest.$ac_ext
26401 cat >>conftest.$ac_ext <<_ACEOF
26402 /* end confdefs.h. */
26403 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26405 #define socket innocuous_socket
26407 /* System header to define __stub macros and hopefully few prototypes,
26408 which can conflict with char socket (); below.
26409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26410 <limits.h> exists even on freestanding compilers. */
26413 # include <limits.h>
26415 # include <assert.h>
26420 /* Override any GCC internal prototype to avoid an error.
26421 Use char because int might match the return type of a GCC
26422 builtin and then its argument prototype would still apply. */
26427 /* The GNU C library defines this for functions which it implements
26428 to always fail with ENOSYS. Some functions are actually named
26429 something starting with __ and the normal name is an alias. */
26430 #if defined __stub_socket || defined __stub___socket
26442 rm -f conftest.$ac_objext conftest$ac_exeext
26443 if { (ac_try="$ac_link"
26444 case "(($ac_try" in
26445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26446 *) ac_try_echo=$ac_try;;
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449 (eval "$ac_link") 2>conftest.er1
26451 grep -v '^ *+' conftest.er1 >conftest.err
26453 cat conftest.err >&5
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); } && {
26456 test -z "$ac_c_werror_flag" ||
26457 test ! -s conftest.err
26458 } && test -s conftest$ac_exeext &&
26459 $as_test_x conftest$ac_exeext; then
26460 ac_cv_func_socket=yes
26462 echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26465 ac_cv_func_socket=no
26468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26469 conftest$ac_exeext conftest.$ac_ext
26471 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26472 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26473 if test $ac_cv_func_socket = yes; then
26474 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26475 echo "${ECHO_T}using libc's socket" >&6; }
26478 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26479 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26480 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 ac_check_lib_save_LIBS=$LIBS
26484 LIBS="-lxnet $LIBS"
26485 cat >conftest.$ac_ext <<_ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26492 /* Override any GCC internal prototype to avoid an error.
26493 Use char because int might match the return type of a GCC
26494 builtin and then its argument prototype would still apply. */
26507 rm -f conftest.$ac_objext conftest$ac_exeext
26508 if { (ac_try="$ac_link"
26509 case "(($ac_try" in
26510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26511 *) ac_try_echo=$ac_try;;
26513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26514 (eval "$ac_link") 2>conftest.er1
26516 grep -v '^ *+' conftest.er1 >conftest.err
26518 cat conftest.err >&5
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } && {
26521 test -z "$ac_c_werror_flag" ||
26522 test ! -s conftest.err
26523 } && test -s conftest$ac_exeext &&
26524 $as_test_x conftest$ac_exeext; then
26525 ac_cv_lib_xnet_socket=yes
26527 echo "$as_me: failed program was:" >&5
26528 sed 's/^/| /' conftest.$ac_ext >&5
26530 ac_cv_lib_xnet_socket=no
26533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26534 conftest$ac_exeext conftest.$ac_ext
26535 LIBS=$ac_check_lib_save_LIBS
26537 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26538 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26539 if test $ac_cv_lib_xnet_socket = yes; then
26540 cat >>confdefs.h <<_ACEOF
26541 #define HAVE_LIBXNET 1
26544 LIBS="-lxnet $LIBS"
26549 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26550 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26551 if test "${ac_cv_lib_socket_socket+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 ac_check_lib_save_LIBS=$LIBS
26555 LIBS="-lsocket $LIBS"
26556 cat >conftest.$ac_ext <<_ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26563 /* Override any GCC internal prototype to avoid an error.
26564 Use char because int might match the return type of a GCC
26565 builtin and then its argument prototype would still apply. */
26578 rm -f conftest.$ac_objext conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585 (eval "$ac_link") 2>conftest.er1
26587 grep -v '^ *+' conftest.er1 >conftest.err
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } && {
26592 test -z "$ac_c_werror_flag" ||
26593 test ! -s conftest.err
26594 } && test -s conftest$ac_exeext &&
26595 $as_test_x conftest$ac_exeext; then
26596 ac_cv_lib_socket_socket=yes
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ac_cv_lib_socket_socket=no
26604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26605 conftest$ac_exeext conftest.$ac_ext
26606 LIBS=$ac_check_lib_save_LIBS
26608 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26609 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26610 if test $ac_cv_lib_socket_socket = yes; then
26611 cat >>confdefs.h <<_ACEOF
26612 #define HAVE_LIBSOCKET 1
26615 LIBS="-lsocket $LIBS"
26620 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26621 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26622 if test "${ac_cv_lib_inet_socket+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 ac_check_lib_save_LIBS=$LIBS
26626 LIBS="-linet $LIBS"
26627 cat >conftest.$ac_ext <<_ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26634 /* Override any GCC internal prototype to avoid an error.
26635 Use char because int might match the return type of a GCC
26636 builtin and then its argument prototype would still apply. */
26649 rm -f conftest.$ac_objext conftest$ac_exeext
26650 if { (ac_try="$ac_link"
26651 case "(($ac_try" in
26652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26653 *) ac_try_echo=$ac_try;;
26655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26656 (eval "$ac_link") 2>conftest.er1
26658 grep -v '^ *+' conftest.er1 >conftest.err
26660 cat conftest.err >&5
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); } && {
26663 test -z "$ac_c_werror_flag" ||
26664 test ! -s conftest.err
26665 } && test -s conftest$ac_exeext &&
26666 $as_test_x conftest$ac_exeext; then
26667 ac_cv_lib_inet_socket=yes
26669 echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26672 ac_cv_lib_inet_socket=no
26675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26676 conftest$ac_exeext conftest.$ac_ext
26677 LIBS=$ac_check_lib_save_LIBS
26679 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26680 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26681 if test $ac_cv_lib_inet_socket = yes; then
26682 cat >>confdefs.h <<_ACEOF
26683 #define HAVE_LIBINET 1
26686 LIBS="-linet $LIBS"
26696 # Check whether --with-tcp-wrappers was given.
26697 if test "${with_tcp_wrappers+set}" = set; then
26698 withval=$with_tcp_wrappers;
26699 if test "x$withval" != "xno" ; then
26701 LIBS="$saved_LIBS -lwrap"
26702 { echo "$as_me:$LINENO: checking for libwrap" >&5
26703 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26704 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26705 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26706 if test "${ac_cv_search_nanosleep+set}" = set; then
26707 echo $ECHO_N "(cached) $ECHO_C" >&6
26709 ac_func_search_save_LIBS=$LIBS
26710 cat >conftest.$ac_ext <<_ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h. */
26717 /* Override any GCC internal prototype to avoid an error.
26718 Use char because int might match the return type of a GCC
26719 builtin and then its argument prototype would still apply. */
26727 return nanosleep ();
26732 for ac_lib in '' rt; do
26733 if test -z "$ac_lib"; then
26734 ac_res="none required"
26737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (ac_try="$ac_link"
26741 case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26746 (eval "$ac_link") 2>conftest.er1
26748 grep -v '^ *+' conftest.er1 >conftest.err
26750 cat conftest.err >&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } && {
26753 test -z "$ac_c_werror_flag" ||
26754 test ! -s conftest.err
26755 } && test -s conftest$ac_exeext &&
26756 $as_test_x conftest$ac_exeext; then
26757 ac_cv_search_nanosleep=$ac_res
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26767 if test "${ac_cv_search_nanosleep+set}" = set; then
26771 if test "${ac_cv_search_nanosleep+set}" = set; then
26774 ac_cv_search_nanosleep=no
26776 rm conftest.$ac_ext
26777 LIBS=$ac_func_search_save_LIBS
26779 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26780 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26781 ac_res=$ac_cv_search_nanosleep
26782 if test "$ac_res" != no; then
26783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26794 #include <sys/types.h>
26796 int deny_severity = 0;
26797 int allow_severity = 0;
26798 struct request_info *req;
26810 rm -f conftest.$ac_objext conftest$ac_exeext
26811 if { (ac_try="$ac_link"
26812 case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_link") 2>conftest.er1
26819 grep -v '^ *+' conftest.er1 >conftest.err
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } && {
26824 test -z "$ac_c_werror_flag" ||
26825 test ! -s conftest.err
26826 } && test -s conftest$ac_exeext &&
26827 $as_test_x conftest$ac_exeext; then
26829 { echo "$as_me:$LINENO: result: yes" >&5
26830 echo "${ECHO_T}yes" >&6; }
26832 cat >>confdefs.h <<\_ACEOF
26833 #define HAVE_LIBWRAP 1
26841 echo "$as_me: failed program was:" >&5
26842 sed 's/^/| /' conftest.$ac_ext >&5
26845 LIBS="$saved_LIBS -lwrap -lnsl"
26846 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26847 cat >conftest.$ac_ext <<_ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h. */
26854 #include <sys/types.h>
26856 int deny_severity = 0;
26857 int allow_severity = 0;
26858 struct request_info *req;
26870 rm -f conftest.$ac_objext conftest$ac_exeext
26871 if { (ac_try="$ac_link"
26872 case "(($ac_try" in
26873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874 *) ac_try_echo=$ac_try;;
26876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_link") 2>conftest.er1
26879 grep -v '^ *+' conftest.er1 >conftest.err
26881 cat conftest.err >&5
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); } && {
26884 test -z "$ac_c_werror_flag" ||
26885 test ! -s conftest.err
26886 } && test -s conftest$ac_exeext &&
26887 $as_test_x conftest$ac_exeext; then
26889 { echo "$as_me:$LINENO: result: yes" >&5
26890 echo "${ECHO_T}yes" >&6; }
26892 cat >>confdefs.h <<\_ACEOF
26893 #define HAVE_LIBWRAP 1
26901 echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26905 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26906 echo "$as_me: error: *** libwrap missing" >&2;}
26907 { (exit 1); exit 1; }; }
26912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26913 conftest$ac_exeext conftest.$ac_ext
26918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26919 conftest$ac_exeext conftest.$ac_ext
26926 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26927 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26929 # Check whether --with-openssl was given.
26930 if test "${with_openssl+set}" = set; then
26931 withval=$with_openssl;
26932 with_openssl_directory=${withval}
26938 if test "x$with_openssl_directory" != "xno"; then
26939 OPENSSL_LIBS="-lssl -lcrypto"
26942 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26944 # Make sure the $with_openssl_directory also makes sense
26946 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26947 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26948 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26952 saved_LIBS="${LIBS}"
26953 saved_CFLAGS="${CFLAGS}"
26954 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26955 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26957 cat >conftest.$ac_ext <<_ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h. */
26964 #include <openssl/ssl.h>
26970 CRYPTO_set_id_callback(NULL);
26976 rm -f conftest.$ac_objext conftest$ac_exeext
26977 if { (ac_try="$ac_link"
26978 case "(($ac_try" in
26979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980 *) ac_try_echo=$ac_try;;
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983 (eval "$ac_link") 2>conftest.er1
26985 grep -v '^ *+' conftest.er1 >conftest.err
26987 cat conftest.err >&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } && {
26990 test -z "$ac_c_werror_flag" ||
26991 test ! -s conftest.err
26992 } && test -s conftest$ac_exeext &&
26993 $as_test_x conftest$ac_exeext; then
26996 support_crypto="yes"
26999 echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27009 conftest$ac_exeext conftest.$ac_ext
27011 cat >conftest.$ac_ext <<_ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h. */
27018 #include <openssl/evp.h>
27030 rm -f conftest.$ac_objext conftest$ac_exeext
27031 if { (ac_try="$ac_link"
27032 case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_link") 2>conftest.er1
27039 grep -v '^ *+' conftest.er1 >conftest.err
27041 cat conftest.err >&5
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); } && {
27044 test -z "$ac_c_werror_flag" ||
27045 test ! -s conftest.err
27046 } && test -s conftest$ac_exeext &&
27047 $as_test_x conftest$ac_exeext; then
27049 ac_cv_openssl_sha2="yes"
27052 echo "$as_me: failed program was:" >&5
27053 sed 's/^/| /' conftest.$ac_ext >&5
27056 ac_cv_openssl_sha2="no"
27061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27062 conftest$ac_exeext conftest.$ac_ext
27064 cat >conftest.$ac_ext <<_ACEOF
27067 cat confdefs.h >>conftest.$ac_ext
27068 cat >>conftest.$ac_ext <<_ACEOF
27069 /* end confdefs.h. */
27071 #include <openssl/evp.h>
27083 rm -f conftest.$ac_objext conftest$ac_exeext
27084 if { (ac_try="$ac_link"
27085 case "(($ac_try" in
27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087 *) ac_try_echo=$ac_try;;
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090 (eval "$ac_link") 2>conftest.er1
27092 grep -v '^ *+' conftest.er1 >conftest.err
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } && {
27097 test -z "$ac_c_werror_flag" ||
27098 test ! -s conftest.err
27099 } && test -s conftest$ac_exeext &&
27100 $as_test_x conftest$ac_exeext; then
27102 ac_cv_openssl_export="no"
27105 echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27109 ac_cv_openssl_export="yes"
27114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27115 conftest$ac_exeext conftest.$ac_ext
27117 LIBS="${saved_LIBS}"
27118 CFLAGS="${saved_CFLAGS}"
27120 if test "$support_tls" = "yes"; then
27122 cat >>confdefs.h <<\_ACEOF
27123 #define HAVE_OPENSSL 1
27127 cat >>confdefs.h <<\_ACEOF
27132 cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_CRYPTO 1
27138 if test "$ac_cv_openssl_sha2" = "yes"; then
27140 cat >>confdefs.h <<\_ACEOF
27141 #define HAVE_SHA2 1
27146 if test "$ac_cv_openssl_export" = "yes"; then
27148 cat >>confdefs.h <<\_ACEOF
27149 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27155 support_crypto="no"
27160 { echo "$as_me:$LINENO: result: $support_tls" >&5
27161 echo "${ECHO_T}$support_tls" >&6; }
27165 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27166 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27167 if test "${ac_cv_search_dlopen+set}" = set; then
27168 echo $ECHO_N "(cached) $ECHO_C" >&6
27170 ac_func_search_save_LIBS=$LIBS
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27178 /* Override any GCC internal prototype to avoid an error.
27179 Use char because int might match the return type of a GCC
27180 builtin and then its argument prototype would still apply. */
27193 for ac_lib in '' dl; do
27194 if test -z "$ac_lib"; then
27195 ac_res="none required"
27198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_link") 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } && {
27214 test -z "$ac_c_werror_flag" ||
27215 test ! -s conftest.err
27216 } && test -s conftest$ac_exeext &&
27217 $as_test_x conftest$ac_exeext; then
27218 ac_cv_search_dlopen=$ac_res
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27228 if test "${ac_cv_search_dlopen+set}" = set; then
27232 if test "${ac_cv_search_dlopen+set}" = set; then
27235 ac_cv_search_dlopen=no
27237 rm conftest.$ac_ext
27238 LIBS=$ac_func_search_save_LIBS
27240 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27241 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27242 ac_res=$ac_cv_search_dlopen
27243 if test "$ac_res" != no; then
27244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27249 working_dir=`eval echo ${prefix}/var/bacula/working`
27251 # Check whether --with-working-dir was given.
27252 if test "${with_working_dir+set}" = set; then
27253 withval=$with_working_dir;
27254 if test "x$withval" != "xno" ; then
27255 working_dir=$withval
27266 # Check whether --with-archivedir was given.
27267 if test "${with_archivedir+set}" = set; then
27268 withval=$with_archivedir;
27269 if test "x$withval" != "xno" ; then
27270 archivedir=$withval
27279 scriptdir=`eval echo ${sysconfdir}`
27281 # Check whether --with-scriptdir was given.
27282 if test "${with_scriptdir+set}" = set; then
27283 withval=$with_scriptdir;
27284 if test "x$withval" != "xno" ; then
27294 # ------------------------------------------
27295 # Where to place plugindir (plugin files)
27296 # ------------------------------------------
27297 plugindir=`eval echo ${sysconfdir}`
27299 # Check whether --with-plugindir was given.
27300 if test "${with_plugindir+set}" = set; then
27301 withval=$with_plugindir;
27302 if test "x$withval" != "xno" ; then
27312 dump_email=root@localhost
27314 # Check whether --with-dump-email was given.
27315 if test "${with_dump_email+set}" = set; then
27316 withval=$with_dump_email;
27317 if test "x$withval" != "xno" ; then
27318 dump_email=$withval
27327 job_email=root@localhost
27329 # Check whether --with-job-email was given.
27330 if test "${with_job_email+set}" = set; then
27331 withval=$with_job_email;
27332 if test "x$withval" != "xno" ; then
27342 smtp_host=localhost
27344 # Check whether --with-smtp_host was given.
27345 if test "${with_smtp_host+set}" = set; then
27346 withval=$with_smtp_host;
27347 if test "x$withval" != "xno" ; then
27359 # Check whether --with-pid-dir was given.
27360 if test "${with_pid_dir+set}" = set; then
27361 withval=$with_pid_dir;
27362 if test "x$withval" != "xno" ; then
27370 cat >>confdefs.h <<_ACEOF
27371 #define _PATH_BACULA_PIDDIR "$piddir"
27376 subsysdir=/var/run/subsys
27377 if test -d /var/run/subsys; then
27378 subsysdir=/var/run/subsys
27379 elif test -d /var/lock/subsys; then
27380 subsysdir=/var/lock/subsys
27382 subsysdir=/var/run/subsys
27385 # Check whether --with-subsys-dir was given.
27386 if test "${with_subsys_dir+set}" = set; then
27387 withval=$with_subsys_dir;
27388 if test "x$withval" != "xno" ; then
27400 # Check whether --with-baseport was given.
27401 if test "${with_baseport+set}" = set; then
27402 withval=$with_baseport;
27403 if test "x$withval" != "xno" ; then
27412 dir_port=`expr $baseport`
27413 fd_port=`expr $baseport + 1`
27414 sd_port=`expr $fd_port + 1`
27422 # Check whether --with-dir-password was given.
27423 if test "${with_dir_password+set}" = set; then
27424 withval=$with_dir_password;
27425 if test "x$withval" != "xno" ; then
27426 dir_password=$withval
27433 if test "x$dir_password" = "x" ; then
27434 if test "x$OPENSSL" = "xnone" ; then
27435 key=`autoconf/randpass 33`
27437 key=`openssl rand -base64 33`
27444 # Check whether --with-fd-password was given.
27445 if test "${with_fd_password+set}" = set; then
27446 withval=$with_fd_password;
27447 if test "x$withval" != "xno" ; then
27448 fd_password=$withval
27455 if test "x$fd_password" = "x" ; then
27456 if test "x$OPENSSL" = "xnone" ; then
27457 key=`autoconf/randpass 37`
27459 key=`openssl rand -base64 33`
27466 # Check whether --with-sd-password was given.
27467 if test "${with_sd_password+set}" = set; then
27468 withval=$with_sd_password;
27469 if test "x$withval" != "xno" ; then
27470 sd_password=$withval
27477 if test "x$sd_password" = "x" ; then
27478 if test "x$OPENSSL" = "xnone" ; then
27479 key=`autoconf/randpass 41`
27481 key=`openssl rand -base64 33`
27488 # Check whether --with-mon-dir-password was given.
27489 if test "${with_mon_dir_password+set}" = set; then
27490 withval=$with_mon_dir_password;
27491 if test "x$withval" != "xno" ; then
27492 mon_dir_password=$withval
27499 if test "x$mon_dir_password" = "x" ; then
27500 if test "x$OPENSSL" = "xnone" ; then
27501 key=`autoconf/randpass 33`
27503 key=`openssl rand -base64 33`
27505 mon_dir_password=$key
27510 # Check whether --with-mon-fd-password was given.
27511 if test "${with_mon_fd_password+set}" = set; then
27512 withval=$with_mon_fd_password;
27513 if test "x$withval" != "xno" ; then
27514 mon_fd_password=$withval
27521 if test "x$mon_fd_password" = "x" ; then
27522 if test "x$OPENSSL" = "xnone" ; then
27523 key=`autoconf/randpass 37`
27525 key=`openssl rand -base64 33`
27527 mon_fd_password=$key
27532 # Check whether --with-mon-sd-password was given.
27533 if test "${with_mon_sd_password+set}" = set; then
27534 withval=$with_mon_sd_password;
27535 if test "x$withval" != "xno" ; then
27536 mon_sd_password=$withval
27543 if test "x$mon_sd_password" = "x" ; then
27544 if test "x$OPENSSL" = "xnone" ; then
27545 key=`autoconf/randpass 41`
27547 key=`openssl rand -base64 33`
27549 mon_sd_password=$key
27561 # Check whether --with-db_name was given.
27562 if test "${with_db_name+set}" = set; then
27563 withval=$with_db_name;
27564 if test "x$withval" != "x" ; then
27575 # Check whether --with-db_user was given.
27576 if test "${with_db_user+set}" = set; then
27577 withval=$with_db_user;
27578 if test "x$withval" != "x" ; then
27589 # Check whether --with-db_password was given.
27590 if test "${with_db_password+set}" = set; then
27591 withval=$with_db_password;
27592 if test "x$withval" != "x" ; then
27593 db_password=$withval
27603 # Check whether --with-db_port was given.
27604 if test "${with_db_port+set}" = set; then
27605 withval=$with_db_port;
27606 if test "x$withval" != "x" ; then
27616 # Handle users and groups for each daemon
27620 # Check whether --with-dir_user was given.
27621 if test "${with_dir_user+set}" = set; then
27622 withval=$with_dir_user;
27623 if test "x$withval" != "x" ; then
27633 # Check whether --with-dir_group was given.
27634 if test "${with_dir_group+set}" = set; then
27635 withval=$with_dir_group;
27636 if test "x$withval" != "x" ; then
27646 # Check whether --with-sd_user was given.
27647 if test "${with_sd_user+set}" = set; then
27648 withval=$with_sd_user;
27649 if test "x$withval" != "x" ; then
27659 # Check whether --with-sd_group was given.
27660 if test "${with_sd_group+set}" = set; then
27661 withval=$with_sd_group;
27662 if test "x$withval" != "x" ; then
27672 # Check whether --with-fd_user was given.
27673 if test "${with_fd_user+set}" = set; then
27674 withval=$with_fd_user;
27675 if test "x$withval" != "x" ; then
27685 # Check whether --with-fd_group was given.
27686 if test "${with_fd_group+set}" = set; then
27687 withval=$with_fd_group;
27688 if test "x$withval" != "x" ; then
27705 # Check whether --with-sbin-perm was given.
27706 if test "${with_sbin_perm+set}" = set; then
27707 withval=$with_sbin_perm;
27708 if test "x$withval" != "x" ; then
27721 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27722 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27724 # Check whether --with-postgresql was given.
27725 if test "${with_postgresql+set}" = set; then
27726 withval=$with_postgresql;
27727 if test "$withval" != "no"; then
27728 if test "$db_found" = "yes"; then
27729 { echo "$as_me:$LINENO: result: error" >&5
27730 echo "${ECHO_T}error" >&6; }
27731 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27732 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27733 { (exit 1); exit 1; }; };
27735 if test "$withval" = "yes"; then
27736 PG_CONFIG=`which pg_config`
27737 if test -n "$PG_CONFIG";then
27738 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27739 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27740 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27741 elif test -f /usr/local/include/libpq-fe.h; then
27742 POSTGRESQL_INCDIR=/usr/local/include
27743 if test -d /usr/local/lib64; then
27744 POSTGRESQL_LIBDIR=/usr/local/lib64
27746 POSTGRESQL_LIBDIR=/usr/local/lib
27748 POSTGRESQL_BINDIR=/usr/local/bin
27749 elif test -f /usr/include/libpq-fe.h; then
27750 POSTGRESQL_INCDIR=/usr/include
27751 if test -d /usr/lib64; then
27752 POSTGRESQL_LIBDIR=/usr/lib64
27754 POSTGRESQL_LIBDIR=/usr/lib
27756 POSTGRESQL_BINDIR=/usr/bin
27757 elif test -f /usr/include/pgsql/libpq-fe.h; then
27758 POSTGRESQL_INCDIR=/usr/include/pgsql
27759 if test -d /usr/lib64/pgsql; then
27760 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27762 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27764 POSTGRESQL_BINDIR=/usr/bin
27765 elif test -f /usr/include/postgresql/libpq-fe.h; then
27766 POSTGRESQL_INCDIR=/usr/include/postgresql
27767 if test -d /usr/lib64/postgresql; then
27768 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27770 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27772 POSTGRESQL_BINDIR=/usr/bin
27774 { echo "$as_me:$LINENO: result: no" >&5
27775 echo "${ECHO_T}no" >&6; }
27776 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27777 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27778 { (exit 1); exit 1; }; }
27780 elif test -f $withval/include/libpq-fe.h; then
27781 POSTGRESQL_INCDIR=$withval/include
27782 POSTGRESQL_LIBDIR=$withval/lib
27783 POSTGRESQL_BINDIR=$withval/bin
27784 elif test -f $withval/include/postgresql/libpq-fe.h; then
27785 POSTGRESQL_INCDIR=$withval/include/postgresql
27786 if test -d $withval/lib64; then
27787 POSTGRESQL_LIBDIR=$withval/lib64
27789 POSTGRESQL_LIBDIR=$withval/lib
27791 POSTGRESQL_BINDIR=$withval/bin
27793 { echo "$as_me:$LINENO: result: no" >&5
27794 echo "${ECHO_T}no" >&6; }
27795 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27796 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27797 { (exit 1); exit 1; }; }
27799 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27800 { echo "$as_me:$LINENO: checking for crypt" >&5
27801 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27802 if test "${ac_cv_func_crypt+set}" = set; then
27803 echo $ECHO_N "(cached) $ECHO_C" >&6
27805 cat >conftest.$ac_ext <<_ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27813 #define crypt innocuous_crypt
27815 /* System header to define __stub macros and hopefully few prototypes,
27816 which can conflict with char crypt (); below.
27817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27818 <limits.h> exists even on freestanding compilers. */
27821 # include <limits.h>
27823 # include <assert.h>
27828 /* Override any GCC internal prototype to avoid an error.
27829 Use char because int might match the return type of a GCC
27830 builtin and then its argument prototype would still apply. */
27835 /* The GNU C library defines this for functions which it implements
27836 to always fail with ENOSYS. Some functions are actually named
27837 something starting with __ and the normal name is an alias. */
27838 #if defined __stub_crypt || defined __stub___crypt
27850 rm -f conftest.$ac_objext conftest$ac_exeext
27851 if { (ac_try="$ac_link"
27852 case "(($ac_try" in
27853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27854 *) ac_try_echo=$ac_try;;
27856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27857 (eval "$ac_link") 2>conftest.er1
27859 grep -v '^ *+' conftest.er1 >conftest.err
27861 cat conftest.err >&5
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); } && {
27864 test -z "$ac_c_werror_flag" ||
27865 test ! -s conftest.err
27866 } && test -s conftest$ac_exeext &&
27867 $as_test_x conftest$ac_exeext; then
27868 ac_cv_func_crypt=yes
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27873 ac_cv_func_crypt=no
27876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27877 conftest$ac_exeext conftest.$ac_ext
27879 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27880 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27881 if test $ac_cv_func_crypt = yes; then
27884 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27885 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27886 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27887 echo $ECHO_N "(cached) $ECHO_C" >&6
27889 ac_check_lib_save_LIBS=$LIBS
27890 LIBS="-lcrypt $LIBS"
27891 cat >conftest.$ac_ext <<_ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h. */
27898 /* Override any GCC internal prototype to avoid an error.
27899 Use char because int might match the return type of a GCC
27900 builtin and then its argument prototype would still apply. */
27913 rm -f conftest.$ac_objext conftest$ac_exeext
27914 if { (ac_try="$ac_link"
27915 case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_link") 2>conftest.er1
27922 grep -v '^ *+' conftest.er1 >conftest.err
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } && {
27927 test -z "$ac_c_werror_flag" ||
27928 test ! -s conftest.err
27929 } && test -s conftest$ac_exeext &&
27930 $as_test_x conftest$ac_exeext; then
27931 ac_cv_lib_crypt_crypt=yes
27933 echo "$as_me: failed program was:" >&5
27934 sed 's/^/| /' conftest.$ac_ext >&5
27936 ac_cv_lib_crypt_crypt=no
27939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27940 conftest$ac_exeext conftest.$ac_ext
27941 LIBS=$ac_check_lib_save_LIBS
27943 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27944 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27945 if test $ac_cv_lib_crypt_crypt = yes; then
27946 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27951 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27952 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27953 SQL_BINDIR=$POSTGRESQL_BINDIR
27954 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27956 cat >>confdefs.h <<\_ACEOF
27957 #define HAVE_POSTGRESQL 1
27960 { echo "$as_me:$LINENO: result: yes" >&5
27961 echo "${ECHO_T}yes" >&6; }
27963 support_postgresql=yes
27967 { echo "$as_me:$LINENO: result: no" >&5
27968 echo "${ECHO_T}no" >&6; }
27973 { echo "$as_me:$LINENO: result: no" >&5
27974 echo "${ECHO_T}no" >&6; }
27986 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27987 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27989 # Check whether --with-mysql was given.
27990 if test "${with_mysql+set}" = set; then
27991 withval=$with_mysql;
27992 if test "$withval" != "no"; then
27993 if test "$withval" = "yes"; then
27994 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27995 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27996 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27997 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27998 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28000 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28002 MYSQL_BINDIR=/usr/local/mysql/bin
28003 elif test -f /usr/include/mysql/mysql.h; then
28004 MYSQL_INCDIR=/usr/include/mysql
28005 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28006 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28007 MYSQL_LIBDIR=/usr/lib64/mysql
28008 elif test -f /usr/lib64/libmysqlclient_r.a \
28009 -o -f /usr/lib64/libmysqlclient_r.so; then
28010 MYSQL_LIBDIR=/usr/lib64
28011 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28012 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28013 MYSQL_LIBDIR=/usr/lib/mysql
28015 MYSQL_LIBDIR=/usr/lib
28017 MYSQL_BINDIR=/usr/bin
28018 elif test -f /usr/include/mysql.h; then
28019 MYSQL_INCDIR=/usr/include
28020 if test -f /usr/lib64/libmysqlclient_r.a \
28021 -o -f /usr/lib64/libmysqlclient_r.so; then
28022 MYSQL_LIBDIR=/usr/lib64
28024 MYSQL_LIBDIR=/usr/lib
28026 MYSQL_BINDIR=/usr/bin
28027 elif test -f /usr/local/include/mysql/mysql.h; then
28028 MYSQL_INCDIR=/usr/local/include/mysql
28029 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28030 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28031 MYSQL_LIBDIR=/usr/local/lib64/mysql
28033 MYSQL_LIBDIR=/usr/local/lib/mysql
28035 MYSQL_BINDIR=/usr/local/bin
28036 elif test -f /usr/local/include/mysql.h; then
28037 MYSQL_INCDIR=/usr/local/include
28038 if test -f /usr/local/lib64/libmysqlclient_r.a \
28039 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28040 MYSQL_LIBDIR=/usr/local/lib64
28042 MYSQL_LIBDIR=/usr/local/lib
28044 MYSQL_BINDIR=/usr/local/bin
28046 { echo "$as_me:$LINENO: result: no" >&5
28047 echo "${ECHO_T}no" >&6; }
28048 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28049 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28050 { (exit 1); exit 1; }; }
28053 if test -f $withval/include/mysql/mysql.h; then
28054 MYSQL_INCDIR=$withval/include/mysql
28055 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28056 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28057 MYSQL_LIBDIR=$withval/lib64/mysql
28058 elif test -f $withval/lib64/libmysqlclient_r.a \
28059 -o -f $withval/lib64/libmysqlclient_r.so; then
28060 MYSQL_LIBDIR=$withval/lib64
28061 elif test -f $withval/lib/libmysqlclient_r.a \
28062 -o -f $withval/lib/libmysqlclient_r.so; then
28063 MYSQL_LIBDIR=$withval/lib
28065 MYSQL_LIBDIR=$withval/lib/mysql
28067 MYSQL_BINDIR=$withval/bin
28068 elif test -f $withval/include/mysql.h; then
28069 MYSQL_INCDIR=$withval/include
28070 if test -f $withval/lib64/libmysqlclient_r.a \
28071 -o -f $withval/lib64/libmysqlclient_r.so; then
28072 MYSQL_LIBDIR=$withval/lib64
28074 MYSQL_LIBDIR=$withval/lib
28076 MYSQL_BINDIR=$withval/bin
28078 { echo "$as_me:$LINENO: result: no" >&5
28079 echo "${ECHO_T}no" >&6; }
28080 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28081 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28082 { (exit 1); exit 1; }; }
28085 SQL_INCLUDE=-I$MYSQL_INCDIR
28086 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28087 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28088 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28089 cat >>confdefs.h <<\_ACEOF
28090 #define HAVE_THREAD_SAFE_MYSQL 1
28094 SQL_BINDIR=$MYSQL_BINDIR
28095 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28097 cat >>confdefs.h <<\_ACEOF
28098 #define HAVE_MYSQL 1
28101 { echo "$as_me:$LINENO: result: yes" >&5
28102 echo "${ECHO_T}yes" >&6; }
28109 { echo "$as_me:$LINENO: result: no" >&5
28110 echo "${ECHO_T}no" >&6; }
28118 # Check whether --with-embedded-mysql was given.
28119 if test "${with_embedded_mysql+set}" = set; then
28120 withval=$with_embedded_mysql;
28121 if test "$withval" != "no"; then
28122 if test "$withval" = "yes"; then
28123 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28124 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28125 if test -d /usr/local/mysql/lib64/mysql; then
28126 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28128 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28130 MYSQL_BINDIR=/usr/local/mysql/bin
28131 elif test -f /usr/include/mysql/mysql.h; then
28132 MYSQL_INCDIR=/usr/include/mysql
28133 if test -d /usr/lib64/mysql; then
28134 MYSQL_LIBDIR=/usr/lib64/mysql
28136 MYSQL_LIBDIR=/usr/lib/mysql
28138 MYSQL_BINDIR=/usr/bin
28139 elif test -f /usr/include/mysql.h; then
28140 MYSQL_INCDIR=/usr/include
28141 if test -d /usr/lib64; then
28142 MYSQL_LIBDIR=/usr/lib64
28144 MYSQL_LIBDIR=/usr/lib
28146 MYSQL_BINDIR=/usr/bin
28147 elif test -f /usr/local/include/mysql/mysql.h; then
28148 MYSQL_INCDIR=/usr/local/include/mysql
28149 if test -d /usr/local/lib64/mysql; then
28150 MYSQL_LIBDIR=/usr/local/lib64/mysql
28152 MYSQL_LIBDIR=/usr/local/lib/mysql
28154 MYSQL_BINDIR=/usr/local/bin
28155 elif test -f /usr/local/include/mysql.h; then
28156 MYSQL_INCDIR=/usr/local/include
28157 if test -d /usr/local/lib64; then
28158 MYSQL_LIBDIR=/usr/local/lib64
28160 MYSQL_LIBDIR=/usr/local/lib
28162 MYSQL_BINDIR=/usr/local/bin
28164 { echo "$as_me:$LINENO: result: no" >&5
28165 echo "${ECHO_T}no" >&6; }
28166 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28167 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28168 { (exit 1); exit 1; }; }
28171 if test -f $withval/include/mysql/mysql.h; then
28172 MYSQL_INCDIR=$withval/include/mysql
28173 if test -d $withval/lib64/mysql; then
28174 MYSQL_LIBDIR=$withval/lib64/mysql
28176 MYSQL_LIBDIR=$withval/lib/mysql
28178 MYSQL_BINDIR=$withval/bin
28179 elif test -f $withval/include/mysql.h; then
28180 MYSQL_INCDIR=$withval/include
28181 if test -d $withval/lib64; then
28182 MYSQL_LIBDIR=$withval/lib64
28184 MYSQL_LIBDIR=$withval/lib
28186 MYSQL_BINDIR=$withval/bin
28188 { echo "$as_me:$LINENO: result: no" >&5
28189 echo "${ECHO_T}no" >&6; }
28190 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28191 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28192 { (exit 1); exit 1; }; }
28195 SQL_INCLUDE=-I$MYSQL_INCDIR
28196 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28197 SQL_BINDIR=$MYSQL_BINDIR
28198 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28200 cat >>confdefs.h <<\_ACEOF
28201 #define HAVE_MYSQL 1
28204 cat >>confdefs.h <<\_ACEOF
28205 #define HAVE_EMBEDDED_MYSQL 1
28208 { echo "$as_me:$LINENO: result: yes" >&5
28209 echo "${ECHO_T}yes" >&6; }
28216 { echo "$as_me:$LINENO: result: no" >&5
28217 echo "${ECHO_T}no" >&6; }
28233 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28234 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28236 # Check whether --with-sqlite3 was given.
28237 if test "${with_sqlite3+set}" = set; then
28238 withval=$with_sqlite3;
28239 if test "$withval" != "no"; then
28240 if test "$withval" = "yes"; then
28241 if test -f /usr/local/include/sqlite3.h; then
28242 SQLITE_INCDIR=/usr/local/include
28243 if test -d /usr/local/lib64; then
28244 SQLITE_LIBDIR=/usr/local/lib64
28246 SQLITE_LIBDIR=/usr/local/lib
28248 SQLITE_BINDIR=/usr/local/bin
28249 elif test -f /usr/include/sqlite3.h; then
28250 SQLITE_INCDIR=/usr/include
28251 if test -d /usr/lib64; then
28252 SQLITE_LIBDIR=/usr/lib64
28254 SQLITE_LIBDIR=/usr/lib
28256 SQLITE_BINDIR=/usr/bin
28257 elif test -f $prefix/include/sqlite3.h; then
28258 SQLITE_INCDIR=$prefix/include
28259 if test -d $prefix/lib64; then
28260 SQLITE_LIBDIR=$prefix/lib64
28262 SQLITE_LIBDIR=$prefix/lib
28264 SQLITE_BINDIR=$prefix/bin
28266 { echo "$as_me:$LINENO: result: no" >&5
28267 echo "${ECHO_T}no" >&6; }
28268 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28269 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28270 { (exit 1); exit 1; }; }
28273 if test -f $withval/sqlite3.h; then
28274 SQLITE_INCDIR=$withval
28275 SQLITE_LIBDIR=$withval
28276 SQLITE_BINDIR=$withval
28277 elif test -f $withval/include/sqlite3.h; then
28278 SQLITE_INCDIR=$withval/include
28279 if test -d $withval/lib64; then
28280 SQLITE_LIBDIR=$withval/lib64
28282 SQLITE_LIBDIR=$withval/lib
28284 SQLITE_BINDIR=$withval/bin
28286 { echo "$as_me:$LINENO: result: no" >&5
28287 echo "${ECHO_T}no" >&6; }
28288 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28289 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28290 { (exit 1); exit 1; }; }
28293 SQL_INCLUDE=-I$SQLITE_INCDIR
28294 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28295 SQL_BINDIR=$SQLITE_BINDIR
28296 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28298 cat >>confdefs.h <<\_ACEOF
28299 #define HAVE_SQLITE3 1
28302 { echo "$as_me:$LINENO: result: yes" >&5
28303 echo "${ECHO_T}yes" >&6; }
28305 support_sqlite3=yes
28310 { echo "$as_me:$LINENO: result: no" >&5
28311 echo "${ECHO_T}no" >&6; }
28316 { echo "$as_me:$LINENO: result: no" >&5
28317 echo "${ECHO_T}no" >&6; }
28329 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28330 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28332 # Check whether --with-sqlite was given.
28333 if test "${with_sqlite+set}" = set; then
28334 withval=$with_sqlite;
28335 if test "$withval" != "no"; then
28336 if test "$withval" = "yes"; then
28337 if test -f /usr/local/include/sqlite.h; then
28338 SQLITE_INCDIR=/usr/local/include
28339 if test -d /usr/local/lib64; then
28340 SQLITE_LIBDIR=/usr/local/lib64
28342 SQLITE_LIBDIR=/usr/local/lib
28344 SQLITE_BINDIR=/usr/local/bin
28345 elif test -f /usr/include/sqlite.h; then
28346 SQLITE_INCDIR=/usr/include
28347 if test -d /usr/lib64; then
28348 SQLITE_LIBDIR=/usr/lib64
28350 SQLITE_LIBDIR=/usr/lib
28352 SQLITE_BINDIR=/usr/bin
28353 elif test -f $prefix/include/sqlite.h; then
28354 SQLITE_INCDIR=$prefix/include
28355 if test -d $prefix/lib64; then
28356 SQLITE_LIBDIR=$prefix/lib64
28358 SQLITE_LIBDIR=$prefix/lib
28360 SQLITE_BINDIR=$prefix/bin
28362 { echo "$as_me:$LINENO: result: no" >&5
28363 echo "${ECHO_T}no" >&6; }
28364 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28365 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28366 { (exit 1); exit 1; }; }
28369 if test -f $withval/sqlite.h; then
28370 SQLITE_INCDIR=$withval
28371 SQLITE_LIBDIR=$withval
28372 SQLITE_BINDIR=$withval
28373 elif test -f $withval/include/sqlite.h; then
28374 SQLITE_INCDIR=$withval/include
28375 if test -d $withval/lib64; then
28376 SQLITE_LIBDIR=$withval/lib64
28378 SQLITE_LIBDIR=$withval/lib
28380 SQLITE_BINDIR=$withval/bin
28382 { echo "$as_me:$LINENO: result: no" >&5
28383 echo "${ECHO_T}no" >&6; }
28384 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28385 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28386 { (exit 1); exit 1; }; }
28389 SQL_INCLUDE=-I$SQLITE_INCDIR
28390 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28391 SQL_BINDIR=$SQLITE_BINDIR
28392 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28394 cat >>confdefs.h <<\_ACEOF
28395 #define HAVE_SQLITE 1
28398 { echo "$as_me:$LINENO: result: yes" >&5
28399 echo "${ECHO_T}yes" >&6; }
28406 { echo "$as_me:$LINENO: result: no" >&5
28407 echo "${ECHO_T}no" >&6; }
28412 { echo "$as_me:$LINENO: result: no" >&5
28413 echo "${ECHO_T}no" >&6; }
28425 { echo "$as_me:$LINENO: checking for DBI support" >&5
28426 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28428 # Check whether --with-dbi was given.
28429 if test "${with_dbi+set}" = set; then
28431 if test "$withval" != "no"; then
28432 if test "$withval" = "yes"; then
28433 if test -f /usr/local/include/dbi/dbi.h; then
28434 DBI_INCDIR=/usr/local/dbi/include
28435 if test -d /usr/local/lib64; then
28436 DBI_LIBDIR=/usr/local/lib64
28438 DBI_LIBDIR=/usr/local/lib
28440 DBI_BINDIR=/usr/local/bin
28441 elif test -f /usr/include/dbi/dbi.h; then
28442 DBI_INCDIR=/usr/include
28443 if test -d /usr/lib64; then
28444 DBI_LIBDIR=/usr/lib64
28446 DBI_LIBDIR=/usr/lib
28448 DBI_BINDIR=/usr/bin
28449 elif test -f $prefix/include/dbi/dbi.h; then
28450 DBI_INCDIR=$prefix/include
28451 if test -d $prefix/lib64; then
28452 DBI_LIBDIR=$prefix/lib64
28454 DBI_LIBDIR=$prefix/lib
28456 DBI_BINDIR=$prefix/bin
28458 { echo "$as_me:$LINENO: result: no" >&5
28459 echo "${ECHO_T}no" >&6; }
28460 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28461 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28462 { (exit 1); exit 1; }; }
28464 if test -d /usr/local/lib/dbd; then
28465 DRIVERDIR=/usr/local/lib/dbd
28466 if test -d /usr/local/lib64/dbd; then
28467 DRIVERDIR=/usr/local/lib64/dbd
28469 DRIVERDIR=/usr/local/lib/dbd
28471 elif test -d /usr/lib/dbd; then
28472 DRIVERDIR=/usr/lib/dbd
28473 if test -d /usr/lib64/dbd; then
28474 DRIVERDIR=/usr/lib64/dbd
28476 DRIVERDIR=/usr/lib/dbd
28478 elif test -d $prefix/lib/dbd; then
28479 if test -d $prefix/lib64/dbd; then
28480 DRIVERDIR=$prefix/lib64/dbd
28482 DRIVERDIR=$prefix/lib/dbd
28485 { echo "$as_me:$LINENO: result: no" >&5
28486 echo "${ECHO_T}no" >&6; }
28487 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28488 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28489 { (exit 1); exit 1; }; }
28492 if test -f $withval/dbi.h; then
28493 DBI_INCDIR=$withval
28494 DBI_LIBDIR=$withval
28495 DBI_BINDIR=$withval
28496 elif test -f $withval/include/dbi/dbi.h; then
28497 DBI_INCDIR=$withval/include
28498 if test -d $withval/lib64; then
28499 DBI_LIBDIR=$withval/lib64
28501 DBI_LIBDIR=$withval/lib
28503 DBI_BINDIR=$withval/bin
28505 { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28508 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28509 { (exit 1); exit 1; }; }
28511 if test -d $withval/dbd; then
28512 DRIVERDIR=$withval/dbd
28513 elif test -d $withval/lib/; then
28514 if test -d $withval/lib64/dbd; then
28515 DRIVERDIR=$withval/lib64/dbd
28517 DRIVERDIR=$withval/lib/dbd
28520 { echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6; }
28522 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28523 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28524 { (exit 1); exit 1; }; }
28527 SQL_INCLUDE=-I$DBI_INCDIR
28528 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28529 SQL_BINDIR=$DBI_BINDIR
28530 SQL_LIB=$DBI_LIBDIR/libdbi.a
28531 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28534 cat >>confdefs.h <<\_ACEOF
28538 { echo "$as_me:$LINENO: result: yes" >&5
28539 echo "${ECHO_T}yes" >&6; }
28547 { echo "$as_me:$LINENO: result: no" >&5
28548 echo "${ECHO_T}no" >&6; }
28553 { echo "$as_me:$LINENO: result: no" >&5
28554 echo "${ECHO_T}no" >&6; }
28569 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28570 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28572 # Check whether --with-dbi-driver was given.
28573 if test "${with_dbi_driver+set}" = set; then
28574 withval=$with_dbi_driver;
28575 if test "$withval" != "no"; then
28579 if test -f /usr/local/mysql/bin/mysql; then
28580 SQL_BINDIR=/usr/local/mysql/bin
28581 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28582 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28583 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28585 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28587 elif test -f /usr/bin/mysql; then
28588 SQL_BINDIR=/usr/bin
28589 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28590 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28591 SQL_LIBDIR=/usr/lib64/mysql
28592 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28593 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28594 SQL_LIBDIR=/usr/lib/mysql
28596 SQL_LIBDIR=/usr/lib
28598 elif test -f /usr/local/bin/mysql; then
28599 SQL_BINDIR=/usr/local/bin
28600 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28601 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28602 SQL_LIBDIR=/usr/local/lib64/mysql
28603 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28604 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28605 SQL_LIBDIR=/usr/local/lib/mysql
28607 SQL_LIBDIR=/usr/local/lib
28609 elif test -f $withval/bin/mysql; then
28610 SQL_BINDIR=$withval/bin
28611 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28612 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28613 SQL_LIBDIR=$withval/lib64/mysql
28614 elif test -f $withval/lib64/libmysqlclient_r.a \
28615 -o -f $withval/lib64/libmysqlclient_r.so; then
28616 SQL_LIBDIR=$withval/lib64
28617 elif test -f $withval/lib/libmysqlclient_r.a \
28618 -o -f $withval/lib/libmysqlclient_r.so; then
28619 SQL_LIBDIR=$withval/lib/
28621 SQL_LIBDIR=$withval/lib/mysql
28624 { echo "$as_me:$LINENO: result: no" >&5
28625 echo "${ECHO_T}no" >&6; }
28626 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28627 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28628 { (exit 1); exit 1; }; }
28630 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28633 db_prog="postgresql"
28634 PG_CONFIG=`which pg_config`
28635 if test -n "$PG_CONFIG"; then
28636 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28637 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28638 elif test -f /usr/local/bin/psql; then
28639 SQL_BINDIR=/usr/local/bin
28640 if test -d /usr/local/lib64; then
28641 SQL_LIBDIR=/usr/local/lib64
28643 SQL_LIBDIR=/usr/local/lib
28645 elif test -f /usr/bin/psql; then
28646 SQL_BINDIR=/usr/local/bin
28647 if test -d /usr/lib64/postgresql; then
28648 SQL_LIBDIR=/usr/lib64/postgresql
28649 elif test -d /usr/lib/postgresql; then
28650 SQL_LIBDIR=/usr/lib/postgresql
28651 elif test -d /usr/lib64; then
28652 SQL_LIBDIR=/usr/lib64
28654 SQL_LIBDIR=/usr/lib
28656 elif test -f $withval/bin/psql; then
28657 SQL_BINDIR=$withval/bin
28658 if test -d $withval/lib64; then
28659 SQL_LIBDIR=$withval/lib64
28661 SQL_LIBDIR=$withval/lib
28664 { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28667 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28668 { (exit 1); exit 1; }; }
28670 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28674 if test -f /usr/local/bin/sqlite; then
28675 SQL_BINDIR=/usr/local/bin
28676 if test -d /usr/local/lib64; then
28677 SQL_LIBDIR=/usr/local/lib64
28679 SQL_LIBDIR=/usr/local/lib
28681 elif test -f /usr/bin/sqlite; then
28682 SQL_BINDIR=/usr/bin
28683 if test -d /usr/lib64; then
28684 SQL_LIBDIR=/usr/lib64
28686 SQL_LIBDIR=/usr/lib
28688 elif test -f $withval/bin/sqlite; then
28689 SQL_BINDIR=$withval/bin
28690 if test -d $withval/lib64; then
28691 SQL_LIBDIR=$withval/lib64
28693 SQL_LIBDIR=$withval/lib
28696 { echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6; }
28698 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28699 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28700 { (exit 1); exit 1; }; }
28702 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28706 if test -f /usr/local/bin/sqlite3; then
28707 SQL_BINDIR=/usr/local/bin
28708 if test -d /usr/local/lib64; then
28709 SQL_LIBDIR=/usr/local/lib64
28711 SQL_LIBDIR=/usr/local/lib
28713 elif test -f /usr/bin/sqlite3; then
28714 SQL_BINDIR=/usr/bin
28715 if test -d /usr/lib64; then
28716 SQL_LIBDIR=/usr/lib64
28718 SQL_LIBDIR=/usr/lib
28720 elif test -f $withval/bin/sqlite3; then
28721 SQL_BINDIR=$withval/bin
28722 if test -d $withval/lib64; then
28723 SQL_LIBDIR=$withval/lib64
28725 SQL_LIBDIR=$withval/lib
28728 { echo "$as_me:$LINENO: result: no" >&5
28729 echo "${ECHO_T}no" >&6; }
28730 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28731 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28732 { (exit 1); exit 1; }; }
28734 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28737 { echo "$as_me:$LINENO: result: no" >&5
28738 echo "${ECHO_T}no" >&6; }
28739 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28740 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28741 { (exit 1); exit 1; }; }
28745 { echo "$as_me:$LINENO: result: yes" >&5
28746 echo "${ECHO_T}yes" >&6; }
28749 { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28755 { echo "$as_me:$LINENO: result: no" >&5
28756 echo "${ECHO_T}no" >&6; }
28769 support_batch_insert=no
28770 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28772 if test $pkg = 0; then
28773 support_batch_insert=yes
28774 # Check whether --enable-batch-insert was given.
28775 if test "${enable_batch_insert+set}" = set; then
28776 enableval=$enable_batch_insert;
28777 if test x$enableval = xno; then
28778 support_batch_insert=no
28780 support_batch_insert=yes
28788 if test x$DB_TYPE = xpostgresql; then
28789 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28791 if test $pkg != 0; then
28792 support_batch_insert=no
28796 if test x$DB_TYPE = xdbi; then
28800 if test $DB_PROG = postgresql; then
28801 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28805 if test $DB_PROG = mysql; then
28806 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28810 if test $DB_PROG = sqlite3; then
28811 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28815 if test $pkg = 0; then
28816 # Check whether --enable-batch-insert was given.
28817 if test "${enable_batch_insert+set}" = set; then
28818 enableval=$enable_batch_insert;
28819 if test x$enableval = xno; then
28820 support_batch_insert=no
28822 support_batch_insert=yes
28835 if test $support_batch_insert = yes ; then
28837 cat >>confdefs.h <<\_ACEOF
28838 #define HAVE_BATCH_FILE_INSERT 1
28843 cat >>confdefs.h <<\_ACEOF
28844 #define PROTOTYPES 1
28848 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28849 if test -z "$CCOPTS"; then
28850 CCOPTS='-g -O2 -Wall'
28857 largefile_support="no"
28859 # Check whether --enable-largefile was given.
28860 if test "${enable_largefile+set}" = set; then
28861 enableval=$enable_largefile;
28864 if test "$enable_largefile" != no; then
28865 if test -n "$ac_tool_prefix"; then
28866 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28867 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28870 if test "${ac_cv_prog_GETCONF+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28873 if test -n "$GETCONF"; then
28874 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28877 for as_dir in $PATH
28880 test -z "$as_dir" && as_dir=.
28881 for ac_exec_ext in '' $ac_executable_extensions; do
28882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28883 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28893 GETCONF=$ac_cv_prog_GETCONF
28894 if test -n "$GETCONF"; then
28895 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28896 echo "${ECHO_T}$GETCONF" >&6; }
28898 { echo "$as_me:$LINENO: result: no" >&5
28899 echo "${ECHO_T}no" >&6; }
28904 if test -z "$ac_cv_prog_GETCONF"; then
28905 ac_ct_GETCONF=$GETCONF
28906 # Extract the first word of "getconf", so it can be a program name with args.
28907 set dummy getconf; ac_word=$2
28908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28910 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28911 echo $ECHO_N "(cached) $ECHO_C" >&6
28913 if test -n "$ac_ct_GETCONF"; then
28914 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28917 for as_dir in $PATH
28920 test -z "$as_dir" && as_dir=.
28921 for ac_exec_ext in '' $ac_executable_extensions; do
28922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28923 ac_cv_prog_ac_ct_GETCONF="getconf"
28924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28933 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28934 if test -n "$ac_ct_GETCONF"; then
28935 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28936 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28938 { echo "$as_me:$LINENO: result: no" >&5
28939 echo "${ECHO_T}no" >&6; }
28942 if test "x$ac_ct_GETCONF" = x; then
28945 case $cross_compiling:$ac_tool_warned in
28947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28948 whose name does not start with the host triplet. If you think this
28949 configuration is useful to you, please write to autoconf@gnu.org." >&5
28950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28951 whose name does not start with the host triplet. If you think this
28952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28953 ac_tool_warned=yes ;;
28955 GETCONF=$ac_ct_GETCONF
28958 GETCONF="$ac_cv_prog_GETCONF"
28961 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28962 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28963 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28966 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28967 ac_cv_sys_largefile_CFLAGS=no
28969 # IRIX 6.2 and later require cc -n32.
28970 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28971 if test "$GCC" != yes; then
28972 ac_cv_sys_largefile_CFLAGS=-n32
28975 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28976 cat >conftest.$ac_ext <<_ACEOF
28979 cat confdefs.h >>conftest.$ac_ext
28980 cat >>conftest.$ac_ext <<_ACEOF
28981 /* end confdefs.h. */
28991 rm -f conftest.$ac_objext conftest$ac_exeext
28992 if { (ac_try="$ac_link"
28993 case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998 (eval "$ac_link") 2>conftest.er1
29000 grep -v '^ *+' conftest.er1 >conftest.err
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } && {
29005 test -z "$ac_c_werror_flag" ||
29006 test ! -s conftest.err
29007 } && test -s conftest$ac_exeext &&
29008 $as_test_x conftest$ac_exeext; then
29011 echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29014 ac_cv_sys_largefile_CFLAGS=no
29017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29018 conftest$ac_exeext conftest.$ac_ext
29023 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29024 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29025 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29026 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29027 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29031 ac_cv_sys_largefile_LDFLAGS=no
29035 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29036 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29037 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29038 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29039 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29040 echo $ECHO_N "(cached) $ECHO_C" >&6
29042 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29043 ac_cv_sys_largefile_LIBS=no
29047 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29048 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29050 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29053 -D_FILE_OFFSET_BITS=*) ;;
29054 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29055 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29060 case "$CPPFLAGS" in
29061 '') CPPFLAGS="$ac_flag" ;;
29062 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29070 '') CFLAGS="$ac_flag" ;;
29071 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29076 case "$ac_cv_sys_largefile_LDFLAGS" in
29080 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29081 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29084 case "$ac_cv_sys_largefile_LIBS" in
29088 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29089 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29092 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29093 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29094 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 ac_cv_sys_file_offset_bits=no
29098 ac_cv_sys_file_offset_bits=64
29099 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29101 -D_FILE_OFFSET_BITS)
29102 ac_cv_sys_file_offset_bits=1 ;;
29103 -D_FILE_OFFSET_BITS=*)
29104 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29109 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29110 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29111 if test "$ac_cv_sys_file_offset_bits" != no; then
29113 cat >>confdefs.h <<_ACEOF
29114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29118 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29119 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29120 if test "${ac_cv_sys_largefile_source+set}" = set; then
29121 echo $ECHO_N "(cached) $ECHO_C" >&6
29123 ac_cv_sys_largefile_source=no
29124 ac_cv_sys_largefile_source=1
29125 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29127 -D_LARGEFILE_SOURCE)
29128 ac_cv_sys_largefile_source=1 ;;
29129 -D_LARGEFILE_SOURCE=*)
29130 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29135 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29136 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29137 if test "$ac_cv_sys_largefile_source" != no; then
29139 cat >>confdefs.h <<_ACEOF
29140 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29144 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29145 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29146 if test "${ac_cv_sys_large_files+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 ac_cv_sys_large_files=no
29150 ac_cv_sys_large_files=1
29151 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29154 ac_cv_sys_large_files=1 ;;
29156 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29161 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29162 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29163 if test "$ac_cv_sys_large_files" != no; then
29165 cat >>confdefs.h <<_ACEOF
29166 #define _LARGE_FILES $ac_cv_sys_large_files
29173 { echo "$as_me:$LINENO: checking for X" >&5
29174 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29177 # Check whether --with-x was given.
29178 if test "${with_x+set}" = set; then
29182 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29183 if test "x$with_x" = xno; then
29184 # The user explicitly disabled X.
29187 case $x_includes,$x_libraries in #(
29188 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29189 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29190 { (exit 1); exit 1; }; };; #(
29191 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29194 # One or both of the vars are not set, and there is no cached value.
29195 ac_x_includes=no ac_x_libraries=no
29196 rm -f -r conftest.dir
29197 if mkdir conftest.dir; then
29199 cat >Imakefile <<'_ACEOF'
29201 @echo incroot='${INCROOT}'
29203 @echo usrlibdir='${USRLIBDIR}'
29205 @echo libdir='${LIBDIR}'
29207 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29209 for ac_var in incroot usrlibdir libdir; do
29210 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29212 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29213 for ac_extension in a so sl; do
29214 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29215 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29216 ac_im_usrlibdir=$ac_im_libdir; break
29219 # Screen out bogus values from the imake configuration. They are
29220 # bogus both because they are the default anyway, and because
29221 # using them would break gcc on systems where it needs fixed includes.
29222 case $ac_im_incroot in
29223 /usr/include) ac_x_includes= ;;
29224 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29226 case $ac_im_usrlibdir in
29227 /usr/lib | /lib) ;;
29228 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29232 rm -f -r conftest.dir
29235 # Standard set of common directories for X headers.
29236 # Check X11 before X11Rn because it is often a symlink to the current release.
29248 /usr/local/X11/include
29249 /usr/local/X11R6/include
29250 /usr/local/X11R5/include
29251 /usr/local/X11R4/include
29253 /usr/local/include/X11
29254 /usr/local/include/X11R6
29255 /usr/local/include/X11R5
29256 /usr/local/include/X11R4
29260 /usr/XFree86/include/X11
29264 /usr/unsupported/include
29265 /usr/athena/include
29266 /usr/local/x11r5/include
29267 /usr/lpp/Xamples/include
29269 /usr/openwin/include
29270 /usr/openwin/share/include'
29272 if test "$ac_x_includes" = no; then
29273 # Guess where to find include files, by looking for Xlib.h.
29274 # First, try using that file with no special directory specified.
29275 cat >conftest.$ac_ext <<_ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h. */
29281 #include <X11/Xlib.h>
29283 if { (ac_try="$ac_cpp conftest.$ac_ext"
29284 case "(($ac_try" in
29285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29286 *) ac_try_echo=$ac_try;;
29288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29291 grep -v '^ *+' conftest.er1 >conftest.err
29293 cat conftest.err >&5
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); } >/dev/null && {
29296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29297 test ! -s conftest.err
29299 # We can compile using X headers with no special include directory.
29302 echo "$as_me: failed program was:" >&5
29303 sed 's/^/| /' conftest.$ac_ext >&5
29305 for ac_dir in $ac_x_header_dirs; do
29306 if test -r "$ac_dir/X11/Xlib.h"; then
29307 ac_x_includes=$ac_dir
29313 rm -f conftest.err conftest.$ac_ext
29314 fi # $ac_x_includes = no
29316 if test "$ac_x_libraries" = no; then
29317 # Check for the libraries.
29318 # See if we find them without any special options.
29319 # Don't add to $LIBS permanently.
29322 cat >conftest.$ac_ext <<_ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h. */
29328 #include <X11/Xlib.h>
29337 rm -f conftest.$ac_objext conftest$ac_exeext
29338 if { (ac_try="$ac_link"
29339 case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_link") 2>conftest.er1
29346 grep -v '^ *+' conftest.er1 >conftest.err
29348 cat conftest.err >&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); } && {
29351 test -z "$ac_c_werror_flag" ||
29352 test ! -s conftest.err
29353 } && test -s conftest$ac_exeext &&
29354 $as_test_x conftest$ac_exeext; then
29356 # We can link X programs with no special library path.
29359 echo "$as_me: failed program was:" >&5
29360 sed 's/^/| /' conftest.$ac_ext >&5
29363 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29365 # Don't even attempt the hair of trying to link an X program!
29366 for ac_extension in a so sl; do
29367 if test -r "$ac_dir/libX11.$ac_extension"; then
29368 ac_x_libraries=$ac_dir
29375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29376 conftest$ac_exeext conftest.$ac_ext
29377 fi # $ac_x_libraries = no
29379 case $ac_x_includes,$ac_x_libraries in #(
29380 no,* | *,no | *\'*)
29381 # Didn't find X, or a directory has "'" in its name.
29382 ac_cv_have_x="have_x=no";; #(
29384 # Record where we found X for the cache.
29385 ac_cv_have_x="have_x=yes\
29386 ac_x_includes='$ac_x_includes'\
29387 ac_x_libraries='$ac_x_libraries'"
29393 eval "$ac_cv_have_x"
29396 if test "$have_x" != yes; then
29397 { echo "$as_me:$LINENO: result: $have_x" >&5
29398 echo "${ECHO_T}$have_x" >&6; }
29401 # If each of the values was on the command line, it overrides each guess.
29402 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29403 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29404 # Update the cache value to reflect the command line values.
29405 ac_cv_have_x="have_x=yes\
29406 ac_x_includes='$x_includes'\
29407 ac_x_libraries='$x_libraries'"
29408 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29409 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29412 if test "$no_x" = yes; then
29413 # Not all programs may use this symbol, but it does not hurt to define it.
29415 cat >>confdefs.h <<\_ACEOF
29416 #define X_DISPLAY_MISSING 1
29419 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29421 if test -n "$x_includes"; then
29422 X_CFLAGS="$X_CFLAGS -I$x_includes"
29425 # It would also be nice to do this for all -L options, not just this one.
29426 if test -n "$x_libraries"; then
29427 X_LIBS="$X_LIBS -L$x_libraries"
29428 # For Solaris; some versions of Sun CC require a space after -R and
29429 # others require no space. Words are not sufficient . . . .
29430 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29431 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29432 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29433 ac_xsave_c_werror_flag=$ac_c_werror_flag
29434 ac_c_werror_flag=yes
29435 cat >conftest.$ac_ext <<_ACEOF
29438 cat confdefs.h >>conftest.$ac_ext
29439 cat >>conftest.$ac_ext <<_ACEOF
29440 /* end confdefs.h. */
29450 rm -f conftest.$ac_objext conftest$ac_exeext
29451 if { (ac_try="$ac_link"
29452 case "(($ac_try" in
29453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454 *) ac_try_echo=$ac_try;;
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457 (eval "$ac_link") 2>conftest.er1
29459 grep -v '^ *+' conftest.er1 >conftest.err
29461 cat conftest.err >&5
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); } && {
29464 test -z "$ac_c_werror_flag" ||
29465 test ! -s conftest.err
29466 } && test -s conftest$ac_exeext &&
29467 $as_test_x conftest$ac_exeext; then
29468 { echo "$as_me:$LINENO: result: no" >&5
29469 echo "${ECHO_T}no" >&6; }
29470 X_LIBS="$X_LIBS -R$x_libraries"
29472 echo "$as_me: failed program was:" >&5
29473 sed 's/^/| /' conftest.$ac_ext >&5
29475 LIBS="$ac_xsave_LIBS -R $x_libraries"
29476 cat >conftest.$ac_ext <<_ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h. */
29491 rm -f conftest.$ac_objext conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_link") 2>conftest.er1
29500 grep -v '^ *+' conftest.er1 >conftest.err
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } && {
29505 test -z "$ac_c_werror_flag" ||
29506 test ! -s conftest.err
29507 } && test -s conftest$ac_exeext &&
29508 $as_test_x conftest$ac_exeext; then
29509 { echo "$as_me:$LINENO: result: yes" >&5
29510 echo "${ECHO_T}yes" >&6; }
29511 X_LIBS="$X_LIBS -R $x_libraries"
29513 echo "$as_me: failed program was:" >&5
29514 sed 's/^/| /' conftest.$ac_ext >&5
29516 { echo "$as_me:$LINENO: result: neither works" >&5
29517 echo "${ECHO_T}neither works" >&6; }
29520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29521 conftest$ac_exeext conftest.$ac_ext
29524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29525 conftest$ac_exeext conftest.$ac_ext
29526 ac_c_werror_flag=$ac_xsave_c_werror_flag
29527 LIBS=$ac_xsave_LIBS
29530 # Check for system-dependent libraries X programs must link with.
29531 # Do this before checking for the system-independent R6 libraries
29532 # (-lICE), since we may need -lsocket or whatever for X linking.
29534 if test "$ISC" = yes; then
29535 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29537 # Martyn Johnson says this is needed for Ultrix, if the X
29538 # libraries were built with DECnet support. And Karl Berry says
29539 # the Alpha needs dnet_stub (dnet does not exist).
29540 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29541 cat >conftest.$ac_ext <<_ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h. */
29548 /* Override any GCC internal prototype to avoid an error.
29549 Use char because int might match the return type of a GCC
29550 builtin and then its argument prototype would still apply. */
29554 char XOpenDisplay ();
29558 return XOpenDisplay ();
29563 rm -f conftest.$ac_objext conftest$ac_exeext
29564 if { (ac_try="$ac_link"
29565 case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_link") 2>conftest.er1
29572 grep -v '^ *+' conftest.er1 >conftest.err
29574 cat conftest.err >&5
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); } && {
29577 test -z "$ac_c_werror_flag" ||
29578 test ! -s conftest.err
29579 } && test -s conftest$ac_exeext &&
29580 $as_test_x conftest$ac_exeext; then
29583 echo "$as_me: failed program was:" >&5
29584 sed 's/^/| /' conftest.$ac_ext >&5
29586 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29587 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29588 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29589 echo $ECHO_N "(cached) $ECHO_C" >&6
29591 ac_check_lib_save_LIBS=$LIBS
29592 LIBS="-ldnet $LIBS"
29593 cat >conftest.$ac_ext <<_ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h. */
29600 /* Override any GCC internal prototype to avoid an error.
29601 Use char because int might match the return type of a GCC
29602 builtin and then its argument prototype would still apply. */
29610 return dnet_ntoa ();
29615 rm -f conftest.$ac_objext conftest$ac_exeext
29616 if { (ac_try="$ac_link"
29617 case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622 (eval "$ac_link") 2>conftest.er1
29624 grep -v '^ *+' conftest.er1 >conftest.err
29626 cat conftest.err >&5
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } && {
29629 test -z "$ac_c_werror_flag" ||
29630 test ! -s conftest.err
29631 } && test -s conftest$ac_exeext &&
29632 $as_test_x conftest$ac_exeext; then
29633 ac_cv_lib_dnet_dnet_ntoa=yes
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29638 ac_cv_lib_dnet_dnet_ntoa=no
29641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29642 conftest$ac_exeext conftest.$ac_ext
29643 LIBS=$ac_check_lib_save_LIBS
29645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29646 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29647 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29648 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29651 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29652 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29653 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29654 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29657 ac_check_lib_save_LIBS=$LIBS
29658 LIBS="-ldnet_stub $LIBS"
29659 cat >conftest.$ac_ext <<_ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h. */
29666 /* Override any GCC internal prototype to avoid an error.
29667 Use char because int might match the return type of a GCC
29668 builtin and then its argument prototype would still apply. */
29676 return dnet_ntoa ();
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_link") 2>conftest.er1
29690 grep -v '^ *+' conftest.er1 >conftest.err
29692 cat conftest.err >&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } && {
29695 test -z "$ac_c_werror_flag" ||
29696 test ! -s conftest.err
29697 } && test -s conftest$ac_exeext &&
29698 $as_test_x conftest$ac_exeext; then
29699 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_lib_dnet_stub_dnet_ntoa=no
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708 conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29711 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29712 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29713 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29714 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29721 conftest$ac_exeext conftest.$ac_ext
29722 LIBS="$ac_xsave_LIBS"
29724 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29725 # to get the SysV transport functions.
29726 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29728 # The nsl library prevents programs from opening the X display
29729 # on Irix 5.2, according to T.E. Dickey.
29730 # The functions gethostbyname, getservbyname, and inet_addr are
29731 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29732 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29733 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29734 if test "${ac_cv_func_gethostbyname+set}" = set; then
29735 echo $ECHO_N "(cached) $ECHO_C" >&6
29737 cat >conftest.$ac_ext <<_ACEOF
29740 cat confdefs.h >>conftest.$ac_ext
29741 cat >>conftest.$ac_ext <<_ACEOF
29742 /* end confdefs.h. */
29743 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29745 #define gethostbyname innocuous_gethostbyname
29747 /* System header to define __stub macros and hopefully few prototypes,
29748 which can conflict with char gethostbyname (); below.
29749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29750 <limits.h> exists even on freestanding compilers. */
29753 # include <limits.h>
29755 # include <assert.h>
29758 #undef gethostbyname
29760 /* Override any GCC internal prototype to avoid an error.
29761 Use char because int might match the return type of a GCC
29762 builtin and then its argument prototype would still apply. */
29766 char gethostbyname ();
29767 /* The GNU C library defines this for functions which it implements
29768 to always fail with ENOSYS. Some functions are actually named
29769 something starting with __ and the normal name is an alias. */
29770 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29777 return gethostbyname ();
29782 rm -f conftest.$ac_objext conftest$ac_exeext
29783 if { (ac_try="$ac_link"
29784 case "(($ac_try" in
29785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786 *) ac_try_echo=$ac_try;;
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789 (eval "$ac_link") 2>conftest.er1
29791 grep -v '^ *+' conftest.er1 >conftest.err
29793 cat conftest.err >&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } && {
29796 test -z "$ac_c_werror_flag" ||
29797 test ! -s conftest.err
29798 } && test -s conftest$ac_exeext &&
29799 $as_test_x conftest$ac_exeext; then
29800 ac_cv_func_gethostbyname=yes
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ac_cv_func_gethostbyname=no
29808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29809 conftest$ac_exeext conftest.$ac_ext
29811 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29812 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29814 if test $ac_cv_func_gethostbyname = no; then
29815 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29816 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29817 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29820 ac_check_lib_save_LIBS=$LIBS
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29829 /* Override any GCC internal prototype to avoid an error.
29830 Use char because int might match the return type of a GCC
29831 builtin and then its argument prototype would still apply. */
29835 char gethostbyname ();
29839 return gethostbyname ();
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (ac_try="$ac_link"
29846 case "(($ac_try" in
29847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848 *) ac_try_echo=$ac_try;;
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851 (eval "$ac_link") 2>conftest.er1
29853 grep -v '^ *+' conftest.er1 >conftest.err
29855 cat conftest.err >&5
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); } && {
29858 test -z "$ac_c_werror_flag" ||
29859 test ! -s conftest.err
29860 } && test -s conftest$ac_exeext &&
29861 $as_test_x conftest$ac_exeext; then
29862 ac_cv_lib_nsl_gethostbyname=yes
29864 echo "$as_me: failed program was:" >&5
29865 sed 's/^/| /' conftest.$ac_ext >&5
29867 ac_cv_lib_nsl_gethostbyname=no
29870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29871 conftest$ac_exeext conftest.$ac_ext
29872 LIBS=$ac_check_lib_save_LIBS
29874 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29875 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29876 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29880 if test $ac_cv_lib_nsl_gethostbyname = no; then
29881 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29882 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29883 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29886 ac_check_lib_save_LIBS=$LIBS
29888 cat >conftest.$ac_ext <<_ACEOF
29891 cat confdefs.h >>conftest.$ac_ext
29892 cat >>conftest.$ac_ext <<_ACEOF
29893 /* end confdefs.h. */
29895 /* Override any GCC internal prototype to avoid an error.
29896 Use char because int might match the return type of a GCC
29897 builtin and then its argument prototype would still apply. */
29901 char gethostbyname ();
29905 return gethostbyname ();
29910 rm -f conftest.$ac_objext conftest$ac_exeext
29911 if { (ac_try="$ac_link"
29912 case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_link") 2>conftest.er1
29919 grep -v '^ *+' conftest.er1 >conftest.err
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); } && {
29924 test -z "$ac_c_werror_flag" ||
29925 test ! -s conftest.err
29926 } && test -s conftest$ac_exeext &&
29927 $as_test_x conftest$ac_exeext; then
29928 ac_cv_lib_bsd_gethostbyname=yes
29930 echo "$as_me: failed program was:" >&5
29931 sed 's/^/| /' conftest.$ac_ext >&5
29933 ac_cv_lib_bsd_gethostbyname=no
29936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29937 conftest$ac_exeext conftest.$ac_ext
29938 LIBS=$ac_check_lib_save_LIBS
29940 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29941 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29942 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29949 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29950 # socket/setsockopt and other routines are undefined under SCO ODT
29951 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29952 # on later versions), says Simon Leinen: it contains gethostby*
29953 # variants that don't use the name server (or something). -lsocket
29954 # must be given before -lnsl if both are needed. We assume that
29955 # if connect needs -lnsl, so does gethostbyname.
29956 { echo "$as_me:$LINENO: checking for connect" >&5
29957 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29958 if test "${ac_cv_func_connect+set}" = set; then
29959 echo $ECHO_N "(cached) $ECHO_C" >&6
29961 cat >conftest.$ac_ext <<_ACEOF
29964 cat confdefs.h >>conftest.$ac_ext
29965 cat >>conftest.$ac_ext <<_ACEOF
29966 /* end confdefs.h. */
29967 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29969 #define connect innocuous_connect
29971 /* System header to define __stub macros and hopefully few prototypes,
29972 which can conflict with char connect (); below.
29973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29974 <limits.h> exists even on freestanding compilers. */
29977 # include <limits.h>
29979 # include <assert.h>
29984 /* Override any GCC internal prototype to avoid an error.
29985 Use char because int might match the return type of a GCC
29986 builtin and then its argument prototype would still apply. */
29991 /* The GNU C library defines this for functions which it implements
29992 to always fail with ENOSYS. Some functions are actually named
29993 something starting with __ and the normal name is an alias. */
29994 #if defined __stub_connect || defined __stub___connect
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010 *) ac_try_echo=$ac_try;;
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013 (eval "$ac_link") 2>conftest.er1
30015 grep -v '^ *+' conftest.er1 >conftest.err
30017 cat conftest.err >&5
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); } && {
30020 test -z "$ac_c_werror_flag" ||
30021 test ! -s conftest.err
30022 } && test -s conftest$ac_exeext &&
30023 $as_test_x conftest$ac_exeext; then
30024 ac_cv_func_connect=yes
30026 echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30029 ac_cv_func_connect=no
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033 conftest$ac_exeext conftest.$ac_ext
30035 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30036 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30038 if test $ac_cv_func_connect = no; then
30039 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30041 if test "${ac_cv_lib_socket_connect+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30044 ac_check_lib_save_LIBS=$LIBS
30045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30053 /* Override any GCC internal prototype to avoid an error.
30054 Use char because int might match the return type of a GCC
30055 builtin and then its argument prototype would still apply. */
30068 rm -f conftest.$ac_objext conftest$ac_exeext
30069 if { (ac_try="$ac_link"
30070 case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_link") 2>conftest.er1
30077 grep -v '^ *+' conftest.er1 >conftest.err
30079 cat conftest.err >&5
30080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081 (exit $ac_status); } && {
30082 test -z "$ac_c_werror_flag" ||
30083 test ! -s conftest.err
30084 } && test -s conftest$ac_exeext &&
30085 $as_test_x conftest$ac_exeext; then
30086 ac_cv_lib_socket_connect=yes
30088 echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30091 ac_cv_lib_socket_connect=no
30094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30095 conftest$ac_exeext conftest.$ac_ext
30096 LIBS=$ac_check_lib_save_LIBS
30098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30099 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30100 if test $ac_cv_lib_socket_connect = yes; then
30101 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30106 # Guillermo Gomez says -lposix is necessary on A/UX.
30107 { echo "$as_me:$LINENO: checking for remove" >&5
30108 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30109 if test "${ac_cv_func_remove+set}" = set; then
30110 echo $ECHO_N "(cached) $ECHO_C" >&6
30112 cat >conftest.$ac_ext <<_ACEOF
30115 cat confdefs.h >>conftest.$ac_ext
30116 cat >>conftest.$ac_ext <<_ACEOF
30117 /* end confdefs.h. */
30118 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30120 #define remove innocuous_remove
30122 /* System header to define __stub macros and hopefully few prototypes,
30123 which can conflict with char remove (); below.
30124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30125 <limits.h> exists even on freestanding compilers. */
30128 # include <limits.h>
30130 # include <assert.h>
30135 /* Override any GCC internal prototype to avoid an error.
30136 Use char because int might match the return type of a GCC
30137 builtin and then its argument prototype would still apply. */
30142 /* The GNU C library defines this for functions which it implements
30143 to always fail with ENOSYS. Some functions are actually named
30144 something starting with __ and the normal name is an alias. */
30145 #if defined __stub_remove || defined __stub___remove
30157 rm -f conftest.$ac_objext conftest$ac_exeext
30158 if { (ac_try="$ac_link"
30159 case "(($ac_try" in
30160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30161 *) ac_try_echo=$ac_try;;
30163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30164 (eval "$ac_link") 2>conftest.er1
30166 grep -v '^ *+' conftest.er1 >conftest.err
30168 cat conftest.err >&5
30169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170 (exit $ac_status); } && {
30171 test -z "$ac_c_werror_flag" ||
30172 test ! -s conftest.err
30173 } && test -s conftest$ac_exeext &&
30174 $as_test_x conftest$ac_exeext; then
30175 ac_cv_func_remove=yes
30177 echo "$as_me: failed program was:" >&5
30178 sed 's/^/| /' conftest.$ac_ext >&5
30180 ac_cv_func_remove=no
30183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30184 conftest$ac_exeext conftest.$ac_ext
30186 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30187 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30189 if test $ac_cv_func_remove = no; then
30190 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30191 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30192 if test "${ac_cv_lib_posix_remove+set}" = set; then
30193 echo $ECHO_N "(cached) $ECHO_C" >&6
30195 ac_check_lib_save_LIBS=$LIBS
30196 LIBS="-lposix $LIBS"
30197 cat >conftest.$ac_ext <<_ACEOF
30200 cat confdefs.h >>conftest.$ac_ext
30201 cat >>conftest.$ac_ext <<_ACEOF
30202 /* end confdefs.h. */
30204 /* Override any GCC internal prototype to avoid an error.
30205 Use char because int might match the return type of a GCC
30206 builtin and then its argument prototype would still apply. */
30219 rm -f conftest.$ac_objext conftest$ac_exeext
30220 if { (ac_try="$ac_link"
30221 case "(($ac_try" in
30222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223 *) ac_try_echo=$ac_try;;
30225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30226 (eval "$ac_link") 2>conftest.er1
30228 grep -v '^ *+' conftest.er1 >conftest.err
30230 cat conftest.err >&5
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); } && {
30233 test -z "$ac_c_werror_flag" ||
30234 test ! -s conftest.err
30235 } && test -s conftest$ac_exeext &&
30236 $as_test_x conftest$ac_exeext; then
30237 ac_cv_lib_posix_remove=yes
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30242 ac_cv_lib_posix_remove=no
30245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30246 conftest$ac_exeext conftest.$ac_ext
30247 LIBS=$ac_check_lib_save_LIBS
30249 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30250 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30251 if test $ac_cv_lib_posix_remove = yes; then
30252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30257 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30258 { echo "$as_me:$LINENO: checking for shmat" >&5
30259 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30260 if test "${ac_cv_func_shmat+set}" = set; then
30261 echo $ECHO_N "(cached) $ECHO_C" >&6
30263 cat >conftest.$ac_ext <<_ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30269 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30271 #define shmat innocuous_shmat
30273 /* System header to define __stub macros and hopefully few prototypes,
30274 which can conflict with char shmat (); below.
30275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30276 <limits.h> exists even on freestanding compilers. */
30279 # include <limits.h>
30281 # include <assert.h>
30286 /* Override any GCC internal prototype to avoid an error.
30287 Use char because int might match the return type of a GCC
30288 builtin and then its argument prototype would still apply. */
30293 /* The GNU C library defines this for functions which it implements
30294 to always fail with ENOSYS. Some functions are actually named
30295 something starting with __ and the normal name is an alias. */
30296 #if defined __stub_shmat || defined __stub___shmat
30308 rm -f conftest.$ac_objext conftest$ac_exeext
30309 if { (ac_try="$ac_link"
30310 case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_link") 2>conftest.er1
30317 grep -v '^ *+' conftest.er1 >conftest.err
30319 cat conftest.err >&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); } && {
30322 test -z "$ac_c_werror_flag" ||
30323 test ! -s conftest.err
30324 } && test -s conftest$ac_exeext &&
30325 $as_test_x conftest$ac_exeext; then
30326 ac_cv_func_shmat=yes
30328 echo "$as_me: failed program was:" >&5
30329 sed 's/^/| /' conftest.$ac_ext >&5
30331 ac_cv_func_shmat=no
30334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30335 conftest$ac_exeext conftest.$ac_ext
30337 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30338 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30340 if test $ac_cv_func_shmat = no; then
30341 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30342 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30343 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30344 echo $ECHO_N "(cached) $ECHO_C" >&6
30346 ac_check_lib_save_LIBS=$LIBS
30348 cat >conftest.$ac_ext <<_ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h. */
30355 /* Override any GCC internal prototype to avoid an error.
30356 Use char because int might match the return type of a GCC
30357 builtin and then its argument prototype would still apply. */
30370 rm -f conftest.$ac_objext conftest$ac_exeext
30371 if { (ac_try="$ac_link"
30372 case "(($ac_try" in
30373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30374 *) ac_try_echo=$ac_try;;
30376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30377 (eval "$ac_link") 2>conftest.er1
30379 grep -v '^ *+' conftest.er1 >conftest.err
30381 cat conftest.err >&5
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); } && {
30384 test -z "$ac_c_werror_flag" ||
30385 test ! -s conftest.err
30386 } && test -s conftest$ac_exeext &&
30387 $as_test_x conftest$ac_exeext; then
30388 ac_cv_lib_ipc_shmat=yes
30390 echo "$as_me: failed program was:" >&5
30391 sed 's/^/| /' conftest.$ac_ext >&5
30393 ac_cv_lib_ipc_shmat=no
30396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30397 conftest$ac_exeext conftest.$ac_ext
30398 LIBS=$ac_check_lib_save_LIBS
30400 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30401 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30402 if test $ac_cv_lib_ipc_shmat = yes; then
30403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30409 # Check for libraries that X11R6 Xt/Xaw programs need.
30410 ac_save_LDFLAGS=$LDFLAGS
30411 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30412 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30413 # check for ICE first), but we must link in the order -lSM -lICE or
30414 # we get undefined symbols. So assume we have SM if we have ICE.
30415 # These have to be linked with before -lX11, unlike the other
30416 # libraries we check for below, so use a different variable.
30417 # John Interrante, Karl Berry
30418 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30419 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30420 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 ac_check_lib_save_LIBS=$LIBS
30424 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30425 cat >conftest.$ac_ext <<_ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h. */
30432 /* Override any GCC internal prototype to avoid an error.
30433 Use char because int might match the return type of a GCC
30434 builtin and then its argument prototype would still apply. */
30438 char IceConnectionNumber ();
30442 return IceConnectionNumber ();
30447 rm -f conftest.$ac_objext conftest$ac_exeext
30448 if { (ac_try="$ac_link"
30449 case "(($ac_try" in
30450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30451 *) ac_try_echo=$ac_try;;
30453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30454 (eval "$ac_link") 2>conftest.er1
30456 grep -v '^ *+' conftest.er1 >conftest.err
30458 cat conftest.err >&5
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); } && {
30461 test -z "$ac_c_werror_flag" ||
30462 test ! -s conftest.err
30463 } && test -s conftest$ac_exeext &&
30464 $as_test_x conftest$ac_exeext; then
30465 ac_cv_lib_ICE_IceConnectionNumber=yes
30467 echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.$ac_ext >&5
30470 ac_cv_lib_ICE_IceConnectionNumber=no
30473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30474 conftest$ac_exeext conftest.$ac_ext
30475 LIBS=$ac_check_lib_save_LIBS
30477 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30478 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30479 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30480 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30483 LDFLAGS=$ac_save_LDFLAGS
30551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30556 echo $ECHO_N "(cached) $ECHO_C" >&6
30558 ac_res=`eval echo '${'$as_ac_Header'}'`
30559 { echo "$as_me:$LINENO: result: $ac_res" >&5
30560 echo "${ECHO_T}$ac_res" >&6; }
30562 # Is the header compilable?
30563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30565 cat >conftest.$ac_ext <<_ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h. */
30571 $ac_includes_default
30572 #include <$ac_header>
30574 rm -f conftest.$ac_objext
30575 if { (ac_try="$ac_compile"
30576 case "(($ac_try" in
30577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30578 *) ac_try_echo=$ac_try;;
30580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30581 (eval "$ac_compile") 2>conftest.er1
30583 grep -v '^ *+' conftest.er1 >conftest.err
30585 cat conftest.err >&5
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); } && {
30588 test -z "$ac_c_werror_flag" ||
30589 test ! -s conftest.err
30590 } && test -s conftest.$ac_objext; then
30591 ac_header_compiler=yes
30593 echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30596 ac_header_compiler=no
30599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30601 echo "${ECHO_T}$ac_header_compiler" >&6; }
30603 # Is the header present?
30604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30606 cat >conftest.$ac_ext <<_ACEOF
30609 cat confdefs.h >>conftest.$ac_ext
30610 cat >>conftest.$ac_ext <<_ACEOF
30611 /* end confdefs.h. */
30612 #include <$ac_header>
30614 if { (ac_try="$ac_cpp conftest.$ac_ext"
30615 case "(($ac_try" in
30616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617 *) ac_try_echo=$ac_try;;
30619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30622 grep -v '^ *+' conftest.er1 >conftest.err
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } >/dev/null && {
30627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30628 test ! -s conftest.err
30630 ac_header_preproc=yes
30632 echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30635 ac_header_preproc=no
30638 rm -f conftest.err conftest.$ac_ext
30639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30640 echo "${ECHO_T}$ac_header_preproc" >&6; }
30642 # So? What about this header?
30643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30649 ac_header_preproc=yes
30652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30670 echo $ECHO_N "(cached) $ECHO_C" >&6
30672 eval "$as_ac_Header=\$ac_header_preproc"
30674 ac_res=`eval echo '${'$as_ac_Header'}'`
30675 { echo "$as_me:$LINENO: result: $ac_res" >&5
30676 echo "${ECHO_T}$ac_res" >&6; }
30679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30680 cat >>confdefs.h <<_ACEOF
30681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30688 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30689 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30690 if test "${ac_cv_header_stdc+set}" = set; then
30691 echo $ECHO_N "(cached) $ECHO_C" >&6
30693 cat >conftest.$ac_ext <<_ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h. */
30699 #include <stdlib.h>
30700 #include <stdarg.h>
30701 #include <string.h>
30712 rm -f conftest.$ac_objext
30713 if { (ac_try="$ac_compile"
30714 case "(($ac_try" in
30715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716 *) ac_try_echo=$ac_try;;
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719 (eval "$ac_compile") 2>conftest.er1
30721 grep -v '^ *+' conftest.er1 >conftest.err
30723 cat conftest.err >&5
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); } && {
30726 test -z "$ac_c_werror_flag" ||
30727 test ! -s conftest.err
30728 } && test -s conftest.$ac_objext; then
30729 ac_cv_header_stdc=yes
30731 echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30734 ac_cv_header_stdc=no
30737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739 if test $ac_cv_header_stdc = yes; then
30740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30741 cat >conftest.$ac_ext <<_ACEOF
30744 cat confdefs.h >>conftest.$ac_ext
30745 cat >>conftest.$ac_ext <<_ACEOF
30746 /* end confdefs.h. */
30747 #include <string.h>
30750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30751 $EGREP "memchr" >/dev/null 2>&1; then
30754 ac_cv_header_stdc=no
30760 if test $ac_cv_header_stdc = yes; then
30761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30762 cat >conftest.$ac_ext <<_ACEOF
30765 cat confdefs.h >>conftest.$ac_ext
30766 cat >>conftest.$ac_ext <<_ACEOF
30767 /* end confdefs.h. */
30768 #include <stdlib.h>
30771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30772 $EGREP "free" >/dev/null 2>&1; then
30775 ac_cv_header_stdc=no
30781 if test $ac_cv_header_stdc = yes; then
30782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30783 if test "$cross_compiling" = yes; then
30786 cat >conftest.$ac_ext <<_ACEOF
30789 cat confdefs.h >>conftest.$ac_ext
30790 cat >>conftest.$ac_ext <<_ACEOF
30791 /* end confdefs.h. */
30793 #include <stdlib.h>
30794 #if ((' ' & 0x0FF) == 0x020)
30795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30798 # define ISLOWER(c) \
30799 (('a' <= (c) && (c) <= 'i') \
30800 || ('j' <= (c) && (c) <= 'r') \
30801 || ('s' <= (c) && (c) <= 'z'))
30802 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30805 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30810 for (i = 0; i < 256; i++)
30811 if (XOR (islower (i), ISLOWER (i))
30812 || toupper (i) != TOUPPER (i))
30817 rm -f conftest$ac_exeext
30818 if { (ac_try="$ac_link"
30819 case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824 (eval "$ac_link") 2>&5
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
30839 echo "$as_me: program exited with status $ac_status" >&5
30840 echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30843 ( exit $ac_status )
30844 ac_cv_header_stdc=no
30846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30852 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30853 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30854 if test $ac_cv_header_stdc = yes; then
30856 cat >>confdefs.h <<\_ACEOF
30857 #define STDC_HEADERS 1
30862 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30863 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30864 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30865 echo $ECHO_N "(cached) $ECHO_C" >&6
30867 cat >conftest.$ac_ext <<_ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30873 #include <sys/types.h>
30877 return makedev(0, 0);
30882 rm -f conftest.$ac_objext conftest$ac_exeext
30883 if { (ac_try="$ac_link"
30884 case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_link") 2>conftest.er1
30891 grep -v '^ *+' conftest.er1 >conftest.err
30893 cat conftest.err >&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } && {
30896 test -z "$ac_c_werror_flag" ||
30897 test ! -s conftest.err
30898 } && test -s conftest$ac_exeext &&
30899 $as_test_x conftest$ac_exeext; then
30900 ac_cv_header_sys_types_h_makedev=yes
30902 echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30905 ac_cv_header_sys_types_h_makedev=no
30908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30909 conftest$ac_exeext conftest.$ac_ext
30912 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30913 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30915 if test $ac_cv_header_sys_types_h_makedev = no; then
30916 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30917 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30918 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30919 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30922 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30923 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30925 # Is the header compilable?
30926 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30927 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30928 cat >conftest.$ac_ext <<_ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h. */
30934 $ac_includes_default
30935 #include <sys/mkdev.h>
30937 rm -f conftest.$ac_objext
30938 if { (ac_try="$ac_compile"
30939 case "(($ac_try" in
30940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941 *) ac_try_echo=$ac_try;;
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944 (eval "$ac_compile") 2>conftest.er1
30946 grep -v '^ *+' conftest.er1 >conftest.err
30948 cat conftest.err >&5
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); } && {
30951 test -z "$ac_c_werror_flag" ||
30952 test ! -s conftest.err
30953 } && test -s conftest.$ac_objext; then
30954 ac_header_compiler=yes
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30959 ac_header_compiler=no
30962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30964 echo "${ECHO_T}$ac_header_compiler" >&6; }
30966 # Is the header present?
30967 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30968 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30969 cat >conftest.$ac_ext <<_ACEOF
30972 cat confdefs.h >>conftest.$ac_ext
30973 cat >>conftest.$ac_ext <<_ACEOF
30974 /* end confdefs.h. */
30975 #include <sys/mkdev.h>
30977 if { (ac_try="$ac_cpp conftest.$ac_ext"
30978 case "(($ac_try" in
30979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980 *) ac_try_echo=$ac_try;;
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30985 grep -v '^ *+' conftest.er1 >conftest.err
30987 cat conftest.err >&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } >/dev/null && {
30990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30991 test ! -s conftest.err
30993 ac_header_preproc=yes
30995 echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30998 ac_header_preproc=no
31001 rm -f conftest.err conftest.$ac_ext
31002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31003 echo "${ECHO_T}$ac_header_preproc" >&6; }
31005 # So? What about this header?
31006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31008 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31009 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31010 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31011 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31012 ac_header_preproc=yes
31015 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31016 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31017 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31018 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31019 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31020 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31021 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31022 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31023 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31024 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31025 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31026 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31030 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31031 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31032 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31035 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31037 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31038 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31041 if test $ac_cv_header_sys_mkdev_h = yes; then
31043 cat >>confdefs.h <<\_ACEOF
31044 #define MAJOR_IN_MKDEV 1
31051 if test $ac_cv_header_sys_mkdev_h = no; then
31052 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31053 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31054 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31055 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31056 echo $ECHO_N "(cached) $ECHO_C" >&6
31058 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31059 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31061 # Is the header compilable?
31062 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31063 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31064 cat >conftest.$ac_ext <<_ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31070 $ac_includes_default
31071 #include <sys/sysmacros.h>
31073 rm -f conftest.$ac_objext
31074 if { (ac_try="$ac_compile"
31075 case "(($ac_try" in
31076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31077 *) ac_try_echo=$ac_try;;
31079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31080 (eval "$ac_compile") 2>conftest.er1
31082 grep -v '^ *+' conftest.er1 >conftest.err
31084 cat conftest.err >&5
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); } && {
31087 test -z "$ac_c_werror_flag" ||
31088 test ! -s conftest.err
31089 } && test -s conftest.$ac_objext; then
31090 ac_header_compiler=yes
31092 echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31095 ac_header_compiler=no
31098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31100 echo "${ECHO_T}$ac_header_compiler" >&6; }
31102 # Is the header present?
31103 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31104 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31105 cat >conftest.$ac_ext <<_ACEOF
31108 cat confdefs.h >>conftest.$ac_ext
31109 cat >>conftest.$ac_ext <<_ACEOF
31110 /* end confdefs.h. */
31111 #include <sys/sysmacros.h>
31113 if { (ac_try="$ac_cpp conftest.$ac_ext"
31114 case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31121 grep -v '^ *+' conftest.er1 >conftest.err
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); } >/dev/null && {
31126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31127 test ! -s conftest.err
31129 ac_header_preproc=yes
31131 echo "$as_me: failed program was:" >&5
31132 sed 's/^/| /' conftest.$ac_ext >&5
31134 ac_header_preproc=no
31137 rm -f conftest.err conftest.$ac_ext
31138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31139 echo "${ECHO_T}$ac_header_preproc" >&6; }
31141 # So? What about this header?
31142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31144 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31145 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31146 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31147 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31148 ac_header_preproc=yes
31151 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31152 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31153 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31154 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31155 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31156 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31157 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31158 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31159 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31160 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31161 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31162 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31166 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31167 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31168 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31169 echo $ECHO_N "(cached) $ECHO_C" >&6
31171 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31173 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31174 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31177 if test $ac_cv_header_sys_sysmacros_h = yes; then
31179 cat >>confdefs.h <<\_ACEOF
31180 #define MAJOR_IN_SYSMACROS 1
31194 ac_header_dirent=no
31195 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31196 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31197 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31198 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
31202 cat >conftest.$ac_ext <<_ACEOF
31205 cat confdefs.h >>conftest.$ac_ext
31206 cat >>conftest.$ac_ext <<_ACEOF
31207 /* end confdefs.h. */
31208 #include <sys/types.h>
31220 rm -f conftest.$ac_objext
31221 if { (ac_try="$ac_compile"
31222 case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31227 (eval "$ac_compile") 2>conftest.er1
31229 grep -v '^ *+' conftest.er1 >conftest.err
31231 cat conftest.err >&5
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); } && {
31234 test -z "$ac_c_werror_flag" ||
31235 test ! -s conftest.err
31236 } && test -s conftest.$ac_objext; then
31237 eval "$as_ac_Header=yes"
31239 echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31242 eval "$as_ac_Header=no"
31245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31247 ac_res=`eval echo '${'$as_ac_Header'}'`
31248 { echo "$as_me:$LINENO: result: $ac_res" >&5
31249 echo "${ECHO_T}$ac_res" >&6; }
31250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31251 cat >>confdefs.h <<_ACEOF
31252 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31255 ac_header_dirent=$ac_hdr; break
31259 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31260 if test $ac_header_dirent = dirent.h; then
31261 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31262 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31263 if test "${ac_cv_search_opendir+set}" = set; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31266 ac_func_search_save_LIBS=$LIBS
31267 cat >conftest.$ac_ext <<_ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h. */
31274 /* Override any GCC internal prototype to avoid an error.
31275 Use char because int might match the return type of a GCC
31276 builtin and then its argument prototype would still apply. */
31289 for ac_lib in '' dir; do
31290 if test -z "$ac_lib"; then
31291 ac_res="none required"
31294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31296 rm -f conftest.$ac_objext conftest$ac_exeext
31297 if { (ac_try="$ac_link"
31298 case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_link") 2>conftest.er1
31305 grep -v '^ *+' conftest.er1 >conftest.err
31307 cat conftest.err >&5
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } && {
31310 test -z "$ac_c_werror_flag" ||
31311 test ! -s conftest.err
31312 } && test -s conftest$ac_exeext &&
31313 $as_test_x conftest$ac_exeext; then
31314 ac_cv_search_opendir=$ac_res
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31324 if test "${ac_cv_search_opendir+set}" = set; then
31328 if test "${ac_cv_search_opendir+set}" = set; then
31331 ac_cv_search_opendir=no
31333 rm conftest.$ac_ext
31334 LIBS=$ac_func_search_save_LIBS
31336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31338 ac_res=$ac_cv_search_opendir
31339 if test "$ac_res" != no; then
31340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31347 if test "${ac_cv_search_opendir+set}" = set; then
31348 echo $ECHO_N "(cached) $ECHO_C" >&6
31350 ac_func_search_save_LIBS=$LIBS
31351 cat >conftest.$ac_ext <<_ACEOF
31354 cat confdefs.h >>conftest.$ac_ext
31355 cat >>conftest.$ac_ext <<_ACEOF
31356 /* end confdefs.h. */
31358 /* Override any GCC internal prototype to avoid an error.
31359 Use char because int might match the return type of a GCC
31360 builtin and then its argument prototype would still apply. */
31373 for ac_lib in '' x; do
31374 if test -z "$ac_lib"; then
31375 ac_res="none required"
31378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31380 rm -f conftest.$ac_objext conftest$ac_exeext
31381 if { (ac_try="$ac_link"
31382 case "(($ac_try" in
31383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384 *) ac_try_echo=$ac_try;;
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_link") 2>conftest.er1
31389 grep -v '^ *+' conftest.er1 >conftest.err
31391 cat conftest.err >&5
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } && {
31394 test -z "$ac_c_werror_flag" ||
31395 test ! -s conftest.err
31396 } && test -s conftest$ac_exeext &&
31397 $as_test_x conftest$ac_exeext; then
31398 ac_cv_search_opendir=$ac_res
31400 echo "$as_me: failed program was:" >&5
31401 sed 's/^/| /' conftest.$ac_ext >&5
31406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31408 if test "${ac_cv_search_opendir+set}" = set; then
31412 if test "${ac_cv_search_opendir+set}" = set; then
31415 ac_cv_search_opendir=no
31417 rm conftest.$ac_ext
31418 LIBS=$ac_func_search_save_LIBS
31420 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31421 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31422 ac_res=$ac_cv_search_opendir
31423 if test "$ac_res" != no; then
31424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31430 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31431 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31432 if test "${ac_cv_header_stat_broken+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31435 cat >conftest.$ac_ext <<_ACEOF
31438 cat confdefs.h >>conftest.$ac_ext
31439 cat >>conftest.$ac_ext <<_ACEOF
31440 /* end confdefs.h. */
31441 #include <sys/types.h>
31442 #include <sys/stat.h>
31444 #if defined S_ISBLK && defined S_IFDIR
31445 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31448 #if defined S_ISBLK && defined S_IFCHR
31449 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31452 #if defined S_ISLNK && defined S_IFREG
31453 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31456 #if defined S_ISSOCK && defined S_IFREG
31457 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31461 rm -f conftest.$ac_objext
31462 if { (ac_try="$ac_compile"
31463 case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_compile") 2>conftest.er1
31470 grep -v '^ *+' conftest.er1 >conftest.err
31472 cat conftest.err >&5
31473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31474 (exit $ac_status); } && {
31475 test -z "$ac_c_werror_flag" ||
31476 test ! -s conftest.err
31477 } && test -s conftest.$ac_objext; then
31478 ac_cv_header_stat_broken=no
31480 echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31483 ac_cv_header_stat_broken=yes
31486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31488 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31489 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31490 if test $ac_cv_header_stat_broken = yes; then
31492 cat >>confdefs.h <<\_ACEOF
31493 #define STAT_MACROS_BROKEN 1
31498 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31499 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31500 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31501 echo $ECHO_N "(cached) $ECHO_C" >&6
31503 cat >conftest.$ac_ext <<_ACEOF
31506 cat confdefs.h >>conftest.$ac_ext
31507 cat >>conftest.$ac_ext <<_ACEOF
31508 /* end confdefs.h. */
31509 #include <sys/types.h>
31510 #include <sys/wait.h>
31511 #ifndef WEXITSTATUS
31512 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31515 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31523 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31528 rm -f conftest.$ac_objext
31529 if { (ac_try="$ac_compile"
31530 case "(($ac_try" in
31531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532 *) ac_try_echo=$ac_try;;
31534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31535 (eval "$ac_compile") 2>conftest.er1
31537 grep -v '^ *+' conftest.er1 >conftest.err
31539 cat conftest.err >&5
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); } && {
31542 test -z "$ac_c_werror_flag" ||
31543 test ! -s conftest.err
31544 } && test -s conftest.$ac_objext; then
31545 ac_cv_header_sys_wait_h=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_header_sys_wait_h=no
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31556 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31557 if test $ac_cv_header_sys_wait_h = yes; then
31559 cat >>confdefs.h <<\_ACEOF
31560 #define HAVE_SYS_WAIT_H 1
31565 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31566 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31567 if test "${ac_cv_header_time+set}" = set; then
31568 echo $ECHO_N "(cached) $ECHO_C" >&6
31570 cat >conftest.$ac_ext <<_ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h. */
31576 #include <sys/types.h>
31577 #include <sys/time.h>
31583 if ((struct tm *) 0)
31589 rm -f conftest.$ac_objext
31590 if { (ac_try="$ac_compile"
31591 case "(($ac_try" in
31592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31593 *) ac_try_echo=$ac_try;;
31595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31596 (eval "$ac_compile") 2>conftest.er1
31598 grep -v '^ *+' conftest.er1 >conftest.err
31600 cat conftest.err >&5
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); } && {
31603 test -z "$ac_c_werror_flag" ||
31604 test ! -s conftest.err
31605 } && test -s conftest.$ac_objext; then
31606 ac_cv_header_time=yes
31608 echo "$as_me: failed program was:" >&5
31609 sed 's/^/| /' conftest.$ac_ext >&5
31611 ac_cv_header_time=no
31614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31616 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31617 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31618 if test $ac_cv_header_time = yes; then
31620 cat >>confdefs.h <<\_ACEOF
31621 #define TIME_WITH_SYS_TIME 1
31626 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31627 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31628 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31631 cat >conftest.$ac_ext <<_ACEOF
31634 cat confdefs.h >>conftest.$ac_ext
31635 cat >>conftest.$ac_ext <<_ACEOF
31636 /* end confdefs.h. */
31637 $ac_includes_default
31641 static struct stat ac_aggr;
31642 if (ac_aggr.st_blksize)
31648 rm -f conftest.$ac_objext
31649 if { (ac_try="$ac_compile"
31650 case "(($ac_try" in
31651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652 *) ac_try_echo=$ac_try;;
31654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31655 (eval "$ac_compile") 2>conftest.er1
31657 grep -v '^ *+' conftest.er1 >conftest.err
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } && {
31662 test -z "$ac_c_werror_flag" ||
31663 test ! -s conftest.err
31664 } && test -s conftest.$ac_objext; then
31665 ac_cv_member_struct_stat_st_blksize=yes
31667 echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 $ac_includes_default
31680 static struct stat ac_aggr;
31681 if (sizeof ac_aggr.st_blksize)
31687 rm -f conftest.$ac_objext
31688 if { (ac_try="$ac_compile"
31689 case "(($ac_try" in
31690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691 *) ac_try_echo=$ac_try;;
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694 (eval "$ac_compile") 2>conftest.er1
31696 grep -v '^ *+' conftest.er1 >conftest.err
31698 cat conftest.err >&5
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); } && {
31701 test -z "$ac_c_werror_flag" ||
31702 test ! -s conftest.err
31703 } && test -s conftest.$ac_objext; then
31704 ac_cv_member_struct_stat_st_blksize=yes
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709 ac_cv_member_struct_stat_st_blksize=no
31712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31718 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31719 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31721 cat >>confdefs.h <<_ACEOF
31722 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31726 cat >>confdefs.h <<\_ACEOF
31727 #define HAVE_ST_BLKSIZE 1
31733 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31734 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31735 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31736 echo $ECHO_N "(cached) $ECHO_C" >&6
31738 cat >conftest.$ac_ext <<_ACEOF
31741 cat confdefs.h >>conftest.$ac_ext
31742 cat >>conftest.$ac_ext <<_ACEOF
31743 /* end confdefs.h. */
31744 $ac_includes_default
31748 static struct stat ac_aggr;
31749 if (ac_aggr.st_blocks)
31755 rm -f conftest.$ac_objext
31756 if { (ac_try="$ac_compile"
31757 case "(($ac_try" in
31758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759 *) ac_try_echo=$ac_try;;
31761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762 (eval "$ac_compile") 2>conftest.er1
31764 grep -v '^ *+' conftest.er1 >conftest.err
31766 cat conftest.err >&5
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); } && {
31769 test -z "$ac_c_werror_flag" ||
31770 test ! -s conftest.err
31771 } && test -s conftest.$ac_objext; then
31772 ac_cv_member_struct_stat_st_blocks=yes
31774 echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31777 cat >conftest.$ac_ext <<_ACEOF
31780 cat confdefs.h >>conftest.$ac_ext
31781 cat >>conftest.$ac_ext <<_ACEOF
31782 /* end confdefs.h. */
31783 $ac_includes_default
31787 static struct stat ac_aggr;
31788 if (sizeof ac_aggr.st_blocks)
31794 rm -f conftest.$ac_objext
31795 if { (ac_try="$ac_compile"
31796 case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_compile") 2>conftest.er1
31803 grep -v '^ *+' conftest.er1 >conftest.err
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); } && {
31808 test -z "$ac_c_werror_flag" ||
31809 test ! -s conftest.err
31810 } && test -s conftest.$ac_objext; then
31811 ac_cv_member_struct_stat_st_blocks=yes
31813 echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31816 ac_cv_member_struct_stat_st_blocks=no
31819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31824 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31825 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31826 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31828 cat >>confdefs.h <<_ACEOF
31829 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31833 cat >>confdefs.h <<\_ACEOF
31834 #define HAVE_ST_BLOCKS 1
31838 case " $LIBOBJS " in
31839 *" fileblocks.$ac_objext "* ) ;;
31840 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31847 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31848 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31849 if test "${ac_cv_struct_tm+set}" = set; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 cat >conftest.$ac_ext <<_ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 #include <sys/types.h>
31865 int *p = &tm.tm_sec;
31871 rm -f conftest.$ac_objext
31872 if { (ac_try="$ac_compile"
31873 case "(($ac_try" in
31874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31875 *) ac_try_echo=$ac_try;;
31877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31878 (eval "$ac_compile") 2>conftest.er1
31880 grep -v '^ *+' conftest.er1 >conftest.err
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } && {
31885 test -z "$ac_c_werror_flag" ||
31886 test ! -s conftest.err
31887 } && test -s conftest.$ac_objext; then
31888 ac_cv_struct_tm=time.h
31890 echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31893 ac_cv_struct_tm=sys/time.h
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31898 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31899 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31900 if test $ac_cv_struct_tm = sys/time.h; then
31902 cat >>confdefs.h <<\_ACEOF
31903 #define TM_IN_SYS_TIME 1
31908 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31909 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31910 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31911 echo $ECHO_N "(cached) $ECHO_C" >&6
31913 cat >conftest.$ac_ext <<_ACEOF
31916 cat confdefs.h >>conftest.$ac_ext
31917 cat >>conftest.$ac_ext <<_ACEOF
31918 /* end confdefs.h. */
31919 #include <sys/types.h>
31920 #include <$ac_cv_struct_tm>
31926 static struct tm ac_aggr;
31927 if (ac_aggr.tm_zone)
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_compile") 2>conftest.er1
31942 grep -v '^ *+' conftest.er1 >conftest.err
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } && {
31947 test -z "$ac_c_werror_flag" ||
31948 test ! -s conftest.err
31949 } && test -s conftest.$ac_objext; then
31950 ac_cv_member_struct_tm_tm_zone=yes
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 cat >conftest.$ac_ext <<_ACEOF
31958 cat confdefs.h >>conftest.$ac_ext
31959 cat >>conftest.$ac_ext <<_ACEOF
31960 /* end confdefs.h. */
31961 #include <sys/types.h>
31962 #include <$ac_cv_struct_tm>
31968 static struct tm ac_aggr;
31969 if (sizeof ac_aggr.tm_zone)
31975 rm -f conftest.$ac_objext
31976 if { (ac_try="$ac_compile"
31977 case "(($ac_try" in
31978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979 *) ac_try_echo=$ac_try;;
31981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31982 (eval "$ac_compile") 2>conftest.er1
31984 grep -v '^ *+' conftest.er1 >conftest.err
31986 cat conftest.err >&5
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); } && {
31989 test -z "$ac_c_werror_flag" ||
31990 test ! -s conftest.err
31991 } && test -s conftest.$ac_objext; then
31992 ac_cv_member_struct_tm_tm_zone=yes
31994 echo "$as_me: failed program was:" >&5
31995 sed 's/^/| /' conftest.$ac_ext >&5
31997 ac_cv_member_struct_tm_tm_zone=no
32000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32006 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32007 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32009 cat >>confdefs.h <<_ACEOF
32010 #define HAVE_STRUCT_TM_TM_ZONE 1
32016 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32018 cat >>confdefs.h <<\_ACEOF
32019 #define HAVE_TM_ZONE 1
32023 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32024 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32025 if test "${ac_cv_have_decl_tzname+set}" = set; then
32026 echo $ECHO_N "(cached) $ECHO_C" >&6
32028 cat >conftest.$ac_ext <<_ACEOF
32031 cat confdefs.h >>conftest.$ac_ext
32032 cat >>conftest.$ac_ext <<_ACEOF
32033 /* end confdefs.h. */
32047 rm -f conftest.$ac_objext
32048 if { (ac_try="$ac_compile"
32049 case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_compile") 2>conftest.er1
32056 grep -v '^ *+' conftest.er1 >conftest.err
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } && {
32061 test -z "$ac_c_werror_flag" ||
32062 test ! -s conftest.err
32063 } && test -s conftest.$ac_objext; then
32064 ac_cv_have_decl_tzname=yes
32066 echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ac_cv_have_decl_tzname=no
32072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32075 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32076 if test $ac_cv_have_decl_tzname = yes; then
32078 cat >>confdefs.h <<_ACEOF
32079 #define HAVE_DECL_TZNAME 1
32084 cat >>confdefs.h <<_ACEOF
32085 #define HAVE_DECL_TZNAME 0
32092 { echo "$as_me:$LINENO: checking for tzname" >&5
32093 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32094 if test "${ac_cv_var_tzname+set}" = set; then
32095 echo $ECHO_N "(cached) $ECHO_C" >&6
32097 cat >conftest.$ac_ext <<_ACEOF
32100 cat confdefs.h >>conftest.$ac_ext
32101 cat >>conftest.$ac_ext <<_ACEOF
32102 /* end confdefs.h. */
32104 #if !HAVE_DECL_TZNAME
32105 extern char *tzname[];
32111 return tzname[0][0];
32116 rm -f conftest.$ac_objext conftest$ac_exeext
32117 if { (ac_try="$ac_link"
32118 case "(($ac_try" in
32119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32120 *) ac_try_echo=$ac_try;;
32122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32123 (eval "$ac_link") 2>conftest.er1
32125 grep -v '^ *+' conftest.er1 >conftest.err
32127 cat conftest.err >&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); } && {
32130 test -z "$ac_c_werror_flag" ||
32131 test ! -s conftest.err
32132 } && test -s conftest$ac_exeext &&
32133 $as_test_x conftest$ac_exeext; then
32134 ac_cv_var_tzname=yes
32136 echo "$as_me: failed program was:" >&5
32137 sed 's/^/| /' conftest.$ac_ext >&5
32139 ac_cv_var_tzname=no
32142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32143 conftest$ac_exeext conftest.$ac_ext
32145 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32146 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32147 if test $ac_cv_var_tzname = yes; then
32149 cat >>confdefs.h <<\_ACEOF
32150 #define HAVE_TZNAME 1
32157 { echo "$as_me:$LINENO: checking for utime.h" >&5
32158 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32159 if test "${ba_cv_header_utime_h+set}" = set; then
32160 echo $ECHO_N "(cached) $ECHO_C" >&6
32163 cat >conftest.$ac_ext <<_ACEOF
32166 cat confdefs.h >>conftest.$ac_ext
32167 cat >>conftest.$ac_ext <<_ACEOF
32168 /* end confdefs.h. */
32170 #include <sys/types.h>
32183 rm -f conftest.$ac_objext
32184 if { (ac_try="$ac_compile"
32185 case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_compile") 2>conftest.er1
32192 grep -v '^ *+' conftest.er1 >conftest.err
32194 cat conftest.err >&5
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); } && {
32197 test -z "$ac_c_werror_flag" ||
32198 test ! -s conftest.err
32199 } && test -s conftest.$ac_objext; then
32201 ba_cv_header_utime_h=yes
32204 echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32208 ba_cv_header_utime_h=no
32213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32217 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32218 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32219 test $ba_cv_header_utime_h = yes &&
32220 cat >>confdefs.h <<\_ACEOF
32221 #define HAVE_UTIME_H 1
32225 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32226 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32227 if test "${ba_cv_header_socklen_t+set}" = set; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32231 cat >conftest.$ac_ext <<_ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h. */
32238 #include <sys/types.h>
32239 #include <sys/socket.h>
32251 rm -f conftest.$ac_objext
32252 if { (ac_try="$ac_compile"
32253 case "(($ac_try" in
32254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255 *) ac_try_echo=$ac_try;;
32257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258 (eval "$ac_compile") 2>conftest.er1
32260 grep -v '^ *+' conftest.er1 >conftest.err
32262 cat conftest.err >&5
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); } && {
32265 test -z "$ac_c_werror_flag" ||
32266 test ! -s conftest.err
32267 } && test -s conftest.$ac_objext; then
32269 ba_cv_header_socklen_t=yes
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32276 ba_cv_header_socklen_t=no
32281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32285 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32286 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32287 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32288 #define HAVE_SOCKLEN_T 1
32292 { echo "$as_me:$LINENO: checking for bigendian" >&5
32293 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32294 if test "${ba_cv_bigendian+set}" = set; then
32295 echo $ECHO_N "(cached) $ECHO_C" >&6
32298 if test "$cross_compiling" = yes; then
32304 cat >conftest.$ac_ext <<_ACEOF
32307 cat confdefs.h >>conftest.$ac_ext
32308 cat >>conftest.$ac_ext <<_ACEOF
32309 /* end confdefs.h. */
32311 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32314 rm -f conftest$ac_exeext
32315 if { (ac_try="$ac_link"
32316 case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_link") 2>&5
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32325 { (case "(($ac_try" in
32326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327 *) ac_try_echo=$ac_try;;
32329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330 (eval "$ac_try") 2>&5
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32335 ba_cv_bigendian=yes
32338 echo "$as_me: program exited with status $ac_status" >&5
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ( exit $ac_status )
32347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32354 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32355 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32356 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32357 #define HAVE_BIGENDIAN 1
32362 ac_cpp='$CXXCPP $CPPFLAGS'
32363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32367 { echo "$as_me:$LINENO: checking for typeof" >&5
32368 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32369 if test "${ba_cv_have_typeof+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32373 if test "$cross_compiling" = yes; then
32375 ba_cv_have_typeof=no
32379 cat >conftest.$ac_ext <<_ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h. */
32386 main(){char *a = 0; a = (typeof a)a;}
32389 rm -f conftest$ac_exeext
32390 if { (ac_try="$ac_link"
32391 case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_link") 2>&5
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32400 { (case "(($ac_try" in
32401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402 *) ac_try_echo=$ac_try;;
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405 (eval "$ac_try") 2>&5
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); }; }; then
32410 ba_cv_have_typeof=yes
32413 echo "$as_me: program exited with status $ac_status" >&5
32414 echo "$as_me: failed program was:" >&5
32415 sed 's/^/| /' conftest.$ac_ext >&5
32417 ( exit $ac_status )
32419 ba_cv_have_typeof=no
32422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32429 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32430 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32431 test $ba_cv_have_typeof = yes &&
32432 cat >>confdefs.h <<\_ACEOF
32433 #define HAVE_TYPEOF 1
32437 ac_cpp='$CPP $CPPFLAGS'
32438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32443 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32444 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32445 if test "${ac_cv_c_const+set}" = set; then
32446 echo $ECHO_N "(cached) $ECHO_C" >&6
32448 cat >conftest.$ac_ext <<_ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32458 /* FIXME: Include the comments suggested by Paul. */
32459 #ifndef __cplusplus
32460 /* Ultrix mips cc rejects this. */
32461 typedef int charset[2];
32463 /* SunOS 4.1.1 cc rejects this. */
32464 char const *const *pcpcc;
32466 /* NEC SVR4.0.2 mips cc rejects this. */
32467 struct point {int x, y;};
32468 static struct point const zero = {0,0};
32469 /* AIX XL C 1.02.0.0 rejects this.
32470 It does not let you subtract one const X* pointer from another in
32471 an arm of an if-expression whose if-part is not a constant
32473 const char *g = "string";
32474 pcpcc = &g + (g ? g-g : 0);
32475 /* HPUX 7.0 cc rejects these. */
32477 ppc = (char**) pcpcc;
32478 pcpcc = (char const *const *) ppc;
32479 { /* SCO 3.2v4 cc rejects this. */
32481 char const *s = 0 ? (char *) 0 : (char const *) 0;
32486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32487 int x[] = {25, 17};
32488 const int *foo = &x[0];
32491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32492 typedef const int *iptr;
32496 { /* AIX XL C 1.02.0.0 rejects this saying
32497 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32498 struct s { int j; const int *ap[3]; };
32499 struct s *b; b->j = 5;
32501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32502 const int foo = 10;
32503 if (!foo) return 0;
32505 return !cs[0] && !zero.x;
32512 rm -f conftest.$ac_objext
32513 if { (ac_try="$ac_compile"
32514 case "(($ac_try" in
32515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516 *) ac_try_echo=$ac_try;;
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519 (eval "$ac_compile") 2>conftest.er1
32521 grep -v '^ *+' conftest.er1 >conftest.err
32523 cat conftest.err >&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } && {
32526 test -z "$ac_c_werror_flag" ||
32527 test ! -s conftest.err
32528 } && test -s conftest.$ac_objext; then
32531 echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32539 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32540 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32541 if test $ac_cv_c_const = no; then
32543 cat >>confdefs.h <<\_ACEOF
32550 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32551 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32553 # The order of these tests is important.
32554 cat >conftest.$ac_ext <<_ACEOF
32557 cat confdefs.h >>conftest.$ac_ext
32558 cat >>conftest.$ac_ext <<_ACEOF
32559 /* end confdefs.h. */
32561 #include <sys/statvfs.h>
32562 #include <sys/fstyp.h>
32565 if { (ac_try="$ac_cpp conftest.$ac_ext"
32566 case "(($ac_try" in
32567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568 *) ac_try_echo=$ac_try;;
32570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32573 grep -v '^ *+' conftest.er1 >conftest.err
32575 cat conftest.err >&5
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); } >/dev/null && {
32578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32579 test ! -s conftest.err
32581 cat >>confdefs.h <<\_ACEOF
32582 #define FSTYPE_STATVFS 1
32587 echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32593 rm -f conftest.err conftest.$ac_ext
32594 if test $fstype = no; then
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32602 #include <sys/statfs.h>
32603 #include <sys/fstyp.h>
32606 if { (ac_try="$ac_cpp conftest.$ac_ext"
32607 case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32614 grep -v '^ *+' conftest.er1 >conftest.err
32616 cat conftest.err >&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } >/dev/null && {
32619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32620 test ! -s conftest.err
32622 cat >>confdefs.h <<\_ACEOF
32623 #define FSTYPE_USG_STATFS 1
32628 echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32634 rm -f conftest.err conftest.$ac_ext
32636 if test $fstype = no; then
32637 cat >conftest.$ac_ext <<_ACEOF
32640 cat confdefs.h >>conftest.$ac_ext
32641 cat >>conftest.$ac_ext <<_ACEOF
32642 /* end confdefs.h. */
32644 #include <sys/statfs.h>
32645 #include <sys/vmount.h>
32648 if { (ac_try="$ac_cpp conftest.$ac_ext"
32649 case "(($ac_try" in
32650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32651 *) ac_try_echo=$ac_try;;
32653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32656 grep -v '^ *+' conftest.er1 >conftest.err
32658 cat conftest.err >&5
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); } >/dev/null && {
32661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32662 test ! -s conftest.err
32664 cat >>confdefs.h <<\_ACEOF
32665 #define FSTYPE_AIX_STATFS 1
32670 echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32676 rm -f conftest.err conftest.$ac_ext
32678 if test $fstype = no; then
32679 cat >conftest.$ac_ext <<_ACEOF
32682 cat confdefs.h >>conftest.$ac_ext
32683 cat >>conftest.$ac_ext <<_ACEOF
32684 /* end confdefs.h. */
32686 #include <mntent.h>
32689 if { (ac_try="$ac_cpp conftest.$ac_ext"
32690 case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32697 grep -v '^ *+' conftest.er1 >conftest.err
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); } >/dev/null && {
32702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32703 test ! -s conftest.err
32705 cat >>confdefs.h <<\_ACEOF
32706 #define FSTYPE_MNTENT 1
32711 echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32717 rm -f conftest.err conftest.$ac_ext
32719 if test $fstype = no; then
32720 cat >conftest.$ac_ext <<_ACEOF
32723 cat confdefs.h >>conftest.$ac_ext
32724 cat >>conftest.$ac_ext <<_ACEOF
32725 /* end confdefs.h. */
32726 #include <sys/mount.h>
32729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32730 $EGREP "f_type;" >/dev/null 2>&1; then
32731 cat >>confdefs.h <<\_ACEOF
32732 #define FSTYPE_STATFS 1
32739 if test $fstype = no; then
32740 cat >conftest.$ac_ext <<_ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h. */
32747 #include <sys/mount.h>
32748 #include <sys/fs_types.h>
32751 if { (ac_try="$ac_cpp conftest.$ac_ext"
32752 case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32759 grep -v '^ *+' conftest.er1 >conftest.err
32761 cat conftest.err >&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } >/dev/null && {
32764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32765 test ! -s conftest.err
32767 cat >>confdefs.h <<\_ACEOF
32768 #define FSTYPE_GETMNT 1
32773 echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32779 rm -f conftest.err conftest.$ac_ext
32781 { echo "$as_me:$LINENO: result: $fstype" >&5
32782 echo "${ECHO_T}$fstype" >&6; }
32784 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32785 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32786 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32787 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32788 echo $ECHO_N "(cached) $ECHO_C" >&6
32790 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32791 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32793 # Is the header compilable?
32794 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32795 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32802 $ac_includes_default
32803 #include <sys/statvfs.h>
32805 rm -f conftest.$ac_objext
32806 if { (ac_try="$ac_compile"
32807 case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_compile") 2>conftest.er1
32814 grep -v '^ *+' conftest.er1 >conftest.err
32816 cat conftest.err >&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } && {
32819 test -z "$ac_c_werror_flag" ||
32820 test ! -s conftest.err
32821 } && test -s conftest.$ac_objext; then
32822 ac_header_compiler=yes
32824 echo "$as_me: failed program was:" >&5
32825 sed 's/^/| /' conftest.$ac_ext >&5
32827 ac_header_compiler=no
32830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32832 echo "${ECHO_T}$ac_header_compiler" >&6; }
32834 # Is the header present?
32835 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32836 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32837 cat >conftest.$ac_ext <<_ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h. */
32843 #include <sys/statvfs.h>
32845 if { (ac_try="$ac_cpp conftest.$ac_ext"
32846 case "(($ac_try" in
32847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32848 *) ac_try_echo=$ac_try;;
32850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32853 grep -v '^ *+' conftest.er1 >conftest.err
32855 cat conftest.err >&5
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); } >/dev/null && {
32858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32859 test ! -s conftest.err
32861 ac_header_preproc=yes
32863 echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32866 ac_header_preproc=no
32869 rm -f conftest.err conftest.$ac_ext
32870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32871 echo "${ECHO_T}$ac_header_preproc" >&6; }
32873 # So? What about this header?
32874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32876 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32877 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32878 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32879 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32880 ac_header_preproc=yes
32883 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32884 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32885 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32886 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32887 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32888 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32889 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32890 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32891 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32892 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32893 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32894 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32898 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32899 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32900 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32903 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32905 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32906 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32909 if test $ac_cv_header_sys_statvfs_h = yes; then
32911 cat >>confdefs.h <<\_ACEOF
32912 #define HAVE_SYS_STATVFS_H 1
32919 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32920 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32921 if test "${ac_cv_type_signal+set}" = set; then
32922 echo $ECHO_N "(cached) $ECHO_C" >&6
32924 cat >conftest.$ac_ext <<_ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h. */
32930 #include <sys/types.h>
32931 #include <signal.h>
32936 return *(signal (0, 0)) (0) == 1;
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_compile") 2>conftest.er1
32950 grep -v '^ *+' conftest.er1 >conftest.err
32952 cat conftest.err >&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } && {
32955 test -z "$ac_c_werror_flag" ||
32956 test ! -s conftest.err
32957 } && test -s conftest.$ac_objext; then
32958 ac_cv_type_signal=int
32960 echo "$as_me: failed program was:" >&5
32961 sed 's/^/| /' conftest.$ac_ext >&5
32963 ac_cv_type_signal=void
32966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32968 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32969 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32971 cat >>confdefs.h <<_ACEOF
32972 #define RETSIGTYPE $ac_cv_type_signal
32977 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32978 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32979 if test "${bash_cv_signal_vintage+set}" = set; then
32980 echo $ECHO_N "(cached) $ECHO_C" >&6
32983 cat >conftest.$ac_ext <<_ACEOF
32986 cat confdefs.h >>conftest.$ac_ext
32987 cat >>conftest.$ac_ext <<_ACEOF
32988 /* end confdefs.h. */
32989 #include <signal.h>
32995 struct sigaction sa;
32996 sigemptyset(&ss); sigsuspend(&ss);
32997 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32998 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (ac_try="$ac_link"
33006 case "(($ac_try" in
33007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33008 *) ac_try_echo=$ac_try;;
33010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33011 (eval "$ac_link") 2>conftest.er1
33013 grep -v '^ *+' conftest.er1 >conftest.err
33015 cat conftest.err >&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } && {
33018 test -z "$ac_c_werror_flag" ||
33019 test ! -s conftest.err
33020 } && test -s conftest$ac_exeext &&
33021 $as_test_x conftest$ac_exeext; then
33022 bash_cv_signal_vintage="posix"
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33028 cat >conftest.$ac_ext <<_ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h. */
33034 #include <signal.h>
33039 int mask = sigmask(SIGINT);
33040 sigsetmask(mask); sigblock(mask); sigpause(mask);
33046 rm -f conftest.$ac_objext conftest$ac_exeext
33047 if { (ac_try="$ac_link"
33048 case "(($ac_try" in
33049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33050 *) ac_try_echo=$ac_try;;
33052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33053 (eval "$ac_link") 2>conftest.er1
33055 grep -v '^ *+' conftest.er1 >conftest.err
33057 cat conftest.err >&5
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } && {
33060 test -z "$ac_c_werror_flag" ||
33061 test ! -s conftest.err
33062 } && test -s conftest$ac_exeext &&
33063 $as_test_x conftest$ac_exeext; then
33064 bash_cv_signal_vintage="4.2bsd"
33066 echo "$as_me: failed program was:" >&5
33067 sed 's/^/| /' conftest.$ac_ext >&5
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33077 #include <signal.h>
33078 RETSIGTYPE foo() { }
33083 int mask = sigmask(SIGINT);
33084 sigset(SIGINT, foo); sigrelse(SIGINT);
33085 sighold(SIGINT); sigpause(SIGINT);
33091 rm -f conftest.$ac_objext conftest$ac_exeext
33092 if { (ac_try="$ac_link"
33093 case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_link") 2>conftest.er1
33100 grep -v '^ *+' conftest.er1 >conftest.err
33102 cat conftest.err >&5
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); } && {
33105 test -z "$ac_c_werror_flag" ||
33106 test ! -s conftest.err
33107 } && test -s conftest$ac_exeext &&
33108 $as_test_x conftest$ac_exeext; then
33109 bash_cv_signal_vintage="svr3"
33111 echo "$as_me: failed program was:" >&5
33112 sed 's/^/| /' conftest.$ac_ext >&5
33114 bash_cv_signal_vintage="v7"
33118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33119 conftest$ac_exeext conftest.$ac_ext
33123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33124 conftest$ac_exeext conftest.$ac_ext
33128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33129 conftest$ac_exeext conftest.$ac_ext
33133 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33134 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33135 if test "$bash_cv_signal_vintage" = "posix"; then
33136 cat >>confdefs.h <<\_ACEOF
33137 #define HAVE_POSIX_SIGNALS 1
33140 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33141 cat >>confdefs.h <<\_ACEOF
33142 #define HAVE_BSD_SIGNALS 1
33145 elif test "$bash_cv_signal_vintage" = "svr3"; then
33146 cat >>confdefs.h <<\_ACEOF
33147 #define HAVE_USG_SIGHOLD 1
33152 { echo "$as_me:$LINENO: checking for mode_t" >&5
33153 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33154 if test "${ac_cv_type_mode_t+set}" = set; then
33155 echo $ECHO_N "(cached) $ECHO_C" >&6
33157 cat >conftest.$ac_ext <<_ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33163 $ac_includes_default
33164 typedef mode_t ac__type_new_;
33168 if ((ac__type_new_ *) 0)
33170 if (sizeof (ac__type_new_))
33176 rm -f conftest.$ac_objext
33177 if { (ac_try="$ac_compile"
33178 case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_compile") 2>conftest.er1
33185 grep -v '^ *+' conftest.er1 >conftest.err
33187 cat conftest.err >&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); } && {
33190 test -z "$ac_c_werror_flag" ||
33191 test ! -s conftest.err
33192 } && test -s conftest.$ac_objext; then
33193 ac_cv_type_mode_t=yes
33195 echo "$as_me: failed program was:" >&5
33196 sed 's/^/| /' conftest.$ac_ext >&5
33198 ac_cv_type_mode_t=no
33201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33203 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33204 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33205 if test $ac_cv_type_mode_t = yes; then
33209 cat >>confdefs.h <<_ACEOF
33215 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33216 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33217 if test "${ac_cv_type_uid_t+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33220 cat >conftest.$ac_ext <<_ACEOF
33223 cat confdefs.h >>conftest.$ac_ext
33224 cat >>conftest.$ac_ext <<_ACEOF
33225 /* end confdefs.h. */
33226 #include <sys/types.h>
33229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33230 $EGREP "uid_t" >/dev/null 2>&1; then
33231 ac_cv_type_uid_t=yes
33233 ac_cv_type_uid_t=no
33238 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33239 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33240 if test $ac_cv_type_uid_t = no; then
33242 cat >>confdefs.h <<\_ACEOF
33247 cat >>confdefs.h <<\_ACEOF
33253 { echo "$as_me:$LINENO: checking for size_t" >&5
33254 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33255 if test "${ac_cv_type_size_t+set}" = set; then
33256 echo $ECHO_N "(cached) $ECHO_C" >&6
33258 cat >conftest.$ac_ext <<_ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h. */
33264 $ac_includes_default
33265 typedef size_t ac__type_new_;
33269 if ((ac__type_new_ *) 0)
33271 if (sizeof (ac__type_new_))
33277 rm -f conftest.$ac_objext
33278 if { (ac_try="$ac_compile"
33279 case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_compile") 2>conftest.er1
33286 grep -v '^ *+' conftest.er1 >conftest.err
33288 cat conftest.err >&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); } && {
33291 test -z "$ac_c_werror_flag" ||
33292 test ! -s conftest.err
33293 } && test -s conftest.$ac_objext; then
33294 ac_cv_type_size_t=yes
33296 echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33299 ac_cv_type_size_t=no
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33304 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33305 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33306 if test $ac_cv_type_size_t = yes; then
33310 cat >>confdefs.h <<_ACEOF
33311 #define size_t unsigned int
33316 { echo "$as_me:$LINENO: checking for pid_t" >&5
33317 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33318 if test "${ac_cv_type_pid_t+set}" = set; then
33319 echo $ECHO_N "(cached) $ECHO_C" >&6
33321 cat >conftest.$ac_ext <<_ACEOF
33324 cat confdefs.h >>conftest.$ac_ext
33325 cat >>conftest.$ac_ext <<_ACEOF
33326 /* end confdefs.h. */
33327 $ac_includes_default
33328 typedef pid_t ac__type_new_;
33332 if ((ac__type_new_ *) 0)
33334 if (sizeof (ac__type_new_))
33340 rm -f conftest.$ac_objext
33341 if { (ac_try="$ac_compile"
33342 case "(($ac_try" in
33343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33344 *) ac_try_echo=$ac_try;;
33346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33347 (eval "$ac_compile") 2>conftest.er1
33349 grep -v '^ *+' conftest.er1 >conftest.err
33351 cat conftest.err >&5
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); } && {
33354 test -z "$ac_c_werror_flag" ||
33355 test ! -s conftest.err
33356 } && test -s conftest.$ac_objext; then
33357 ac_cv_type_pid_t=yes
33359 echo "$as_me: failed program was:" >&5
33360 sed 's/^/| /' conftest.$ac_ext >&5
33362 ac_cv_type_pid_t=no
33365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33367 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33368 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33369 if test $ac_cv_type_pid_t = yes; then
33373 cat >>confdefs.h <<_ACEOF
33379 { echo "$as_me:$LINENO: checking for off_t" >&5
33380 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33381 if test "${ac_cv_type_off_t+set}" = set; then
33382 echo $ECHO_N "(cached) $ECHO_C" >&6
33384 cat >conftest.$ac_ext <<_ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h. */
33390 $ac_includes_default
33391 typedef off_t ac__type_new_;
33395 if ((ac__type_new_ *) 0)
33397 if (sizeof (ac__type_new_))
33403 rm -f conftest.$ac_objext
33404 if { (ac_try="$ac_compile"
33405 case "(($ac_try" in
33406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407 *) ac_try_echo=$ac_try;;
33409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33410 (eval "$ac_compile") 2>conftest.er1
33412 grep -v '^ *+' conftest.er1 >conftest.err
33414 cat conftest.err >&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); } && {
33417 test -z "$ac_c_werror_flag" ||
33418 test ! -s conftest.err
33419 } && test -s conftest.$ac_objext; then
33420 ac_cv_type_off_t=yes
33422 echo "$as_me: failed program was:" >&5
33423 sed 's/^/| /' conftest.$ac_ext >&5
33425 ac_cv_type_off_t=no
33428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33431 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33432 if test $ac_cv_type_off_t = yes; then
33436 cat >>confdefs.h <<_ACEOF
33437 #define off_t long int
33442 { echo "$as_me:$LINENO: checking for ino_t" >&5
33443 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33444 if test "${ac_cv_type_ino_t+set}" = set; then
33445 echo $ECHO_N "(cached) $ECHO_C" >&6
33447 cat >conftest.$ac_ext <<_ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h. */
33453 $ac_includes_default
33454 typedef ino_t ac__type_new_;
33458 if ((ac__type_new_ *) 0)
33460 if (sizeof (ac__type_new_))
33466 rm -f conftest.$ac_objext
33467 if { (ac_try="$ac_compile"
33468 case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_compile") 2>conftest.er1
33475 grep -v '^ *+' conftest.er1 >conftest.err
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } && {
33480 test -z "$ac_c_werror_flag" ||
33481 test ! -s conftest.err
33482 } && test -s conftest.$ac_objext; then
33483 ac_cv_type_ino_t=yes
33485 echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33488 ac_cv_type_ino_t=no
33491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33493 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33494 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33495 if test $ac_cv_type_ino_t = yes; then
33499 cat >>confdefs.h <<_ACEOF
33500 #define ino_t unsigned long
33505 { echo "$as_me:$LINENO: checking for dev_t" >&5
33506 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33507 if test "${ac_cv_type_dev_t+set}" = set; then
33508 echo $ECHO_N "(cached) $ECHO_C" >&6
33510 cat >conftest.$ac_ext <<_ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h. */
33516 $ac_includes_default
33517 typedef dev_t ac__type_new_;
33521 if ((ac__type_new_ *) 0)
33523 if (sizeof (ac__type_new_))
33529 rm -f conftest.$ac_objext
33530 if { (ac_try="$ac_compile"
33531 case "(($ac_try" in
33532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33533 *) ac_try_echo=$ac_try;;
33535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33536 (eval "$ac_compile") 2>conftest.er1
33538 grep -v '^ *+' conftest.er1 >conftest.err
33540 cat conftest.err >&5
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); } && {
33543 test -z "$ac_c_werror_flag" ||
33544 test ! -s conftest.err
33545 } && test -s conftest.$ac_objext; then
33546 ac_cv_type_dev_t=yes
33548 echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33551 ac_cv_type_dev_t=no
33554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33556 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33557 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33558 if test $ac_cv_type_dev_t = yes; then
33562 cat >>confdefs.h <<_ACEOF
33563 #define dev_t unsigned long
33568 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33569 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33570 if test "${ac_cv_type_daddr_t+set}" = set; then
33571 echo $ECHO_N "(cached) $ECHO_C" >&6
33573 cat >conftest.$ac_ext <<_ACEOF
33576 cat confdefs.h >>conftest.$ac_ext
33577 cat >>conftest.$ac_ext <<_ACEOF
33578 /* end confdefs.h. */
33579 $ac_includes_default
33580 typedef daddr_t ac__type_new_;
33584 if ((ac__type_new_ *) 0)
33586 if (sizeof (ac__type_new_))
33592 rm -f conftest.$ac_objext
33593 if { (ac_try="$ac_compile"
33594 case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_compile") 2>conftest.er1
33601 grep -v '^ *+' conftest.er1 >conftest.err
33603 cat conftest.err >&5
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); } && {
33606 test -z "$ac_c_werror_flag" ||
33607 test ! -s conftest.err
33608 } && test -s conftest.$ac_objext; then
33609 ac_cv_type_daddr_t=yes
33611 echo "$as_me: failed program was:" >&5
33612 sed 's/^/| /' conftest.$ac_ext >&5
33614 ac_cv_type_daddr_t=no
33617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33619 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33620 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33621 if test $ac_cv_type_daddr_t = yes; then
33625 cat >>confdefs.h <<_ACEOF
33626 #define daddr_t long
33631 { echo "$as_me:$LINENO: checking for major_t" >&5
33632 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33633 if test "${ac_cv_type_major_t+set}" = set; then
33634 echo $ECHO_N "(cached) $ECHO_C" >&6
33636 cat >conftest.$ac_ext <<_ACEOF
33639 cat confdefs.h >>conftest.$ac_ext
33640 cat >>conftest.$ac_ext <<_ACEOF
33641 /* end confdefs.h. */
33642 $ac_includes_default
33643 typedef major_t ac__type_new_;
33647 if ((ac__type_new_ *) 0)
33649 if (sizeof (ac__type_new_))
33655 rm -f conftest.$ac_objext
33656 if { (ac_try="$ac_compile"
33657 case "(($ac_try" in
33658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33659 *) ac_try_echo=$ac_try;;
33661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33662 (eval "$ac_compile") 2>conftest.er1
33664 grep -v '^ *+' conftest.er1 >conftest.err
33666 cat conftest.err >&5
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); } && {
33669 test -z "$ac_c_werror_flag" ||
33670 test ! -s conftest.err
33671 } && test -s conftest.$ac_objext; then
33672 ac_cv_type_major_t=yes
33674 echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33677 ac_cv_type_major_t=no
33680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33683 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33684 if test $ac_cv_type_major_t = yes; then
33688 cat >>confdefs.h <<_ACEOF
33689 #define major_t int
33694 { echo "$as_me:$LINENO: checking for minor_t" >&5
33695 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33696 if test "${ac_cv_type_minor_t+set}" = set; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33699 cat >conftest.$ac_ext <<_ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h. */
33705 $ac_includes_default
33706 typedef minor_t ac__type_new_;
33710 if ((ac__type_new_ *) 0)
33712 if (sizeof (ac__type_new_))
33718 rm -f conftest.$ac_objext
33719 if { (ac_try="$ac_compile"
33720 case "(($ac_try" in
33721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33722 *) ac_try_echo=$ac_try;;
33724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33725 (eval "$ac_compile") 2>conftest.er1
33727 grep -v '^ *+' conftest.er1 >conftest.err
33729 cat conftest.err >&5
33730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33731 (exit $ac_status); } && {
33732 test -z "$ac_c_werror_flag" ||
33733 test ! -s conftest.err
33734 } && test -s conftest.$ac_objext; then
33735 ac_cv_type_minor_t=yes
33737 echo "$as_me: failed program was:" >&5
33738 sed 's/^/| /' conftest.$ac_ext >&5
33740 ac_cv_type_minor_t=no
33743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33745 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33746 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33747 if test $ac_cv_type_minor_t = yes; then
33751 cat >>confdefs.h <<_ACEOF
33752 #define minor_t int
33757 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33758 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33759 if test "${ac_cv_type_ssize_t+set}" = set; then
33760 echo $ECHO_N "(cached) $ECHO_C" >&6
33762 cat >conftest.$ac_ext <<_ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h. */
33768 $ac_includes_default
33769 typedef ssize_t ac__type_new_;
33773 if ((ac__type_new_ *) 0)
33775 if (sizeof (ac__type_new_))
33781 rm -f conftest.$ac_objext
33782 if { (ac_try="$ac_compile"
33783 case "(($ac_try" in
33784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785 *) ac_try_echo=$ac_try;;
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788 (eval "$ac_compile") 2>conftest.er1
33790 grep -v '^ *+' conftest.er1 >conftest.err
33792 cat conftest.err >&5
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); } && {
33795 test -z "$ac_c_werror_flag" ||
33796 test ! -s conftest.err
33797 } && test -s conftest.$ac_objext; then
33798 ac_cv_type_ssize_t=yes
33800 echo "$as_me: failed program was:" >&5
33801 sed 's/^/| /' conftest.$ac_ext >&5
33803 ac_cv_type_ssize_t=no
33806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33808 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33809 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33810 if test $ac_cv_type_ssize_t = yes; then
33814 cat >>confdefs.h <<_ACEOF
33815 #define ssize_t int
33820 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33821 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33822 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33825 cat >conftest.$ac_ext <<_ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h. */
33831 $ac_includes_default
33835 static struct stat ac_aggr;
33836 if (ac_aggr.st_blocks)
33842 rm -f conftest.$ac_objext
33843 if { (ac_try="$ac_compile"
33844 case "(($ac_try" in
33845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33846 *) ac_try_echo=$ac_try;;
33848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33849 (eval "$ac_compile") 2>conftest.er1
33851 grep -v '^ *+' conftest.er1 >conftest.err
33853 cat conftest.err >&5
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); } && {
33856 test -z "$ac_c_werror_flag" ||
33857 test ! -s conftest.err
33858 } && test -s conftest.$ac_objext; then
33859 ac_cv_member_struct_stat_st_blocks=yes
33861 echo "$as_me: failed program was:" >&5
33862 sed 's/^/| /' conftest.$ac_ext >&5
33864 cat >conftest.$ac_ext <<_ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33870 $ac_includes_default
33874 static struct stat ac_aggr;
33875 if (sizeof ac_aggr.st_blocks)
33881 rm -f conftest.$ac_objext
33882 if { (ac_try="$ac_compile"
33883 case "(($ac_try" in
33884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33885 *) ac_try_echo=$ac_try;;
33887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33888 (eval "$ac_compile") 2>conftest.er1
33890 grep -v '^ *+' conftest.er1 >conftest.err
33892 cat conftest.err >&5
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); } && {
33895 test -z "$ac_c_werror_flag" ||
33896 test ! -s conftest.err
33897 } && test -s conftest.$ac_objext; then
33898 ac_cv_member_struct_stat_st_blocks=yes
33900 echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33903 ac_cv_member_struct_stat_st_blocks=no
33906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33911 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33912 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33913 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33915 cat >>confdefs.h <<_ACEOF
33916 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33920 cat >>confdefs.h <<\_ACEOF
33921 #define HAVE_ST_BLOCKS 1
33925 case " $LIBOBJS " in
33926 *" fileblocks.$ac_objext "* ) ;;
33927 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33934 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33935 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33936 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33937 echo $ECHO_N "(cached) $ECHO_C" >&6
33939 cat >conftest.$ac_ext <<_ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h. */
33945 $ac_includes_default
33949 static struct stat ac_aggr;
33950 if (ac_aggr.st_rdev)
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960 *) ac_try_echo=$ac_try;;
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963 (eval "$ac_compile") 2>conftest.er1
33965 grep -v '^ *+' conftest.er1 >conftest.err
33967 cat conftest.err >&5
33968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969 (exit $ac_status); } && {
33970 test -z "$ac_c_werror_flag" ||
33971 test ! -s conftest.err
33972 } && test -s conftest.$ac_objext; then
33973 ac_cv_member_struct_stat_st_rdev=yes
33975 echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33978 cat >conftest.$ac_ext <<_ACEOF
33981 cat confdefs.h >>conftest.$ac_ext
33982 cat >>conftest.$ac_ext <<_ACEOF
33983 /* end confdefs.h. */
33984 $ac_includes_default
33988 static struct stat ac_aggr;
33989 if (sizeof ac_aggr.st_rdev)
33995 rm -f conftest.$ac_objext
33996 if { (ac_try="$ac_compile"
33997 case "(($ac_try" in
33998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33999 *) ac_try_echo=$ac_try;;
34001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34002 (eval "$ac_compile") 2>conftest.er1
34004 grep -v '^ *+' conftest.er1 >conftest.err
34006 cat conftest.err >&5
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); } && {
34009 test -z "$ac_c_werror_flag" ||
34010 test ! -s conftest.err
34011 } && test -s conftest.$ac_objext; then
34012 ac_cv_member_struct_stat_st_rdev=yes
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34017 ac_cv_member_struct_stat_st_rdev=no
34020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34025 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34026 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34027 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34029 cat >>confdefs.h <<_ACEOF
34030 #define HAVE_STRUCT_STAT_ST_RDEV 1
34034 cat >>confdefs.h <<\_ACEOF
34035 #define HAVE_ST_RDEV 1
34041 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34042 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34043 if test "${ac_cv_struct_tm+set}" = set; then
34044 echo $ECHO_N "(cached) $ECHO_C" >&6
34046 cat >conftest.$ac_ext <<_ACEOF
34049 cat confdefs.h >>conftest.$ac_ext
34050 cat >>conftest.$ac_ext <<_ACEOF
34051 /* end confdefs.h. */
34052 #include <sys/types.h>
34059 int *p = &tm.tm_sec;
34065 rm -f conftest.$ac_objext
34066 if { (ac_try="$ac_compile"
34067 case "(($ac_try" in
34068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069 *) ac_try_echo=$ac_try;;
34071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072 (eval "$ac_compile") 2>conftest.er1
34074 grep -v '^ *+' conftest.er1 >conftest.err
34076 cat conftest.err >&5
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); } && {
34079 test -z "$ac_c_werror_flag" ||
34080 test ! -s conftest.err
34081 } && test -s conftest.$ac_objext; then
34082 ac_cv_struct_tm=time.h
34084 echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34087 ac_cv_struct_tm=sys/time.h
34090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34092 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34093 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34094 if test $ac_cv_struct_tm = sys/time.h; then
34096 cat >>confdefs.h <<\_ACEOF
34097 #define TM_IN_SYS_TIME 1
34102 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34103 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34104 if test "${ac_cv_c_const+set}" = set; then
34105 echo $ECHO_N "(cached) $ECHO_C" >&6
34107 cat >conftest.$ac_ext <<_ACEOF
34110 cat confdefs.h >>conftest.$ac_ext
34111 cat >>conftest.$ac_ext <<_ACEOF
34112 /* end confdefs.h. */
34117 /* FIXME: Include the comments suggested by Paul. */
34118 #ifndef __cplusplus
34119 /* Ultrix mips cc rejects this. */
34120 typedef int charset[2];
34122 /* SunOS 4.1.1 cc rejects this. */
34123 char const *const *pcpcc;
34125 /* NEC SVR4.0.2 mips cc rejects this. */
34126 struct point {int x, y;};
34127 static struct point const zero = {0,0};
34128 /* AIX XL C 1.02.0.0 rejects this.
34129 It does not let you subtract one const X* pointer from another in
34130 an arm of an if-expression whose if-part is not a constant
34132 const char *g = "string";
34133 pcpcc = &g + (g ? g-g : 0);
34134 /* HPUX 7.0 cc rejects these. */
34136 ppc = (char**) pcpcc;
34137 pcpcc = (char const *const *) ppc;
34138 { /* SCO 3.2v4 cc rejects this. */
34140 char const *s = 0 ? (char *) 0 : (char const *) 0;
34145 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34146 int x[] = {25, 17};
34147 const int *foo = &x[0];
34150 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34151 typedef const int *iptr;
34155 { /* AIX XL C 1.02.0.0 rejects this saying
34156 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34157 struct s { int j; const int *ap[3]; };
34158 struct s *b; b->j = 5;
34160 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34161 const int foo = 10;
34162 if (!foo) return 0;
34164 return !cs[0] && !zero.x;
34171 rm -f conftest.$ac_objext
34172 if { (ac_try="$ac_compile"
34173 case "(($ac_try" in
34174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175 *) ac_try_echo=$ac_try;;
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178 (eval "$ac_compile") 2>conftest.er1
34180 grep -v '^ *+' conftest.er1 >conftest.err
34182 cat conftest.err >&5
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); } && {
34185 test -z "$ac_c_werror_flag" ||
34186 test ! -s conftest.err
34187 } && test -s conftest.$ac_objext; then
34190 echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.$ac_ext >&5
34196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34198 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34199 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34200 if test $ac_cv_c_const = no; then
34202 cat >>confdefs.h <<\_ACEOF
34209 { echo "$as_me:$LINENO: checking for char" >&5
34210 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34211 if test "${ac_cv_type_char+set}" = set; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34214 cat >conftest.$ac_ext <<_ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h. */
34220 $ac_includes_default
34221 typedef char ac__type_new_;
34225 if ((ac__type_new_ *) 0)
34227 if (sizeof (ac__type_new_))
34233 rm -f conftest.$ac_objext
34234 if { (ac_try="$ac_compile"
34235 case "(($ac_try" in
34236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34237 *) ac_try_echo=$ac_try;;
34239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34240 (eval "$ac_compile") 2>conftest.er1
34242 grep -v '^ *+' conftest.er1 >conftest.err
34244 cat conftest.err >&5
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); } && {
34247 test -z "$ac_c_werror_flag" ||
34248 test ! -s conftest.err
34249 } && test -s conftest.$ac_objext; then
34250 ac_cv_type_char=yes
34252 echo "$as_me: failed program was:" >&5
34253 sed 's/^/| /' conftest.$ac_ext >&5
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34260 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34261 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34263 # The cast to long int works around a bug in the HP C Compiler
34264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34266 # This bug is HP SR number 8606223364.
34267 { echo "$as_me:$LINENO: checking size of char" >&5
34268 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34269 if test "${ac_cv_sizeof_char+set}" = set; then
34270 echo $ECHO_N "(cached) $ECHO_C" >&6
34272 if test "$cross_compiling" = yes; then
34273 # Depending upon the size, compute the lo and hi bounds.
34274 cat >conftest.$ac_ext <<_ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h. */
34280 $ac_includes_default
34281 typedef char ac__type_sizeof_;
34285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34292 rm -f conftest.$ac_objext
34293 if { (ac_try="$ac_compile"
34294 case "(($ac_try" in
34295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34296 *) ac_try_echo=$ac_try;;
34298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34299 (eval "$ac_compile") 2>conftest.er1
34301 grep -v '^ *+' conftest.er1 >conftest.err
34303 cat conftest.err >&5
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); } && {
34306 test -z "$ac_c_werror_flag" ||
34307 test ! -s conftest.err
34308 } && test -s conftest.$ac_objext; then
34311 cat >conftest.$ac_ext <<_ACEOF
34314 cat confdefs.h >>conftest.$ac_ext
34315 cat >>conftest.$ac_ext <<_ACEOF
34316 /* end confdefs.h. */
34317 $ac_includes_default
34318 typedef char ac__type_sizeof_;
34322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34329 rm -f conftest.$ac_objext
34330 if { (ac_try="$ac_compile"
34331 case "(($ac_try" in
34332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34333 *) ac_try_echo=$ac_try;;
34335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34336 (eval "$ac_compile") 2>conftest.er1
34338 grep -v '^ *+' conftest.er1 >conftest.err
34340 cat conftest.err >&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); } && {
34343 test -z "$ac_c_werror_flag" ||
34344 test ! -s conftest.err
34345 } && test -s conftest.$ac_objext; then
34346 ac_hi=$ac_mid; break
34348 echo "$as_me: failed program was:" >&5
34349 sed 's/^/| /' conftest.$ac_ext >&5
34351 ac_lo=`expr $ac_mid + 1`
34352 if test $ac_lo -le $ac_mid; then
34356 ac_mid=`expr 2 '*' $ac_mid + 1`
34359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34362 echo "$as_me: failed program was:" >&5
34363 sed 's/^/| /' conftest.$ac_ext >&5
34365 cat >conftest.$ac_ext <<_ACEOF
34368 cat confdefs.h >>conftest.$ac_ext
34369 cat >>conftest.$ac_ext <<_ACEOF
34370 /* end confdefs.h. */
34371 $ac_includes_default
34372 typedef char ac__type_sizeof_;
34376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34383 rm -f conftest.$ac_objext
34384 if { (ac_try="$ac_compile"
34385 case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_compile") 2>conftest.er1
34392 grep -v '^ *+' conftest.er1 >conftest.err
34394 cat conftest.err >&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } && {
34397 test -z "$ac_c_werror_flag" ||
34398 test ! -s conftest.err
34399 } && test -s conftest.$ac_objext; then
34402 cat >conftest.$ac_ext <<_ACEOF
34405 cat confdefs.h >>conftest.$ac_ext
34406 cat >>conftest.$ac_ext <<_ACEOF
34407 /* end confdefs.h. */
34408 $ac_includes_default
34409 typedef char ac__type_sizeof_;
34413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34420 rm -f conftest.$ac_objext
34421 if { (ac_try="$ac_compile"
34422 case "(($ac_try" in
34423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34424 *) ac_try_echo=$ac_try;;
34426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34427 (eval "$ac_compile") 2>conftest.er1
34429 grep -v '^ *+' conftest.er1 >conftest.err
34431 cat conftest.err >&5
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } && {
34434 test -z "$ac_c_werror_flag" ||
34435 test ! -s conftest.err
34436 } && test -s conftest.$ac_objext; then
34437 ac_lo=$ac_mid; break
34439 echo "$as_me: failed program was:" >&5
34440 sed 's/^/| /' conftest.$ac_ext >&5
34442 ac_hi=`expr '(' $ac_mid ')' - 1`
34443 if test $ac_mid -le $ac_hi; then
34447 ac_mid=`expr 2 '*' $ac_mid`
34450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34453 echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34463 # Binary search between lo and hi bounds.
34464 while test "x$ac_lo" != "x$ac_hi"; do
34465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34466 cat >conftest.$ac_ext <<_ACEOF
34469 cat confdefs.h >>conftest.$ac_ext
34470 cat >>conftest.$ac_ext <<_ACEOF
34471 /* end confdefs.h. */
34472 $ac_includes_default
34473 typedef char ac__type_sizeof_;
34477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34484 rm -f conftest.$ac_objext
34485 if { (ac_try="$ac_compile"
34486 case "(($ac_try" in
34487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34488 *) ac_try_echo=$ac_try;;
34490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34491 (eval "$ac_compile") 2>conftest.er1
34493 grep -v '^ *+' conftest.er1 >conftest.err
34495 cat conftest.err >&5
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); } && {
34498 test -z "$ac_c_werror_flag" ||
34499 test ! -s conftest.err
34500 } && test -s conftest.$ac_objext; then
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34506 ac_lo=`expr '(' $ac_mid ')' + 1`
34509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34512 ?*) ac_cv_sizeof_char=$ac_lo;;
34513 '') if test "$ac_cv_type_char" = yes; then
34514 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34515 See \`config.log' for more details." >&5
34516 echo "$as_me: error: cannot compute sizeof (char)
34517 See \`config.log' for more details." >&2;}
34518 { (exit 77); exit 77; }; }
34520 ac_cv_sizeof_char=0
34524 cat >conftest.$ac_ext <<_ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h. */
34530 $ac_includes_default
34531 typedef char ac__type_sizeof_;
34532 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34533 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34535 #include <stdlib.h>
34540 FILE *f = fopen ("conftest.val", "w");
34543 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34545 long int i = longval ();
34546 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34548 fprintf (f, "%ld\n", i);
34552 unsigned long int i = ulongval ();
34553 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34555 fprintf (f, "%lu\n", i);
34557 return ferror (f) || fclose (f) != 0;
34563 rm -f conftest$ac_exeext
34564 if { (ac_try="$ac_link"
34565 case "(($ac_try" in
34566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34567 *) ac_try_echo=$ac_try;;
34569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34570 (eval "$ac_link") 2>&5
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34574 { (case "(($ac_try" in
34575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34576 *) ac_try_echo=$ac_try;;
34578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34579 (eval "$ac_try") 2>&5
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); }; }; then
34583 ac_cv_sizeof_char=`cat conftest.val`
34585 echo "$as_me: program exited with status $ac_status" >&5
34586 echo "$as_me: failed program was:" >&5
34587 sed 's/^/| /' conftest.$ac_ext >&5
34589 ( exit $ac_status )
34590 if test "$ac_cv_type_char" = yes; then
34591 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34592 See \`config.log' for more details." >&5
34593 echo "$as_me: error: cannot compute sizeof (char)
34594 See \`config.log' for more details." >&2;}
34595 { (exit 77); exit 77; }; }
34597 ac_cv_sizeof_char=0
34600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34604 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34605 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34609 cat >>confdefs.h <<_ACEOF
34610 #define SIZEOF_CHAR $ac_cv_sizeof_char
34614 { echo "$as_me:$LINENO: checking for short int" >&5
34615 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34616 if test "${ac_cv_type_short_int+set}" = set; then
34617 echo $ECHO_N "(cached) $ECHO_C" >&6
34619 cat >conftest.$ac_ext <<_ACEOF
34622 cat confdefs.h >>conftest.$ac_ext
34623 cat >>conftest.$ac_ext <<_ACEOF
34624 /* end confdefs.h. */
34625 $ac_includes_default
34626 typedef short int ac__type_new_;
34630 if ((ac__type_new_ *) 0)
34632 if (sizeof (ac__type_new_))
34638 rm -f conftest.$ac_objext
34639 if { (ac_try="$ac_compile"
34640 case "(($ac_try" in
34641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34642 *) ac_try_echo=$ac_try;;
34644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34645 (eval "$ac_compile") 2>conftest.er1
34647 grep -v '^ *+' conftest.er1 >conftest.err
34649 cat conftest.err >&5
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); } && {
34652 test -z "$ac_c_werror_flag" ||
34653 test ! -s conftest.err
34654 } && test -s conftest.$ac_objext; then
34655 ac_cv_type_short_int=yes
34657 echo "$as_me: failed program was:" >&5
34658 sed 's/^/| /' conftest.$ac_ext >&5
34660 ac_cv_type_short_int=no
34663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34665 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34666 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34668 # The cast to long int works around a bug in the HP C Compiler
34669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34671 # This bug is HP SR number 8606223364.
34672 { echo "$as_me:$LINENO: checking size of short int" >&5
34673 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34674 if test "${ac_cv_sizeof_short_int+set}" = set; then
34675 echo $ECHO_N "(cached) $ECHO_C" >&6
34677 if test "$cross_compiling" = yes; then
34678 # Depending upon the size, compute the lo and hi bounds.
34679 cat >conftest.$ac_ext <<_ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34685 $ac_includes_default
34686 typedef short int ac__type_sizeof_;
34690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34697 rm -f conftest.$ac_objext
34698 if { (ac_try="$ac_compile"
34699 case "(($ac_try" in
34700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701 *) ac_try_echo=$ac_try;;
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704 (eval "$ac_compile") 2>conftest.er1
34706 grep -v '^ *+' conftest.er1 >conftest.err
34708 cat conftest.err >&5
34709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710 (exit $ac_status); } && {
34711 test -z "$ac_c_werror_flag" ||
34712 test ! -s conftest.err
34713 } && test -s conftest.$ac_objext; then
34716 cat >conftest.$ac_ext <<_ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h. */
34722 $ac_includes_default
34723 typedef short int ac__type_sizeof_;
34727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34734 rm -f conftest.$ac_objext
34735 if { (ac_try="$ac_compile"
34736 case "(($ac_try" in
34737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34738 *) ac_try_echo=$ac_try;;
34740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34741 (eval "$ac_compile") 2>conftest.er1
34743 grep -v '^ *+' conftest.er1 >conftest.err
34745 cat conftest.err >&5
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); } && {
34748 test -z "$ac_c_werror_flag" ||
34749 test ! -s conftest.err
34750 } && test -s conftest.$ac_objext; then
34751 ac_hi=$ac_mid; break
34753 echo "$as_me: failed program was:" >&5
34754 sed 's/^/| /' conftest.$ac_ext >&5
34756 ac_lo=`expr $ac_mid + 1`
34757 if test $ac_lo -le $ac_mid; then
34761 ac_mid=`expr 2 '*' $ac_mid + 1`
34764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34767 echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34770 cat >conftest.$ac_ext <<_ACEOF
34773 cat confdefs.h >>conftest.$ac_ext
34774 cat >>conftest.$ac_ext <<_ACEOF
34775 /* end confdefs.h. */
34776 $ac_includes_default
34777 typedef short int ac__type_sizeof_;
34781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34788 rm -f conftest.$ac_objext
34789 if { (ac_try="$ac_compile"
34790 case "(($ac_try" in
34791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34792 *) ac_try_echo=$ac_try;;
34794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34795 (eval "$ac_compile") 2>conftest.er1
34797 grep -v '^ *+' conftest.er1 >conftest.err
34799 cat conftest.err >&5
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); } && {
34802 test -z "$ac_c_werror_flag" ||
34803 test ! -s conftest.err
34804 } && test -s conftest.$ac_objext; then
34807 cat >conftest.$ac_ext <<_ACEOF
34810 cat confdefs.h >>conftest.$ac_ext
34811 cat >>conftest.$ac_ext <<_ACEOF
34812 /* end confdefs.h. */
34813 $ac_includes_default
34814 typedef short int ac__type_sizeof_;
34818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34825 rm -f conftest.$ac_objext
34826 if { (ac_try="$ac_compile"
34827 case "(($ac_try" in
34828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34829 *) ac_try_echo=$ac_try;;
34831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34832 (eval "$ac_compile") 2>conftest.er1
34834 grep -v '^ *+' conftest.er1 >conftest.err
34836 cat conftest.err >&5
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } && {
34839 test -z "$ac_c_werror_flag" ||
34840 test ! -s conftest.err
34841 } && test -s conftest.$ac_objext; then
34842 ac_lo=$ac_mid; break
34844 echo "$as_me: failed program was:" >&5
34845 sed 's/^/| /' conftest.$ac_ext >&5
34847 ac_hi=`expr '(' $ac_mid ')' - 1`
34848 if test $ac_mid -le $ac_hi; then
34852 ac_mid=`expr 2 '*' $ac_mid`
34855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34858 echo "$as_me: failed program was:" >&5
34859 sed 's/^/| /' conftest.$ac_ext >&5
34864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34868 # Binary search between lo and hi bounds.
34869 while test "x$ac_lo" != "x$ac_hi"; do
34870 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34871 cat >conftest.$ac_ext <<_ACEOF
34874 cat confdefs.h >>conftest.$ac_ext
34875 cat >>conftest.$ac_ext <<_ACEOF
34876 /* end confdefs.h. */
34877 $ac_includes_default
34878 typedef short int ac__type_sizeof_;
34882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34889 rm -f conftest.$ac_objext
34890 if { (ac_try="$ac_compile"
34891 case "(($ac_try" in
34892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34893 *) ac_try_echo=$ac_try;;
34895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34896 (eval "$ac_compile") 2>conftest.er1
34898 grep -v '^ *+' conftest.er1 >conftest.err
34900 cat conftest.err >&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); } && {
34903 test -z "$ac_c_werror_flag" ||
34904 test ! -s conftest.err
34905 } && test -s conftest.$ac_objext; then
34908 echo "$as_me: failed program was:" >&5
34909 sed 's/^/| /' conftest.$ac_ext >&5
34911 ac_lo=`expr '(' $ac_mid ')' + 1`
34914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34917 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34918 '') if test "$ac_cv_type_short_int" = yes; then
34919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34920 See \`config.log' for more details." >&5
34921 echo "$as_me: error: cannot compute sizeof (short int)
34922 See \`config.log' for more details." >&2;}
34923 { (exit 77); exit 77; }; }
34925 ac_cv_sizeof_short_int=0
34929 cat >conftest.$ac_ext <<_ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h. */
34935 $ac_includes_default
34936 typedef short int ac__type_sizeof_;
34937 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34938 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34940 #include <stdlib.h>
34945 FILE *f = fopen ("conftest.val", "w");
34948 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34950 long int i = longval ();
34951 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34953 fprintf (f, "%ld\n", i);
34957 unsigned long int i = ulongval ();
34958 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34960 fprintf (f, "%lu\n", i);
34962 return ferror (f) || fclose (f) != 0;
34968 rm -f conftest$ac_exeext
34969 if { (ac_try="$ac_link"
34970 case "(($ac_try" in
34971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34972 *) ac_try_echo=$ac_try;;
34974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34975 (eval "$ac_link") 2>&5
34977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34979 { (case "(($ac_try" in
34980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34981 *) ac_try_echo=$ac_try;;
34983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34984 (eval "$ac_try") 2>&5
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); }; }; then
34988 ac_cv_sizeof_short_int=`cat conftest.val`
34990 echo "$as_me: program exited with status $ac_status" >&5
34991 echo "$as_me: failed program was:" >&5
34992 sed 's/^/| /' conftest.$ac_ext >&5
34994 ( exit $ac_status )
34995 if test "$ac_cv_type_short_int" = yes; then
34996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34997 See \`config.log' for more details." >&5
34998 echo "$as_me: error: cannot compute sizeof (short int)
34999 See \`config.log' for more details." >&2;}
35000 { (exit 77); exit 77; }; }
35002 ac_cv_sizeof_short_int=0
35005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35009 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35010 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35014 cat >>confdefs.h <<_ACEOF
35015 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35019 { echo "$as_me:$LINENO: checking for int" >&5
35020 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35021 if test "${ac_cv_type_int+set}" = set; then
35022 echo $ECHO_N "(cached) $ECHO_C" >&6
35024 cat >conftest.$ac_ext <<_ACEOF
35027 cat confdefs.h >>conftest.$ac_ext
35028 cat >>conftest.$ac_ext <<_ACEOF
35029 /* end confdefs.h. */
35030 $ac_includes_default
35031 typedef int ac__type_new_;
35035 if ((ac__type_new_ *) 0)
35037 if (sizeof (ac__type_new_))
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047 *) ac_try_echo=$ac_try;;
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050 (eval "$ac_compile") 2>conftest.er1
35052 grep -v '^ *+' conftest.er1 >conftest.err
35054 cat conftest.err >&5
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); } && {
35057 test -z "$ac_c_werror_flag" ||
35058 test ! -s conftest.err
35059 } && test -s conftest.$ac_objext; then
35062 echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35070 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35071 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35073 # The cast to long int works around a bug in the HP C Compiler
35074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35076 # This bug is HP SR number 8606223364.
35077 { echo "$as_me:$LINENO: checking size of int" >&5
35078 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35079 if test "${ac_cv_sizeof_int+set}" = set; then
35080 echo $ECHO_N "(cached) $ECHO_C" >&6
35082 if test "$cross_compiling" = yes; then
35083 # Depending upon the size, compute the lo and hi bounds.
35084 cat >conftest.$ac_ext <<_ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h. */
35090 $ac_includes_default
35091 typedef int ac__type_sizeof_;
35095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35102 rm -f conftest.$ac_objext
35103 if { (ac_try="$ac_compile"
35104 case "(($ac_try" in
35105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35106 *) ac_try_echo=$ac_try;;
35108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35109 (eval "$ac_compile") 2>conftest.er1
35111 grep -v '^ *+' conftest.er1 >conftest.err
35113 cat conftest.err >&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } && {
35116 test -z "$ac_c_werror_flag" ||
35117 test ! -s conftest.err
35118 } && test -s conftest.$ac_objext; then
35121 cat >conftest.$ac_ext <<_ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h. */
35127 $ac_includes_default
35128 typedef int ac__type_sizeof_;
35132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35139 rm -f conftest.$ac_objext
35140 if { (ac_try="$ac_compile"
35141 case "(($ac_try" in
35142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143 *) ac_try_echo=$ac_try;;
35145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146 (eval "$ac_compile") 2>conftest.er1
35148 grep -v '^ *+' conftest.er1 >conftest.err
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } && {
35153 test -z "$ac_c_werror_flag" ||
35154 test ! -s conftest.err
35155 } && test -s conftest.$ac_objext; then
35156 ac_hi=$ac_mid; break
35158 echo "$as_me: failed program was:" >&5
35159 sed 's/^/| /' conftest.$ac_ext >&5
35161 ac_lo=`expr $ac_mid + 1`
35162 if test $ac_lo -le $ac_mid; then
35166 ac_mid=`expr 2 '*' $ac_mid + 1`
35169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172 echo "$as_me: failed program was:" >&5
35173 sed 's/^/| /' conftest.$ac_ext >&5
35175 cat >conftest.$ac_ext <<_ACEOF
35178 cat confdefs.h >>conftest.$ac_ext
35179 cat >>conftest.$ac_ext <<_ACEOF
35180 /* end confdefs.h. */
35181 $ac_includes_default
35182 typedef int ac__type_sizeof_;
35186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35193 rm -f conftest.$ac_objext
35194 if { (ac_try="$ac_compile"
35195 case "(($ac_try" in
35196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35197 *) ac_try_echo=$ac_try;;
35199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35200 (eval "$ac_compile") 2>conftest.er1
35202 grep -v '^ *+' conftest.er1 >conftest.err
35204 cat conftest.err >&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } && {
35207 test -z "$ac_c_werror_flag" ||
35208 test ! -s conftest.err
35209 } && test -s conftest.$ac_objext; then
35212 cat >conftest.$ac_ext <<_ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h. */
35218 $ac_includes_default
35219 typedef int ac__type_sizeof_;
35223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35230 rm -f conftest.$ac_objext
35231 if { (ac_try="$ac_compile"
35232 case "(($ac_try" in
35233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35234 *) ac_try_echo=$ac_try;;
35236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35237 (eval "$ac_compile") 2>conftest.er1
35239 grep -v '^ *+' conftest.er1 >conftest.err
35241 cat conftest.err >&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); } && {
35244 test -z "$ac_c_werror_flag" ||
35245 test ! -s conftest.err
35246 } && test -s conftest.$ac_objext; then
35247 ac_lo=$ac_mid; break
35249 echo "$as_me: failed program was:" >&5
35250 sed 's/^/| /' conftest.$ac_ext >&5
35252 ac_hi=`expr '(' $ac_mid ')' - 1`
35253 if test $ac_mid -le $ac_hi; then
35257 ac_mid=`expr 2 '*' $ac_mid`
35260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35263 echo "$as_me: failed program was:" >&5
35264 sed 's/^/| /' conftest.$ac_ext >&5
35269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273 # Binary search between lo and hi bounds.
35274 while test "x$ac_lo" != "x$ac_hi"; do
35275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35276 cat >conftest.$ac_ext <<_ACEOF
35279 cat confdefs.h >>conftest.$ac_ext
35280 cat >>conftest.$ac_ext <<_ACEOF
35281 /* end confdefs.h. */
35282 $ac_includes_default
35283 typedef int ac__type_sizeof_;
35287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35294 rm -f conftest.$ac_objext
35295 if { (ac_try="$ac_compile"
35296 case "(($ac_try" in
35297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35298 *) ac_try_echo=$ac_try;;
35300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35301 (eval "$ac_compile") 2>conftest.er1
35303 grep -v '^ *+' conftest.er1 >conftest.err
35305 cat conftest.err >&5
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); } && {
35308 test -z "$ac_c_werror_flag" ||
35309 test ! -s conftest.err
35310 } && test -s conftest.$ac_objext; then
35313 echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.$ac_ext >&5
35316 ac_lo=`expr '(' $ac_mid ')' + 1`
35319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35322 ?*) ac_cv_sizeof_int=$ac_lo;;
35323 '') if test "$ac_cv_type_int" = yes; then
35324 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35325 See \`config.log' for more details." >&5
35326 echo "$as_me: error: cannot compute sizeof (int)
35327 See \`config.log' for more details." >&2;}
35328 { (exit 77); exit 77; }; }
35334 cat >conftest.$ac_ext <<_ACEOF
35337 cat confdefs.h >>conftest.$ac_ext
35338 cat >>conftest.$ac_ext <<_ACEOF
35339 /* end confdefs.h. */
35340 $ac_includes_default
35341 typedef int ac__type_sizeof_;
35342 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35343 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35345 #include <stdlib.h>
35350 FILE *f = fopen ("conftest.val", "w");
35353 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35355 long int i = longval ();
35356 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35358 fprintf (f, "%ld\n", i);
35362 unsigned long int i = ulongval ();
35363 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35365 fprintf (f, "%lu\n", i);
35367 return ferror (f) || fclose (f) != 0;
35373 rm -f conftest$ac_exeext
35374 if { (ac_try="$ac_link"
35375 case "(($ac_try" in
35376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35377 *) ac_try_echo=$ac_try;;
35379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35380 (eval "$ac_link") 2>&5
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35384 { (case "(($ac_try" in
35385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35386 *) ac_try_echo=$ac_try;;
35388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35389 (eval "$ac_try") 2>&5
35391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35392 (exit $ac_status); }; }; then
35393 ac_cv_sizeof_int=`cat conftest.val`
35395 echo "$as_me: program exited with status $ac_status" >&5
35396 echo "$as_me: failed program was:" >&5
35397 sed 's/^/| /' conftest.$ac_ext >&5
35399 ( exit $ac_status )
35400 if test "$ac_cv_type_int" = yes; then
35401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35402 See \`config.log' for more details." >&5
35403 echo "$as_me: error: cannot compute sizeof (int)
35404 See \`config.log' for more details." >&2;}
35405 { (exit 77); exit 77; }; }
35410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35415 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35419 cat >>confdefs.h <<_ACEOF
35420 #define SIZEOF_INT $ac_cv_sizeof_int
35424 { echo "$as_me:$LINENO: checking for long int" >&5
35425 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35426 if test "${ac_cv_type_long_int+set}" = set; then
35427 echo $ECHO_N "(cached) $ECHO_C" >&6
35429 cat >conftest.$ac_ext <<_ACEOF
35432 cat confdefs.h >>conftest.$ac_ext
35433 cat >>conftest.$ac_ext <<_ACEOF
35434 /* end confdefs.h. */
35435 $ac_includes_default
35436 typedef long int ac__type_new_;
35440 if ((ac__type_new_ *) 0)
35442 if (sizeof (ac__type_new_))
35448 rm -f conftest.$ac_objext
35449 if { (ac_try="$ac_compile"
35450 case "(($ac_try" in
35451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35452 *) ac_try_echo=$ac_try;;
35454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35455 (eval "$ac_compile") 2>conftest.er1
35457 grep -v '^ *+' conftest.er1 >conftest.err
35459 cat conftest.err >&5
35460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461 (exit $ac_status); } && {
35462 test -z "$ac_c_werror_flag" ||
35463 test ! -s conftest.err
35464 } && test -s conftest.$ac_objext; then
35465 ac_cv_type_long_int=yes
35467 echo "$as_me: failed program was:" >&5
35468 sed 's/^/| /' conftest.$ac_ext >&5
35470 ac_cv_type_long_int=no
35473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35475 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35476 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35478 # The cast to long int works around a bug in the HP C Compiler
35479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35481 # This bug is HP SR number 8606223364.
35482 { echo "$as_me:$LINENO: checking size of long int" >&5
35483 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35484 if test "${ac_cv_sizeof_long_int+set}" = set; then
35485 echo $ECHO_N "(cached) $ECHO_C" >&6
35487 if test "$cross_compiling" = yes; then
35488 # Depending upon the size, compute the lo and hi bounds.
35489 cat >conftest.$ac_ext <<_ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h. */
35495 $ac_includes_default
35496 typedef long int ac__type_sizeof_;
35500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35507 rm -f conftest.$ac_objext
35508 if { (ac_try="$ac_compile"
35509 case "(($ac_try" in
35510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35511 *) ac_try_echo=$ac_try;;
35513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35514 (eval "$ac_compile") 2>conftest.er1
35516 grep -v '^ *+' conftest.er1 >conftest.err
35518 cat conftest.err >&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); } && {
35521 test -z "$ac_c_werror_flag" ||
35522 test ! -s conftest.err
35523 } && test -s conftest.$ac_objext; then
35526 cat >conftest.$ac_ext <<_ACEOF
35529 cat confdefs.h >>conftest.$ac_ext
35530 cat >>conftest.$ac_ext <<_ACEOF
35531 /* end confdefs.h. */
35532 $ac_includes_default
35533 typedef long int ac__type_sizeof_;
35537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35544 rm -f conftest.$ac_objext
35545 if { (ac_try="$ac_compile"
35546 case "(($ac_try" in
35547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548 *) ac_try_echo=$ac_try;;
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551 (eval "$ac_compile") 2>conftest.er1
35553 grep -v '^ *+' conftest.er1 >conftest.err
35555 cat conftest.err >&5
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); } && {
35558 test -z "$ac_c_werror_flag" ||
35559 test ! -s conftest.err
35560 } && test -s conftest.$ac_objext; then
35561 ac_hi=$ac_mid; break
35563 echo "$as_me: failed program was:" >&5
35564 sed 's/^/| /' conftest.$ac_ext >&5
35566 ac_lo=`expr $ac_mid + 1`
35567 if test $ac_lo -le $ac_mid; then
35571 ac_mid=`expr 2 '*' $ac_mid + 1`
35574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35577 echo "$as_me: failed program was:" >&5
35578 sed 's/^/| /' conftest.$ac_ext >&5
35580 cat >conftest.$ac_ext <<_ACEOF
35583 cat confdefs.h >>conftest.$ac_ext
35584 cat >>conftest.$ac_ext <<_ACEOF
35585 /* end confdefs.h. */
35586 $ac_includes_default
35587 typedef long int ac__type_sizeof_;
35591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35598 rm -f conftest.$ac_objext
35599 if { (ac_try="$ac_compile"
35600 case "(($ac_try" in
35601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35602 *) ac_try_echo=$ac_try;;
35604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35605 (eval "$ac_compile") 2>conftest.er1
35607 grep -v '^ *+' conftest.er1 >conftest.err
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } && {
35612 test -z "$ac_c_werror_flag" ||
35613 test ! -s conftest.err
35614 } && test -s conftest.$ac_objext; then
35617 cat >conftest.$ac_ext <<_ACEOF
35620 cat confdefs.h >>conftest.$ac_ext
35621 cat >>conftest.$ac_ext <<_ACEOF
35622 /* end confdefs.h. */
35623 $ac_includes_default
35624 typedef long int ac__type_sizeof_;
35628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35635 rm -f conftest.$ac_objext
35636 if { (ac_try="$ac_compile"
35637 case "(($ac_try" in
35638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639 *) ac_try_echo=$ac_try;;
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642 (eval "$ac_compile") 2>conftest.er1
35644 grep -v '^ *+' conftest.er1 >conftest.err
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } && {
35649 test -z "$ac_c_werror_flag" ||
35650 test ! -s conftest.err
35651 } && test -s conftest.$ac_objext; then
35652 ac_lo=$ac_mid; break
35654 echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35657 ac_hi=`expr '(' $ac_mid ')' - 1`
35658 if test $ac_mid -le $ac_hi; then
35662 ac_mid=`expr 2 '*' $ac_mid`
35665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35668 echo "$as_me: failed program was:" >&5
35669 sed 's/^/| /' conftest.$ac_ext >&5
35674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35678 # Binary search between lo and hi bounds.
35679 while test "x$ac_lo" != "x$ac_hi"; do
35680 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35681 cat >conftest.$ac_ext <<_ACEOF
35684 cat confdefs.h >>conftest.$ac_ext
35685 cat >>conftest.$ac_ext <<_ACEOF
35686 /* end confdefs.h. */
35687 $ac_includes_default
35688 typedef long int ac__type_sizeof_;
35692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35699 rm -f conftest.$ac_objext
35700 if { (ac_try="$ac_compile"
35701 case "(($ac_try" in
35702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35703 *) ac_try_echo=$ac_try;;
35705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35706 (eval "$ac_compile") 2>conftest.er1
35708 grep -v '^ *+' conftest.er1 >conftest.err
35710 cat conftest.err >&5
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); } && {
35713 test -z "$ac_c_werror_flag" ||
35714 test ! -s conftest.err
35715 } && test -s conftest.$ac_objext; then
35718 echo "$as_me: failed program was:" >&5
35719 sed 's/^/| /' conftest.$ac_ext >&5
35721 ac_lo=`expr '(' $ac_mid ')' + 1`
35724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35727 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35728 '') if test "$ac_cv_type_long_int" = yes; then
35729 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35730 See \`config.log' for more details." >&5
35731 echo "$as_me: error: cannot compute sizeof (long int)
35732 See \`config.log' for more details." >&2;}
35733 { (exit 77); exit 77; }; }
35735 ac_cv_sizeof_long_int=0
35739 cat >conftest.$ac_ext <<_ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h. */
35745 $ac_includes_default
35746 typedef long int ac__type_sizeof_;
35747 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35748 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35750 #include <stdlib.h>
35755 FILE *f = fopen ("conftest.val", "w");
35758 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35760 long int i = longval ();
35761 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35763 fprintf (f, "%ld\n", i);
35767 unsigned long int i = ulongval ();
35768 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35770 fprintf (f, "%lu\n", i);
35772 return ferror (f) || fclose (f) != 0;
35778 rm -f conftest$ac_exeext
35779 if { (ac_try="$ac_link"
35780 case "(($ac_try" in
35781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35782 *) ac_try_echo=$ac_try;;
35784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35785 (eval "$ac_link") 2>&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35789 { (case "(($ac_try" in
35790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35791 *) ac_try_echo=$ac_try;;
35793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35794 (eval "$ac_try") 2>&5
35796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 (exit $ac_status); }; }; then
35798 ac_cv_sizeof_long_int=`cat conftest.val`
35800 echo "$as_me: program exited with status $ac_status" >&5
35801 echo "$as_me: failed program was:" >&5
35802 sed 's/^/| /' conftest.$ac_ext >&5
35804 ( exit $ac_status )
35805 if test "$ac_cv_type_long_int" = yes; then
35806 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35807 See \`config.log' for more details." >&5
35808 echo "$as_me: error: cannot compute sizeof (long int)
35809 See \`config.log' for more details." >&2;}
35810 { (exit 77); exit 77; }; }
35812 ac_cv_sizeof_long_int=0
35815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35819 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35820 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35824 cat >>confdefs.h <<_ACEOF
35825 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35829 { echo "$as_me:$LINENO: checking for long long int" >&5
35830 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35831 if test "${ac_cv_type_long_long_int+set}" = set; then
35832 echo $ECHO_N "(cached) $ECHO_C" >&6
35834 cat >conftest.$ac_ext <<_ACEOF
35837 cat confdefs.h >>conftest.$ac_ext
35838 cat >>conftest.$ac_ext <<_ACEOF
35839 /* end confdefs.h. */
35840 $ac_includes_default
35841 typedef long long int ac__type_new_;
35845 if ((ac__type_new_ *) 0)
35847 if (sizeof (ac__type_new_))
35853 rm -f conftest.$ac_objext
35854 if { (ac_try="$ac_compile"
35855 case "(($ac_try" in
35856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35857 *) ac_try_echo=$ac_try;;
35859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35860 (eval "$ac_compile") 2>conftest.er1
35862 grep -v '^ *+' conftest.er1 >conftest.err
35864 cat conftest.err >&5
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); } && {
35867 test -z "$ac_c_werror_flag" ||
35868 test ! -s conftest.err
35869 } && test -s conftest.$ac_objext; then
35870 ac_cv_type_long_long_int=yes
35872 echo "$as_me: failed program was:" >&5
35873 sed 's/^/| /' conftest.$ac_ext >&5
35875 ac_cv_type_long_long_int=no
35878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35880 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35881 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35883 # The cast to long int works around a bug in the HP C Compiler
35884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35886 # This bug is HP SR number 8606223364.
35887 { echo "$as_me:$LINENO: checking size of long long int" >&5
35888 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35889 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35890 echo $ECHO_N "(cached) $ECHO_C" >&6
35892 if test "$cross_compiling" = yes; then
35893 # Depending upon the size, compute the lo and hi bounds.
35894 cat >conftest.$ac_ext <<_ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h. */
35900 $ac_includes_default
35901 typedef long long int ac__type_sizeof_;
35905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35912 rm -f conftest.$ac_objext
35913 if { (ac_try="$ac_compile"
35914 case "(($ac_try" in
35915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35916 *) ac_try_echo=$ac_try;;
35918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35919 (eval "$ac_compile") 2>conftest.er1
35921 grep -v '^ *+' conftest.er1 >conftest.err
35923 cat conftest.err >&5
35924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925 (exit $ac_status); } && {
35926 test -z "$ac_c_werror_flag" ||
35927 test ! -s conftest.err
35928 } && test -s conftest.$ac_objext; then
35931 cat >conftest.$ac_ext <<_ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h. */
35937 $ac_includes_default
35938 typedef long long int ac__type_sizeof_;
35942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35949 rm -f conftest.$ac_objext
35950 if { (ac_try="$ac_compile"
35951 case "(($ac_try" in
35952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35953 *) ac_try_echo=$ac_try;;
35955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35956 (eval "$ac_compile") 2>conftest.er1
35958 grep -v '^ *+' conftest.er1 >conftest.err
35960 cat conftest.err >&5
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } && {
35963 test -z "$ac_c_werror_flag" ||
35964 test ! -s conftest.err
35965 } && test -s conftest.$ac_objext; then
35966 ac_hi=$ac_mid; break
35968 echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35971 ac_lo=`expr $ac_mid + 1`
35972 if test $ac_lo -le $ac_mid; then
35976 ac_mid=`expr 2 '*' $ac_mid + 1`
35979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35982 echo "$as_me: failed program was:" >&5
35983 sed 's/^/| /' conftest.$ac_ext >&5
35985 cat >conftest.$ac_ext <<_ACEOF
35988 cat confdefs.h >>conftest.$ac_ext
35989 cat >>conftest.$ac_ext <<_ACEOF
35990 /* end confdefs.h. */
35991 $ac_includes_default
35992 typedef long long int ac__type_sizeof_;
35996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36003 rm -f conftest.$ac_objext
36004 if { (ac_try="$ac_compile"
36005 case "(($ac_try" in
36006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36007 *) ac_try_echo=$ac_try;;
36009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36010 (eval "$ac_compile") 2>conftest.er1
36012 grep -v '^ *+' conftest.er1 >conftest.err
36014 cat conftest.err >&5
36015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); } && {
36017 test -z "$ac_c_werror_flag" ||
36018 test ! -s conftest.err
36019 } && test -s conftest.$ac_objext; then
36022 cat >conftest.$ac_ext <<_ACEOF
36025 cat confdefs.h >>conftest.$ac_ext
36026 cat >>conftest.$ac_ext <<_ACEOF
36027 /* end confdefs.h. */
36028 $ac_includes_default
36029 typedef long long int ac__type_sizeof_;
36033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36040 rm -f conftest.$ac_objext
36041 if { (ac_try="$ac_compile"
36042 case "(($ac_try" in
36043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36044 *) ac_try_echo=$ac_try;;
36046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36047 (eval "$ac_compile") 2>conftest.er1
36049 grep -v '^ *+' conftest.er1 >conftest.err
36051 cat conftest.err >&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } && {
36054 test -z "$ac_c_werror_flag" ||
36055 test ! -s conftest.err
36056 } && test -s conftest.$ac_objext; then
36057 ac_lo=$ac_mid; break
36059 echo "$as_me: failed program was:" >&5
36060 sed 's/^/| /' conftest.$ac_ext >&5
36062 ac_hi=`expr '(' $ac_mid ')' - 1`
36063 if test $ac_mid -le $ac_hi; then
36067 ac_mid=`expr 2 '*' $ac_mid`
36070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36073 echo "$as_me: failed program was:" >&5
36074 sed 's/^/| /' conftest.$ac_ext >&5
36079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36083 # Binary search between lo and hi bounds.
36084 while test "x$ac_lo" != "x$ac_hi"; do
36085 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36086 cat >conftest.$ac_ext <<_ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h. */
36092 $ac_includes_default
36093 typedef long long int ac__type_sizeof_;
36097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36104 rm -f conftest.$ac_objext
36105 if { (ac_try="$ac_compile"
36106 case "(($ac_try" in
36107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36108 *) ac_try_echo=$ac_try;;
36110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36111 (eval "$ac_compile") 2>conftest.er1
36113 grep -v '^ *+' conftest.er1 >conftest.err
36115 cat conftest.err >&5
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); } && {
36118 test -z "$ac_c_werror_flag" ||
36119 test ! -s conftest.err
36120 } && test -s conftest.$ac_objext; then
36123 echo "$as_me: failed program was:" >&5
36124 sed 's/^/| /' conftest.$ac_ext >&5
36126 ac_lo=`expr '(' $ac_mid ')' + 1`
36129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36132 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36133 '') if test "$ac_cv_type_long_long_int" = yes; then
36134 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36135 See \`config.log' for more details." >&5
36136 echo "$as_me: error: cannot compute sizeof (long long int)
36137 See \`config.log' for more details." >&2;}
36138 { (exit 77); exit 77; }; }
36140 ac_cv_sizeof_long_long_int=0
36144 cat >conftest.$ac_ext <<_ACEOF
36147 cat confdefs.h >>conftest.$ac_ext
36148 cat >>conftest.$ac_ext <<_ACEOF
36149 /* end confdefs.h. */
36150 $ac_includes_default
36151 typedef long long int ac__type_sizeof_;
36152 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36153 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36155 #include <stdlib.h>
36160 FILE *f = fopen ("conftest.val", "w");
36163 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36165 long int i = longval ();
36166 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36168 fprintf (f, "%ld\n", i);
36172 unsigned long int i = ulongval ();
36173 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36175 fprintf (f, "%lu\n", i);
36177 return ferror (f) || fclose (f) != 0;
36183 rm -f conftest$ac_exeext
36184 if { (ac_try="$ac_link"
36185 case "(($ac_try" in
36186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36187 *) ac_try_echo=$ac_try;;
36189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36190 (eval "$ac_link") 2>&5
36192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36194 { (case "(($ac_try" in
36195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36196 *) ac_try_echo=$ac_try;;
36198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36199 (eval "$ac_try") 2>&5
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); }; }; then
36203 ac_cv_sizeof_long_long_int=`cat conftest.val`
36205 echo "$as_me: program exited with status $ac_status" >&5
36206 echo "$as_me: failed program was:" >&5
36207 sed 's/^/| /' conftest.$ac_ext >&5
36209 ( exit $ac_status )
36210 if test "$ac_cv_type_long_long_int" = yes; then
36211 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36212 See \`config.log' for more details." >&5
36213 echo "$as_me: error: cannot compute sizeof (long long int)
36214 See \`config.log' for more details." >&2;}
36215 { (exit 77); exit 77; }; }
36217 ac_cv_sizeof_long_long_int=0
36220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36224 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36225 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36229 cat >>confdefs.h <<_ACEOF
36230 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36234 { echo "$as_me:$LINENO: checking for int *" >&5
36235 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36236 if test "${ac_cv_type_int_p+set}" = set; then
36237 echo $ECHO_N "(cached) $ECHO_C" >&6
36239 cat >conftest.$ac_ext <<_ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h. */
36245 $ac_includes_default
36246 typedef int * ac__type_new_;
36250 if ((ac__type_new_ *) 0)
36252 if (sizeof (ac__type_new_))
36258 rm -f conftest.$ac_objext
36259 if { (ac_try="$ac_compile"
36260 case "(($ac_try" in
36261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36262 *) ac_try_echo=$ac_try;;
36264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36265 (eval "$ac_compile") 2>conftest.er1
36267 grep -v '^ *+' conftest.er1 >conftest.err
36269 cat conftest.err >&5
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); } && {
36272 test -z "$ac_c_werror_flag" ||
36273 test ! -s conftest.err
36274 } && test -s conftest.$ac_objext; then
36275 ac_cv_type_int_p=yes
36277 echo "$as_me: failed program was:" >&5
36278 sed 's/^/| /' conftest.$ac_ext >&5
36280 ac_cv_type_int_p=no
36283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36285 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36286 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36288 # The cast to long int works around a bug in the HP C Compiler
36289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36291 # This bug is HP SR number 8606223364.
36292 { echo "$as_me:$LINENO: checking size of int *" >&5
36293 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36294 if test "${ac_cv_sizeof_int_p+set}" = set; then
36295 echo $ECHO_N "(cached) $ECHO_C" >&6
36297 if test "$cross_compiling" = yes; then
36298 # Depending upon the size, compute the lo and hi bounds.
36299 cat >conftest.$ac_ext <<_ACEOF
36302 cat confdefs.h >>conftest.$ac_ext
36303 cat >>conftest.$ac_ext <<_ACEOF
36304 /* end confdefs.h. */
36305 $ac_includes_default
36306 typedef int * ac__type_sizeof_;
36310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36317 rm -f conftest.$ac_objext
36318 if { (ac_try="$ac_compile"
36319 case "(($ac_try" in
36320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36321 *) ac_try_echo=$ac_try;;
36323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36324 (eval "$ac_compile") 2>conftest.er1
36326 grep -v '^ *+' conftest.er1 >conftest.err
36328 cat conftest.err >&5
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); } && {
36331 test -z "$ac_c_werror_flag" ||
36332 test ! -s conftest.err
36333 } && test -s conftest.$ac_objext; then
36336 cat >conftest.$ac_ext <<_ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36342 $ac_includes_default
36343 typedef int * ac__type_sizeof_;
36347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36354 rm -f conftest.$ac_objext
36355 if { (ac_try="$ac_compile"
36356 case "(($ac_try" in
36357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36358 *) ac_try_echo=$ac_try;;
36360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36361 (eval "$ac_compile") 2>conftest.er1
36363 grep -v '^ *+' conftest.er1 >conftest.err
36365 cat conftest.err >&5
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); } && {
36368 test -z "$ac_c_werror_flag" ||
36369 test ! -s conftest.err
36370 } && test -s conftest.$ac_objext; then
36371 ac_hi=$ac_mid; break
36373 echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36376 ac_lo=`expr $ac_mid + 1`
36377 if test $ac_lo -le $ac_mid; then
36381 ac_mid=`expr 2 '*' $ac_mid + 1`
36384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36387 echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36390 cat >conftest.$ac_ext <<_ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h. */
36396 $ac_includes_default
36397 typedef int * ac__type_sizeof_;
36401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36408 rm -f conftest.$ac_objext
36409 if { (ac_try="$ac_compile"
36410 case "(($ac_try" in
36411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36412 *) ac_try_echo=$ac_try;;
36414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36415 (eval "$ac_compile") 2>conftest.er1
36417 grep -v '^ *+' conftest.er1 >conftest.err
36419 cat conftest.err >&5
36420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421 (exit $ac_status); } && {
36422 test -z "$ac_c_werror_flag" ||
36423 test ! -s conftest.err
36424 } && test -s conftest.$ac_objext; then
36427 cat >conftest.$ac_ext <<_ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h. */
36433 $ac_includes_default
36434 typedef int * ac__type_sizeof_;
36438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36445 rm -f conftest.$ac_objext
36446 if { (ac_try="$ac_compile"
36447 case "(($ac_try" in
36448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36449 *) ac_try_echo=$ac_try;;
36451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36452 (eval "$ac_compile") 2>conftest.er1
36454 grep -v '^ *+' conftest.er1 >conftest.err
36456 cat conftest.err >&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } && {
36459 test -z "$ac_c_werror_flag" ||
36460 test ! -s conftest.err
36461 } && test -s conftest.$ac_objext; then
36462 ac_lo=$ac_mid; break
36464 echo "$as_me: failed program was:" >&5
36465 sed 's/^/| /' conftest.$ac_ext >&5
36467 ac_hi=`expr '(' $ac_mid ')' - 1`
36468 if test $ac_mid -le $ac_hi; then
36472 ac_mid=`expr 2 '*' $ac_mid`
36475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36478 echo "$as_me: failed program was:" >&5
36479 sed 's/^/| /' conftest.$ac_ext >&5
36484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36488 # Binary search between lo and hi bounds.
36489 while test "x$ac_lo" != "x$ac_hi"; do
36490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36491 cat >conftest.$ac_ext <<_ACEOF
36494 cat confdefs.h >>conftest.$ac_ext
36495 cat >>conftest.$ac_ext <<_ACEOF
36496 /* end confdefs.h. */
36497 $ac_includes_default
36498 typedef int * ac__type_sizeof_;
36502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36509 rm -f conftest.$ac_objext
36510 if { (ac_try="$ac_compile"
36511 case "(($ac_try" in
36512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36513 *) ac_try_echo=$ac_try;;
36515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36516 (eval "$ac_compile") 2>conftest.er1
36518 grep -v '^ *+' conftest.er1 >conftest.err
36520 cat conftest.err >&5
36521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522 (exit $ac_status); } && {
36523 test -z "$ac_c_werror_flag" ||
36524 test ! -s conftest.err
36525 } && test -s conftest.$ac_objext; then
36528 echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36531 ac_lo=`expr '(' $ac_mid ')' + 1`
36534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36537 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36538 '') if test "$ac_cv_type_int_p" = yes; then
36539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36540 See \`config.log' for more details." >&5
36541 echo "$as_me: error: cannot compute sizeof (int *)
36542 See \`config.log' for more details." >&2;}
36543 { (exit 77); exit 77; }; }
36545 ac_cv_sizeof_int_p=0
36549 cat >conftest.$ac_ext <<_ACEOF
36552 cat confdefs.h >>conftest.$ac_ext
36553 cat >>conftest.$ac_ext <<_ACEOF
36554 /* end confdefs.h. */
36555 $ac_includes_default
36556 typedef int * ac__type_sizeof_;
36557 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36558 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36560 #include <stdlib.h>
36565 FILE *f = fopen ("conftest.val", "w");
36568 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36570 long int i = longval ();
36571 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36573 fprintf (f, "%ld\n", i);
36577 unsigned long int i = ulongval ();
36578 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36580 fprintf (f, "%lu\n", i);
36582 return ferror (f) || fclose (f) != 0;
36588 rm -f conftest$ac_exeext
36589 if { (ac_try="$ac_link"
36590 case "(($ac_try" in
36591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36592 *) ac_try_echo=$ac_try;;
36594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36595 (eval "$ac_link") 2>&5
36597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36599 { (case "(($ac_try" in
36600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36601 *) ac_try_echo=$ac_try;;
36603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36604 (eval "$ac_try") 2>&5
36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); }; }; then
36608 ac_cv_sizeof_int_p=`cat conftest.val`
36610 echo "$as_me: program exited with status $ac_status" >&5
36611 echo "$as_me: failed program was:" >&5
36612 sed 's/^/| /' conftest.$ac_ext >&5
36614 ( exit $ac_status )
36615 if test "$ac_cv_type_int_p" = yes; then
36616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36617 See \`config.log' for more details." >&5
36618 echo "$as_me: error: cannot compute sizeof (int *)
36619 See \`config.log' for more details." >&2;}
36620 { (exit 77); exit 77; }; }
36622 ac_cv_sizeof_int_p=0
36625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36629 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36630 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36634 cat >>confdefs.h <<_ACEOF
36635 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36640 { echo "$as_me:$LINENO: checking for u_int type" >&5
36641 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36642 if test "${ac_cv_have_u_int+set}" = set; then
36643 echo $ECHO_N "(cached) $ECHO_C" >&6
36646 cat >conftest.$ac_ext <<_ACEOF
36649 cat confdefs.h >>conftest.$ac_ext
36650 cat >>conftest.$ac_ext <<_ACEOF
36651 /* end confdefs.h. */
36653 #include <sys/types.h>
36665 rm -f conftest.$ac_objext
36666 if { (ac_try="$ac_compile"
36667 case "(($ac_try" in
36668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36669 *) ac_try_echo=$ac_try;;
36671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36672 (eval "$ac_compile") 2>conftest.er1
36674 grep -v '^ *+' conftest.er1 >conftest.err
36676 cat conftest.err >&5
36677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678 (exit $ac_status); } && {
36679 test -z "$ac_c_werror_flag" ||
36680 test ! -s conftest.err
36681 } && test -s conftest.$ac_objext; then
36683 ac_cv_have_u_int="yes"
36686 echo "$as_me: failed program was:" >&5
36687 sed 's/^/| /' conftest.$ac_ext >&5
36690 ac_cv_have_u_int="no"
36695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36699 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36700 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36701 if test "x$ac_cv_have_u_int" = "xyes" ; then
36702 cat >>confdefs.h <<\_ACEOF
36703 #define HAVE_U_INT 1
36709 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36710 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36711 if test "${ac_cv_have_intmax_t+set}" = set; then
36712 echo $ECHO_N "(cached) $ECHO_C" >&6
36715 cat >conftest.$ac_ext <<_ACEOF
36718 cat confdefs.h >>conftest.$ac_ext
36719 cat >>conftest.$ac_ext <<_ACEOF
36720 /* end confdefs.h. */
36722 #include <sys/types.h>
36734 rm -f conftest.$ac_objext
36735 if { (ac_try="$ac_compile"
36736 case "(($ac_try" in
36737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36738 *) ac_try_echo=$ac_try;;
36740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36741 (eval "$ac_compile") 2>conftest.er1
36743 grep -v '^ *+' conftest.er1 >conftest.err
36745 cat conftest.err >&5
36746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36747 (exit $ac_status); } && {
36748 test -z "$ac_c_werror_flag" ||
36749 test ! -s conftest.err
36750 } && test -s conftest.$ac_objext; then
36752 ac_cv_have_intmax_t="yes"
36755 echo "$as_me: failed program was:" >&5
36756 sed 's/^/| /' conftest.$ac_ext >&5
36759 cat >conftest.$ac_ext <<_ACEOF
36762 cat confdefs.h >>conftest.$ac_ext
36763 cat >>conftest.$ac_ext <<_ACEOF
36764 /* end confdefs.h. */
36766 #include <stdint.h>
36778 rm -f conftest.$ac_objext
36779 if { (ac_try="$ac_compile"
36780 case "(($ac_try" in
36781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36782 *) ac_try_echo=$ac_try;;
36784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36785 (eval "$ac_compile") 2>conftest.er1
36787 grep -v '^ *+' conftest.er1 >conftest.err
36789 cat conftest.err >&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); } && {
36792 test -z "$ac_c_werror_flag" ||
36793 test ! -s conftest.err
36794 } && test -s conftest.$ac_objext; then
36796 ac_cv_have_intmax_t="yes"
36799 echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36803 ac_cv_have_intmax_t="no"
36808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36817 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36818 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36819 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36820 cat >>confdefs.h <<\_ACEOF
36821 #define HAVE_INTMAX_T 1
36827 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36828 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36829 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36830 echo $ECHO_N "(cached) $ECHO_C" >&6
36833 cat >conftest.$ac_ext <<_ACEOF
36836 cat confdefs.h >>conftest.$ac_ext
36837 cat >>conftest.$ac_ext <<_ACEOF
36838 /* end confdefs.h. */
36840 #include <sys/types.h>
36846 u_intmax_t a; a = 1;
36852 rm -f conftest.$ac_objext
36853 if { (ac_try="$ac_compile"
36854 case "(($ac_try" in
36855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36856 *) ac_try_echo=$ac_try;;
36858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36859 (eval "$ac_compile") 2>conftest.er1
36861 grep -v '^ *+' conftest.er1 >conftest.err
36863 cat conftest.err >&5
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); } && {
36866 test -z "$ac_c_werror_flag" ||
36867 test ! -s conftest.err
36868 } && test -s conftest.$ac_objext; then
36870 ac_cv_have_u_intmax_t="yes"
36873 echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36877 cat >conftest.$ac_ext <<_ACEOF
36880 cat confdefs.h >>conftest.$ac_ext
36881 cat >>conftest.$ac_ext <<_ACEOF
36882 /* end confdefs.h. */
36884 #include <stdint.h>
36890 u_intmax_t a; a = 1;
36896 rm -f conftest.$ac_objext
36897 if { (ac_try="$ac_compile"
36898 case "(($ac_try" in
36899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36900 *) ac_try_echo=$ac_try;;
36902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36903 (eval "$ac_compile") 2>conftest.er1
36905 grep -v '^ *+' conftest.er1 >conftest.err
36907 cat conftest.err >&5
36908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36909 (exit $ac_status); } && {
36910 test -z "$ac_c_werror_flag" ||
36911 test ! -s conftest.err
36912 } && test -s conftest.$ac_objext; then
36914 ac_cv_have_u_intmax_t="yes"
36917 echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36921 ac_cv_have_u_intmax_t="no"
36926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36935 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36936 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36937 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36938 cat >>confdefs.h <<\_ACEOF
36939 #define HAVE_U_INTMAX_T 1
36945 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36946 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36947 if test "${ac_cv_have_intxx_t+set}" = set; then
36948 echo $ECHO_N "(cached) $ECHO_C" >&6
36951 cat >conftest.$ac_ext <<_ACEOF
36954 cat confdefs.h >>conftest.$ac_ext
36955 cat >>conftest.$ac_ext <<_ACEOF
36956 /* end confdefs.h. */
36958 #include <sys/types.h>
36964 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36970 rm -f conftest.$ac_objext
36971 if { (ac_try="$ac_compile"
36972 case "(($ac_try" in
36973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36974 *) ac_try_echo=$ac_try;;
36976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36977 (eval "$ac_compile") 2>conftest.er1
36979 grep -v '^ *+' conftest.er1 >conftest.err
36981 cat conftest.err >&5
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); } && {
36984 test -z "$ac_c_werror_flag" ||
36985 test ! -s conftest.err
36986 } && test -s conftest.$ac_objext; then
36988 ac_cv_have_intxx_t="yes"
36991 echo "$as_me: failed program was:" >&5
36992 sed 's/^/| /' conftest.$ac_ext >&5
36995 ac_cv_have_intxx_t="no"
37000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37004 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37005 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37006 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37007 cat >>confdefs.h <<\_ACEOF
37008 #define HAVE_INTXX_T 1
37014 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37015 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37016 if test "${ac_cv_have_int64_t+set}" = set; then
37017 echo $ECHO_N "(cached) $ECHO_C" >&6
37020 cat >conftest.$ac_ext <<_ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h. */
37027 #include <sys/types.h>
37039 rm -f conftest.$ac_objext
37040 if { (ac_try="$ac_compile"
37041 case "(($ac_try" in
37042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37043 *) ac_try_echo=$ac_try;;
37045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37046 (eval "$ac_compile") 2>conftest.er1
37048 grep -v '^ *+' conftest.er1 >conftest.err
37050 cat conftest.err >&5
37051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052 (exit $ac_status); } && {
37053 test -z "$ac_c_werror_flag" ||
37054 test ! -s conftest.err
37055 } && test -s conftest.$ac_objext; then
37057 ac_cv_have_int64_t="yes"
37060 echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37064 ac_cv_have_int64_t="no"
37069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37073 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37074 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37075 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37076 cat >>confdefs.h <<\_ACEOF
37077 #define HAVE_INT64_T 1
37083 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37084 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37085 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37086 echo $ECHO_N "(cached) $ECHO_C" >&6
37089 cat >conftest.$ac_ext <<_ACEOF
37092 cat confdefs.h >>conftest.$ac_ext
37093 cat >>conftest.$ac_ext <<_ACEOF
37094 /* end confdefs.h. */
37096 #include <sys/types.h>
37102 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37108 rm -f conftest.$ac_objext
37109 if { (ac_try="$ac_compile"
37110 case "(($ac_try" in
37111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37112 *) ac_try_echo=$ac_try;;
37114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37115 (eval "$ac_compile") 2>conftest.er1
37117 grep -v '^ *+' conftest.er1 >conftest.err
37119 cat conftest.err >&5
37120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37121 (exit $ac_status); } && {
37122 test -z "$ac_c_werror_flag" ||
37123 test ! -s conftest.err
37124 } && test -s conftest.$ac_objext; then
37126 ac_cv_have_u_intxx_t="yes"
37129 echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37133 ac_cv_have_u_intxx_t="no"
37138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37142 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37143 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37144 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37145 cat >>confdefs.h <<\_ACEOF
37146 #define HAVE_U_INTXX_T 1
37152 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37153 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37154 if test "${ac_cv_have_u_int64_t+set}" = set; then
37155 echo $ECHO_N "(cached) $ECHO_C" >&6
37158 cat >conftest.$ac_ext <<_ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h. */
37165 #include <sys/types.h>
37171 u_int64_t a; a = 1;
37177 rm -f conftest.$ac_objext
37178 if { (ac_try="$ac_compile"
37179 case "(($ac_try" in
37180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37181 *) ac_try_echo=$ac_try;;
37183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37184 (eval "$ac_compile") 2>conftest.er1
37186 grep -v '^ *+' conftest.er1 >conftest.err
37188 cat conftest.err >&5
37189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190 (exit $ac_status); } && {
37191 test -z "$ac_c_werror_flag" ||
37192 test ! -s conftest.err
37193 } && test -s conftest.$ac_objext; then
37195 ac_cv_have_u_int64_t="yes"
37198 echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37202 ac_cv_have_u_int64_t="no"
37207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37211 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37212 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37213 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37214 cat >>confdefs.h <<\_ACEOF
37215 #define HAVE_U_INT64_T 1
37221 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37222 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37224 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37225 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37226 cat >conftest.$ac_ext <<_ACEOF
37229 cat confdefs.h >>conftest.$ac_ext
37230 cat >>conftest.$ac_ext <<_ACEOF
37231 /* end confdefs.h. */
37233 #include <sys/bitypes.h>
37239 int8_t a; int16_t b; int32_t c;
37240 u_int8_t e; u_int16_t f; u_int32_t g;
37241 a = b = c = e = f = g = 1;
37247 rm -f conftest.$ac_objext
37248 if { (ac_try="$ac_compile"
37249 case "(($ac_try" in
37250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37251 *) ac_try_echo=$ac_try;;
37253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37254 (eval "$ac_compile") 2>conftest.er1
37256 grep -v '^ *+' conftest.er1 >conftest.err
37258 cat conftest.err >&5
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } && {
37261 test -z "$ac_c_werror_flag" ||
37262 test ! -s conftest.err
37263 } && test -s conftest.$ac_objext; then
37265 cat >>confdefs.h <<\_ACEOF
37266 #define HAVE_U_INTXX_T 1
37269 cat >>confdefs.h <<\_ACEOF
37270 #define HAVE_INTXX_T 1
37273 cat >>confdefs.h <<\_ACEOF
37274 #define HAVE_SYS_BITYPES_H 1
37277 { echo "$as_me:$LINENO: result: yes" >&5
37278 echo "${ECHO_T}yes" >&6; }
37281 echo "$as_me: failed program was:" >&5
37282 sed 's/^/| /' conftest.$ac_ext >&5
37285 { echo "$as_me:$LINENO: result: no" >&5
37286 echo "${ECHO_T}no" >&6; }
37291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37294 if test -z "$have_u_intxx_t" ; then
37295 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37296 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37297 if test "${ac_cv_have_uintxx_t+set}" = set; then
37298 echo $ECHO_N "(cached) $ECHO_C" >&6
37301 cat >conftest.$ac_ext <<_ACEOF
37304 cat confdefs.h >>conftest.$ac_ext
37305 cat >>conftest.$ac_ext <<_ACEOF
37306 /* end confdefs.h. */
37308 #include <sys/types.h>
37314 uint8_t a; uint16_t b;
37315 uint32_t c; a = b = c = 1;
37321 rm -f conftest.$ac_objext
37322 if { (ac_try="$ac_compile"
37323 case "(($ac_try" in
37324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37325 *) ac_try_echo=$ac_try;;
37327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37328 (eval "$ac_compile") 2>conftest.er1
37330 grep -v '^ *+' conftest.er1 >conftest.err
37332 cat conftest.err >&5
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); } && {
37335 test -z "$ac_c_werror_flag" ||
37336 test ! -s conftest.err
37337 } && test -s conftest.$ac_objext; then
37339 ac_cv_have_uintxx_t="yes"
37342 echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37346 ac_cv_have_uintxx_t="no"
37351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37355 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37356 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37357 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37358 cat >>confdefs.h <<\_ACEOF
37359 #define HAVE_UINTXX_T 1
37365 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37366 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37368 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37369 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37370 cat >conftest.$ac_ext <<_ACEOF
37373 cat confdefs.h >>conftest.$ac_ext
37374 cat >>conftest.$ac_ext <<_ACEOF
37375 /* end confdefs.h. */
37377 #include <sys/bitypes.h>
37383 int64_t a; u_int64_t b;
37390 rm -f conftest.$ac_objext
37391 if { (ac_try="$ac_compile"
37392 case "(($ac_try" in
37393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37394 *) ac_try_echo=$ac_try;;
37396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37397 (eval "$ac_compile") 2>conftest.er1
37399 grep -v '^ *+' conftest.er1 >conftest.err
37401 cat conftest.err >&5
37402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); } && {
37404 test -z "$ac_c_werror_flag" ||
37405 test ! -s conftest.err
37406 } && test -s conftest.$ac_objext; then
37408 cat >>confdefs.h <<\_ACEOF
37409 #define HAVE_U_INT64_T 1
37412 cat >>confdefs.h <<\_ACEOF
37413 #define HAVE_INT64_T 1
37416 { echo "$as_me:$LINENO: result: yes" >&5
37417 echo "${ECHO_T}yes" >&6; }
37420 echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37424 { echo "$as_me:$LINENO: result: no" >&5
37425 echo "${ECHO_T}no" >&6; }
37430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37433 if (test -z "$have_uintxx_t" && \
37434 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37436 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37437 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37438 cat >conftest.$ac_ext <<_ACEOF
37441 cat confdefs.h >>conftest.$ac_ext
37442 cat >>conftest.$ac_ext <<_ACEOF
37443 /* end confdefs.h. */
37445 #include <sys/bitypes.h>
37451 uint8_t a; uint16_t b;
37452 uint32_t c; a = b = c = 1;
37458 rm -f conftest.$ac_objext
37459 if { (ac_try="$ac_compile"
37460 case "(($ac_try" in
37461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37462 *) ac_try_echo=$ac_try;;
37464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37465 (eval "$ac_compile") 2>conftest.er1
37467 grep -v '^ *+' conftest.er1 >conftest.err
37469 cat conftest.err >&5
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); } && {
37472 test -z "$ac_c_werror_flag" ||
37473 test ! -s conftest.err
37474 } && test -s conftest.$ac_objext; then
37476 cat >>confdefs.h <<\_ACEOF
37477 #define HAVE_UINTXX_T 1
37480 { echo "$as_me:$LINENO: result: yes" >&5
37481 echo "${ECHO_T}yes" >&6; }
37484 echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37488 { echo "$as_me:$LINENO: result: no" >&5
37489 echo "${ECHO_T}no" >&6; }
37494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37530 echo $ECHO_N "(cached) $ECHO_C" >&6
37532 cat >conftest.$ac_ext <<_ACEOF
37535 cat confdefs.h >>conftest.$ac_ext
37536 cat >>conftest.$ac_ext <<_ACEOF
37537 /* end confdefs.h. */
37538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37540 #define $ac_func innocuous_$ac_func
37542 /* System header to define __stub macros and hopefully few prototypes,
37543 which can conflict with char $ac_func (); below.
37544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37545 <limits.h> exists even on freestanding compilers. */
37548 # include <limits.h>
37550 # include <assert.h>
37555 /* Override any GCC internal prototype to avoid an error.
37556 Use char because int might match the return type of a GCC
37557 builtin and then its argument prototype would still apply. */
37562 /* The GNU C library defines this for functions which it implements
37563 to always fail with ENOSYS. Some functions are actually named
37564 something starting with __ and the normal name is an alias. */
37565 #if defined __stub_$ac_func || defined __stub___$ac_func
37572 return $ac_func ();
37577 rm -f conftest.$ac_objext conftest$ac_exeext
37578 if { (ac_try="$ac_link"
37579 case "(($ac_try" in
37580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37581 *) ac_try_echo=$ac_try;;
37583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37584 (eval "$ac_link") 2>conftest.er1
37586 grep -v '^ *+' conftest.er1 >conftest.err
37588 cat conftest.err >&5
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); } && {
37591 test -z "$ac_c_werror_flag" ||
37592 test ! -s conftest.err
37593 } && test -s conftest$ac_exeext &&
37594 $as_test_x conftest$ac_exeext; then
37595 eval "$as_ac_var=yes"
37597 echo "$as_me: failed program was:" >&5
37598 sed 's/^/| /' conftest.$ac_ext >&5
37600 eval "$as_ac_var=no"
37603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37604 conftest$ac_exeext conftest.$ac_ext
37606 ac_res=`eval echo '${'$as_ac_var'}'`
37607 { echo "$as_me:$LINENO: result: $ac_res" >&5
37608 echo "${ECHO_T}$ac_res" >&6; }
37609 if test `eval echo '${'$as_ac_var'}'` = yes; then
37610 cat >>confdefs.h <<_ACEOF
37611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37615 echo 'configure: cannot find needed function.'; exit 1
37622 for ac_func in fchdir
37624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37628 echo $ECHO_N "(cached) $ECHO_C" >&6
37630 cat >conftest.$ac_ext <<_ACEOF
37633 cat confdefs.h >>conftest.$ac_ext
37634 cat >>conftest.$ac_ext <<_ACEOF
37635 /* end confdefs.h. */
37636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37638 #define $ac_func innocuous_$ac_func
37640 /* System header to define __stub macros and hopefully few prototypes,
37641 which can conflict with char $ac_func (); below.
37642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37643 <limits.h> exists even on freestanding compilers. */
37646 # include <limits.h>
37648 # include <assert.h>
37653 /* Override any GCC internal prototype to avoid an error.
37654 Use char because int might match the return type of a GCC
37655 builtin and then its argument prototype would still apply. */
37660 /* The GNU C library defines this for functions which it implements
37661 to always fail with ENOSYS. Some functions are actually named
37662 something starting with __ and the normal name is an alias. */
37663 #if defined __stub_$ac_func || defined __stub___$ac_func
37670 return $ac_func ();
37675 rm -f conftest.$ac_objext conftest$ac_exeext
37676 if { (ac_try="$ac_link"
37677 case "(($ac_try" in
37678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37679 *) ac_try_echo=$ac_try;;
37681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37682 (eval "$ac_link") 2>conftest.er1
37684 grep -v '^ *+' conftest.er1 >conftest.err
37686 cat conftest.err >&5
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); } && {
37689 test -z "$ac_c_werror_flag" ||
37690 test ! -s conftest.err
37691 } && test -s conftest$ac_exeext &&
37692 $as_test_x conftest$ac_exeext; then
37693 eval "$as_ac_var=yes"
37695 echo "$as_me: failed program was:" >&5
37696 sed 's/^/| /' conftest.$ac_ext >&5
37698 eval "$as_ac_var=no"
37701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37702 conftest$ac_exeext conftest.$ac_ext
37704 ac_res=`eval echo '${'$as_ac_var'}'`
37705 { echo "$as_me:$LINENO: result: $ac_res" >&5
37706 echo "${ECHO_T}$ac_res" >&6; }
37707 if test `eval echo '${'$as_ac_var'}'` = yes; then
37708 cat >>confdefs.h <<_ACEOF
37709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37711 cat >>confdefs.h <<\_ACEOF
37712 #define HAVE_FCHDIR 1
37719 for ac_func in strtoll
37721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37725 echo $ECHO_N "(cached) $ECHO_C" >&6
37727 cat >conftest.$ac_ext <<_ACEOF
37730 cat confdefs.h >>conftest.$ac_ext
37731 cat >>conftest.$ac_ext <<_ACEOF
37732 /* end confdefs.h. */
37733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37735 #define $ac_func innocuous_$ac_func
37737 /* System header to define __stub macros and hopefully few prototypes,
37738 which can conflict with char $ac_func (); below.
37739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37740 <limits.h> exists even on freestanding compilers. */
37743 # include <limits.h>
37745 # include <assert.h>
37750 /* Override any GCC internal prototype to avoid an error.
37751 Use char because int might match the return type of a GCC
37752 builtin and then its argument prototype would still apply. */
37757 /* The GNU C library defines this for functions which it implements
37758 to always fail with ENOSYS. Some functions are actually named
37759 something starting with __ and the normal name is an alias. */
37760 #if defined __stub_$ac_func || defined __stub___$ac_func
37767 return $ac_func ();
37772 rm -f conftest.$ac_objext conftest$ac_exeext
37773 if { (ac_try="$ac_link"
37774 case "(($ac_try" in
37775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37776 *) ac_try_echo=$ac_try;;
37778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37779 (eval "$ac_link") 2>conftest.er1
37781 grep -v '^ *+' conftest.er1 >conftest.err
37783 cat conftest.err >&5
37784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785 (exit $ac_status); } && {
37786 test -z "$ac_c_werror_flag" ||
37787 test ! -s conftest.err
37788 } && test -s conftest$ac_exeext &&
37789 $as_test_x conftest$ac_exeext; then
37790 eval "$as_ac_var=yes"
37792 echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37795 eval "$as_ac_var=no"
37798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37799 conftest$ac_exeext conftest.$ac_ext
37801 ac_res=`eval echo '${'$as_ac_var'}'`
37802 { echo "$as_me:$LINENO: result: $ac_res" >&5
37803 echo "${ECHO_T}$ac_res" >&6; }
37804 if test `eval echo '${'$as_ac_var'}'` = yes; then
37805 cat >>confdefs.h <<_ACEOF
37806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37808 cat >>confdefs.h <<\_ACEOF
37809 #define HAVE_STRTOLL 1
37816 for ac_func in posix_fadvise
37818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37824 cat >conftest.$ac_ext <<_ACEOF
37827 cat confdefs.h >>conftest.$ac_ext
37828 cat >>conftest.$ac_ext <<_ACEOF
37829 /* end confdefs.h. */
37830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37832 #define $ac_func innocuous_$ac_func
37834 /* System header to define __stub macros and hopefully few prototypes,
37835 which can conflict with char $ac_func (); below.
37836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37837 <limits.h> exists even on freestanding compilers. */
37840 # include <limits.h>
37842 # include <assert.h>
37847 /* Override any GCC internal prototype to avoid an error.
37848 Use char because int might match the return type of a GCC
37849 builtin and then its argument prototype would still apply. */
37854 /* The GNU C library defines this for functions which it implements
37855 to always fail with ENOSYS. Some functions are actually named
37856 something starting with __ and the normal name is an alias. */
37857 #if defined __stub_$ac_func || defined __stub___$ac_func
37864 return $ac_func ();
37869 rm -f conftest.$ac_objext conftest$ac_exeext
37870 if { (ac_try="$ac_link"
37871 case "(($ac_try" in
37872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37873 *) ac_try_echo=$ac_try;;
37875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37876 (eval "$ac_link") 2>conftest.er1
37878 grep -v '^ *+' conftest.er1 >conftest.err
37880 cat conftest.err >&5
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); } && {
37883 test -z "$ac_c_werror_flag" ||
37884 test ! -s conftest.err
37885 } && test -s conftest$ac_exeext &&
37886 $as_test_x conftest$ac_exeext; then
37887 eval "$as_ac_var=yes"
37889 echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37892 eval "$as_ac_var=no"
37895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37896 conftest$ac_exeext conftest.$ac_ext
37898 ac_res=`eval echo '${'$as_ac_var'}'`
37899 { echo "$as_me:$LINENO: result: $ac_res" >&5
37900 echo "${ECHO_T}$ac_res" >&6; }
37901 if test `eval echo '${'$as_ac_var'}'` = yes; then
37902 cat >>confdefs.h <<_ACEOF
37903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37910 for ac_func in fdatasync
37912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37916 echo $ECHO_N "(cached) $ECHO_C" >&6
37918 cat >conftest.$ac_ext <<_ACEOF
37921 cat confdefs.h >>conftest.$ac_ext
37922 cat >>conftest.$ac_ext <<_ACEOF
37923 /* end confdefs.h. */
37924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37926 #define $ac_func innocuous_$ac_func
37928 /* System header to define __stub macros and hopefully few prototypes,
37929 which can conflict with char $ac_func (); below.
37930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37931 <limits.h> exists even on freestanding compilers. */
37934 # include <limits.h>
37936 # include <assert.h>
37941 /* Override any GCC internal prototype to avoid an error.
37942 Use char because int might match the return type of a GCC
37943 builtin and then its argument prototype would still apply. */
37948 /* The GNU C library defines this for functions which it implements
37949 to always fail with ENOSYS. Some functions are actually named
37950 something starting with __ and the normal name is an alias. */
37951 #if defined __stub_$ac_func || defined __stub___$ac_func
37958 return $ac_func ();
37963 rm -f conftest.$ac_objext conftest$ac_exeext
37964 if { (ac_try="$ac_link"
37965 case "(($ac_try" in
37966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37967 *) ac_try_echo=$ac_try;;
37969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37970 (eval "$ac_link") 2>conftest.er1
37972 grep -v '^ *+' conftest.er1 >conftest.err
37974 cat conftest.err >&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); } && {
37977 test -z "$ac_c_werror_flag" ||
37978 test ! -s conftest.err
37979 } && test -s conftest$ac_exeext &&
37980 $as_test_x conftest$ac_exeext; then
37981 eval "$as_ac_var=yes"
37983 echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37986 eval "$as_ac_var=no"
37989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37990 conftest$ac_exeext conftest.$ac_ext
37992 ac_res=`eval echo '${'$as_ac_var'}'`
37993 { echo "$as_me:$LINENO: result: $ac_res" >&5
37994 echo "${ECHO_T}$ac_res" >&6; }
37995 if test `eval echo '${'$as_ac_var'}'` = yes; then
37996 cat >>confdefs.h <<_ACEOF
37997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38005 for ac_func in chflags
38007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38011 echo $ECHO_N "(cached) $ECHO_C" >&6
38013 cat >conftest.$ac_ext <<_ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h. */
38019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38021 #define $ac_func innocuous_$ac_func
38023 /* System header to define __stub macros and hopefully few prototypes,
38024 which can conflict with char $ac_func (); below.
38025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38026 <limits.h> exists even on freestanding compilers. */
38029 # include <limits.h>
38031 # include <assert.h>
38036 /* Override any GCC internal prototype to avoid an error.
38037 Use char because int might match the return type of a GCC
38038 builtin and then its argument prototype would still apply. */
38043 /* The GNU C library defines this for functions which it implements
38044 to always fail with ENOSYS. Some functions are actually named
38045 something starting with __ and the normal name is an alias. */
38046 #if defined __stub_$ac_func || defined __stub___$ac_func
38053 return $ac_func ();
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (ac_try="$ac_link"
38060 case "(($ac_try" in
38061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062 *) ac_try_echo=$ac_try;;
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065 (eval "$ac_link") 2>conftest.er1
38067 grep -v '^ *+' conftest.er1 >conftest.err
38069 cat conftest.err >&5
38070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071 (exit $ac_status); } && {
38072 test -z "$ac_c_werror_flag" ||
38073 test ! -s conftest.err
38074 } && test -s conftest$ac_exeext &&
38075 $as_test_x conftest$ac_exeext; then
38076 eval "$as_ac_var=yes"
38078 echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38081 eval "$as_ac_var=no"
38084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38085 conftest$ac_exeext conftest.$ac_ext
38087 ac_res=`eval echo '${'$as_ac_var'}'`
38088 { echo "$as_me:$LINENO: result: $ac_res" >&5
38089 echo "${ECHO_T}$ac_res" >&6; }
38090 if test `eval echo '${'$as_ac_var'}'` = yes; then
38091 cat >>confdefs.h <<_ACEOF
38092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38103 for ac_func in snprintf vsnprintf gethostid fseeko
38105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38109 echo $ECHO_N "(cached) $ECHO_C" >&6
38111 cat >conftest.$ac_ext <<_ACEOF
38114 cat confdefs.h >>conftest.$ac_ext
38115 cat >>conftest.$ac_ext <<_ACEOF
38116 /* end confdefs.h. */
38117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38119 #define $ac_func innocuous_$ac_func
38121 /* System header to define __stub macros and hopefully few prototypes,
38122 which can conflict with char $ac_func (); below.
38123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38124 <limits.h> exists even on freestanding compilers. */
38127 # include <limits.h>
38129 # include <assert.h>
38134 /* Override any GCC internal prototype to avoid an error.
38135 Use char because int might match the return type of a GCC
38136 builtin and then its argument prototype would still apply. */
38141 /* The GNU C library defines this for functions which it implements
38142 to always fail with ENOSYS. Some functions are actually named
38143 something starting with __ and the normal name is an alias. */
38144 #if defined __stub_$ac_func || defined __stub___$ac_func
38151 return $ac_func ();
38156 rm -f conftest.$ac_objext conftest$ac_exeext
38157 if { (ac_try="$ac_link"
38158 case "(($ac_try" in
38159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38160 *) ac_try_echo=$ac_try;;
38162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38163 (eval "$ac_link") 2>conftest.er1
38165 grep -v '^ *+' conftest.er1 >conftest.err
38167 cat conftest.err >&5
38168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); } && {
38170 test -z "$ac_c_werror_flag" ||
38171 test ! -s conftest.err
38172 } && test -s conftest$ac_exeext &&
38173 $as_test_x conftest$ac_exeext; then
38174 eval "$as_ac_var=yes"
38176 echo "$as_me: failed program was:" >&5
38177 sed 's/^/| /' conftest.$ac_ext >&5
38179 eval "$as_ac_var=no"
38182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38183 conftest$ac_exeext conftest.$ac_ext
38185 ac_res=`eval echo '${'$as_ac_var'}'`
38186 { echo "$as_me:$LINENO: result: $ac_res" >&5
38187 echo "${ECHO_T}$ac_res" >&6; }
38188 if test `eval echo '${'$as_ac_var'}'` = yes; then
38189 cat >>confdefs.h <<_ACEOF
38190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38197 { echo "$as_me:$LINENO: checking for va_copy" >&5
38198 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38199 if test "${ba_cv_va_copy+set}" = set; then
38200 echo $ECHO_N "(cached) $ECHO_C" >&6
38203 cat >conftest.$ac_ext <<_ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h. */
38210 #include <stdarg.h>
38211 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38212 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38218 call_use_va_copy(1,2,3)
38224 rm -f conftest.$ac_objext conftest$ac_exeext
38225 if { (ac_try="$ac_link"
38226 case "(($ac_try" in
38227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38228 *) ac_try_echo=$ac_try;;
38230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38231 (eval "$ac_link") 2>conftest.er1
38233 grep -v '^ *+' conftest.er1 >conftest.err
38235 cat conftest.err >&5
38236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237 (exit $ac_status); } && {
38238 test -z "$ac_c_werror_flag" ||
38239 test ! -s conftest.err
38240 } && test -s conftest$ac_exeext &&
38241 $as_test_x conftest$ac_exeext; then
38246 echo "$as_me: failed program was:" >&5
38247 sed 's/^/| /' conftest.$ac_ext >&5
38255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38256 conftest$ac_exeext conftest.$ac_ext
38260 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38261 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38262 test $ba_cv_va_copy = yes &&
38263 cat >>confdefs.h <<\_ACEOF
38264 #define HAVE_VA_COPY 1
38272 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38278 echo $ECHO_N "(cached) $ECHO_C" >&6
38280 cat >conftest.$ac_ext <<_ACEOF
38283 cat confdefs.h >>conftest.$ac_ext
38284 cat >>conftest.$ac_ext <<_ACEOF
38285 /* end confdefs.h. */
38286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38288 #define $ac_func innocuous_$ac_func
38290 /* System header to define __stub macros and hopefully few prototypes,
38291 which can conflict with char $ac_func (); below.
38292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38293 <limits.h> exists even on freestanding compilers. */
38296 # include <limits.h>
38298 # include <assert.h>
38303 /* Override any GCC internal prototype to avoid an error.
38304 Use char because int might match the return type of a GCC
38305 builtin and then its argument prototype would still apply. */
38310 /* The GNU C library defines this for functions which it implements
38311 to always fail with ENOSYS. Some functions are actually named
38312 something starting with __ and the normal name is an alias. */
38313 #if defined __stub_$ac_func || defined __stub___$ac_func
38320 return $ac_func ();
38325 rm -f conftest.$ac_objext conftest$ac_exeext
38326 if { (ac_try="$ac_link"
38327 case "(($ac_try" in
38328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38329 *) ac_try_echo=$ac_try;;
38331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38332 (eval "$ac_link") 2>conftest.er1
38334 grep -v '^ *+' conftest.er1 >conftest.err
38336 cat conftest.err >&5
38337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38338 (exit $ac_status); } && {
38339 test -z "$ac_c_werror_flag" ||
38340 test ! -s conftest.err
38341 } && test -s conftest$ac_exeext &&
38342 $as_test_x conftest$ac_exeext; then
38343 eval "$as_ac_var=yes"
38345 echo "$as_me: failed program was:" >&5
38346 sed 's/^/| /' conftest.$ac_ext >&5
38348 eval "$as_ac_var=no"
38351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38352 conftest$ac_exeext conftest.$ac_ext
38354 ac_res=`eval echo '${'$as_ac_var'}'`
38355 { echo "$as_me:$LINENO: result: $ac_res" >&5
38356 echo "${ECHO_T}$ac_res" >&6; }
38357 if test `eval echo '${'$as_ac_var'}'` = yes; then
38358 cat >>confdefs.h <<_ACEOF
38359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38366 # If resolver functions are not in libc check for -lnsl or -lresolv.
38367 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38368 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38369 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38370 echo $ECHO_N "(cached) $ECHO_C" >&6
38372 cat >conftest.$ac_ext <<_ACEOF
38375 cat confdefs.h >>conftest.$ac_ext
38376 cat >>conftest.$ac_ext <<_ACEOF
38377 /* end confdefs.h. */
38378 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38380 #define gethostbyname_r innocuous_gethostbyname_r
38382 /* System header to define __stub macros and hopefully few prototypes,
38383 which can conflict with char gethostbyname_r (); below.
38384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38385 <limits.h> exists even on freestanding compilers. */
38388 # include <limits.h>
38390 # include <assert.h>
38393 #undef gethostbyname_r
38395 /* Override any GCC internal prototype to avoid an error.
38396 Use char because int might match the return type of a GCC
38397 builtin and then its argument prototype would still apply. */
38401 char gethostbyname_r ();
38402 /* The GNU C library defines this for functions which it implements
38403 to always fail with ENOSYS. Some functions are actually named
38404 something starting with __ and the normal name is an alias. */
38405 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38412 return gethostbyname_r ();
38417 rm -f conftest.$ac_objext conftest$ac_exeext
38418 if { (ac_try="$ac_link"
38419 case "(($ac_try" in
38420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38421 *) ac_try_echo=$ac_try;;
38423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38424 (eval "$ac_link") 2>conftest.er1
38426 grep -v '^ *+' conftest.er1 >conftest.err
38428 cat conftest.err >&5
38429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430 (exit $ac_status); } && {
38431 test -z "$ac_c_werror_flag" ||
38432 test ! -s conftest.err
38433 } && test -s conftest$ac_exeext &&
38434 $as_test_x conftest$ac_exeext; then
38435 ac_cv_func_gethostbyname_r=yes
38437 echo "$as_me: failed program was:" >&5
38438 sed 's/^/| /' conftest.$ac_ext >&5
38440 ac_cv_func_gethostbyname_r=no
38443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38444 conftest$ac_exeext conftest.$ac_ext
38446 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38447 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38448 if test $ac_cv_func_gethostbyname_r = yes; then
38449 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38450 echo "${ECHO_T}using libc's resolver" >&6; }
38453 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38454 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38455 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38456 echo $ECHO_N "(cached) $ECHO_C" >&6
38458 ac_check_lib_save_LIBS=$LIBS
38460 cat >conftest.$ac_ext <<_ACEOF
38463 cat confdefs.h >>conftest.$ac_ext
38464 cat >>conftest.$ac_ext <<_ACEOF
38465 /* end confdefs.h. */
38467 /* Override any GCC internal prototype to avoid an error.
38468 Use char because int might match the return type of a GCC
38469 builtin and then its argument prototype would still apply. */
38473 char gethostbyname_r ();
38477 return gethostbyname_r ();
38482 rm -f conftest.$ac_objext conftest$ac_exeext
38483 if { (ac_try="$ac_link"
38484 case "(($ac_try" in
38485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38486 *) ac_try_echo=$ac_try;;
38488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38489 (eval "$ac_link") 2>conftest.er1
38491 grep -v '^ *+' conftest.er1 >conftest.err
38493 cat conftest.err >&5
38494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38495 (exit $ac_status); } && {
38496 test -z "$ac_c_werror_flag" ||
38497 test ! -s conftest.err
38498 } && test -s conftest$ac_exeext &&
38499 $as_test_x conftest$ac_exeext; then
38500 ac_cv_lib_nsl_gethostbyname_r=yes
38502 echo "$as_me: failed program was:" >&5
38503 sed 's/^/| /' conftest.$ac_ext >&5
38505 ac_cv_lib_nsl_gethostbyname_r=no
38508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38509 conftest$ac_exeext conftest.$ac_ext
38510 LIBS=$ac_check_lib_save_LIBS
38512 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38513 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38514 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38515 cat >>confdefs.h <<_ACEOF
38516 #define HAVE_LIBNSL 1
38524 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38525 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38526 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38527 echo $ECHO_N "(cached) $ECHO_C" >&6
38529 ac_check_lib_save_LIBS=$LIBS
38530 LIBS="-lresolv $LIBS"
38531 cat >conftest.$ac_ext <<_ACEOF
38534 cat confdefs.h >>conftest.$ac_ext
38535 cat >>conftest.$ac_ext <<_ACEOF
38536 /* end confdefs.h. */
38538 /* Override any GCC internal prototype to avoid an error.
38539 Use char because int might match the return type of a GCC
38540 builtin and then its argument prototype would still apply. */
38544 char gethostbyname_r ();
38548 return gethostbyname_r ();
38553 rm -f conftest.$ac_objext conftest$ac_exeext
38554 if { (ac_try="$ac_link"
38555 case "(($ac_try" in
38556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38557 *) ac_try_echo=$ac_try;;
38559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38560 (eval "$ac_link") 2>conftest.er1
38562 grep -v '^ *+' conftest.er1 >conftest.err
38564 cat conftest.err >&5
38565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566 (exit $ac_status); } && {
38567 test -z "$ac_c_werror_flag" ||
38568 test ! -s conftest.err
38569 } && test -s conftest$ac_exeext &&
38570 $as_test_x conftest$ac_exeext; then
38571 ac_cv_lib_resolv_gethostbyname_r=yes
38573 echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38576 ac_cv_lib_resolv_gethostbyname_r=no
38579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38580 conftest$ac_exeext conftest.$ac_ext
38581 LIBS=$ac_check_lib_save_LIBS
38583 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38584 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38585 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38586 cat >>confdefs.h <<_ACEOF
38587 #define HAVE_LIBRESOLV 1
38590 LIBS="-lresolv $LIBS"
38598 for ac_func in inet_pton
38600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38604 echo $ECHO_N "(cached) $ECHO_C" >&6
38606 cat >conftest.$ac_ext <<_ACEOF
38609 cat confdefs.h >>conftest.$ac_ext
38610 cat >>conftest.$ac_ext <<_ACEOF
38611 /* end confdefs.h. */
38612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38614 #define $ac_func innocuous_$ac_func
38616 /* System header to define __stub macros and hopefully few prototypes,
38617 which can conflict with char $ac_func (); below.
38618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38619 <limits.h> exists even on freestanding compilers. */
38622 # include <limits.h>
38624 # include <assert.h>
38629 /* Override any GCC internal prototype to avoid an error.
38630 Use char because int might match the return type of a GCC
38631 builtin and then its argument prototype would still apply. */
38636 /* The GNU C library defines this for functions which it implements
38637 to always fail with ENOSYS. Some functions are actually named
38638 something starting with __ and the normal name is an alias. */
38639 #if defined __stub_$ac_func || defined __stub___$ac_func
38646 return $ac_func ();
38651 rm -f conftest.$ac_objext conftest$ac_exeext
38652 if { (ac_try="$ac_link"
38653 case "(($ac_try" in
38654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655 *) ac_try_echo=$ac_try;;
38657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658 (eval "$ac_link") 2>conftest.er1
38660 grep -v '^ *+' conftest.er1 >conftest.err
38662 cat conftest.err >&5
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); } && {
38665 test -z "$ac_c_werror_flag" ||
38666 test ! -s conftest.err
38667 } && test -s conftest$ac_exeext &&
38668 $as_test_x conftest$ac_exeext; then
38669 eval "$as_ac_var=yes"
38671 echo "$as_me: failed program was:" >&5
38672 sed 's/^/| /' conftest.$ac_ext >&5
38674 eval "$as_ac_var=no"
38677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38678 conftest$ac_exeext conftest.$ac_ext
38680 ac_res=`eval echo '${'$as_ac_var'}'`
38681 { echo "$as_me:$LINENO: result: $ac_res" >&5
38682 echo "${ECHO_T}$ac_res" >&6; }
38683 if test `eval echo '${'$as_ac_var'}'` = yes; then
38684 cat >>confdefs.h <<_ACEOF
38685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38687 cat >>confdefs.h <<\_ACEOF
38688 #define HAVE_INET_PTON 1
38695 for ac_func in inet_ntop
38697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38701 echo $ECHO_N "(cached) $ECHO_C" >&6
38703 cat >conftest.$ac_ext <<_ACEOF
38706 cat confdefs.h >>conftest.$ac_ext
38707 cat >>conftest.$ac_ext <<_ACEOF
38708 /* end confdefs.h. */
38709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38711 #define $ac_func innocuous_$ac_func
38713 /* System header to define __stub macros and hopefully few prototypes,
38714 which can conflict with char $ac_func (); below.
38715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38716 <limits.h> exists even on freestanding compilers. */
38719 # include <limits.h>
38721 # include <assert.h>
38726 /* Override any GCC internal prototype to avoid an error.
38727 Use char because int might match the return type of a GCC
38728 builtin and then its argument prototype would still apply. */
38733 /* The GNU C library defines this for functions which it implements
38734 to always fail with ENOSYS. Some functions are actually named
38735 something starting with __ and the normal name is an alias. */
38736 #if defined __stub_$ac_func || defined __stub___$ac_func
38743 return $ac_func ();
38748 rm -f conftest.$ac_objext conftest$ac_exeext
38749 if { (ac_try="$ac_link"
38750 case "(($ac_try" in
38751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752 *) ac_try_echo=$ac_try;;
38754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38755 (eval "$ac_link") 2>conftest.er1
38757 grep -v '^ *+' conftest.er1 >conftest.err
38759 cat conftest.err >&5
38760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761 (exit $ac_status); } && {
38762 test -z "$ac_c_werror_flag" ||
38763 test ! -s conftest.err
38764 } && test -s conftest$ac_exeext &&
38765 $as_test_x conftest$ac_exeext; then
38766 eval "$as_ac_var=yes"
38768 echo "$as_me: failed program was:" >&5
38769 sed 's/^/| /' conftest.$ac_ext >&5
38771 eval "$as_ac_var=no"
38774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38775 conftest$ac_exeext conftest.$ac_ext
38777 ac_res=`eval echo '${'$as_ac_var'}'`
38778 { echo "$as_me:$LINENO: result: $ac_res" >&5
38779 echo "${ECHO_T}$ac_res" >&6; }
38780 if test `eval echo '${'$as_ac_var'}'` = yes; then
38781 cat >>confdefs.h <<_ACEOF
38782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38784 cat >>confdefs.h <<\_ACEOF
38785 #define HAVE_INET_NTOP 1
38792 for ac_func in gethostbyname2
38794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38798 echo $ECHO_N "(cached) $ECHO_C" >&6
38800 cat >conftest.$ac_ext <<_ACEOF
38803 cat confdefs.h >>conftest.$ac_ext
38804 cat >>conftest.$ac_ext <<_ACEOF
38805 /* end confdefs.h. */
38806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38808 #define $ac_func innocuous_$ac_func
38810 /* System header to define __stub macros and hopefully few prototypes,
38811 which can conflict with char $ac_func (); below.
38812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38813 <limits.h> exists even on freestanding compilers. */
38816 # include <limits.h>
38818 # include <assert.h>
38823 /* Override any GCC internal prototype to avoid an error.
38824 Use char because int might match the return type of a GCC
38825 builtin and then its argument prototype would still apply. */
38830 /* The GNU C library defines this for functions which it implements
38831 to always fail with ENOSYS. Some functions are actually named
38832 something starting with __ and the normal name is an alias. */
38833 #if defined __stub_$ac_func || defined __stub___$ac_func
38840 return $ac_func ();
38845 rm -f conftest.$ac_objext conftest$ac_exeext
38846 if { (ac_try="$ac_link"
38847 case "(($ac_try" in
38848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38849 *) ac_try_echo=$ac_try;;
38851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38852 (eval "$ac_link") 2>conftest.er1
38854 grep -v '^ *+' conftest.er1 >conftest.err
38856 cat conftest.err >&5
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); } && {
38859 test -z "$ac_c_werror_flag" ||
38860 test ! -s conftest.err
38861 } && test -s conftest$ac_exeext &&
38862 $as_test_x conftest$ac_exeext; then
38863 eval "$as_ac_var=yes"
38865 echo "$as_me: failed program was:" >&5
38866 sed 's/^/| /' conftest.$ac_ext >&5
38868 eval "$as_ac_var=no"
38871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38872 conftest$ac_exeext conftest.$ac_ext
38874 ac_res=`eval echo '${'$as_ac_var'}'`
38875 { echo "$as_me:$LINENO: result: $ac_res" >&5
38876 echo "${ECHO_T}$ac_res" >&6; }
38877 if test `eval echo '${'$as_ac_var'}'` = yes; then
38878 cat >>confdefs.h <<_ACEOF
38879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38881 cat >>confdefs.h <<\_ACEOF
38882 #define HAVE_GETHOSTBYNAME2 1
38889 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38890 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38891 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38892 echo $ECHO_N "(cached) $ECHO_C" >&6
38895 cat >conftest.$ac_ext <<_ACEOF
38898 cat confdefs.h >>conftest.$ac_ext
38899 cat >>conftest.$ac_ext <<_ACEOF
38900 /* end confdefs.h. */
38902 #include <sys/socket.h>
38908 struct sockaddr s; s.sa_len;
38914 rm -f conftest.$ac_objext
38915 if { (ac_try="$ac_compile"
38916 case "(($ac_try" in
38917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38918 *) ac_try_echo=$ac_try;;
38920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38921 (eval "$ac_compile") 2>conftest.er1
38923 grep -v '^ *+' conftest.er1 >conftest.err
38925 cat conftest.err >&5
38926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38927 (exit $ac_status); } && {
38928 test -z "$ac_c_werror_flag" ||
38929 test ! -s conftest.err
38930 } && test -s conftest.$ac_objext; then
38932 ac_cv_struct_sockaddr_sa_len=yes
38935 echo "$as_me: failed program was:" >&5
38936 sed 's/^/| /' conftest.$ac_ext >&5
38938 ac_cv_struct_sockaddr_sa_len=no
38943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38947 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38948 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38950 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38952 cat >>confdefs.h <<\_ACEOF
38953 #define HAVE_SA_LEN 1
38959 for ac_func in strftime
38961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38965 echo $ECHO_N "(cached) $ECHO_C" >&6
38967 cat >conftest.$ac_ext <<_ACEOF
38970 cat confdefs.h >>conftest.$ac_ext
38971 cat >>conftest.$ac_ext <<_ACEOF
38972 /* end confdefs.h. */
38973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38975 #define $ac_func innocuous_$ac_func
38977 /* System header to define __stub macros and hopefully few prototypes,
38978 which can conflict with char $ac_func (); below.
38979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38980 <limits.h> exists even on freestanding compilers. */
38983 # include <limits.h>
38985 # include <assert.h>
38990 /* Override any GCC internal prototype to avoid an error.
38991 Use char because int might match the return type of a GCC
38992 builtin and then its argument prototype would still apply. */
38997 /* The GNU C library defines this for functions which it implements
38998 to always fail with ENOSYS. Some functions are actually named
38999 something starting with __ and the normal name is an alias. */
39000 #if defined __stub_$ac_func || defined __stub___$ac_func
39007 return $ac_func ();
39012 rm -f conftest.$ac_objext conftest$ac_exeext
39013 if { (ac_try="$ac_link"
39014 case "(($ac_try" in
39015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39016 *) ac_try_echo=$ac_try;;
39018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39019 (eval "$ac_link") 2>conftest.er1
39021 grep -v '^ *+' conftest.er1 >conftest.err
39023 cat conftest.err >&5
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); } && {
39026 test -z "$ac_c_werror_flag" ||
39027 test ! -s conftest.err
39028 } && test -s conftest$ac_exeext &&
39029 $as_test_x conftest$ac_exeext; then
39030 eval "$as_ac_var=yes"
39032 echo "$as_me: failed program was:" >&5
39033 sed 's/^/| /' conftest.$ac_ext >&5
39035 eval "$as_ac_var=no"
39038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39039 conftest$ac_exeext conftest.$ac_ext
39041 ac_res=`eval echo '${'$as_ac_var'}'`
39042 { echo "$as_me:$LINENO: result: $ac_res" >&5
39043 echo "${ECHO_T}$ac_res" >&6; }
39044 if test `eval echo '${'$as_ac_var'}'` = yes; then
39045 cat >>confdefs.h <<_ACEOF
39046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39050 # strftime is in -lintl on SCO UNIX.
39051 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39052 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39053 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39054 echo $ECHO_N "(cached) $ECHO_C" >&6
39056 ac_check_lib_save_LIBS=$LIBS
39057 LIBS="-lintl $LIBS"
39058 cat >conftest.$ac_ext <<_ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h. */
39065 /* Override any GCC internal prototype to avoid an error.
39066 Use char because int might match the return type of a GCC
39067 builtin and then its argument prototype would still apply. */
39075 return strftime ();
39080 rm -f conftest.$ac_objext conftest$ac_exeext
39081 if { (ac_try="$ac_link"
39082 case "(($ac_try" in
39083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39084 *) ac_try_echo=$ac_try;;
39086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39087 (eval "$ac_link") 2>conftest.er1
39089 grep -v '^ *+' conftest.er1 >conftest.err
39091 cat conftest.err >&5
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); } && {
39094 test -z "$ac_c_werror_flag" ||
39095 test ! -s conftest.err
39096 } && test -s conftest$ac_exeext &&
39097 $as_test_x conftest$ac_exeext; then
39098 ac_cv_lib_intl_strftime=yes
39100 echo "$as_me: failed program was:" >&5
39101 sed 's/^/| /' conftest.$ac_ext >&5
39103 ac_cv_lib_intl_strftime=no
39106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39107 conftest$ac_exeext conftest.$ac_ext
39108 LIBS=$ac_check_lib_save_LIBS
39110 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39111 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39112 if test $ac_cv_lib_intl_strftime = yes; then
39113 cat >>confdefs.h <<\_ACEOF
39114 #define HAVE_STRFTIME 1
39117 LIBS="-lintl $LIBS"
39124 for ac_func in vprintf
39126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39130 echo $ECHO_N "(cached) $ECHO_C" >&6
39132 cat >conftest.$ac_ext <<_ACEOF
39135 cat confdefs.h >>conftest.$ac_ext
39136 cat >>conftest.$ac_ext <<_ACEOF
39137 /* end confdefs.h. */
39138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39140 #define $ac_func innocuous_$ac_func
39142 /* System header to define __stub macros and hopefully few prototypes,
39143 which can conflict with char $ac_func (); below.
39144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39145 <limits.h> exists even on freestanding compilers. */
39148 # include <limits.h>
39150 # include <assert.h>
39155 /* Override any GCC internal prototype to avoid an error.
39156 Use char because int might match the return type of a GCC
39157 builtin and then its argument prototype would still apply. */
39162 /* The GNU C library defines this for functions which it implements
39163 to always fail with ENOSYS. Some functions are actually named
39164 something starting with __ and the normal name is an alias. */
39165 #if defined __stub_$ac_func || defined __stub___$ac_func
39172 return $ac_func ();
39177 rm -f conftest.$ac_objext conftest$ac_exeext
39178 if { (ac_try="$ac_link"
39179 case "(($ac_try" in
39180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39181 *) ac_try_echo=$ac_try;;
39183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39184 (eval "$ac_link") 2>conftest.er1
39186 grep -v '^ *+' conftest.er1 >conftest.err
39188 cat conftest.err >&5
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); } && {
39191 test -z "$ac_c_werror_flag" ||
39192 test ! -s conftest.err
39193 } && test -s conftest$ac_exeext &&
39194 $as_test_x conftest$ac_exeext; then
39195 eval "$as_ac_var=yes"
39197 echo "$as_me: failed program was:" >&5
39198 sed 's/^/| /' conftest.$ac_ext >&5
39200 eval "$as_ac_var=no"
39203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39204 conftest$ac_exeext conftest.$ac_ext
39206 ac_res=`eval echo '${'$as_ac_var'}'`
39207 { echo "$as_me:$LINENO: result: $ac_res" >&5
39208 echo "${ECHO_T}$ac_res" >&6; }
39209 if test `eval echo '${'$as_ac_var'}'` = yes; then
39210 cat >>confdefs.h <<_ACEOF
39211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39214 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39215 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39216 if test "${ac_cv_func__doprnt+set}" = set; then
39217 echo $ECHO_N "(cached) $ECHO_C" >&6
39219 cat >conftest.$ac_ext <<_ACEOF
39222 cat confdefs.h >>conftest.$ac_ext
39223 cat >>conftest.$ac_ext <<_ACEOF
39224 /* end confdefs.h. */
39225 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39227 #define _doprnt innocuous__doprnt
39229 /* System header to define __stub macros and hopefully few prototypes,
39230 which can conflict with char _doprnt (); below.
39231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39232 <limits.h> exists even on freestanding compilers. */
39235 # include <limits.h>
39237 # include <assert.h>
39242 /* Override any GCC internal prototype to avoid an error.
39243 Use char because int might match the return type of a GCC
39244 builtin and then its argument prototype would still apply. */
39249 /* The GNU C library defines this for functions which it implements
39250 to always fail with ENOSYS. Some functions are actually named
39251 something starting with __ and the normal name is an alias. */
39252 #if defined __stub__doprnt || defined __stub____doprnt
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (ac_try="$ac_link"
39266 case "(($ac_try" in
39267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268 *) ac_try_echo=$ac_try;;
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271 (eval "$ac_link") 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } && {
39278 test -z "$ac_c_werror_flag" ||
39279 test ! -s conftest.err
39280 } && test -s conftest$ac_exeext &&
39281 $as_test_x conftest$ac_exeext; then
39282 ac_cv_func__doprnt=yes
39284 echo "$as_me: failed program was:" >&5
39285 sed 's/^/| /' conftest.$ac_ext >&5
39287 ac_cv_func__doprnt=no
39290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39291 conftest$ac_exeext conftest.$ac_ext
39293 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39294 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39295 if test $ac_cv_func__doprnt = yes; then
39297 cat >>confdefs.h <<\_ACEOF
39298 #define HAVE_DOPRNT 1
39307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39308 # for constant arguments. Useless!
39309 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39310 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39311 if test "${ac_cv_working_alloca_h+set}" = set; then
39312 echo $ECHO_N "(cached) $ECHO_C" >&6
39314 cat >conftest.$ac_ext <<_ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h. */
39320 #include <alloca.h>
39324 char *p = (char *) alloca (2 * sizeof (int));
39330 rm -f conftest.$ac_objext conftest$ac_exeext
39331 if { (ac_try="$ac_link"
39332 case "(($ac_try" in
39333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39334 *) ac_try_echo=$ac_try;;
39336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39337 (eval "$ac_link") 2>conftest.er1
39339 grep -v '^ *+' conftest.er1 >conftest.err
39341 cat conftest.err >&5
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); } && {
39344 test -z "$ac_c_werror_flag" ||
39345 test ! -s conftest.err
39346 } && test -s conftest$ac_exeext &&
39347 $as_test_x conftest$ac_exeext; then
39348 ac_cv_working_alloca_h=yes
39350 echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.$ac_ext >&5
39353 ac_cv_working_alloca_h=no
39356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39357 conftest$ac_exeext conftest.$ac_ext
39359 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39360 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39361 if test $ac_cv_working_alloca_h = yes; then
39363 cat >>confdefs.h <<\_ACEOF
39364 #define HAVE_ALLOCA_H 1
39369 { echo "$as_me:$LINENO: checking for alloca" >&5
39370 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39371 if test "${ac_cv_func_alloca_works+set}" = set; then
39372 echo $ECHO_N "(cached) $ECHO_C" >&6
39374 cat >conftest.$ac_ext <<_ACEOF
39377 cat confdefs.h >>conftest.$ac_ext
39378 cat >>conftest.$ac_ext <<_ACEOF
39379 /* end confdefs.h. */
39381 # define alloca __builtin_alloca
39384 # include <malloc.h>
39385 # define alloca _alloca
39387 # ifdef HAVE_ALLOCA_H
39388 # include <alloca.h>
39393 # ifndef alloca /* predefined by HP cc +Olibcalls */
39404 char *p = (char *) alloca (1);
39410 rm -f conftest.$ac_objext conftest$ac_exeext
39411 if { (ac_try="$ac_link"
39412 case "(($ac_try" in
39413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39414 *) ac_try_echo=$ac_try;;
39416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39417 (eval "$ac_link") 2>conftest.er1
39419 grep -v '^ *+' conftest.er1 >conftest.err
39421 cat conftest.err >&5
39422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39423 (exit $ac_status); } && {
39424 test -z "$ac_c_werror_flag" ||
39425 test ! -s conftest.err
39426 } && test -s conftest$ac_exeext &&
39427 $as_test_x conftest$ac_exeext; then
39428 ac_cv_func_alloca_works=yes
39430 echo "$as_me: failed program was:" >&5
39431 sed 's/^/| /' conftest.$ac_ext >&5
39433 ac_cv_func_alloca_works=no
39436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39437 conftest$ac_exeext conftest.$ac_ext
39439 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39440 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39442 if test $ac_cv_func_alloca_works = yes; then
39444 cat >>confdefs.h <<\_ACEOF
39445 #define HAVE_ALLOCA 1
39449 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39450 # that cause trouble. Some versions do not even contain alloca or
39451 # contain a buggy version. If you still want to use their alloca,
39452 # use ar to extract alloca.o from them instead of compiling alloca.c.
39454 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39456 cat >>confdefs.h <<\_ACEOF
39461 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39462 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39463 if test "${ac_cv_os_cray+set}" = set; then
39464 echo $ECHO_N "(cached) $ECHO_C" >&6
39466 cat >conftest.$ac_ext <<_ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h. */
39472 #if defined CRAY && ! defined CRAY2
39479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39480 $EGREP "webecray" >/dev/null 2>&1; then
39488 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39489 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39490 if test $ac_cv_os_cray = yes; then
39491 for ac_func in _getb67 GETB67 getb67; do
39492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39496 echo $ECHO_N "(cached) $ECHO_C" >&6
39498 cat >conftest.$ac_ext <<_ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h. */
39504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39506 #define $ac_func innocuous_$ac_func
39508 /* System header to define __stub macros and hopefully few prototypes,
39509 which can conflict with char $ac_func (); below.
39510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39511 <limits.h> exists even on freestanding compilers. */
39514 # include <limits.h>
39516 # include <assert.h>
39521 /* Override any GCC internal prototype to avoid an error.
39522 Use char because int might match the return type of a GCC
39523 builtin and then its argument prototype would still apply. */
39528 /* The GNU C library defines this for functions which it implements
39529 to always fail with ENOSYS. Some functions are actually named
39530 something starting with __ and the normal name is an alias. */
39531 #if defined __stub_$ac_func || defined __stub___$ac_func
39538 return $ac_func ();
39543 rm -f conftest.$ac_objext conftest$ac_exeext
39544 if { (ac_try="$ac_link"
39545 case "(($ac_try" in
39546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39547 *) ac_try_echo=$ac_try;;
39549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39550 (eval "$ac_link") 2>conftest.er1
39552 grep -v '^ *+' conftest.er1 >conftest.err
39554 cat conftest.err >&5
39555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556 (exit $ac_status); } && {
39557 test -z "$ac_c_werror_flag" ||
39558 test ! -s conftest.err
39559 } && test -s conftest$ac_exeext &&
39560 $as_test_x conftest$ac_exeext; then
39561 eval "$as_ac_var=yes"
39563 echo "$as_me: failed program was:" >&5
39564 sed 's/^/| /' conftest.$ac_ext >&5
39566 eval "$as_ac_var=no"
39569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39570 conftest$ac_exeext conftest.$ac_ext
39572 ac_res=`eval echo '${'$as_ac_var'}'`
39573 { echo "$as_me:$LINENO: result: $ac_res" >&5
39574 echo "${ECHO_T}$ac_res" >&6; }
39575 if test `eval echo '${'$as_ac_var'}'` = yes; then
39577 cat >>confdefs.h <<_ACEOF
39578 #define CRAY_STACKSEG_END $ac_func
39587 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39588 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39589 if test "${ac_cv_c_stack_direction+set}" = set; then
39590 echo $ECHO_N "(cached) $ECHO_C" >&6
39592 if test "$cross_compiling" = yes; then
39593 ac_cv_c_stack_direction=0
39595 cat >conftest.$ac_ext <<_ACEOF
39598 cat confdefs.h >>conftest.$ac_ext
39599 cat >>conftest.$ac_ext <<_ACEOF
39600 /* end confdefs.h. */
39601 $ac_includes_default
39603 find_stack_direction ()
39605 static char *addr = 0;
39610 return find_stack_direction ();
39613 return (&dummy > addr) ? 1 : -1;
39619 return find_stack_direction () < 0;
39622 rm -f conftest$ac_exeext
39623 if { (ac_try="$ac_link"
39624 case "(($ac_try" in
39625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39626 *) ac_try_echo=$ac_try;;
39628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39629 (eval "$ac_link") 2>&5
39631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39633 { (case "(($ac_try" in
39634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39635 *) ac_try_echo=$ac_try;;
39637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39638 (eval "$ac_try") 2>&5
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; }; then
39642 ac_cv_c_stack_direction=1
39644 echo "$as_me: program exited with status $ac_status" >&5
39645 echo "$as_me: failed program was:" >&5
39646 sed 's/^/| /' conftest.$ac_ext >&5
39648 ( exit $ac_status )
39649 ac_cv_c_stack_direction=-1
39651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39656 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39657 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39659 cat >>confdefs.h <<_ACEOF
39660 #define STACK_DIRECTION $ac_cv_c_stack_direction
39666 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39667 # -lseq on Dynix/PTX, -lgen on Unixware.
39668 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39669 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39670 if test "${ac_cv_search_getmntent+set}" = set; then
39671 echo $ECHO_N "(cached) $ECHO_C" >&6
39673 ac_func_search_save_LIBS=$LIBS
39674 cat >conftest.$ac_ext <<_ACEOF
39677 cat confdefs.h >>conftest.$ac_ext
39678 cat >>conftest.$ac_ext <<_ACEOF
39679 /* end confdefs.h. */
39681 /* Override any GCC internal prototype to avoid an error.
39682 Use char because int might match the return type of a GCC
39683 builtin and then its argument prototype would still apply. */
39691 return getmntent ();
39696 for ac_lib in '' sun seq gen; do
39697 if test -z "$ac_lib"; then
39698 ac_res="none required"
39701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39703 rm -f conftest.$ac_objext conftest$ac_exeext
39704 if { (ac_try="$ac_link"
39705 case "(($ac_try" in
39706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39707 *) ac_try_echo=$ac_try;;
39709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39710 (eval "$ac_link") 2>conftest.er1
39712 grep -v '^ *+' conftest.er1 >conftest.err
39714 cat conftest.err >&5
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); } && {
39717 test -z "$ac_c_werror_flag" ||
39718 test ! -s conftest.err
39719 } && test -s conftest$ac_exeext &&
39720 $as_test_x conftest$ac_exeext; then
39721 ac_cv_search_getmntent=$ac_res
39723 echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39731 if test "${ac_cv_search_getmntent+set}" = set; then
39735 if test "${ac_cv_search_getmntent+set}" = set; then
39738 ac_cv_search_getmntent=no
39740 rm conftest.$ac_ext
39741 LIBS=$ac_func_search_save_LIBS
39743 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39744 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39745 ac_res=$ac_cv_search_getmntent
39746 if test "$ac_res" != no; then
39747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39748 ac_cv_func_getmntent=yes
39750 cat >>confdefs.h <<\_ACEOF
39751 #define HAVE_GETMNTENT 1
39755 ac_cv_func_getmntent=no
39759 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39760 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39761 if test "${ac_cv_func_closedir_void+set}" = set; then
39762 echo $ECHO_N "(cached) $ECHO_C" >&6
39764 if test "$cross_compiling" = yes; then
39765 ac_cv_func_closedir_void=yes
39767 cat >conftest.$ac_ext <<_ACEOF
39770 cat confdefs.h >>conftest.$ac_ext
39771 cat >>conftest.$ac_ext <<_ACEOF
39772 /* end confdefs.h. */
39773 $ac_includes_default
39774 #include <$ac_header_dirent>
39775 #ifndef __cplusplus
39782 return closedir (opendir (".")) != 0;
39787 rm -f conftest$ac_exeext
39788 if { (ac_try="$ac_link"
39789 case "(($ac_try" in
39790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39791 *) ac_try_echo=$ac_try;;
39793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39794 (eval "$ac_link") 2>&5
39796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39798 { (case "(($ac_try" in
39799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39800 *) ac_try_echo=$ac_try;;
39802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39803 (eval "$ac_try") 2>&5
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); }; }; then
39807 ac_cv_func_closedir_void=no
39809 echo "$as_me: program exited with status $ac_status" >&5
39810 echo "$as_me: failed program was:" >&5
39811 sed 's/^/| /' conftest.$ac_ext >&5
39813 ( exit $ac_status )
39814 ac_cv_func_closedir_void=yes
39816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39821 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39822 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39823 if test $ac_cv_func_closedir_void = yes; then
39825 cat >>confdefs.h <<\_ACEOF
39826 #define CLOSEDIR_VOID 1
39831 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39832 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39833 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39834 echo $ECHO_N "(cached) $ECHO_C" >&6
39836 if test "$cross_compiling" = yes; then
39837 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39838 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39839 { (exit 1); exit 1; }; }
39841 cat >conftest.$ac_ext <<_ACEOF
39844 cat confdefs.h >>conftest.$ac_ext
39845 cat >>conftest.$ac_ext <<_ACEOF
39846 /* end confdefs.h. */
39847 $ac_includes_default
39851 /* If this system has a BSD-style setpgrp which takes arguments,
39852 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39853 exit successfully. */
39854 return setpgrp (1,1) != -1;
39859 rm -f conftest$ac_exeext
39860 if { (ac_try="$ac_link"
39861 case "(($ac_try" in
39862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39863 *) ac_try_echo=$ac_try;;
39865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39866 (eval "$ac_link") 2>&5
39868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39870 { (case "(($ac_try" in
39871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39872 *) ac_try_echo=$ac_try;;
39874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39875 (eval "$ac_try") 2>&5
39877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39878 (exit $ac_status); }; }; then
39879 ac_cv_func_setpgrp_void=no
39881 echo "$as_me: program exited with status $ac_status" >&5
39882 echo "$as_me: failed program was:" >&5
39883 sed 's/^/| /' conftest.$ac_ext >&5
39885 ( exit $ac_status )
39886 ac_cv_func_setpgrp_void=yes
39888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39893 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39894 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39895 if test $ac_cv_func_setpgrp_void = yes; then
39897 cat >>confdefs.h <<\_ACEOF
39898 #define SETPGRP_VOID 1
39902 # AC_FUNC_FNMATCH dnl use local version
39904 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39905 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39906 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39907 echo $ECHO_N "(cached) $ECHO_C" >&6
39909 ac_check_lib_save_LIBS=$LIBS
39910 LIBS="-lintl $LIBS"
39911 cat >conftest.$ac_ext <<_ACEOF
39914 cat confdefs.h >>conftest.$ac_ext
39915 cat >>conftest.$ac_ext <<_ACEOF
39916 /* end confdefs.h. */
39918 /* Override any GCC internal prototype to avoid an error.
39919 Use char because int might match the return type of a GCC
39920 builtin and then its argument prototype would still apply. */
39933 rm -f conftest.$ac_objext conftest$ac_exeext
39934 if { (ac_try="$ac_link"
39935 case "(($ac_try" in
39936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39937 *) ac_try_echo=$ac_try;;
39939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39940 (eval "$ac_link") 2>conftest.er1
39942 grep -v '^ *+' conftest.er1 >conftest.err
39944 cat conftest.err >&5
39945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946 (exit $ac_status); } && {
39947 test -z "$ac_c_werror_flag" ||
39948 test ! -s conftest.err
39949 } && test -s conftest$ac_exeext &&
39950 $as_test_x conftest$ac_exeext; then
39951 ac_cv_lib_intl_gettext=yes
39953 echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39956 ac_cv_lib_intl_gettext=no
39959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39960 conftest$ac_exeext conftest.$ac_ext
39961 LIBS=$ac_check_lib_save_LIBS
39963 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39964 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39965 if test $ac_cv_lib_intl_gettext = yes; then
39966 LIBS="$LIBS -lintl"
39971 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39972 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39973 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39974 echo $ECHO_N "(cached) $ECHO_C" >&6
39976 ac_check_lib_save_LIBS=$LIBS
39978 cat >conftest.$ac_ext <<_ACEOF
39981 cat confdefs.h >>conftest.$ac_ext
39982 cat >>conftest.$ac_ext <<_ACEOF
39983 /* end confdefs.h. */
39985 /* Override any GCC internal prototype to avoid an error.
39986 Use char because int might match the return type of a GCC
39987 builtin and then its argument prototype would still apply. */
39995 return getpwnam ();
40000 rm -f conftest.$ac_objext conftest$ac_exeext
40001 if { (ac_try="$ac_link"
40002 case "(($ac_try" in
40003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40004 *) ac_try_echo=$ac_try;;
40006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40007 (eval "$ac_link") 2>conftest.er1
40009 grep -v '^ *+' conftest.er1 >conftest.err
40011 cat conftest.err >&5
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); } && {
40014 test -z "$ac_c_werror_flag" ||
40015 test ! -s conftest.err
40016 } && test -s conftest$ac_exeext &&
40017 $as_test_x conftest$ac_exeext; then
40018 ac_cv_lib_sun_getpwnam=yes
40020 echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40023 ac_cv_lib_sun_getpwnam=no
40026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40027 conftest$ac_exeext conftest.$ac_ext
40028 LIBS=$ac_check_lib_save_LIBS
40030 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40031 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40032 if test $ac_cv_lib_sun_getpwnam = yes; then
40033 cat >>confdefs.h <<_ACEOF
40034 #define HAVE_LIBSUN 1
40043 for ac_header in zlib.h
40045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40050 echo $ECHO_N "(cached) $ECHO_C" >&6
40052 ac_res=`eval echo '${'$as_ac_Header'}'`
40053 { echo "$as_me:$LINENO: result: $ac_res" >&5
40054 echo "${ECHO_T}$ac_res" >&6; }
40056 # Is the header compilable?
40057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40059 cat >conftest.$ac_ext <<_ACEOF
40062 cat confdefs.h >>conftest.$ac_ext
40063 cat >>conftest.$ac_ext <<_ACEOF
40064 /* end confdefs.h. */
40065 $ac_includes_default
40066 #include <$ac_header>
40068 rm -f conftest.$ac_objext
40069 if { (ac_try="$ac_compile"
40070 case "(($ac_try" in
40071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40072 *) ac_try_echo=$ac_try;;
40074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40075 (eval "$ac_compile") 2>conftest.er1
40077 grep -v '^ *+' conftest.er1 >conftest.err
40079 cat conftest.err >&5
40080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40081 (exit $ac_status); } && {
40082 test -z "$ac_c_werror_flag" ||
40083 test ! -s conftest.err
40084 } && test -s conftest.$ac_objext; then
40085 ac_header_compiler=yes
40087 echo "$as_me: failed program was:" >&5
40088 sed 's/^/| /' conftest.$ac_ext >&5
40090 ac_header_compiler=no
40093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40095 echo "${ECHO_T}$ac_header_compiler" >&6; }
40097 # Is the header present?
40098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40100 cat >conftest.$ac_ext <<_ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h. */
40106 #include <$ac_header>
40108 if { (ac_try="$ac_cpp conftest.$ac_ext"
40109 case "(($ac_try" in
40110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40111 *) ac_try_echo=$ac_try;;
40113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40116 grep -v '^ *+' conftest.er1 >conftest.err
40118 cat conftest.err >&5
40119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40120 (exit $ac_status); } >/dev/null && {
40121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40122 test ! -s conftest.err
40124 ac_header_preproc=yes
40126 echo "$as_me: failed program was:" >&5
40127 sed 's/^/| /' conftest.$ac_ext >&5
40129 ac_header_preproc=no
40132 rm -f conftest.err conftest.$ac_ext
40133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40134 echo "${ECHO_T}$ac_header_preproc" >&6; }
40136 # So? What about this header?
40137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40143 ac_header_preproc=yes
40146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40164 echo $ECHO_N "(cached) $ECHO_C" >&6
40166 eval "$as_ac_Header=\$ac_header_preproc"
40168 ac_res=`eval echo '${'$as_ac_Header'}'`
40169 { echo "$as_me:$LINENO: result: $ac_res" >&5
40170 echo "${ECHO_T}$ac_res" >&6; }
40173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40174 cat >>confdefs.h <<_ACEOF
40175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40182 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40183 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40184 if test "${ac_cv_lib_z_deflate+set}" = set; then
40185 echo $ECHO_N "(cached) $ECHO_C" >&6
40187 ac_check_lib_save_LIBS=$LIBS
40189 cat >conftest.$ac_ext <<_ACEOF
40192 cat confdefs.h >>conftest.$ac_ext
40193 cat >>conftest.$ac_ext <<_ACEOF
40194 /* end confdefs.h. */
40196 /* Override any GCC internal prototype to avoid an error.
40197 Use char because int might match the return type of a GCC
40198 builtin and then its argument prototype would still apply. */
40211 rm -f conftest.$ac_objext conftest$ac_exeext
40212 if { (ac_try="$ac_link"
40213 case "(($ac_try" in
40214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40215 *) ac_try_echo=$ac_try;;
40217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40218 (eval "$ac_link") 2>conftest.er1
40220 grep -v '^ *+' conftest.er1 >conftest.err
40222 cat conftest.err >&5
40223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40224 (exit $ac_status); } && {
40225 test -z "$ac_c_werror_flag" ||
40226 test ! -s conftest.err
40227 } && test -s conftest$ac_exeext &&
40228 $as_test_x conftest$ac_exeext; then
40229 ac_cv_lib_z_deflate=yes
40231 echo "$as_me: failed program was:" >&5
40232 sed 's/^/| /' conftest.$ac_ext >&5
40234 ac_cv_lib_z_deflate=no
40237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40238 conftest$ac_exeext conftest.$ac_ext
40239 LIBS=$ac_check_lib_save_LIBS
40241 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40242 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40243 if test $ac_cv_lib_z_deflate = yes; then
40248 if test x$FDLIBS = x-lz; then
40249 cat >>confdefs.h <<\_ACEOF
40250 #define HAVE_LIBZ 1
40257 # Check whether --enable-acl was given.
40258 if test "${enable_acl+set}" = set; then
40259 enableval=$enable_acl;
40260 if test x$enableval = xno; then
40269 have_extended_acl=no
40270 if test x$support_acl = xyes; then
40271 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40272 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40273 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40274 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40275 echo $ECHO_N "(cached) $ECHO_C" >&6
40277 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40278 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40280 # Is the header compilable?
40281 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40282 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40283 cat >conftest.$ac_ext <<_ACEOF
40286 cat confdefs.h >>conftest.$ac_ext
40287 cat >>conftest.$ac_ext <<_ACEOF
40288 /* end confdefs.h. */
40289 $ac_includes_default
40290 #include <sys/acl.h>
40292 rm -f conftest.$ac_objext
40293 if { (ac_try="$ac_compile"
40294 case "(($ac_try" in
40295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40296 *) ac_try_echo=$ac_try;;
40298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40299 (eval "$ac_compile") 2>conftest.er1
40301 grep -v '^ *+' conftest.er1 >conftest.err
40303 cat conftest.err >&5
40304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40305 (exit $ac_status); } && {
40306 test -z "$ac_c_werror_flag" ||
40307 test ! -s conftest.err
40308 } && test -s conftest.$ac_objext; then
40309 ac_header_compiler=yes
40311 echo "$as_me: failed program was:" >&5
40312 sed 's/^/| /' conftest.$ac_ext >&5
40314 ac_header_compiler=no
40317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40319 echo "${ECHO_T}$ac_header_compiler" >&6; }
40321 # Is the header present?
40322 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40323 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40324 cat >conftest.$ac_ext <<_ACEOF
40327 cat confdefs.h >>conftest.$ac_ext
40328 cat >>conftest.$ac_ext <<_ACEOF
40329 /* end confdefs.h. */
40330 #include <sys/acl.h>
40332 if { (ac_try="$ac_cpp conftest.$ac_ext"
40333 case "(($ac_try" in
40334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40335 *) ac_try_echo=$ac_try;;
40337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40340 grep -v '^ *+' conftest.er1 >conftest.err
40342 cat conftest.err >&5
40343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40344 (exit $ac_status); } >/dev/null && {
40345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40346 test ! -s conftest.err
40348 ac_header_preproc=yes
40350 echo "$as_me: failed program was:" >&5
40351 sed 's/^/| /' conftest.$ac_ext >&5
40353 ac_header_preproc=no
40356 rm -f conftest.err conftest.$ac_ext
40357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40358 echo "${ECHO_T}$ac_header_preproc" >&6; }
40360 # So? What about this header?
40361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40363 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40364 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40365 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40366 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40367 ac_header_preproc=yes
40370 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40371 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40372 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40373 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40374 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40375 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40376 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40377 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40378 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40379 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40380 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40381 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40385 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40386 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40387 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40388 echo $ECHO_N "(cached) $ECHO_C" >&6
40390 ac_cv_header_sys_acl_h=$ac_header_preproc
40392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40393 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40396 if test $ac_cv_header_sys_acl_h = yes; then
40398 cat >>confdefs.h <<\_ACEOF
40399 #define HAVE_SYS_ACL_H 1
40405 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40406 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40407 if test "${ac_cv_func_acl_get_file+set}" = set; then
40408 echo $ECHO_N "(cached) $ECHO_C" >&6
40410 cat >conftest.$ac_ext <<_ACEOF
40413 cat confdefs.h >>conftest.$ac_ext
40414 cat >>conftest.$ac_ext <<_ACEOF
40415 /* end confdefs.h. */
40416 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40418 #define acl_get_file innocuous_acl_get_file
40420 /* System header to define __stub macros and hopefully few prototypes,
40421 which can conflict with char acl_get_file (); below.
40422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40423 <limits.h> exists even on freestanding compilers. */
40426 # include <limits.h>
40428 # include <assert.h>
40431 #undef acl_get_file
40433 /* Override any GCC internal prototype to avoid an error.
40434 Use char because int might match the return type of a GCC
40435 builtin and then its argument prototype would still apply. */
40439 char acl_get_file ();
40440 /* The GNU C library defines this for functions which it implements
40441 to always fail with ENOSYS. Some functions are actually named
40442 something starting with __ and the normal name is an alias. */
40443 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40450 return acl_get_file ();
40455 rm -f conftest.$ac_objext conftest$ac_exeext
40456 if { (ac_try="$ac_link"
40457 case "(($ac_try" in
40458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40459 *) ac_try_echo=$ac_try;;
40461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40462 (eval "$ac_link") 2>conftest.er1
40464 grep -v '^ *+' conftest.er1 >conftest.err
40466 cat conftest.err >&5
40467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468 (exit $ac_status); } && {
40469 test -z "$ac_c_werror_flag" ||
40470 test ! -s conftest.err
40471 } && test -s conftest$ac_exeext &&
40472 $as_test_x conftest$ac_exeext; then
40473 ac_cv_func_acl_get_file=yes
40475 echo "$as_me: failed program was:" >&5
40476 sed 's/^/| /' conftest.$ac_ext >&5
40478 ac_cv_func_acl_get_file=no
40481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40482 conftest$ac_exeext conftest.$ac_ext
40484 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40485 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40486 if test $ac_cv_func_acl_get_file = yes; then
40492 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40493 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40494 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40495 echo $ECHO_N "(cached) $ECHO_C" >&6
40497 ac_check_lib_save_LIBS=$LIBS
40499 cat >conftest.$ac_ext <<_ACEOF
40502 cat confdefs.h >>conftest.$ac_ext
40503 cat >>conftest.$ac_ext <<_ACEOF
40504 /* end confdefs.h. */
40506 /* Override any GCC internal prototype to avoid an error.
40507 Use char because int might match the return type of a GCC
40508 builtin and then its argument prototype would still apply. */
40512 char acl_get_file ();
40516 return acl_get_file ();
40521 rm -f conftest.$ac_objext conftest$ac_exeext
40522 if { (ac_try="$ac_link"
40523 case "(($ac_try" in
40524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40525 *) ac_try_echo=$ac_try;;
40527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40528 (eval "$ac_link") 2>conftest.er1
40530 grep -v '^ *+' conftest.er1 >conftest.err
40532 cat conftest.err >&5
40533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); } && {
40535 test -z "$ac_c_werror_flag" ||
40536 test ! -s conftest.err
40537 } && test -s conftest$ac_exeext &&
40538 $as_test_x conftest$ac_exeext; then
40539 ac_cv_lib_acl_acl_get_file=yes
40541 echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40544 ac_cv_lib_acl_acl_get_file=no
40547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40548 conftest$ac_exeext conftest.$ac_ext
40549 LIBS=$ac_check_lib_save_LIBS
40551 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40552 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40553 if test $ac_cv_lib_acl_acl_get_file = yes; then
40556 FDLIBS="-lacl $FDLIBS"
40560 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40561 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40562 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40563 echo $ECHO_N "(cached) $ECHO_C" >&6
40565 ac_check_lib_save_LIBS=$LIBS
40566 LIBS="-lpacl $LIBS"
40567 cat >conftest.$ac_ext <<_ACEOF
40570 cat confdefs.h >>conftest.$ac_ext
40571 cat >>conftest.$ac_ext <<_ACEOF
40572 /* end confdefs.h. */
40574 /* Override any GCC internal prototype to avoid an error.
40575 Use char because int might match the return type of a GCC
40576 builtin and then its argument prototype would still apply. */
40580 char acl_get_file ();
40584 return acl_get_file ();
40589 rm -f conftest.$ac_objext conftest$ac_exeext
40590 if { (ac_try="$ac_link"
40591 case "(($ac_try" in
40592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40593 *) ac_try_echo=$ac_try;;
40595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40596 (eval "$ac_link") 2>conftest.er1
40598 grep -v '^ *+' conftest.er1 >conftest.err
40600 cat conftest.err >&5
40601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40602 (exit $ac_status); } && {
40603 test -z "$ac_c_werror_flag" ||
40604 test ! -s conftest.err
40605 } && test -s conftest$ac_exeext &&
40606 $as_test_x conftest$ac_exeext; then
40607 ac_cv_lib_pacl_acl_get_file=yes
40609 echo "$as_me: failed program was:" >&5
40610 sed 's/^/| /' conftest.$ac_ext >&5
40612 ac_cv_lib_pacl_acl_get_file=no
40615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40616 conftest$ac_exeext conftest.$ac_ext
40617 LIBS=$ac_check_lib_save_LIBS
40619 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40620 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40621 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40624 FDLIBS="-lpacl $FDLIBS"
40628 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40629 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40630 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40631 echo $ECHO_N "(cached) $ECHO_C" >&6
40633 ac_check_lib_save_LIBS=$LIBS
40635 cat >conftest.$ac_ext <<_ACEOF
40638 cat confdefs.h >>conftest.$ac_ext
40639 cat >>conftest.$ac_ext <<_ACEOF
40640 /* end confdefs.h. */
40642 /* Override any GCC internal prototype to avoid an error.
40643 Use char because int might match the return type of a GCC
40644 builtin and then its argument prototype would still apply. */
40652 return acltotext ();
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (ac_try="$ac_link"
40659 case "(($ac_try" in
40660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661 *) ac_try_echo=$ac_try;;
40663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664 (eval "$ac_link") 2>conftest.er1
40666 grep -v '^ *+' conftest.er1 >conftest.err
40668 cat conftest.err >&5
40669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670 (exit $ac_status); } && {
40671 test -z "$ac_c_werror_flag" ||
40672 test ! -s conftest.err
40673 } && test -s conftest$ac_exeext &&
40674 $as_test_x conftest$ac_exeext; then
40675 ac_cv_lib_sec_acltotext=yes
40677 echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40680 ac_cv_lib_sec_acltotext=no
40683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40684 conftest$ac_exeext conftest.$ac_ext
40685 LIBS=$ac_check_lib_save_LIBS
40687 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40688 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40689 if test $ac_cv_lib_sec_acltotext = yes; then
40692 FDLIBS="-lsec $FDLIBS"
40694 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40695 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40696 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40697 echo $ECHO_N "(cached) $ECHO_C" >&6
40699 ac_check_lib_save_LIBS=$LIBS
40701 cat >conftest.$ac_ext <<_ACEOF
40704 cat confdefs.h >>conftest.$ac_ext
40705 cat >>conftest.$ac_ext <<_ACEOF
40706 /* end confdefs.h. */
40708 /* Override any GCC internal prototype to avoid an error.
40709 Use char because int might match the return type of a GCC
40710 builtin and then its argument prototype would still apply. */
40714 char acl_totext ();
40718 return acl_totext ();
40723 rm -f conftest.$ac_objext conftest$ac_exeext
40724 if { (ac_try="$ac_link"
40725 case "(($ac_try" in
40726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40727 *) ac_try_echo=$ac_try;;
40729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40730 (eval "$ac_link") 2>conftest.er1
40732 grep -v '^ *+' conftest.er1 >conftest.err
40734 cat conftest.err >&5
40735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40736 (exit $ac_status); } && {
40737 test -z "$ac_c_werror_flag" ||
40738 test ! -s conftest.err
40739 } && test -s conftest$ac_exeext &&
40740 $as_test_x conftest$ac_exeext; then
40741 ac_cv_lib_sec_acl_totext=yes
40743 echo "$as_me: failed program was:" >&5
40744 sed 's/^/| /' conftest.$ac_ext >&5
40746 ac_cv_lib_sec_acl_totext=no
40749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40750 conftest$ac_exeext conftest.$ac_ext
40751 LIBS=$ac_check_lib_save_LIBS
40753 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40754 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40755 if test $ac_cv_lib_sec_acl_totext = yes; then
40757 have_extended_acl=yes
40778 if test $have_acl = yes; then
40780 cat >>confdefs.h <<\_ACEOF
40786 if test $have_extended_acl = yes; then
40788 cat >>confdefs.h <<\_ACEOF
40789 #define HAVE_EXTENDED_ACL
40796 # Check whether --enable-xattr was given.
40797 if test "${enable_xattr+set}" = set; then
40798 enableval=$enable_xattr;
40799 if test x$enableval = xno; then
40808 if test x$support_xattr = xyes; then
40809 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40810 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40811 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40812 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40813 echo $ECHO_N "(cached) $ECHO_C" >&6
40815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40816 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40818 # Is the header compilable?
40819 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40820 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40821 cat >conftest.$ac_ext <<_ACEOF
40824 cat confdefs.h >>conftest.$ac_ext
40825 cat >>conftest.$ac_ext <<_ACEOF
40826 /* end confdefs.h. */
40827 $ac_includes_default
40828 #include <sys/xattr.h>
40830 rm -f conftest.$ac_objext
40831 if { (ac_try="$ac_compile"
40832 case "(($ac_try" in
40833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40834 *) ac_try_echo=$ac_try;;
40836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40837 (eval "$ac_compile") 2>conftest.er1
40839 grep -v '^ *+' conftest.er1 >conftest.err
40841 cat conftest.err >&5
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); } && {
40844 test -z "$ac_c_werror_flag" ||
40845 test ! -s conftest.err
40846 } && test -s conftest.$ac_objext; then
40847 ac_header_compiler=yes
40849 echo "$as_me: failed program was:" >&5
40850 sed 's/^/| /' conftest.$ac_ext >&5
40852 ac_header_compiler=no
40855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40857 echo "${ECHO_T}$ac_header_compiler" >&6; }
40859 # Is the header present?
40860 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40861 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40862 cat >conftest.$ac_ext <<_ACEOF
40865 cat confdefs.h >>conftest.$ac_ext
40866 cat >>conftest.$ac_ext <<_ACEOF
40867 /* end confdefs.h. */
40868 #include <sys/xattr.h>
40870 if { (ac_try="$ac_cpp conftest.$ac_ext"
40871 case "(($ac_try" in
40872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40873 *) ac_try_echo=$ac_try;;
40875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40878 grep -v '^ *+' conftest.er1 >conftest.err
40880 cat conftest.err >&5
40881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40882 (exit $ac_status); } >/dev/null && {
40883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40884 test ! -s conftest.err
40886 ac_header_preproc=yes
40888 echo "$as_me: failed program was:" >&5
40889 sed 's/^/| /' conftest.$ac_ext >&5
40891 ac_header_preproc=no
40894 rm -f conftest.err conftest.$ac_ext
40895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40896 echo "${ECHO_T}$ac_header_preproc" >&6; }
40898 # So? What about this header?
40899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40901 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40902 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40903 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40904 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40905 ac_header_preproc=yes
40908 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40909 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40910 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
40911 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
40912 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40913 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40914 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
40915 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
40916 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40917 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40918 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40919 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40923 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40924 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40925 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40926 echo $ECHO_N "(cached) $ECHO_C" >&6
40928 ac_cv_header_sys_xattr_h=$ac_header_preproc
40930 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40931 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40934 if test $ac_cv_header_sys_xattr_h = yes; then
40936 cat >>confdefs.h <<\_ACEOF
40937 #define HAVE_SYS_XATTR_H 1
40946 for ac_func in llistxattr lgetxattr lsetxattr
40948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40952 echo $ECHO_N "(cached) $ECHO_C" >&6
40954 cat >conftest.$ac_ext <<_ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h. */
40960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40962 #define $ac_func innocuous_$ac_func
40964 /* System header to define __stub macros and hopefully few prototypes,
40965 which can conflict with char $ac_func (); below.
40966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40967 <limits.h> exists even on freestanding compilers. */
40970 # include <limits.h>
40972 # include <assert.h>
40977 /* Override any GCC internal prototype to avoid an error.
40978 Use char because int might match the return type of a GCC
40979 builtin and then its argument prototype would still apply. */
40984 /* The GNU C library defines this for functions which it implements
40985 to always fail with ENOSYS. Some functions are actually named
40986 something starting with __ and the normal name is an alias. */
40987 #if defined __stub_$ac_func || defined __stub___$ac_func
40994 return $ac_func ();
40999 rm -f conftest.$ac_objext conftest$ac_exeext
41000 if { (ac_try="$ac_link"
41001 case "(($ac_try" in
41002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41003 *) ac_try_echo=$ac_try;;
41005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41006 (eval "$ac_link") 2>conftest.er1
41008 grep -v '^ *+' conftest.er1 >conftest.err
41010 cat conftest.err >&5
41011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41012 (exit $ac_status); } && {
41013 test -z "$ac_c_werror_flag" ||
41014 test ! -s conftest.err
41015 } && test -s conftest$ac_exeext &&
41016 $as_test_x conftest$ac_exeext; then
41017 eval "$as_ac_var=yes"
41019 echo "$as_me: failed program was:" >&5
41020 sed 's/^/| /' conftest.$ac_ext >&5
41022 eval "$as_ac_var=no"
41025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41026 conftest$ac_exeext conftest.$ac_ext
41028 ac_res=`eval echo '${'$as_ac_var'}'`
41029 { echo "$as_me:$LINENO: result: $ac_res" >&5
41030 echo "${ECHO_T}$ac_res" >&6; }
41031 if test `eval echo '${'$as_ac_var'}'` = yes; then
41032 cat >>confdefs.h <<_ACEOF
41033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41038 cat >>confdefs.h <<\_ACEOF
41039 #define HAVE_LLISTXATTR
41043 cat >>confdefs.h <<\_ACEOF
41044 #define HAVE_LGETXATTR
41048 cat >>confdefs.h <<\_ACEOF
41049 #define HAVE_LSETXATTR
41058 for ac_func in listxattr getxattr setxattr
41060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41064 echo $ECHO_N "(cached) $ECHO_C" >&6
41066 cat >conftest.$ac_ext <<_ACEOF
41069 cat confdefs.h >>conftest.$ac_ext
41070 cat >>conftest.$ac_ext <<_ACEOF
41071 /* end confdefs.h. */
41072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41074 #define $ac_func innocuous_$ac_func
41076 /* System header to define __stub macros and hopefully few prototypes,
41077 which can conflict with char $ac_func (); below.
41078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41079 <limits.h> exists even on freestanding compilers. */
41082 # include <limits.h>
41084 # include <assert.h>
41089 /* Override any GCC internal prototype to avoid an error.
41090 Use char because int might match the return type of a GCC
41091 builtin and then its argument prototype would still apply. */
41096 /* The GNU C library defines this for functions which it implements
41097 to always fail with ENOSYS. Some functions are actually named
41098 something starting with __ and the normal name is an alias. */
41099 #if defined __stub_$ac_func || defined __stub___$ac_func
41106 return $ac_func ();
41111 rm -f conftest.$ac_objext conftest$ac_exeext
41112 if { (ac_try="$ac_link"
41113 case "(($ac_try" in
41114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41115 *) ac_try_echo=$ac_try;;
41117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41118 (eval "$ac_link") 2>conftest.er1
41120 grep -v '^ *+' conftest.er1 >conftest.err
41122 cat conftest.err >&5
41123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124 (exit $ac_status); } && {
41125 test -z "$ac_c_werror_flag" ||
41126 test ! -s conftest.err
41127 } && test -s conftest$ac_exeext &&
41128 $as_test_x conftest$ac_exeext; then
41129 eval "$as_ac_var=yes"
41131 echo "$as_me: failed program was:" >&5
41132 sed 's/^/| /' conftest.$ac_ext >&5
41134 eval "$as_ac_var=no"
41137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41138 conftest$ac_exeext conftest.$ac_ext
41140 ac_res=`eval echo '${'$as_ac_var'}'`
41141 { echo "$as_me:$LINENO: result: $ac_res" >&5
41142 echo "${ECHO_T}$ac_res" >&6; }
41143 if test `eval echo '${'$as_ac_var'}'` = yes; then
41144 cat >>confdefs.h <<_ACEOF
41145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41150 cat >>confdefs.h <<\_ACEOF
41151 #define HAVE_LLISTXATTR
41155 cat >>confdefs.h <<\_ACEOF
41156 #define HAVE_LGETXATTR
41160 cat >>confdefs.h <<\_ACEOF
41161 #define HAVE_LSETXATTR
41175 if test $have_xattr = yes; then
41177 cat >>confdefs.h <<\_ACEOF
41185 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41186 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41187 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41188 echo $ECHO_N "(cached) $ECHO_C" >&6
41190 ac_check_lib_save_LIBS=$LIBS
41191 LIBS="-lpthread $LIBS"
41192 cat >conftest.$ac_ext <<_ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h. */
41199 /* Override any GCC internal prototype to avoid an error.
41200 Use char because int might match the return type of a GCC
41201 builtin and then its argument prototype would still apply. */
41205 char pthread_create ();
41209 return pthread_create ();
41214 rm -f conftest.$ac_objext conftest$ac_exeext
41215 if { (ac_try="$ac_link"
41216 case "(($ac_try" in
41217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41218 *) ac_try_echo=$ac_try;;
41220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41221 (eval "$ac_link") 2>conftest.er1
41223 grep -v '^ *+' conftest.er1 >conftest.err
41225 cat conftest.err >&5
41226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41227 (exit $ac_status); } && {
41228 test -z "$ac_c_werror_flag" ||
41229 test ! -s conftest.err
41230 } && test -s conftest$ac_exeext &&
41231 $as_test_x conftest$ac_exeext; then
41232 ac_cv_lib_pthread_pthread_create=yes
41234 echo "$as_me: failed program was:" >&5
41235 sed 's/^/| /' conftest.$ac_ext >&5
41237 ac_cv_lib_pthread_pthread_create=no
41240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41241 conftest$ac_exeext conftest.$ac_ext
41242 LIBS=$ac_check_lib_save_LIBS
41244 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41245 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41246 if test $ac_cv_lib_pthread_pthread_create = yes; then
41247 PTHREAD_LIB="-lpthread"
41250 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41251 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41252 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41253 echo $ECHO_N "(cached) $ECHO_C" >&6
41255 ac_check_lib_save_LIBS=$LIBS
41256 LIBS="-lpthreads $LIBS"
41257 cat >conftest.$ac_ext <<_ACEOF
41260 cat confdefs.h >>conftest.$ac_ext
41261 cat >>conftest.$ac_ext <<_ACEOF
41262 /* end confdefs.h. */
41264 /* Override any GCC internal prototype to avoid an error.
41265 Use char because int might match the return type of a GCC
41266 builtin and then its argument prototype would still apply. */
41270 char pthread_create ();
41274 return pthread_create ();
41279 rm -f conftest.$ac_objext conftest$ac_exeext
41280 if { (ac_try="$ac_link"
41281 case "(($ac_try" in
41282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41283 *) ac_try_echo=$ac_try;;
41285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41286 (eval "$ac_link") 2>conftest.er1
41288 grep -v '^ *+' conftest.er1 >conftest.err
41290 cat conftest.err >&5
41291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41292 (exit $ac_status); } && {
41293 test -z "$ac_c_werror_flag" ||
41294 test ! -s conftest.err
41295 } && test -s conftest$ac_exeext &&
41296 $as_test_x conftest$ac_exeext; then
41297 ac_cv_lib_pthreads_pthread_create=yes
41299 echo "$as_me: failed program was:" >&5
41300 sed 's/^/| /' conftest.$ac_ext >&5
41302 ac_cv_lib_pthreads_pthread_create=no
41305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41306 conftest$ac_exeext conftest.$ac_ext
41307 LIBS=$ac_check_lib_save_LIBS
41309 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41310 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41311 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41312 PTHREAD_LIB="-lpthreads"
41315 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41316 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41317 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41318 echo $ECHO_N "(cached) $ECHO_C" >&6
41320 ac_check_lib_save_LIBS=$LIBS
41322 cat >conftest.$ac_ext <<_ACEOF
41325 cat confdefs.h >>conftest.$ac_ext
41326 cat >>conftest.$ac_ext <<_ACEOF
41327 /* end confdefs.h. */
41329 /* Override any GCC internal prototype to avoid an error.
41330 Use char because int might match the return type of a GCC
41331 builtin and then its argument prototype would still apply. */
41335 char pthread_create ();
41339 return pthread_create ();
41344 rm -f conftest.$ac_objext conftest$ac_exeext
41345 if { (ac_try="$ac_link"
41346 case "(($ac_try" in
41347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41348 *) ac_try_echo=$ac_try;;
41350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41351 (eval "$ac_link") 2>conftest.er1
41353 grep -v '^ *+' conftest.er1 >conftest.err
41355 cat conftest.err >&5
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); } && {
41358 test -z "$ac_c_werror_flag" ||
41359 test ! -s conftest.err
41360 } && test -s conftest$ac_exeext &&
41361 $as_test_x conftest$ac_exeext; then
41362 ac_cv_lib_c_r_pthread_create=yes
41364 echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41367 ac_cv_lib_c_r_pthread_create=no
41370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41371 conftest$ac_exeext conftest.$ac_ext
41372 LIBS=$ac_check_lib_save_LIBS
41374 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41375 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41376 if test $ac_cv_lib_c_r_pthread_create = yes; then
41377 PTHREAD_LIB="-lc_r"
41380 { echo "$as_me:$LINENO: checking for pthread_create" >&5
41381 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41382 if test "${ac_cv_func_pthread_create+set}" = set; then
41383 echo $ECHO_N "(cached) $ECHO_C" >&6
41385 cat >conftest.$ac_ext <<_ACEOF
41388 cat confdefs.h >>conftest.$ac_ext
41389 cat >>conftest.$ac_ext <<_ACEOF
41390 /* end confdefs.h. */
41391 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41393 #define pthread_create innocuous_pthread_create
41395 /* System header to define __stub macros and hopefully few prototypes,
41396 which can conflict with char pthread_create (); below.
41397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41398 <limits.h> exists even on freestanding compilers. */
41401 # include <limits.h>
41403 # include <assert.h>
41406 #undef pthread_create
41408 /* Override any GCC internal prototype to avoid an error.
41409 Use char because int might match the return type of a GCC
41410 builtin and then its argument prototype would still apply. */
41414 char pthread_create ();
41415 /* The GNU C library defines this for functions which it implements
41416 to always fail with ENOSYS. Some functions are actually named
41417 something starting with __ and the normal name is an alias. */
41418 #if defined __stub_pthread_create || defined __stub___pthread_create
41425 return pthread_create ();
41430 rm -f conftest.$ac_objext conftest$ac_exeext
41431 if { (ac_try="$ac_link"
41432 case "(($ac_try" in
41433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41434 *) ac_try_echo=$ac_try;;
41436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41437 (eval "$ac_link") 2>conftest.er1
41439 grep -v '^ *+' conftest.er1 >conftest.err
41441 cat conftest.err >&5
41442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); } && {
41444 test -z "$ac_c_werror_flag" ||
41445 test ! -s conftest.err
41446 } && test -s conftest$ac_exeext &&
41447 $as_test_x conftest$ac_exeext; then
41448 ac_cv_func_pthread_create=yes
41450 echo "$as_me: failed program was:" >&5
41451 sed 's/^/| /' conftest.$ac_ext >&5
41453 ac_cv_func_pthread_create=no
41456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41457 conftest$ac_exeext conftest.$ac_ext
41459 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41460 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41476 cat >>confdefs.h <<\_ACEOF
41481 CFLAGS=${CFLAGS--O}
41483 if test x$have_gcc = xyes ; then
41484 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41485 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41487 LDFLAGS=${LDFLAGS--O}
41488 DB_LIBS="${SQL_LFLAGS}"
41489 CPPFLAGS="$CPPFLAGS"
41516 PFILES="platforms/Makefile"
41520 hostname=`uname -n | cut -d '.' -f 1`
41521 if test x${hostname} = x ; then
41522 hostname="localhost"
41524 case "$DISTNAME" in
41527 PSCMD="ps -e -o pid,comm"
41528 PFILES="${PFILES} \
41529 platforms/aix/Makefile"
41530 TAPEDRIVE="/dev/rmt0.1"
41534 PTHREAD_LIB="-lpthread -lexc"
41535 if test "${CC}" = "gcc" ; then
41542 TAPEDRIVE="/dev/nrmt0"
41545 DISTVER=`uname -a |awk '{print $3}'`
41546 TAPEDRIVE="/dev/nrmt0"
41547 PTHREAD_LIB="-pthread"
41548 CFLAGS="${CFLAGS} -pthread"
41549 PSCMD="ps -ax -o pid,command"
41552 PFILES="${PFILES} \
41553 platforms/bsdi/Makefile \
41554 platforms/bsdi/bacula-fd \
41555 platforms/bsdi/bacula-sd \
41556 platforms/bsdi/bacula-dir"
41557 largefile_support="yes"
41560 DISTVER=`uname -a |awk '{print $3}'`
41561 TAPEDRIVE="/dev/nrst0"
41563 WCFLAGS="-mwindows"
41564 WLDFLAGS="-mwindows"
41568 TAPEDRIVE="/dev/nst0"
41569 PSCMD="ps -e -o pid,command"
41571 PFILES="${PFILES} \
41572 platforms/darwin/Makefile"
41575 ping -c 1 $hostname 2>&1 1>/dev/null
41576 if test ! $? = 0; then
41577 hostname="localhost"
41579 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41582 DISTVER=`cat /etc/debian_version`
41583 if test -f /etc/lsb-release ; then
41585 if test "x$DISTRIB_ID" != "x" ; then
41586 DISTNAME=$DISTRIB_ID
41588 if test "x$DISTRIB_RELEASE" != "x" ; then
41589 DISTVER=$DISTRIB_RELEASE
41592 if test "$DISTNAME" = "Ubuntu" ; then
41595 TAPEDRIVE="/dev/nst0"
41596 PSCMD="ps -e -o pid,command"
41597 if test "$DISTNAME" = "ubuntu" ; then
41598 PFILES="${PFILES} \
41599 platforms/ubuntu/Makefile \
41600 platforms/ubuntu/bacula-fd \
41601 platforms/ubuntu/bacula-sd \
41602 platforms/ubuntu/bacula-dir"
41604 PFILES="${PFILES} \
41605 platforms/debian/Makefile \
41606 platforms/debian/bacula-fd \
41607 platforms/debian/bacula-sd \
41608 platforms/debian/bacula-dir"
41612 ping -c 1 $hostname 2>&1 1>/dev/null
41613 if test ! $? = 0; then
41614 hostname="localhost"
41616 DISTVER=`uname -a |awk '{print $3}'`
41617 VER=`echo $DISTVER | cut -c 1`
41618 if test x$VER = x4 ; then
41619 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41620 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41624 TAPEDRIVE="/dev/nrsa0"
41625 PSCMD="ps -ax -o pid,command"
41626 PFILES="${PFILES} \
41627 platforms/freebsd/Makefile \
41628 platforms/freebsd/bacula-fd \
41629 platforms/freebsd/bacula-sd \
41630 platforms/freebsd/bacula-dir"
41631 largefile_support="yes"
41634 PSCMD="UNIX95=1; ps -e -o pid,comm"
41635 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41637 TAPEDRIVE="/dev/rmt/0hnb"
41638 PTHREAD_LIB="-lpthread"
41639 cat >>confdefs.h <<\_ACEOF
41640 #define _INCLUDE_LONGLONG 1
41646 TAPEDRIVE="/dev/rmt/0cbn"
41647 PSCMD="ps -e -o pid,comm"
41648 PFILES="${PFILES} \
41649 platforms/irix/Makefile \
41650 platforms/irix/bacula-fd \
41651 platforms/irix/bacula-sd \
41652 platforms/irix/bacula-dir"
41655 DISTVER=`uname -a |awk '{print $3}'`
41658 TAPEDRIVE="/dev/nrst0"
41659 PSCMD="ps -ax -o pid,command"
41660 PTHREAD_LIB="-pthread"
41661 CFLAGS="${CFLAGS} -pthread"
41664 DISTVER=`uname -a |awk '{print $3}'`
41667 TAPEDRIVE="/dev/nrst0"
41668 PSCMD="ps -ax -o pid,command"
41669 PTHREAD_LIB="-pthread"
41670 CFLAGS="${CFLAGS} -pthread"
41671 PFILES="${PFILES} \
41672 platforms/openbsd/Makefile \
41673 platforms/openbsd/bacula-fd \
41674 platforms/openbsd/bacula-sd \
41675 platforms/openbsd/bacula-dir"
41678 ping -c 1 $hostname 2>&1 1>/dev/null
41679 if test ! $? = 0; then
41680 hostname="localhost"
41682 if test -f /etc/whitebox-release ; then
41683 f=/etc/whitebox-release
41685 f=/etc/redhat-release
41687 if test `cat $f | grep release |\
41688 cut -f 3 -d ' '`x = "Enterprise"x ; then
41689 DISTVER="Enterprise "`cat $f | grep release |\
41692 DISTVER=`cat /etc/redhat-release | grep release |\
41695 TAPEDRIVE="/dev/nst0"
41696 PSCMD="ps -e -o pid,command"
41697 PFILES="${PFILES} \
41698 platforms/redhat/Makefile \
41699 platforms/redhat/bacula-fd \
41700 platforms/redhat/bacula-sd \
41701 platforms/redhat/bacula-dir \
41702 platforms/redhat/bacula.spec \
41706 ping -c 1 $hostname 2>&1 1>/dev/null
41707 if test ! $? = 0; then
41708 hostname="localhost"
41710 DISTVER=`cat /etc/mandrake-release | grep release |\
41712 TAPEDRIVE="/dev/nst0"
41713 PSCMD="ps -e -o pid,command"
41714 PFILES="${PFILES} \
41715 platforms/mandrake/Makefile \
41716 platforms/mandrake/bacula-fd \
41717 platforms/mandrake/bacula-sd \
41718 platforms/mandrake/bacula-dir \
41719 platforms/mandrake/bacula.spec \
41723 ping -c 1 $hostname 2>&1 1>/dev/null
41724 if test ! $? = 0; then
41725 hostname="localhost"
41727 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41728 TAPEDRIVE="/dev/nst0"
41729 PSCMD="ps -e -o pid,command"
41730 PFILES="${PFILES} \
41731 platforms/gentoo/Makefile \
41732 platforms/gentoo/bacula-init \
41733 platforms/gentoo/bacula-fd \
41734 platforms/gentoo/bacula-sd \
41735 platforms/gentoo/bacula-dir"
41738 ping -c 1 $hostname 2>&1 1>/dev/null
41739 if test ! $? = 0; then
41740 hostname="localhost"
41742 DISTVER=`cat /etc/slackware-version`
41743 TAPEDRIVE="/dev/nst0"
41744 PSCMD="ps -e -o pid,command"
41745 PFILES="${PFILES} \
41746 platforms/slackware/Makefile \
41747 platforms/slackware/rc.bacula-fd \
41748 platforms/slackware/rc.bacula-sd \
41749 platforms/slackware/rc.bacula-dir\
41750 platforms/slackware/functions.bacula"
41754 TAPEDRIVE="/dev/rmt/0cbn"
41755 PSCMD="ps -e -o pid,comm"
41756 PFILES="${PFILES} \
41757 platforms/solaris/Makefile \
41758 platforms/solaris/bacula-fd \
41759 platforms/solaris/bacula-sd \
41760 platforms/solaris/bacula-dir"
41761 if test x$DISTVER = x5.6 ; then
41762 cat >>confdefs.h <<\_ACEOF
41763 #define HAVE_OLD_SOCKOPT 1
41767 LIBS="$LIBS -lresolv"
41770 ping -c 1 $hostname 2>&1 1>/dev/null
41771 if test ! $? = 0; then
41772 hostname="localhost"
41774 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41776 TAPEDRIVE="/dev/nst0"
41777 PSCMD="ps -e -o pid,command"
41778 PFILES="${PFILES} \
41779 platforms/suse/Makefile \
41780 platforms/suse/bacula-fd \
41781 platforms/suse/bacula-sd \
41782 platforms/suse/bacula-dir \
41783 platforms/suse/bacula \
41784 platforms/suse/bacula.spec"
41787 ping -c 1 $hostname 2>&1 1>/dev/null
41788 if test ! $? = 0; then
41789 hostname="localhost"
41793 TAPEDRIVE="/dev/nst0"
41794 PSCMD="ps -e -o pid,command"
41795 PFILES="${PFILES} \
41796 platforms/suse/Makefile \
41797 platforms/suse/bacula-fd \
41798 platforms/suse/bacula-sd \
41799 platforms/suse/bacula-dir"
41803 TAPEDRIVE="/dev/nst0"
41806 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41812 LIBS="$PTHREAD_LIB $LIBS"
41814 cat >>confdefs.h <<_ACEOF
41818 cat >>confdefs.h <<_ACEOF
41829 MCOMMON=./autoconf/Make.common
41832 if test "x${subsysdir}" = "x${sbindir}" ; then
41835 echo "You have set both --sbindir and --with-subsys-dir"
41836 echo " equal to: ${subsysdir} "
41837 echo "This is not permitted. Please reconfigure."
41839 echo "Aborting configuration ..."
41845 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_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"
41847 ac_config_commands="$ac_config_commands default"
41849 cat >confcache <<\_ACEOF
41850 # This file is a shell script that caches the results of configure
41851 # tests run on this system so they can be shared between configure
41852 # scripts and configure runs, see configure's option --config-cache.
41853 # It is not useful on other systems. If it contains results you don't
41854 # want to keep, you may remove or edit it.
41856 # config.status only pays attention to the cache file if you give it
41857 # the --recheck option to rerun configure.
41859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41861 # following values.
41865 # The following way of writing the cache mishandles newlines in values,
41866 # but we know of no workaround that is simple, portable, and efficient.
41867 # So, we kill variables containing newlines.
41868 # Ultrix sh set writes to stderr and can't be redirected directly,
41869 # and sets the high bit in the cache file unless we assign to the vars.
41871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41872 eval ac_val=\$$ac_var
41876 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41877 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41880 _ | IFS | as_nl) ;; #(
41881 *) $as_unset $ac_var ;;
41887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41888 *${as_nl}ac_space=\ *)
41889 # `set' does not quote correctly, so add quotes (double-quote
41890 # substitution turns \\\\ into \\, and sed turns \\ into \).
41893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41896 # `set' quotes correctly as required by POSIX, so do not add quotes.
41897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41911 if test -w "$cache_file"; then
41912 test "x$cache_file" != "x/dev/null" &&
41913 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41914 echo "$as_me: updating cache $cache_file" >&6;}
41915 cat confcache >$cache_file
41917 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41918 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41924 # Let make expand exec_prefix.
41925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41927 DEFS=-DHAVE_CONFIG_H
41931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41932 # 1. Remove the extension, and $U if already installed.
41933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41934 ac_i=`echo "$ac_i" | sed "$ac_script"`
41935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41936 # will be set to the directory where LIBOBJS objects are built.
41937 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41938 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41940 LIBOBJS=$ac_libobjs
41942 LTLIBOBJS=$ac_ltlibobjs
41946 : ${CONFIG_STATUS=./config.status}
41947 ac_clean_files_save=$ac_clean_files
41948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41949 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41950 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41951 cat >$CONFIG_STATUS <<_ACEOF
41953 # Generated by $as_me.
41954 # Run this file to recreate the current configuration.
41955 # Compiler output produced by configure, useful for debugging
41956 # configure, is in config.log if it exists.
41959 ac_cs_recheck=false
41961 SHELL=\${CONFIG_SHELL-$SHELL}
41964 cat >>$CONFIG_STATUS <<\_ACEOF
41965 ## --------------------- ##
41966 ## M4sh Initialization. ##
41967 ## --------------------- ##
41969 # Be more Bourne compatible
41970 DUALCASE=1; export DUALCASE # for MKS sh
41971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41974 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41975 # is contrary to our usage. Disable this feature.
41976 alias -g '${1+"$@"}'='"$@"'
41977 setopt NO_GLOB_SUBST
41979 case `(set -o) 2>/dev/null` in
41980 *posix*) set -o posix ;;
41989 # Avoid depending upon Character Ranges.
41990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41993 as_cr_digits='0123456789'
41994 as_cr_alnum=$as_cr_Letters$as_cr_digits
41996 # The user is always right.
41997 if test "${PATH_SEPARATOR+set}" != set; then
41998 echo "#! /bin/sh" >conf$$.sh
41999 echo "exit 0" >>conf$$.sh
42001 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42009 # Support unset when possible.
42010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42018 # We need space, tab and new line, in precisely that order. Quoting is
42019 # there to prevent editors from complaining about space-tab.
42020 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
42021 # splitting by setting IFS to empty value.)
42026 # Find who we are. Look in the path if we contain no directory separator.
42028 *[\\/]* ) as_myself=$0 ;;
42029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42030 for as_dir in $PATH
42033 test -z "$as_dir" && as_dir=.
42034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42040 # We did not find ourselves, most probably we were run as `sh COMMAND'
42041 # in which case we are not to be found in the path.
42042 if test "x$as_myself" = x; then
42045 if test ! -f "$as_myself"; then
42046 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42047 { (exit 1); exit 1; }
42050 # Work around bugs in pre-3.0 UWIN ksh.
42051 for as_var in ENV MAIL MAILPATH
42052 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42060 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42061 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42062 LC_TELEPHONE LC_TIME
42064 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42065 eval $as_var=C; export $as_var
42067 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42071 # Required to use basename.
42072 if expr a : '\(a\)' >/dev/null 2>&1 &&
42073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42080 as_basename=basename
42086 # Name of the executable.
42087 as_me=`$as_basename -- "$0" ||
42088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42089 X"$0" : 'X\(//\)$' \| \
42090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42092 sed '/^.*\/\([^/][^/]*\)\/*$/{
42111 as_lineno_1=$LINENO
42112 as_lineno_2=$LINENO
42113 test "x$as_lineno_1" != "x$as_lineno_2" &&
42114 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42117 # uniformly replaced by the line number. The first 'sed' inserts a
42118 # line-number line after each line using $LINENO; the second 'sed'
42119 # does the real work. The second script uses 'N' to pair each
42120 # line-number line with the line containing $LINENO, and appends
42121 # trailing '-' during substitution so that $LINENO is not a special
42122 # case at line end.
42123 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42124 # scripts with optimization help from Paolo Bonzini. Blame Lee
42125 # E. McMahon (1931-1989) for sed's syntax. :-)
42137 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42140 ' >$as_me.lineno &&
42141 chmod +x "$as_me.lineno" ||
42142 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42143 { (exit 1); exit 1; }; }
42145 # Don't try to exec as it changes $[0], causing all sort of problems
42146 # (the dirname of $[0] is not the place where we might find the
42147 # original and so on. Autoconf is especially sensitive to this).
42148 . "./$as_me.lineno"
42149 # Exit status is that of the last command.
42154 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42160 ECHO_C= ECHO_N= ECHO_T=
42161 case `echo -n x` in
42163 case `echo 'x\c'` in
42164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42171 if expr a : '\(a\)' >/dev/null 2>&1 &&
42172 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42178 rm -f conf$$ conf$$.exe conf$$.file
42179 if test -d conf$$.dir; then
42180 rm -f conf$$.dir/conf$$.file
42186 if ln -s conf$$.file conf$$ 2>/dev/null; then
42188 # ... but there are two gotchas:
42189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42191 # In both cases, we have to default to `cp -p'.
42192 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42194 elif ln conf$$.file conf$$ 2>/dev/null; then
42199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42200 rmdir conf$$.dir 2>/dev/null
42202 if mkdir -p . 2>/dev/null; then
42205 test -d ./-p && rmdir ./-p
42209 if test -x / >/dev/null 2>&1; then
42210 as_test_x='test -x'
42212 if ls -dL / >/dev/null 2>&1; then
42219 if test -d "$1"; then
42225 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42226 ???[sx]*):;;*)false;;esac;fi
42230 as_executable_p=$as_test_x
42232 # Sed expression to map a string onto a valid CPP name.
42233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42235 # Sed expression to map a string onto a valid variable name.
42236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42241 # Save the log message, to keep $[0] and so on meaningful, and to
42242 # report actual input values of CONFIG_FILES etc. instead of their
42243 # values after options handling.
42245 This file was extended by $as_me, which was
42246 generated by GNU Autoconf 2.61. Invocation command line was
42248 CONFIG_FILES = $CONFIG_FILES
42249 CONFIG_HEADERS = $CONFIG_HEADERS
42250 CONFIG_LINKS = $CONFIG_LINKS
42251 CONFIG_COMMANDS = $CONFIG_COMMANDS
42254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42259 cat >>$CONFIG_STATUS <<_ACEOF
42260 # Files that config.status was made for.
42261 config_files="$ac_config_files"
42262 config_headers="$ac_config_headers"
42263 config_commands="$ac_config_commands"
42267 cat >>$CONFIG_STATUS <<\_ACEOF
42269 \`$as_me' instantiates files from templates according to the
42270 current configuration.
42272 Usage: $0 [OPTIONS] [FILE]...
42274 -h, --help print this help, then exit
42275 -V, --version print version number and configuration settings, then exit
42276 -q, --quiet do not print progress messages
42277 -d, --debug don't remove temporary files
42278 --recheck update $as_me by reconfiguring in the same conditions
42279 --file=FILE[:TEMPLATE]
42280 instantiate the configuration file FILE
42281 --header=FILE[:TEMPLATE]
42282 instantiate the configuration header FILE
42284 Configuration files:
42287 Configuration headers:
42290 Configuration commands:
42293 Report bugs to <bug-autoconf@gnu.org>."
42296 cat >>$CONFIG_STATUS <<_ACEOF
42299 configured by $0, generated by GNU Autoconf 2.61,
42300 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42302 Copyright (C) 2006 Free Software Foundation, Inc.
42303 This config.status script is free software; the Free Software Foundation
42304 gives unlimited permission to copy, distribute and modify it."
42311 cat >>$CONFIG_STATUS <<\_ACEOF
42312 # If no file are specified by the user, then we need to provide default
42313 # value. By we need to know if files were specified by the user.
42319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42331 # Handling of the options.
42332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42335 echo "$ac_cs_version"; exit ;;
42336 --debug | --debu | --deb | --de | --d | -d )
42338 --file | --fil | --fi | --f )
42340 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42341 ac_need_defaults=false;;
42342 --header | --heade | --head | --hea )
42344 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42345 ac_need_defaults=false;;
42347 # Conflict between --help and --header
42348 { echo "$as_me: error: ambiguous option: $1
42349 Try \`$0 --help' for more information." >&2
42350 { (exit 1); exit 1; }; };;
42351 --help | --hel | -h )
42352 echo "$ac_cs_usage"; exit ;;
42353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42357 # This is an error.
42358 -*) { echo "$as_me: error: unrecognized option: $1
42359 Try \`$0 --help' for more information." >&2
42360 { (exit 1); exit 1; }; } ;;
42362 *) ac_config_targets="$ac_config_targets $1"
42363 ac_need_defaults=false ;;
42369 ac_configure_extra_args=
42371 if $ac_cs_silent; then
42373 ac_configure_extra_args="$ac_configure_extra_args --silent"
42377 cat >>$CONFIG_STATUS <<_ACEOF
42378 if \$ac_cs_recheck; then
42379 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42380 CONFIG_SHELL=$SHELL
42381 export CONFIG_SHELL
42382 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42386 cat >>$CONFIG_STATUS <<\_ACEOF
42390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42391 ## Running $as_me. ##
42397 cat >>$CONFIG_STATUS <<_ACEOF
42403 # The HP-UX ksh and POSIX shell print the target directory to stdout
42404 # if CDPATH is set.
42405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42407 sed_quote_subst='$sed_quote_subst'
42408 double_quote_subst='$double_quote_subst'
42409 delay_variable_subst='$delay_variable_subst'
42410 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42411 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42412 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42413 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42414 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42415 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42416 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42417 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42418 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42419 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42420 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42421 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42422 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42423 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42424 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42425 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42426 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42427 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42428 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42429 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42430 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42431 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42432 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42433 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42434 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42435 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42436 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42437 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42438 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42439 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42440 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42441 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42442 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42443 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42444 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42445 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42446 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42447 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42448 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42449 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42450 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42451 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42452 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42453 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42454 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"`'
42455 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"`'
42456 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42457 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42458 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42459 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42460 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42461 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42462 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42463 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42464 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42465 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42466 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42467 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42468 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42469 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42470 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42471 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42472 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42473 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42474 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42475 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42476 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42477 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42478 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42479 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42480 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42481 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42482 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42483 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42484 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42485 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42486 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42487 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42488 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42489 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42490 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42491 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42492 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42493 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42494 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42495 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42496 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42497 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42498 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42499 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42500 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42501 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42502 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42503 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42504 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42505 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42506 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42507 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42508 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42509 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42510 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42511 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42512 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42513 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42514 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42515 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42516 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42517 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42518 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42519 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42520 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42521 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42522 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42523 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42524 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42525 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42526 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42527 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42528 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42529 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42530 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42531 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42532 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42533 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42534 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42541 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42543 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42544 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42545 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42546 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42547 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42548 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42549 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42550 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42551 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42552 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42553 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42554 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42555 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42556 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42557 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42558 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42559 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42560 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42561 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42562 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42563 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42564 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42565 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42566 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42567 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42568 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42569 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42570 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42571 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42572 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42573 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42574 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42575 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42576 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42577 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42578 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42579 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42580 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42583 LTCFLAGS='$LTCFLAGS'
42584 compiler='$compiler_DEFAULT'
42586 # Quote evaled strings.
42598 deplibs_check_method \
42607 lt_cv_sys_global_symbol_pipe \
42608 lt_cv_sys_global_symbol_to_cdecl \
42609 lt_cv_sys_global_symbol_to_c_name_address \
42610 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42613 lt_prog_compiler_no_builtin_flag \
42614 lt_prog_compiler_wl \
42615 lt_prog_compiler_pic \
42616 lt_prog_compiler_static \
42617 lt_cv_prog_compiler_c_o \
42625 export_dynamic_flag_spec \
42626 whole_archive_flag_spec \
42627 compiler_needs_object \
42629 allow_undefined_flag \
42630 no_undefined_flag \
42631 hardcode_libdir_flag_spec \
42632 hardcode_libdir_flag_spec_ld \
42633 hardcode_libdir_separator \
42638 variables_saved_for_relink \
42640 library_names_spec \
42645 compiler_lib_search_dirs \
42650 compiler_lib_search_path \
42653 lt_prog_compiler_no_builtin_flag_CXX \
42654 lt_prog_compiler_wl_CXX \
42655 lt_prog_compiler_pic_CXX \
42656 lt_prog_compiler_static_CXX \
42657 lt_cv_prog_compiler_c_o_CXX \
42658 export_dynamic_flag_spec_CXX \
42659 whole_archive_flag_spec_CXX \
42660 compiler_needs_object_CXX \
42662 allow_undefined_flag_CXX \
42663 no_undefined_flag_CXX \
42664 hardcode_libdir_flag_spec_CXX \
42665 hardcode_libdir_flag_spec_ld_CXX \
42666 hardcode_libdir_separator_CXX \
42667 fix_srcfile_path_CXX \
42668 exclude_expsyms_CXX \
42669 include_expsyms_CXX \
42670 file_list_spec_CXX \
42671 compiler_lib_search_dirs_CXX \
42672 predep_objects_CXX \
42673 postdep_objects_CXX \
42676 compiler_lib_search_path_CXX; do
42677 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42678 *[\\\\\\\`\\"\\\$]*)
42679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42687 # Double-quote double-evaled strings.
42688 for var in reload_cmds \
42689 old_postinstall_cmds \
42690 old_postuninstall_cmds \
42692 extract_expsyms_cmds \
42693 old_archive_from_new_cmds \
42694 old_archive_from_expsyms_cmds \
42696 archive_expsym_cmds \
42698 module_expsym_cmds \
42699 export_symbols_cmds \
42702 postuninstall_cmds \
42704 sys_lib_search_path_spec \
42705 sys_lib_dlsearch_path_spec \
42706 old_archive_cmds_CXX \
42707 old_archive_from_new_cmds_CXX \
42708 old_archive_from_expsyms_cmds_CXX \
42710 archive_expsym_cmds_CXX \
42712 module_expsym_cmds_CXX \
42713 export_symbols_cmds_CXX \
42714 prelink_cmds_CXX; do
42715 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42716 *[\\\\\\\`\\"\\\$]*)
42717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42725 # Fix-up fallback echo if it was mangled by the above quoting rules.
42727 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42731 ac_aux_dir='$ac_aux_dir'
42732 xsi_shell='$xsi_shell'
42733 lt_shell_append='$lt_shell_append'
42735 # See if we are running on zsh, and set the options which allow our
42736 # commands through without removal of \ escapes INIT.
42737 if test -n "\${ZSH_VERSION+set}" ; then
42738 setopt NO_GLOB_SUBST
42744 TIMESTAMP='$TIMESTAMP'
42752 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42753 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42755 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42756 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42757 LINGUAS="${LINGUAS-%UNSET%}"
42762 cat >>$CONFIG_STATUS <<\_ACEOF
42764 # Handling of arguments.
42765 for ac_config_target in $ac_config_targets
42767 case $ac_config_target in
42768 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42769 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42770 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42771 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42773 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42774 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42775 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42776 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42777 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42778 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42779 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42780 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42781 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42782 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42783 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42784 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42785 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42786 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42787 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42788 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42789 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42790 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42791 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42792 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42793 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42794 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42795 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42796 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42797 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42798 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42799 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42800 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42801 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42802 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42803 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42804 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42805 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42806 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42807 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42808 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42809 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42810 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42811 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42812 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42813 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42814 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42815 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42816 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42817 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42818 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42819 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42820 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42821 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42822 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42823 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42824 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42825 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42826 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42827 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42828 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42829 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42830 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42831 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42832 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42833 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42834 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42835 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42836 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42837 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42838 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42839 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42840 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42841 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42842 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42843 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42844 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42845 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42846 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42847 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42848 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42849 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42850 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42851 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42852 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42853 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42854 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42855 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42856 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42857 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42858 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42859 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42860 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42861 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42862 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42863 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42864 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42865 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42866 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42867 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42868 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42869 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42870 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42871 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42872 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42873 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42874 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42875 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42876 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
42877 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42878 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42879 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42880 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42881 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42882 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42883 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42885 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42887 { (exit 1); exit 1; }; };;
42892 # If the user did not use the arguments to specify the items to instantiate,
42893 # then the envvar interface is used. Set only those that are not.
42894 # We use the long form for the default assignment because of an extremely
42895 # bizarre bug on SunOS 4.1.3.
42896 if $ac_need_defaults; then
42897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42902 # Have a temporary directory for convenience. Make it in the build tree
42903 # simply because there is no reason against having it here, and in addition,
42904 # creating and moving files from /tmp can sometimes cause problems.
42905 # Hook for its removal unless debugging.
42906 # Note that there is a small window in which the directory will not be cleaned:
42907 # after its creation but before its name has been assigned to `$tmp'.
42911 trap 'exit_status=$?
42912 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42914 trap '{ (exit 1); exit 1; }' 1 2 13 15
42916 # Create a (secure) tmp directory for tmp files.
42919 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42920 test -n "$tmp" && test -d "$tmp"
42923 tmp=./conf$$-$RANDOM
42924 (umask 077 && mkdir "$tmp")
42927 echo "$me: cannot create a temporary directory in ." >&2
42928 { (exit 1); exit 1; }
42932 # Set up the sed scripts for CONFIG_FILES section.
42935 # No need to generate the scripts if there are no CONFIG_FILES.
42936 # This happens for instance when ./config.status config.h
42937 if test -n "$CONFIG_FILES"; then
42941 # Create sed commands to just substitute file output variables.
42943 # Remaining file output variables are in a fragment that also has non-file
42949 for ac_last_try in false false false false false :; do
42950 cat >conf$$subs.sed <<_ACEOF
42951 SHELL!$SHELL$ac_delim
42952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42958 exec_prefix!$exec_prefix$ac_delim
42959 prefix!$prefix$ac_delim
42960 program_transform_name!$program_transform_name$ac_delim
42961 bindir!$bindir$ac_delim
42962 sbindir!$sbindir$ac_delim
42963 libexecdir!$libexecdir$ac_delim
42964 datarootdir!$datarootdir$ac_delim
42965 datadir!$datadir$ac_delim
42966 sysconfdir!$sysconfdir$ac_delim
42967 sharedstatedir!$sharedstatedir$ac_delim
42968 localstatedir!$localstatedir$ac_delim
42969 includedir!$includedir$ac_delim
42970 oldincludedir!$oldincludedir$ac_delim
42971 docdir!$docdir$ac_delim
42972 infodir!$infodir$ac_delim
42973 htmldir!$htmldir$ac_delim
42974 dvidir!$dvidir$ac_delim
42975 pdfdir!$pdfdir$ac_delim
42976 psdir!$psdir$ac_delim
42977 libdir!$libdir$ac_delim
42978 localedir!$localedir$ac_delim
42979 mandir!$mandir$ac_delim
42980 DEFS!$DEFS$ac_delim
42981 ECHO_C!$ECHO_C$ac_delim
42982 ECHO_N!$ECHO_N$ac_delim
42983 ECHO_T!$ECHO_T$ac_delim
42984 LIBS!$LIBS$ac_delim
42985 build_alias!$build_alias$ac_delim
42986 host_alias!$host_alias$ac_delim
42987 target_alias!$target_alias$ac_delim
42988 BUILD_DIR!$BUILD_DIR$ac_delim
42989 TOP_DIR!$TOP_DIR$ac_delim
42990 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
42991 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
42992 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
42993 TRUEPRG!$TRUEPRG$ac_delim
42994 FALSEPRG!$FALSEPRG$ac_delim
42995 VERSION!$VERSION$ac_delim
42996 DATE!$DATE$ac_delim
42997 LSMDATE!$LSMDATE$ac_delim
42998 BACULA!$BACULA$ac_delim
42999 post_host!$post_host$ac_delim
43001 CFLAGS!$CFLAGS$ac_delim
43002 LDFLAGS!$LDFLAGS$ac_delim
43003 CPPFLAGS!$CPPFLAGS$ac_delim
43004 ac_ct_CC!$ac_ct_CC$ac_delim
43005 EXEEXT!$EXEEXT$ac_delim
43006 OBJEXT!$OBJEXT$ac_delim
43008 CXXFLAGS!$CXXFLAGS$ac_delim
43009 ac_ct_CXX!$ac_ct_CXX$ac_delim
43011 GREP!$GREP$ac_delim
43012 EGREP!$EGREP$ac_delim
43013 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43014 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43015 INSTALL_DATA!$INSTALL_DATA$ac_delim
43017 REMOVE!$REMOVE$ac_delim
43020 ECHO!$ECHO$ac_delim
43024 OPENSSL!$OPENSSL$ac_delim
43027 MKISOFS!$MKISOFS$ac_delim
43028 PYTHON!$PYTHON$ac_delim
43029 GROWISOFS!$GROWISOFS$ac_delim
43030 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43031 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43032 PKGCONFIG!$PKGCONFIG$ac_delim
43033 QMAKE!$QMAKE$ac_delim
43034 QMAKEQT4!$QMAKEQT4$ac_delim
43035 WXCONFIG!$WXCONFIG$ac_delim
43036 WXFLAGS!$WXFLAGS$ac_delim
43037 CDRECORD!$CDRECORD$ac_delim
43038 PIDOF!$PIDOF$ac_delim
43040 ARFLAGS!$ARFLAGS$ac_delim
43041 MAKE_SHELL!$MAKE_SHELL$ac_delim
43042 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43043 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43044 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43047 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43049 elif $ac_last_try; then
43050 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43051 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43052 { (exit 1); exit 1; }; }
43054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43058 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43059 if test -n "$ac_eof"; then
43060 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43061 ac_eof=`expr $ac_eof + 1`
43064 cat >>$CONFIG_STATUS <<_ACEOF
43065 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43067 /^[ ]*@MCOMMON@[ ]*$/{
43073 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43074 s/^/s,@/; s/!/@,|#_!!_#|/
43077 s/'"$ac_delim"'$/,g/; t
43079 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43080 ' >>$CONFIG_STATUS <conf$$subs.sed
43081 rm -f conf$$subs.sed
43082 cat >>$CONFIG_STATUS <<_ACEOF
43088 for ac_last_try in false false false false false :; do
43089 cat >conf$$subs.sed <<_ACEOF
43090 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43091 LIBTOOL!$LIBTOOL$ac_delim
43092 build!$build$ac_delim
43093 build_cpu!$build_cpu$ac_delim
43094 build_vendor!$build_vendor$ac_delim
43095 build_os!$build_os$ac_delim
43096 host!$host$ac_delim
43097 host_cpu!$host_cpu$ac_delim
43098 host_vendor!$host_vendor$ac_delim
43099 host_os!$host_os$ac_delim
43100 FGREP!$FGREP$ac_delim
43102 DUMPBIN!$DUMPBIN$ac_delim
43103 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43105 LN_S!$LN_S$ac_delim
43106 OBJDUMP!$OBJDUMP$ac_delim
43107 STRIP!$STRIP$ac_delim
43108 RANLIB!$RANLIB$ac_delim
43109 lt_ECHO!$lt_ECHO$ac_delim
43110 DSYMUTIL!$DSYMUTIL$ac_delim
43111 NMEDIT!$NMEDIT$ac_delim
43112 LIPO!$LIPO$ac_delim
43113 OTOOL!$OTOOL$ac_delim
43114 OTOOL64!$OTOOL64$ac_delim
43115 CXXCPP!$CXXCPP$ac_delim
43116 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43117 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43118 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43119 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43120 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43121 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43122 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43123 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43124 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43125 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43126 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43127 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43128 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43129 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43130 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43131 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43132 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43133 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43134 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43135 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43136 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43137 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43138 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43139 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43140 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43141 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43142 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43143 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43144 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43145 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43146 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43147 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43148 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43149 SET_MAKE!$SET_MAKE$ac_delim
43150 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43151 USE_NLS!$USE_NLS$ac_delim
43152 MSGFMT!$MSGFMT$ac_delim
43153 GMSGFMT!$GMSGFMT$ac_delim
43154 XGETTEXT!$XGETTEXT$ac_delim
43155 MSGMERGE!$MSGMERGE$ac_delim
43156 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43157 LIBICONV!$LIBICONV$ac_delim
43158 LTLIBICONV!$LTLIBICONV$ac_delim
43159 INTLLIBS!$INTLLIBS$ac_delim
43160 LIBINTL!$LIBINTL$ac_delim
43161 LTLIBINTL!$LTLIBINTL$ac_delim
43162 POSUB!$POSUB$ac_delim
43163 GLIBC2!$GLIBC2$ac_delim
43164 ALLOCA!$ALLOCA$ac_delim
43165 GLIBC21!$GLIBC21$ac_delim
43166 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43167 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43168 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43169 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43170 INTLBISON!$INTLBISON$ac_delim
43171 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43172 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43173 CATOBJEXT!$CATOBJEXT$ac_delim
43174 DATADIRNAME!$DATADIRNAME$ac_delim
43175 INSTOBJEXT!$INSTOBJEXT$ac_delim
43176 GENCAT!$GENCAT$ac_delim
43177 INTLOBJS!$INTLOBJS$ac_delim
43178 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43179 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43180 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43181 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43182 GNOME_LIBS!$GNOME_LIBS$ac_delim
43183 GNOME_DIR!$GNOME_DIR$ac_delim
43184 BAT_DIR!$BAT_DIR$ac_delim
43185 QWT_INC!$QWT_INC$ac_delim
43186 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43189 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43191 elif $ac_last_try; then
43192 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43193 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43194 { (exit 1); exit 1; }; }
43196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43200 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43201 if test -n "$ac_eof"; then
43202 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43203 ac_eof=`expr $ac_eof + 1`
43206 cat >>$CONFIG_STATUS <<_ACEOF
43207 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43211 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43212 s/^/s,@/; s/!/@,|#_!!_#|/
43215 s/'"$ac_delim"'$/,g/; t
43217 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43218 ' >>$CONFIG_STATUS <conf$$subs.sed
43219 rm -f conf$$subs.sed
43220 cat >>$CONFIG_STATUS <<_ACEOF
43226 for ac_last_try in false false false false false :; do
43227 cat >conf$$subs.sed <<_ACEOF
43228 QWT_LIB!$QWT_LIB$ac_delim
43230 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43231 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43232 WX_DIR!$WX_DIR$ac_delim
43233 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43234 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43235 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43236 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43237 STATIC_FD!$STATIC_FD$ac_delim
43238 STATIC_SD!$STATIC_SD$ac_delim
43239 STATIC_DIR!$STATIC_DIR$ac_delim
43240 STATIC_CONS!$STATIC_CONS$ac_delim
43241 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43242 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43243 ALL_DIRS!$ALL_DIRS$ac_delim
43244 DIRD_DIR!$DIRD_DIR$ac_delim
43245 DIR_TOOLS!$DIR_TOOLS$ac_delim
43246 STORED_DIR!$STORED_DIR$ac_delim
43247 CONS_INC!$CONS_INC$ac_delim
43248 CONS_OBJ!$CONS_OBJ$ac_delim
43249 CONS_SRC!$CONS_SRC$ac_delim
43250 CONS_LIBS!$CONS_LIBS$ac_delim
43251 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43252 READLINE_SRC!$READLINE_SRC$ac_delim
43253 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43254 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43255 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43256 OPENSSL_INC!$OPENSSL_INC$ac_delim
43257 working_dir!$working_dir$ac_delim
43258 archivedir!$archivedir$ac_delim
43259 scriptdir!$scriptdir$ac_delim
43260 plugindir!$plugindir$ac_delim
43261 dump_email!$dump_email$ac_delim
43262 job_email!$job_email$ac_delim
43263 smtp_host!$smtp_host$ac_delim
43264 piddir!$piddir$ac_delim
43265 subsysdir!$subsysdir$ac_delim
43266 baseport!$baseport$ac_delim
43267 dir_port!$dir_port$ac_delim
43268 fd_port!$fd_port$ac_delim
43269 sd_port!$sd_port$ac_delim
43270 dir_password!$dir_password$ac_delim
43271 fd_password!$fd_password$ac_delim
43272 sd_password!$sd_password$ac_delim
43273 mon_dir_password!$mon_dir_password$ac_delim
43274 mon_fd_password!$mon_fd_password$ac_delim
43275 mon_sd_password!$mon_sd_password$ac_delim
43276 db_name!$db_name$ac_delim
43277 db_user!$db_user$ac_delim
43278 db_password!$db_password$ac_delim
43279 db_port!$db_port$ac_delim
43280 dir_user!$dir_user$ac_delim
43281 dir_group!$dir_group$ac_delim
43282 sd_user!$sd_user$ac_delim
43283 sd_group!$sd_group$ac_delim
43284 fd_user!$fd_user$ac_delim
43285 fd_group!$fd_group$ac_delim
43286 SBINPERM!$SBINPERM$ac_delim
43287 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43288 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43289 SQL_BINDIR!$SQL_BINDIR$ac_delim
43290 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43291 uncomment_dbi!$uncomment_dbi$ac_delim
43292 DB_PROG!$DB_PROG$ac_delim
43293 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43294 cats!$cats$ac_delim
43295 DB_TYPE!$DB_TYPE$ac_delim
43296 GETCONF!$GETCONF$ac_delim
43297 XMKMF!$XMKMF$ac_delim
43298 X_CFLAGS!$X_CFLAGS$ac_delim
43299 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43300 X_LIBS!$X_LIBS$ac_delim
43301 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43302 LIBOBJS!$LIBOBJS$ac_delim
43303 FDLIBS!$FDLIBS$ac_delim
43304 DEBUG!$DEBUG$ac_delim
43305 DINCLUDE!$DINCLUDE$ac_delim
43306 DLIB!$DLIB$ac_delim
43307 DB_LIBS!$DB_LIBS$ac_delim
43308 WCFLAGS!$WCFLAGS$ac_delim
43309 WLDFLAGS!$WLDFLAGS$ac_delim
43310 WRAPLIBS!$WRAPLIBS$ac_delim
43311 OBJLIST!$OBJLIST$ac_delim
43312 hostname!$hostname$ac_delim
43313 TAPEDRIVE!$TAPEDRIVE$ac_delim
43314 PSCMD!$PSCMD$ac_delim
43315 WIN32!$WIN32$ac_delim
43316 MACOSX!$MACOSX$ac_delim
43317 DISTNAME!$DISTNAME$ac_delim
43318 DISTVER!$DISTVER$ac_delim
43319 LTLIBOBJS!$LTLIBOBJS$ac_delim
43322 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
43324 elif $ac_last_try; then
43325 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43326 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43327 { (exit 1); exit 1; }; }
43329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43333 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43334 if test -n "$ac_eof"; then
43335 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43336 ac_eof=`expr $ac_eof + 1`
43339 cat >>$CONFIG_STATUS <<_ACEOF
43340 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43344 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43345 s/^/s,@/; s/!/@,|#_!!_#|/
43348 s/'"$ac_delim"'$/,g/; t
43350 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43351 ' >>$CONFIG_STATUS <conf$$subs.sed
43352 rm -f conf$$subs.sed
43353 cat >>$CONFIG_STATUS <<_ACEOF
43360 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43361 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43362 # trailing colons and then remove the whole line if VPATH becomes empty
43363 # (actually we leave an empty line to preserve line numbers).
43364 if test "x$srcdir" = x.; then
43365 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43366 s/:*\$(srcdir):*/:/
43367 s/:*\${srcdir}:*/:/
43369 s/^\([^=]*=[ ]*\):*/\1/
43375 cat >>$CONFIG_STATUS <<\_ACEOF
43376 fi # test -n "$CONFIG_FILES"
43379 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43382 :[FHLC]) ac_mode=$ac_tag; continue;;
43384 case $ac_mode$ac_tag in
43386 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43387 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43388 { (exit 1); exit 1; }; };;
43389 :[FH]-) ac_tag=-:-;;
43390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43407 -) ac_f="$tmp/stdin";;
43408 *) # Look for the file first in the build tree, then in the source tree
43409 # (if the path is not absolute). The absolute path cannot be DOS-style,
43410 # because $ac_f cannot contain `:'.
43414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43416 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43417 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43418 { (exit 1); exit 1; }; };;
43420 ac_file_inputs="$ac_file_inputs $ac_f"
43423 # Let's still pretend it is `configure' which instantiates (i.e., don't
43424 # use $as_me), people would be surprised to read:
43425 # /* config.h. Generated by config.status. */
43426 configure_input="Generated from "`IFS=:
43427 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43428 if test x"$ac_file" != x-; then
43429 configure_input="$ac_file. $configure_input"
43430 { echo "$as_me:$LINENO: creating $ac_file" >&5
43431 echo "$as_me: creating $ac_file" >&6;}
43435 *:-:* | *:-) cat >"$tmp/stdin";;
43440 ac_dir=`$as_dirname -- "$ac_file" ||
43441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43442 X"$ac_file" : 'X\(//\)[^/]' \| \
43443 X"$ac_file" : 'X\(//\)$' \| \
43444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43450 /^X\(\/\/\)[^/].*/{
43465 -*) as_dir=./$as_dir;;
43467 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43471 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43472 *) as_qdir=$as_dir;;
43474 as_dirs="'$as_qdir' $as_dirs"
43475 as_dir=`$as_dirname -- "$as_dir" ||
43476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43477 X"$as_dir" : 'X\(//\)[^/]' \| \
43478 X"$as_dir" : 'X\(//\)$' \| \
43479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43485 /^X\(\/\/\)[^/].*/{
43498 test -d "$as_dir" && break
43500 test -z "$as_dirs" || eval "mkdir $as_dirs"
43501 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43502 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43503 { (exit 1); exit 1; }; }; }
43507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43510 # A ".." for each directory in $ac_dir_suffix.
43511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43512 case $ac_top_builddir_sub in
43513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43517 ac_abs_top_builddir=$ac_pwd
43518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43519 # for backward compatibility:
43520 ac_top_builddir=$ac_top_build_prefix
43523 .) # We are building in place.
43525 ac_top_srcdir=$ac_top_builddir_sub
43526 ac_abs_top_srcdir=$ac_pwd ;;
43527 [\\/]* | ?:[\\/]* ) # Absolute name.
43528 ac_srcdir=$srcdir$ac_dir_suffix;
43529 ac_top_srcdir=$srcdir
43530 ac_abs_top_srcdir=$srcdir ;;
43531 *) # Relative name.
43532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43533 ac_top_srcdir=$ac_top_build_prefix$srcdir
43534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43551 cat >>$CONFIG_STATUS <<\_ACEOF
43552 # If the template does not know about datarootdir, expand it.
43553 # FIXME: This hack should be removed a few years after 2.60.
43554 ac_datarootdir_hack=; ac_datarootdir_seen=
43556 case `sed -n '/datarootdir/ {
43565 ' $ac_file_inputs` in
43566 *datarootdir*) ac_datarootdir_seen=yes;;
43567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43568 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43569 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43571 cat >>$CONFIG_STATUS <<_ACEOF
43572 ac_datarootdir_hack='
43573 s&@datadir@&$datadir&g
43574 s&@docdir@&$docdir&g
43575 s&@infodir@&$infodir&g
43576 s&@localedir@&$localedir&g
43577 s&@mandir@&$mandir&g
43578 s&\\\${datarootdir}&$datarootdir&g' ;;
43582 # Neutralize VPATH when `$srcdir' = `.'.
43583 # Shell code in configure.ac might set extrasub.
43584 # FIXME: do we really want to maintain this feature?
43585 cat >>$CONFIG_STATUS <<_ACEOF
43589 cat >>$CONFIG_STATUS <<\_ACEOF
43591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43592 s&@configure_input@&$configure_input&;t t
43593 s&@top_builddir@&$ac_top_builddir_sub&;t t
43594 s&@srcdir@&$ac_srcdir&;t t
43595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43596 s&@top_srcdir@&$ac_top_srcdir&;t t
43597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43598 s&@builddir@&$ac_builddir&;t t
43599 s&@abs_builddir@&$ac_abs_builddir&;t t
43600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43601 s&@INSTALL@&$ac_INSTALL&;t t
43602 $ac_datarootdir_hack
43603 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43605 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43606 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43607 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43608 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43609 which seems to be undefined. Please make sure it is defined." >&5
43610 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43611 which seems to be undefined. Please make sure it is defined." >&2;}
43615 -) cat "$tmp/out"; rm -f "$tmp/out";;
43616 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43625 # Transform confdefs.h into a sed script `conftest.defines', that
43626 # substitutes the proper values into config.h.in to produce config.h.
43627 rm -f conftest.defines conftest.tail
43628 # First, append a space to every undef/define line, to ease matching.
43629 echo 's/$/ /' >conftest.defines
43630 # Then, protect against being on the right side of a sed subst, or in
43631 # an unquoted here document, in config.status. If some macros were
43632 # called several times there might be several #defines for the same
43633 # symbol, which is useless. But do not sort them, since the last
43634 # AC_DEFINE must be honored.
43635 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43636 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43637 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43638 # PARAMS is the parameter list in the macro definition--in most cases, it's
43639 # just an empty string.
43640 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43641 ac_dB='\\)[ (].*,\\1define\\2'
43649 s/^[ ]*#[ ]*define[ ][ ]*//
43654 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43655 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43656 ' >>conftest.defines
43658 # Remove the space that was appended to ease matching.
43659 # Then replace #undef with comments. This is necessary, for
43660 # example, in the case of _POSIX_SOURCE, which is predefined and required
43661 # on some systems where configure will not decide to define it.
43662 # (The regexp can be short, since the line contains either #define or #undef.)
43664 s,^[ #]*u.*,/* & */,' >>conftest.defines
43666 # Break up conftest.defines:
43667 ac_max_sed_lines=50
43669 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43670 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43671 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43673 ac_in='$ac_file_inputs'
43674 ac_out='"$tmp/out1"'
43675 ac_nxt='"$tmp/out2"'
43679 # Write a here document:
43680 cat >>$CONFIG_STATUS <<_ACEOF
43681 # First, check the format of the line:
43682 cat >"\$tmp/defines.sed" <<\\CEOF
43683 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43684 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43688 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43690 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43691 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43692 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43693 grep . conftest.tail >/dev/null || break
43694 rm -f conftest.defines
43695 mv conftest.tail conftest.defines
43697 rm -f conftest.defines conftest.tail
43699 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43700 cat >>$CONFIG_STATUS <<\_ACEOF
43701 if test x"$ac_file" != x-; then
43702 echo "/* $configure_input */" >"$tmp/config.h"
43703 cat "$ac_result" >>"$tmp/config.h"
43704 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43706 echo "$as_me: $ac_file is unchanged" >&6;}
43709 mv "$tmp/config.h" $ac_file
43712 echo "/* $configure_input */"
43718 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43719 echo "$as_me: executing $ac_file commands" >&6;}
43724 case $ac_file$ac_mode in
43727 # See if we are running on zsh, and set the options which allow our
43728 # commands through without removal of \ escapes.
43729 if test -n "${ZSH_VERSION+set}" ; then
43730 setopt NO_GLOB_SUBST
43733 cfgfile="${ofile}T"
43734 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43737 cat <<_LT_EOF >> "$cfgfile"
43740 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43741 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43745 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43746 # 2006, 2007, 2008 Free Software Foundation, Inc.
43747 # Written by Gordon Matzigkeit, 1996
43749 # This file is part of GNU Libtool.
43751 # GNU Libtool is free software; you can redistribute it and/or
43752 # modify it under the terms of the GNU General Public License as
43753 # published by the Free Software Foundation; either version 2 of
43754 # the License, or (at your option) any later version.
43756 # As a special exception to the GNU General Public License,
43757 # if you distribute this file as part of a program or library that
43758 # is built using GNU Libtool, you may include this file under the
43759 # same distribution terms that you use for the rest of that program.
43761 # GNU Libtool is distributed in the hope that it will be useful,
43762 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43764 # GNU General Public License for more details.
43766 # You should have received a copy of the GNU General Public License
43767 # along with GNU Libtool; see the file COPYING. If not, a copy
43768 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43769 # obtained by writing to the Free Software Foundation, Inc.,
43770 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43773 # The names of the tagged configurations supported by this script.
43774 available_tags="CXX "
43776 # ### BEGIN LIBTOOL CONFIG
43778 # Which release of libtool.m4 was used?
43779 macro_version=$macro_version
43780 macro_revision=$macro_revision
43782 # Whether or not to build shared libraries.
43783 build_libtool_libs=$enable_shared
43785 # Whether or not to build static libraries.
43786 build_old_libs=$enable_static
43788 # What type of objects to build.
43791 # Whether or not to optimize for fast installation.
43792 fast_install=$enable_fast_install
43795 host_alias=$host_alias
43799 # The build system.
43800 build_alias=$build_alias
43804 # A sed program that does not truncate output.
43807 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43808 Xsed="\$SED -e 1s/^X//"
43810 # A grep program that handles long lines.
43816 # A literal string matcher.
43819 # A BSD- or MS-compatible name lister.
43822 # Whether we need soft or hard links.
43825 # What is the maximum length of a command?
43826 max_cmd_len=$max_cmd_len
43828 # Object file suffix (normally "o").
43831 # Executable file suffix (normally "").
43834 # whether the shell understands "unset".
43837 # turn spaces into newlines.
43840 # turn newlines into spaces.
43843 # How to create reloadable object files.
43844 reload_flag=$lt_reload_flag
43845 reload_cmds=$lt_reload_cmds
43847 # An object symbol dumper.
43848 OBJDUMP=$lt_OBJDUMP
43850 # Method to check whether dependent libraries are shared objects.
43851 deplibs_check_method=$lt_deplibs_check_method
43853 # Command to use when deplibs_check_method == "file_magic".
43854 file_magic_cmd=$lt_file_magic_cmd
43858 AR_FLAGS=$lt_AR_FLAGS
43860 # A symbol stripping program.
43863 # Commands used to install an old-style archive.
43865 old_postinstall_cmds=$lt_old_postinstall_cmds
43866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43871 # LTCC compiler flags.
43872 LTCFLAGS=$lt_CFLAGS
43874 # Take the output of nm and produce a listing of raw symbols and C names.
43875 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43877 # Transform the output of nm in a proper C declaration.
43878 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43880 # Transform the output of nm in a C name address pair.
43881 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43883 # Transform the output of nm in a C name address pair when lib prefix is needed.
43884 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43886 # The name of the directory that contains temporary libtool files.
43889 # Shell to use when invoking shell scripts.
43892 # An echo program that does not interpret backslashes.
43895 # Used to examine libraries when file_magic_cmd begins with "file".
43896 MAGIC_CMD=$MAGIC_CMD
43898 # Must we lock files when doing compilation?
43899 need_locks=$lt_need_locks
43901 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43902 DSYMUTIL=$lt_DSYMUTIL
43904 # Tool to change global to local symbols on Mac OS X.
43907 # Tool to manipulate fat objects and archives on Mac OS X.
43910 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43913 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43914 OTOOL64=$lt_OTOOL64
43916 # Old archive suffix (normally "a").
43919 # Shared library suffix (normally ".so").
43920 shrext_cmds=$lt_shrext_cmds
43922 # The commands to extract the exported symbol list from a shared archive.
43923 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43925 # Variables whose values should be saved in libtool wrapper scripts and
43926 # restored at link time.
43927 variables_saved_for_relink=$lt_variables_saved_for_relink
43929 # Do we need the "lib" prefix for modules?
43930 need_lib_prefix=$need_lib_prefix
43932 # Do we need a version for libraries?
43933 need_version=$need_version
43935 # Library versioning type.
43936 version_type=$version_type
43938 # Shared library runtime path variable.
43939 runpath_var=$runpath_var
43941 # Shared library path variable.
43942 shlibpath_var=$shlibpath_var
43944 # Is shlibpath searched before the hard-coded library search path?
43945 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43947 # Format of library name prefix.
43948 libname_spec=$lt_libname_spec
43950 # List of archive names. First name is the real one, the rest are links.
43951 # The last name is the one that the linker finds with -lNAME
43952 library_names_spec=$lt_library_names_spec
43954 # The coded name of the library, if different from the real name.
43955 soname_spec=$lt_soname_spec
43957 # Command to use after installation of a shared archive.
43958 postinstall_cmds=$lt_postinstall_cmds
43960 # Command to use after uninstallation of a shared archive.
43961 postuninstall_cmds=$lt_postuninstall_cmds
43963 # Commands used to finish a libtool library installation in a directory.
43964 finish_cmds=$lt_finish_cmds
43966 # As "finish_cmds", except a single script fragment to be evaled but
43968 finish_eval=$lt_finish_eval
43970 # Whether we should hardcode library paths into libraries.
43971 hardcode_into_libs=$hardcode_into_libs
43973 # Compile-time system search path for libraries.
43974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43976 # Run-time system search path for libraries.
43977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43979 # Whether dlopen is supported.
43980 dlopen_support=$enable_dlopen
43982 # Whether dlopen of programs is supported.
43983 dlopen_self=$enable_dlopen_self
43985 # Whether dlopen of statically linked programs is supported.
43986 dlopen_self_static=$enable_dlopen_self_static
43988 # Commands to strip libraries.
43989 old_striplib=$lt_old_striplib
43990 striplib=$lt_striplib
43993 # The linker used to build libraries.
43996 # Commands used to build an old-style archive.
43997 old_archive_cmds=$lt_old_archive_cmds
43999 # A language specific compiler.
44002 # Is the compiler the GNU compiler?
44005 # Compiler flag to turn off builtin functions.
44006 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
44008 # How to pass a linker flag through the compiler.
44009 wl=$lt_lt_prog_compiler_wl
44011 # Additional compiler flags for building library objects.
44012 pic_flag=$lt_lt_prog_compiler_pic
44014 # Compiler flag to prevent dynamic linking.
44015 link_static_flag=$lt_lt_prog_compiler_static
44017 # Does compiler simultaneously support -c and -o options?
44018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
44020 # Whether or not to add -lc for building shared libraries.
44021 build_libtool_need_lc=$archive_cmds_need_lc
44023 # Whether or not to disallow shared libs when runtime libs are static.
44024 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
44026 # Compiler flag to allow reflexive dlopens.
44027 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44029 # Compiler flag to generate shared objects directly from archives.
44030 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44032 # Whether the compiler copes with passing no objects directly.
44033 compiler_needs_object=$lt_compiler_needs_object
44035 # Create an old-style archive from a shared archive.
44036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44038 # Create a temporary old-style archive to link instead of a shared archive.
44039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44041 # Commands used to build a shared archive.
44042 archive_cmds=$lt_archive_cmds
44043 archive_expsym_cmds=$lt_archive_expsym_cmds
44045 # Commands used to build a loadable module if different from building
44046 # a shared archive.
44047 module_cmds=$lt_module_cmds
44048 module_expsym_cmds=$lt_module_expsym_cmds
44050 # Whether we are building with GNU ld or not.
44051 with_gnu_ld=$lt_with_gnu_ld
44053 # Flag that allows shared libraries with undefined symbols to be built.
44054 allow_undefined_flag=$lt_allow_undefined_flag
44056 # Flag that enforces no undefined symbols.
44057 no_undefined_flag=$lt_no_undefined_flag
44059 # Flag to hardcode \$libdir into a binary during linking.
44060 # This must work even if \$libdir does not exist
44061 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44063 # If ld is used when linking, flag to hardcode \$libdir into a binary
44064 # during linking. This must work even if \$libdir does not exist.
44065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44067 # Whether we need a single "-rpath" flag with a separated argument.
44068 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44070 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44071 # DIR into the resulting binary.
44072 hardcode_direct=$hardcode_direct
44074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44075 # DIR into the resulting binary and the resulting library dependency is
44076 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44077 # library is relocated.
44078 hardcode_direct_absolute=$hardcode_direct_absolute
44080 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44081 # into the resulting binary.
44082 hardcode_minus_L=$hardcode_minus_L
44084 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44085 # into the resulting binary.
44086 hardcode_shlibpath_var=$hardcode_shlibpath_var
44088 # Set to "yes" if building a shared library automatically hardcodes DIR
44089 # into the library and all subsequent libraries and executables linked
44091 hardcode_automatic=$hardcode_automatic
44093 # Set to yes if linker adds runtime paths of dependent libraries
44094 # to runtime path list.
44095 inherit_rpath=$inherit_rpath
44097 # Whether libtool must link a program against all its dependency libraries.
44098 link_all_deplibs=$link_all_deplibs
44100 # Fix the shell variable \$srcfile for the compiler.
44101 fix_srcfile_path=$lt_fix_srcfile_path
44103 # Set to "yes" if exported symbols are required.
44104 always_export_symbols=$always_export_symbols
44106 # The commands to list exported symbols.
44107 export_symbols_cmds=$lt_export_symbols_cmds
44109 # Symbols that should not be listed in the preloaded symbols.
44110 exclude_expsyms=$lt_exclude_expsyms
44112 # Symbols that must always be exported.
44113 include_expsyms=$lt_include_expsyms
44115 # Commands necessary for linking programs (against libraries) with templates.
44116 prelink_cmds=$lt_prelink_cmds
44118 # Specify filename containing input files.
44119 file_list_spec=$lt_file_list_spec
44121 # How to hardcode a shared library path into an executable.
44122 hardcode_action=$hardcode_action
44124 # The directories searched by this compiler when creating a shared library.
44125 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44127 # Dependencies to place before and after the objects being linked to
44128 # create a shared library.
44129 predep_objects=$lt_predep_objects
44130 postdep_objects=$lt_postdep_objects
44131 predeps=$lt_predeps
44132 postdeps=$lt_postdeps
44134 # The library search path used internally by the compiler when linking
44135 # a shared library.
44136 compiler_lib_search_path=$lt_compiler_lib_search_path
44138 # ### END LIBTOOL CONFIG
44144 cat <<\_LT_EOF >> "$cfgfile"
44145 # AIX sometimes has problems with the GCC collect2 program. For some
44146 # reason, if we set the COLLECT_NAMES environment variable, the problems
44147 # vanish in a puff of smoke.
44148 if test "X${COLLECT_NAMES+set}" != Xset; then
44150 export COLLECT_NAMES
44157 ltmain="$ac_aux_dir/ltmain.sh"
44160 # We use sed instead of cat because bash on DJGPP gets confused if
44161 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44162 # text mode, it properly converts lines to CR/LF. This bash problem
44163 # is reportedly fixed, but why not run on old versions too?
44164 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44165 || (rm -f "$cfgfile"; exit 1)
44169 cat << \_LT_EOF >> "$cfgfile"
44171 # func_dirname file append nondir_replacement
44172 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44173 # otherwise set result to NONDIR_REPLACEMENT.
44177 */*) func_dirname_result="${1%/*}${2}" ;;
44178 * ) func_dirname_result="${3}" ;;
44182 # func_basename file
44185 func_basename_result="${1##*/}"
44188 # func_dirname_and_basename file append nondir_replacement
44189 # perform func_basename and func_dirname in a single function
44191 # dirname: Compute the dirname of FILE. If nonempty,
44192 # add APPEND to the result, otherwise set result
44193 # to NONDIR_REPLACEMENT.
44194 # value returned in "$func_dirname_result"
44195 # basename: Compute filename of FILE.
44196 # value retuned in "$func_basename_result"
44197 # Implementation must be kept synchronized with func_dirname
44198 # and func_basename. For efficiency, we do not delegate to
44199 # those functions but instead duplicate the functionality here.
44200 func_dirname_and_basename ()
44203 */*) func_dirname_result="${1%/*}${2}" ;;
44204 * ) func_dirname_result="${3}" ;;
44206 func_basename_result="${1##*/}"
44209 # func_stripname prefix suffix name
44210 # strip PREFIX and SUFFIX off of NAME.
44211 # PREFIX and SUFFIX must not contain globbing or regex special
44212 # characters, hashes, percent signs, but SUFFIX may contain a leading
44213 # dot (in which case that matches only a dot).
44216 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44217 # positional parameters, so assign one to ordinary parameter first.
44218 func_stripname_result=${3}
44219 func_stripname_result=${func_stripname_result#"${1}"}
44220 func_stripname_result=${func_stripname_result%"${2}"}
44226 func_opt_split_opt=${1%%=*}
44227 func_opt_split_arg=${1#*=}
44234 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44235 *) func_lo2o_result=${1} ;;
44239 # func_xform libobj-or-source
44242 func_xform_result=${1%.*}.lo
44245 # func_arith arithmetic-term...
44248 func_arith_result=$(( $* ))
44252 # STRING may not start with a hyphen.
44255 func_len_result=${#1}
44260 *) # Bourne compatible functions.
44261 cat << \_LT_EOF >> "$cfgfile"
44263 # func_dirname file append nondir_replacement
44264 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44265 # otherwise set result to NONDIR_REPLACEMENT.
44268 # Extract subdirectory from the argument.
44269 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44270 if test "X$func_dirname_result" = "X${1}"; then
44271 func_dirname_result="${3}"
44273 func_dirname_result="$func_dirname_result${2}"
44277 # func_basename file
44280 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44284 # func_stripname prefix suffix name
44285 # strip PREFIX and SUFFIX off of NAME.
44286 # PREFIX and SUFFIX must not contain globbing or regex special
44287 # characters, hashes, percent signs, but SUFFIX may contain a leading
44288 # dot (in which case that matches only a dot).
44289 # func_strip_suffix prefix name
44293 .*) func_stripname_result=`$ECHO "X${3}" \
44294 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44295 *) func_stripname_result=`$ECHO "X${3}" \
44296 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44301 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44302 my_sed_long_arg='1s/^-[^=]*=//'
44307 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44308 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44314 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44317 # func_xform libobj-or-source
44320 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44323 # func_arith arithmetic-term...
44326 func_arith_result=`expr "$@"`
44330 # STRING may not start with a hyphen.
44333 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44339 case $lt_shell_append in
44341 cat << \_LT_EOF >> "$cfgfile"
44343 # func_append var value
44344 # Append VALUE to the end of shell variable VAR.
44352 cat << \_LT_EOF >> "$cfgfile"
44354 # func_append var value
44355 # Append VALUE to the end of shell variable VAR.
44366 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44367 || (rm -f "$cfgfile"; exit 1)
44369 mv -f "$cfgfile" "$ofile" ||
44370 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44374 cat <<_LT_EOF >> "$ofile"
44376 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44378 # The linker used to build libraries.
44381 # Commands used to build an old-style archive.
44382 old_archive_cmds=$lt_old_archive_cmds_CXX
44384 # A language specific compiler.
44385 CC=$lt_compiler_CXX
44387 # Is the compiler the GNU compiler?
44390 # Compiler flag to turn off builtin functions.
44391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44393 # How to pass a linker flag through the compiler.
44394 wl=$lt_lt_prog_compiler_wl_CXX
44396 # Additional compiler flags for building library objects.
44397 pic_flag=$lt_lt_prog_compiler_pic_CXX
44399 # Compiler flag to prevent dynamic linking.
44400 link_static_flag=$lt_lt_prog_compiler_static_CXX
44402 # Does compiler simultaneously support -c and -o options?
44403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44405 # Whether or not to add -lc for building shared libraries.
44406 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44408 # Whether or not to disallow shared libs when runtime libs are static.
44409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44411 # Compiler flag to allow reflexive dlopens.
44412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44414 # Compiler flag to generate shared objects directly from archives.
44415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44417 # Whether the compiler copes with passing no objects directly.
44418 compiler_needs_object=$lt_compiler_needs_object_CXX
44420 # Create an old-style archive from a shared archive.
44421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44423 # Create a temporary old-style archive to link instead of a shared archive.
44424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44426 # Commands used to build a shared archive.
44427 archive_cmds=$lt_archive_cmds_CXX
44428 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44430 # Commands used to build a loadable module if different from building
44431 # a shared archive.
44432 module_cmds=$lt_module_cmds_CXX
44433 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44435 # Whether we are building with GNU ld or not.
44436 with_gnu_ld=$lt_with_gnu_ld_CXX
44438 # Flag that allows shared libraries with undefined symbols to be built.
44439 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44441 # Flag that enforces no undefined symbols.
44442 no_undefined_flag=$lt_no_undefined_flag_CXX
44444 # Flag to hardcode \$libdir into a binary during linking.
44445 # This must work even if \$libdir does not exist
44446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44448 # If ld is used when linking, flag to hardcode \$libdir into a binary
44449 # during linking. This must work even if \$libdir does not exist.
44450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44452 # Whether we need a single "-rpath" flag with a separated argument.
44453 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44456 # DIR into the resulting binary.
44457 hardcode_direct=$hardcode_direct_CXX
44459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44460 # DIR into the resulting binary and the resulting library dependency is
44461 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44462 # library is relocated.
44463 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44466 # into the resulting binary.
44467 hardcode_minus_L=$hardcode_minus_L_CXX
44469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44470 # into the resulting binary.
44471 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44473 # Set to "yes" if building a shared library automatically hardcodes DIR
44474 # into the library and all subsequent libraries and executables linked
44476 hardcode_automatic=$hardcode_automatic_CXX
44478 # Set to yes if linker adds runtime paths of dependent libraries
44479 # to runtime path list.
44480 inherit_rpath=$inherit_rpath_CXX
44482 # Whether libtool must link a program against all its dependency libraries.
44483 link_all_deplibs=$link_all_deplibs_CXX
44485 # Fix the shell variable \$srcfile for the compiler.
44486 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44488 # Set to "yes" if exported symbols are required.
44489 always_export_symbols=$always_export_symbols_CXX
44491 # The commands to list exported symbols.
44492 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44494 # Symbols that should not be listed in the preloaded symbols.
44495 exclude_expsyms=$lt_exclude_expsyms_CXX
44497 # Symbols that must always be exported.
44498 include_expsyms=$lt_include_expsyms_CXX
44500 # Commands necessary for linking programs (against libraries) with templates.
44501 prelink_cmds=$lt_prelink_cmds_CXX
44503 # Specify filename containing input files.
44504 file_list_spec=$lt_file_list_spec_CXX
44506 # How to hardcode a shared library path into an executable.
44507 hardcode_action=$hardcode_action_CXX
44509 # The directories searched by this compiler when creating a shared library.
44510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44512 # Dependencies to place before and after the objects being linked to
44513 # create a shared library.
44514 predep_objects=$lt_predep_objects_CXX
44515 postdep_objects=$lt_postdep_objects_CXX
44516 predeps=$lt_predeps_CXX
44517 postdeps=$lt_postdeps_CXX
44519 # The library search path used internally by the compiler when linking
44520 # a shared library.
44521 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44523 # ### END LIBTOOL TAG CONFIG: CXX
44528 for ac_file in $CONFIG_FILES; do
44529 # Support "outfile[:infile[:infile...]]"
44531 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44533 # PO directories have a Makefile.in generated from Makefile.in.in.
44534 case "$ac_file" in */Makefile.in)
44535 # Adjust a relative srcdir.
44536 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44537 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44538 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44539 # In autoconf-2.13 it is called $ac_given_srcdir.
44540 # In autoconf-2.50 it is called $srcdir.
44541 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44542 case "$ac_given_srcdir" in
44543 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44544 /*) top_srcdir="$ac_given_srcdir" ;;
44545 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44547 # Treat a directory as a PO directory if and only if it has a
44548 # POTFILES.in file. This allows packages to have multiple PO
44549 # directories under different names or in different locations.
44550 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44551 rm -f "$ac_dir/POTFILES"
44552 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44553 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44554 POMAKEFILEDEPS="POTFILES.in"
44555 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44556 # on $ac_dir but don't depend on user-specified configuration
44558 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44559 # The LINGUAS file contains the set of available languages.
44560 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44561 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44563 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44564 # Hide the ALL_LINGUAS assigment from automake.
44565 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44566 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44568 # The set of available languages was given in configure.in.
44569 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44572 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44573 # Compute UPDATEPOFILES
44574 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44575 # Compute DUMMYPOFILES
44576 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44578 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44579 case "$ac_given_srcdir" in
44581 *) srcdirpre='$(srcdir)/' ;;
44587 for lang in $ALL_LINGUAS; do
44588 POFILES="$POFILES $srcdirpre$lang.po"
44589 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44590 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44591 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44593 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44594 # environment variable.
44596 if test -n "$ALL_LINGUAS"; then
44597 for presentlang in $ALL_LINGUAS; do
44599 if test "%UNSET%" != "$LINGUAS"; then
44600 desiredlanguages="$LINGUAS"
44602 desiredlanguages="$ALL_LINGUAS"
44604 for desiredlang in $desiredlanguages; do
44605 # Use the presentlang catalog if desiredlang is
44606 # a. equal to presentlang, or
44607 # b. a variant of presentlang (because in this case,
44608 # presentlang can be used as a fallback for messages
44609 # which are not translated in the desiredlang catalog).
44610 case "$desiredlang" in
44611 "$presentlang"*) useit=yes;;
44614 if test $useit = yes; then
44615 INST_LINGUAS="$INST_LINGUAS $presentlang"
44620 if test -n "$INST_LINGUAS"; then
44621 for lang in $INST_LINGUAS; do
44622 CATALOGS="$CATALOGS $lang.gmo"
44625 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44626 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"
44627 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44628 if test -f "$f"; then
44630 *.orig | *.bak | *~) ;;
44631 *) cat "$f" >> "$ac_dir/Makefile" ;;
44646 { (exit 0); exit 0; }
44648 chmod +x $CONFIG_STATUS
44649 ac_clean_files=$ac_clean_files_save
44652 # configure is writing to config.log, and then calls config.status.
44653 # config.status does its own redirection, appending to config.log.
44654 # Unfortunately, on DOS this fails, as config.log is still kept open
44655 # by configure, so config.status won't be able to write to it; its
44656 # output is simply discarded. So we exec the FD to /dev/null,
44657 # effectively closing config.log, so it can be properly (re)opened and
44658 # appended to by config.status. When coming back to configure, we
44659 # need to make the FD available again.
44660 if test "$no_create" != yes; then
44662 ac_config_status_args=
44663 test "$silent" = yes &&
44664 ac_config_status_args="$ac_config_status_args --quiet"
44666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44669 # would make configure fail if this is the last instruction.
44670 $ac_cs_success || { (exit 1); exit 1; }
44674 if test "${support_bat}" = "yes" ; then
44675 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44676 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44682 if test "x$QMAKEQT4" != "xnone"; then
44687 chmod 755 install_conf_file build-depkgs-qt-console
44688 echo "Creating bat Makefile"
44694 if test X"$GCC" = "Xyes" ; then
44695 echo "Doing make of dependencies"
44696 ${MAKE:-make} depend
44700 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44701 chmod 755 dvd-handler dvd-simulator
44702 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44706 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44707 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44711 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44712 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44714 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44715 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44717 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44718 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44720 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44721 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44723 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44724 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44726 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44727 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44729 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44730 chmod 755 $c/sqlite
44733 chmod 755 src/win32/build-depkgs-mingw32
44735 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44736 largefile_support="yes"
44739 if test X"$GCC" = "Xyes" ; then
44740 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44741 if test "x${CCVERSION}" = "x" ; then
44742 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44744 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44745 if test x"${CXXVERSION}" = x ; then
44746 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44750 # clean up any old junk
44756 if test "x${db_type}" = "xInternal" ; then
44759 echo "You have not specified either --enable-client-only or one of the"
44760 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44761 echo " This is not permitted. Please reconfigure."
44763 echo "Aborting the configuration ..."
44770 Configuration on `date`:
44772 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44773 Bacula version: ${BACULA} ${VERSION} (${DATE})
44774 Source code location: ${srcdir}
44775 Install binaries: ${sbindir}
44776 Install libraries: ${libdir}
44777 Install config files: ${sysconfdir}
44778 Scripts directory: ${scriptdir}
44779 Archive directory: ${archivedir}
44780 Working directory: ${working_dir}
44781 PID directory: ${piddir}
44782 Subsys directory: ${subsysdir}
44783 Man directory: ${mandir}
44784 Data directory: ${datarootdir}
44785 Plugin directory: ${plugindir}
44786 C Compiler: ${CC} ${CCVERSION}
44787 C++ Compiler: ${CXX} ${CXXVERSION}
44788 Compiler flags: ${WCFLAGS} ${CFLAGS}
44789 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44791 Statically Linked Tools: ${support_static_tools}
44792 Statically Linked FD: ${support_static_fd}
44793 Statically Linked SD: ${support_static_sd}
44794 Statically Linked DIR: ${support_static_dir}
44795 Statically Linked CONS: ${support_static_cons}
44796 Database type: ${db_type}
44797 Database port: ${db_port}
44798 Database lib: ${DB_LIBS}
44799 Database name: ${db_name}
44800 Database user: ${db_user}
44802 Job Output Email: ${job_email}
44803 Traceback Email: ${dump_email}
44804 SMTP Host Address: ${smtp_host}
44806 Director Port: ${dir_port}
44807 File daemon Port: ${fd_port}
44808 Storage daemon Port: ${sd_port}
44810 Director User: ${dir_user}
44811 Director Group: ${dir_group}
44812 Storage Daemon User: ${sd_user}
44813 Storage DaemonGroup: ${sd_group}
44814 File Daemon User: ${fd_user}
44815 File Daemon Group: ${fd_group}
44817 SQL binaries Directory ${SQL_BINDIR}
44819 Large file support: $largefile_support
44820 Bacula conio support: ${got_conio} ${CONS_LIBS}
44821 readline support: ${got_readline} ${PRTREADLINE_SRC}
44822 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44823 TLS support: ${support_tls}
44824 Encryption support: ${support_crypto}
44825 ZLIB support: ${have_zlib}
44826 enable-smartalloc: ${support_smartalloc}
44827 enable-lockmgr: ${support_lockmgr}
44828 bat support: ${support_bat} ${QWT_LDFLAGS}
44829 enable-gnome: ${support_gnome} ${gnome_version}
44830 enable-bwx-console: ${support_wx_console} ${wx_version}
44831 enable-tray-monitor: ${support_tray_monitor}
44832 client-only: ${build_client_only}
44833 build-dird: ${build_dird}
44834 build-stored: ${build_stored}
44835 ACL support: ${have_acl}
44836 XATTR support: ${have_xattr}
44837 Python support: ${support_python} ${PYTHON_LIBS}
44838 Batch insert enabled: ${support_batch_insert}