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
884 DEFAULT_SHARED_OBJECT_TYPE
885 LIBTOOL_INSTALL_TARGET
886 LIBTOOL_UNINSTALL_TARGET
889 INCLUDE_INSTALL_TARGET
890 INCLUDE_UNINSTALL_TARGET
902 HAVE_FREEBSD_OS_FALSE
906 HAVE_OPENBSD_OS_FALSE
937 BUILD_INCLUDED_LIBINTL
944 INTL_LIBTOOL_SUFFIX_PREFIX
958 TRAY_MONITOR_CPPFLAGS
1045 ac_subst_files='MCOMMON'
1046 ac_precious_vars='build_alias
1064 # Initialize some variables set by options.
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1076 program_transform_name=s,x,x,
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE}'
1101 infodir='${datarootdir}/info'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1114 # If the previous option needs an argument, assign it.
1115 if test -n "$ac_prev"; then
1116 eval $ac_prev=\$ac_option
1122 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1126 # Accept the important Cygnus configure options, so we can diagnose typos.
1128 case $ac_dashdash$ac_option in
1132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135 bindir=$ac_optarg ;;
1137 -build | --build | --buil | --bui | --bu)
1138 ac_prev=build_alias ;;
1139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140 build_alias=$ac_optarg ;;
1142 -cache-file | --cache-file | --cache-fil | --cache-fi \
1143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144 ac_prev=cache_file ;;
1145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147 cache_file=$ac_optarg ;;
1149 --config-cache | -C)
1150 cache_file=config.cache ;;
1152 -datadir | --datadir | --datadi | --datad)
1154 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155 datadir=$ac_optarg ;;
1157 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158 | --dataroo | --dataro | --datar)
1159 ac_prev=datarootdir ;;
1160 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162 datarootdir=$ac_optarg ;;
1164 -disable-* | --disable-*)
1165 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171 eval enable_$ac_feature=no ;;
1173 -docdir | --docdir | --docdi | --doc | --do)
1175 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176 docdir=$ac_optarg ;;
1178 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181 dvidir=$ac_optarg ;;
1183 -enable-* | --enable-*)
1184 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188 { (exit 1); exit 1; }; }
1189 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190 eval enable_$ac_feature=\$ac_optarg ;;
1192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194 | --exec | --exe | --ex)
1195 ac_prev=exec_prefix ;;
1196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198 | --exec=* | --exe=* | --ex=*)
1199 exec_prefix=$ac_optarg ;;
1201 -gas | --gas | --ga | --g)
1202 # Obsolete; use --with-gas.
1205 -help | --help | --hel | --he | -h)
1206 ac_init_help=long ;;
1207 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208 ac_init_help=recursive ;;
1209 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210 ac_init_help=short ;;
1212 -host | --host | --hos | --ho)
1213 ac_prev=host_alias ;;
1214 -host=* | --host=* | --hos=* | --ho=*)
1215 host_alias=$ac_optarg ;;
1217 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1219 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1221 htmldir=$ac_optarg ;;
1223 -includedir | --includedir | --includedi | --included | --include \
1224 | --includ | --inclu | --incl | --inc)
1225 ac_prev=includedir ;;
1226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227 | --includ=* | --inclu=* | --incl=* | --inc=*)
1228 includedir=$ac_optarg ;;
1230 -infodir | --infodir | --infodi | --infod | --info | --inf)
1232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233 infodir=$ac_optarg ;;
1235 -libdir | --libdir | --libdi | --libd)
1237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238 libdir=$ac_optarg ;;
1240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241 | --libexe | --libex | --libe)
1242 ac_prev=libexecdir ;;
1243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244 | --libexe=* | --libex=* | --libe=*)
1245 libexecdir=$ac_optarg ;;
1247 -localedir | --localedir | --localedi | --localed | --locale)
1248 ac_prev=localedir ;;
1249 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250 localedir=$ac_optarg ;;
1252 -localstatedir | --localstatedir | --localstatedi | --localstated \
1253 | --localstate | --localstat | --localsta | --localst | --locals)
1254 ac_prev=localstatedir ;;
1255 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257 localstatedir=$ac_optarg ;;
1259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262 mandir=$ac_optarg ;;
1264 -nfp | --nfp | --nf)
1265 # Obsolete; use --without-fp.
1268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269 | --no-cr | --no-c | -n)
1272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278 | --oldin | --oldi | --old | --ol | --o)
1279 ac_prev=oldincludedir ;;
1280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283 oldincludedir=$ac_optarg ;;
1285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288 prefix=$ac_optarg ;;
1290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291 | --program-pre | --program-pr | --program-p)
1292 ac_prev=program_prefix ;;
1293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295 program_prefix=$ac_optarg ;;
1297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298 | --program-suf | --program-su | --program-s)
1299 ac_prev=program_suffix ;;
1300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302 program_suffix=$ac_optarg ;;
1304 -program-transform-name | --program-transform-name \
1305 | --program-transform-nam | --program-transform-na \
1306 | --program-transform-n | --program-transform- \
1307 | --program-transform | --program-transfor \
1308 | --program-transfo | --program-transf \
1309 | --program-trans | --program-tran \
1310 | --progr-tra | --program-tr | --program-t)
1311 ac_prev=program_transform_name ;;
1312 -program-transform-name=* | --program-transform-name=* \
1313 | --program-transform-nam=* | --program-transform-na=* \
1314 | --program-transform-n=* | --program-transform-=* \
1315 | --program-transform=* | --program-transfor=* \
1316 | --program-transfo=* | --program-transf=* \
1317 | --program-trans=* | --program-tran=* \
1318 | --progr-tra=* | --program-tr=* | --program-t=*)
1319 program_transform_name=$ac_optarg ;;
1321 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1323 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324 pdfdir=$ac_optarg ;;
1326 -psdir | --psdir | --psdi | --psd | --ps)
1328 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332 | -silent | --silent | --silen | --sile | --sil)
1335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339 sbindir=$ac_optarg ;;
1341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343 | --sharedst | --shareds | --shared | --share | --shar \
1345 ac_prev=sharedstatedir ;;
1346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350 sharedstatedir=$ac_optarg ;;
1352 -site | --site | --sit)
1354 -site=* | --site=* | --sit=*)
1357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360 srcdir=$ac_optarg ;;
1362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363 | --syscon | --sysco | --sysc | --sys | --sy)
1364 ac_prev=sysconfdir ;;
1365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367 sysconfdir=$ac_optarg ;;
1369 -target | --target | --targe | --targ | --tar | --ta | --t)
1370 ac_prev=target_alias ;;
1371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372 target_alias=$ac_optarg ;;
1374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377 -version | --version | --versio | --versi | --vers | -V)
1378 ac_init_version=: ;;
1381 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 { echo "$as_me: error: invalid package name: $ac_package" >&2
1385 { (exit 1); exit 1; }; }
1386 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387 eval with_$ac_package=\$ac_optarg ;;
1389 -without-* | --without-*)
1390 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 { echo "$as_me: error: invalid package name: $ac_package" >&2
1394 { (exit 1); exit 1; }; }
1395 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396 eval with_$ac_package=no ;;
1399 # Obsolete; use --with-x.
1402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403 | --x-incl | --x-inc | --x-in | --x-i)
1404 ac_prev=x_includes ;;
1405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407 x_includes=$ac_optarg ;;
1409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411 ac_prev=x_libraries ;;
1412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414 x_libraries=$ac_optarg ;;
1416 -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418 { (exit 1); exit 1; }; }
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426 { (exit 1); exit 1; }; }
1427 eval $ac_envvar=\$ac_optarg
1428 export $ac_envvar ;;
1431 # FIXME: should be removed in autoconf 3.0.
1432 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1441 if test -n "$ac_prev"; then
1442 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443 { echo "$as_me: error: missing argument to $ac_option" >&2
1444 { (exit 1); exit 1; }; }
1447 # Be sure to have absolute directory names.
1448 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449 datadir sysconfdir sharedstatedir localstatedir includedir \
1450 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451 libdir localedir mandir
1453 eval ac_val=\$$ac_var
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459 { (exit 1); exit 1; }; }
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1467 target=$target_alias
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471 if test "x$build_alias" = x; then
1472 cross_compiling=maybe
1473 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474 If a cross compiler is detected then cross compile mode will be used." >&2
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 { echo "$as_me: error: Working directory cannot be determined" >&2
1490 { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 { echo "$as_me: error: pwd does not report name of working directory" >&2
1493 { (exit 1); exit 1; }; }
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$0" : 'X\(//\)[^/]' \| \
1503 X"$0" : 'X\(//\)$' \| \
1504 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533 { (exit 1); exit 1; }; }
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538 { (exit 1); exit 1; }; }
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1550 for ac_var in $ac_precious_vars; do
1551 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_env_${ac_var}_value=\$${ac_var}
1553 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 # Report the --help message.
1560 if test "$ac_init_help" = "long"; then
1561 # Omit some internal or obsolete options to make the list less imposing.
1562 # This message is too long to be a string in the A/UX 3.1 sh.
1564 \`configure' configures this package to adapt to many kinds of systems.
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE. See below for descriptions of some of the useful variables.
1571 Defaults for the options are specified in brackets.
1574 -h, --help display this help and exit
1575 --help=short display options specific to this package
1576 --help=recursive display the short help of all the included packages
1577 -V, --version display version information and exit
1578 -q, --quiet, --silent do not print \`checking...' messages
1579 --cache-file=FILE cache test results in FILE [disabled]
1580 -C, --config-cache alias for \`--cache-file=config.cache'
1581 -n, --no-create do not create output files
1582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1584 Installation directories:
1585 --prefix=PREFIX install architecture-independent files in PREFIX
1586 [$ac_default_prefix]
1587 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1595 For better control, use the options below.
1597 Fine tuning of the installation directories:
1598 --bindir=DIR user executables [EPREFIX/bin]
1599 --sbindir=DIR system admin executables [EPREFIX/sbin]
1600 --libexecdir=DIR program executables [EPREFIX/libexec]
1601 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1602 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1603 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1604 --libdir=DIR object code libraries [EPREFIX/lib]
1605 --includedir=DIR C header files [PREFIX/include]
1606 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1607 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1608 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1609 --infodir=DIR info documentation [DATAROOTDIR/info]
1610 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1611 --mandir=DIR man documentation [DATAROOTDIR/man]
1612 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1613 --htmldir=DIR html documentation [DOCDIR]
1614 --dvidir=DIR dvi documentation [DOCDIR]
1615 --pdfdir=DIR pdf documentation [DOCDIR]
1616 --psdir=DIR ps documentation [DOCDIR]
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1636 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1637 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1638 --enable-libtool enable building using GNU libtool [default=yes]
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=no]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-includes enable installing of include files [default=no]
1645 --disable-nls do not use Native Language Support
1646 --disable-rpath do not hardcode runtime library paths
1647 --enable-gnome enable build of bgnome-console GUI [default=no]
1648 --enable-bat enable build of bat Qt4 GUI [default=no]
1649 --enable-bwx-console enable build of wxWidgets console [default=no]
1650 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1652 --enable-smartalloc enable smartalloc debugging support [default=no]
1653 --enable-static-tools enable static tape tools [default=no]
1654 --enable-static-fd enable static File daemon [default=no]
1655 --enable-static-sd enable static Storage daemon [default=no]
1656 --enable-static-dir enable static Director [default=no]
1657 --enable-static-cons enable static Console [default=no]
1658 --enable-client-only build client (File daemon) only [default=no]
1659 --enable-build-dird enable building of dird (Director) [default=yes]
1660 --enable-build-stored enable building of stored (Storage daemon)
1662 --disable-conio disable conio support [default=no]
1663 --enable-ipv6 enable ipv6 support [default=yes]
1664 --disable-readline disable readline support [default=yes]
1665 --enable-batch-insert enable the DB batch insert code [default=no]
1666 --disable-largefile omit support for large files
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1678 --without-libintl-prefix don't search for libintl in includedir and libdir
1679 --with-included-gettext use the GNU gettext library included here
1680 --with-qwt[=DIR] specify qwt library directory
1681 --with-readline[=DIR] specify readline library directory
1682 --with-python[=DIR] Include Python support. DIR is the Python base
1683 install directory, default is to search through a
1684 number of common places for the Python files.
1685 --with-tcp-wrappers[=DIR]
1686 enable tcpwrappers support
1687 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1688 --with-working-dir=PATH specify path of Bacula working directory
1689 --with-archivedir=PATH specify path of SD archive directory
1690 --with-scriptdir=PATH specify path of Bacula scripts directory
1691 --with-plugindir=PATH specify path of Bacula plugins directory
1692 --with-dump-email=EMAIL dump email address
1693 --with-job-email=EMAIL job output email address
1694 --with-smtp-host=HOST SMTP mail host address
1695 --with-pid-dir=PATH specify location of Bacula pid files
1696 --with-subsys-dir=PATH specify location of Bacula subsys file
1697 --with-baseport=PORT specify base port address for daemons
1698 --with-dir-password=PASSWORD
1699 specify Director's password
1700 --with-fd-password=PASSWORD
1701 specify Client's password
1702 --with-sd-password=PASSWORD
1703 specify Storage daemon's password
1704 --with-mon-dir-password=PASSWORD
1705 specify Director's password used by the monitor
1706 --with-mon-fd-password=PASSWORD
1707 specify Client's password used by the monitor
1708 --with-mon-sd-password=PASSWORD
1709 specify Storage daemon's password used by the
1711 --with-db-name=DBNAME specify database name [default=bacula]
1712 --with-db-user=UNAME specify database user [default=bacula]
1713 --with-db-password=PWD specify database password [default=*none*]
1714 --with-db-port=DBPORT specify a database port [default=null]
1715 --with-dir-user=USER specify user for Director daemon
1716 --with-dir-group=GROUP specify group for Director daemon
1717 --with-sd-user=USER specify user for Storage daemon
1718 --with-sd-group=GROUP specify group for Storage daemon
1719 --with-fd-user=USER specify user for File daemon
1720 --with-fd-group=GROUP specify group for File daemon
1721 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1722 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1723 base install directory, [default=/usr/local/pgsql]
1724 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1725 directory, default is to search through a number of
1726 common places for the MySQL files.
1727 --with-embedded-mysql[=DIR]
1728 Include MySQL support. DIR is the MySQL base install
1729 directory, default is to search through a number of
1730 common places for the MySQL files.
1731 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1732 install directory, default is to search through a
1733 number of common places for the SQLite3 files.
1734 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1735 install directory, default is to search through a
1736 number of common places for the SQLite files.
1737 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1738 directory, default is to search through a number of
1739 common places for the DBI files.
1740 --with-dbi-driver[=DRIVER]
1741 Suport for DBI driver. DRIVER is the one DBI driver
1742 like Mysql, Postgresql, others. Default is to not
1743 configure any driver.
1744 --with-x use the X Window System
1746 Some influential environment variables:
1747 CC C compiler command
1748 CFLAGS C compiler flags
1749 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1750 nonstandard directory <lib dir>
1751 LIBS libraries to pass to the linker, e.g. -l<library>
1752 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1753 you have headers in a nonstandard directory <include dir>
1754 CXX C++ compiler command
1755 CXXFLAGS C++ compiler flags
1757 WXCONFIG wx-config command. On some systems, you must set it to
1758 wx-config-2.6 to use wxWidgets 2.6.
1759 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1760 CXXCPP C++ preprocessor
1761 XMKMF Path to xmkmf, Makefile generator for X Window System
1763 Use these variables to override the choices made by `configure' or to help
1764 it to find libraries and programs with nonstandard names/locations.
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" || continue
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1793 .) # We are building in place.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf 2.61
1829 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1830 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1836 cat >config.log <<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.61. Invocation command line was
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 echo "PATH: $as_dir"
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_must_keep_next=false
1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909 | -silent | --silent | --silen | --sile | --sil)
1912 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1917 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1918 if test $ac_must_keep_next = true; then
1919 ac_must_keep_next=false # Got value, back to normal.
1922 *=* | --config-cache | -C | -disable-* | --disable-* \
1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925 | -with-* | --with-* | -without-* | --without-* | --x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 -* ) ac_must_keep_next=true ;;
1933 ac_configure_args="$ac_configure_args '$ac_arg'"
1938 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1939 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 *) $as_unset $ac_var ;;
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 ## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##
1994 for ac_var in $ac_subst_vars
1996 eval ac_val=\$$ac_var
1998 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 echo "$ac_var='\''$ac_val'\''"
2004 if test -n "$ac_subst_files"; then
2006 ## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##
2011 for ac_var in $ac_subst_files
2013 eval ac_val=\$$ac_var
2015 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017 echo "$ac_var='\''$ac_val'\''"
2022 if test -s confdefs.h; then
2032 test "$ac_signal" != 0 &&
2033 echo "$as_me: caught signal $ac_signal"
2034 echo "$as_me: exit $exit_status"
2036 rm -f core *.core core.conftest.* &&
2037 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 for ac_signal in 1 2 13 15; do
2041 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2045 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2046 rm -f -r conftest* confdefs.h
2048 # Predefined preprocessor variables.
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_NAME "$PACKAGE_NAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2075 # Let the site file select an alternate cache file if it wants to.
2076 # Prefer explicitly selected file to automatically selected ones.
2077 if test -n "$CONFIG_SITE"; then
2078 set x "$CONFIG_SITE"
2079 elif test "x$prefix" != xNONE; then
2080 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2082 set x "$ac_default_prefix/share/config.site" \
2083 "$ac_default_prefix/etc/config.site"
2088 if test -r "$ac_site_file"; then
2089 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2090 echo "$as_me: loading site script $ac_site_file" >&6;}
2091 sed 's/^/| /' "$ac_site_file" >&5
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special
2098 # files actually), so we avoid doing that.
2099 if test -f "$cache_file"; then
2100 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2101 echo "$as_me: loading cache $cache_file" >&6;}
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2108 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2109 echo "$as_me: creating cache $cache_file" >&6;}
2113 # Check that the precious variables saved in the cache have kept the same
2115 ac_cache_corrupted=false
2116 for ac_var in $ac_precious_vars; do
2117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2118 eval ac_new_set=\$ac_env_${ac_var}_set
2119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2120 eval ac_new_val=\$ac_env_${ac_var}_value
2121 case $ac_old_set,$ac_new_set in
2123 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2124 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2125 ac_cache_corrupted=: ;;
2127 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2128 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2129 ac_cache_corrupted=: ;;
2132 if test "x$ac_old_val" != "x$ac_new_val"; then
2133 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2134 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2135 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2136 echo "$as_me: former value: $ac_old_val" >&2;}
2137 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2138 echo "$as_me: current value: $ac_new_val" >&2;}
2139 ac_cache_corrupted=:
2142 # Pass precious variables to config.status.
2143 if test "$ac_new_set" = set; then
2145 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2146 *) ac_arg=$ac_var=$ac_new_val ;;
2148 case " $ac_configure_args " in
2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2150 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2154 if $ac_cache_corrupted; then
2155 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2156 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2158 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2159 { (exit 1); exit 1; }; }
2179 ac_cpp='$CPP $CPPFLAGS'
2180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2193 if test -f "$ac_dir/install-sh"; then
2195 ac_install_sh="$ac_aux_dir/install-sh -c"
2197 elif test -f "$ac_dir/install.sh"; then
2199 ac_install_sh="$ac_aux_dir/install.sh -c"
2201 elif test -f "$ac_dir/shtool"; then
2203 ac_install_sh="$ac_aux_dir/shtool install -c"
2207 if test -z "$ac_aux_dir"; then
2208 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2209 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2210 { (exit 1); exit 1; }; }
2213 # These three variables are undocumented and unsupported,
2214 # and are intended to be withdrawn in a future Autoconf release.
2215 # They can cause serious problems if a builder's source tree is in a directory
2216 # whose full name contains unusual characters.
2217 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2230 # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 TRUEPRG=$ac_cv_path_TRUEPRG
2261 if test -n "$TRUEPRG"; then
2262 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2263 echo "${ECHO_T}$TRUEPRG" >&6; }
2265 { echo "$as_me:$LINENO: result: no" >&5
2266 echo "${ECHO_T}no" >&6; }
2270 test -n "$TRUEPRG" && break
2272 test -n "$TRUEPRG" || TRUEPRG=":"
2274 for ac_prog in false
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 FALSEPRG=$ac_cv_path_FALSEPRG
2307 if test -n "$FALSEPRG"; then
2308 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2309 echo "${ECHO_T}$FALSEPRG" >&6; }
2311 { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2316 test -n "$FALSEPRG" && break
2318 test -n "$FALSEPRG" || FALSEPRG=":"
2323 if test "x$BACULA" != x; then
2324 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2326 BACULA=${BACULA-Bacula}
2327 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2328 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2329 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 echo "configuring for ${BACULA} $VERSION ($DATE)"
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$CC"; then
2368 { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$ac_cv_prog_CC"; then
2379 # Extract the first word of "gcc", so it can be a program name with args.
2380 set dummy gcc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CC="gcc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2415 if test "x$ac_ct_CC" = x; then
2418 case $cross_compiling:$ac_tool_warned in
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2434 if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}cc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}cc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2475 if test -z "$CC"; then
2476 # Extract the first word of "cc", so it can be a program name with args.
2477 set dummy cc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2495 ac_prog_rejected=yes
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test $ac_prog_rejected = yes; then
2507 # We found a bogon in the path, so make sure we never use it.
2508 set dummy $ac_cv_prog_CC
2510 if test $# != 0; then
2511 # We chose a different compiler from the bogus one.
2512 # However, it has the same basename, so the bogon will be chosen
2513 # first if we set CC to just the basename; use the full file name.
2515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2521 if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 for ac_prog in cl.exe
2535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2572 test -n "$CC" && break
2575 if test -z "$CC"; then
2577 for ac_prog in cl.exe
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_CC="$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6; }
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2616 test -n "$ac_ct_CC" && break
2619 if test "x$ac_ct_CC" = x; then
2622 case $cross_compiling:$ac_tool_warned in
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2645 # Provide some information about the compiler.
2646 echo "$as_me:$LINENO: checking for C compiler version" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (ac_try="$ac_compiler --version >&5"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compiler --version >&5") 2>&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }
2658 { (ac_try="$ac_compiler -v >&5"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler -v >&5") 2>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (ac_try="$ac_compiler -V >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler -V >&5") 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 ac_clean_files_save=$ac_clean_files
2695 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2696 # Try to create an executable without -o first, disregard a.out.
2697 # It will help us diagnose broken compilers, and finding out an intuition
2699 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2700 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2701 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2703 # List of possible output files, starting from the most likely.
2704 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2705 # only as a last resort. b.out is created by i960 compilers.
2706 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2708 # The IRIX 6 linker writes into existing files which may not be
2709 # executable, retaining their permissions. Remove them first so a
2710 # subsequent execution test works.
2712 for ac_file in $ac_files
2715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2716 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2721 if { (ac_try="$ac_link_default"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_link_default") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; then
2731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2734 # so that the user can short-circuit this test for compilers unknown to
2736 for ac_file in $ac_files ''
2738 test -f "$ac_file" || continue
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2743 # We found the default executable, but exeext='' is most
2747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 # We set ac_cv_exeext here because the later test for it is not
2752 # safe: cross compilers may not add the suffix if given an `-o'
2753 # argument, so we may need to know it at that point already.
2754 # Even if this section looks crufty: it has the advantage of
2761 test "$ac_cv_exeext" = no && ac_cv_exeext=
2767 { echo "$as_me:$LINENO: result: $ac_file" >&5
2768 echo "${ECHO_T}$ac_file" >&6; }
2769 if test -z "$ac_file"; then
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&2;}
2777 { (exit 77); exit 77; }; }
2780 ac_exeext=$ac_cv_exeext
2782 # Check that the compiler produces executables we can run. If not, either
2783 # the compiler is broken, or we cross compile.
2784 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2787 # If not cross compiling, check that we can run a simple program.
2788 if test "$cross_compiling" != yes; then
2789 if { ac_try='./$ac_file'
2790 { (case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_try") 2>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 if test "$cross_compiling" = maybe; then
2804 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \`config.log' for more details." >&5
2807 echo "$as_me: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2814 { echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6; }
2817 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2818 ac_clean_files=$ac_clean_files_save
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2822 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2823 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2824 echo "${ECHO_T}$cross_compiling" >&6; }
2826 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2827 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2828 if { (ac_try="$ac_link"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_link") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; then
2838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2839 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2840 # work properly (i.e., refer to `conftest.exe'), while it won't with
2842 for ac_file in conftest.exe conftest conftest.*; do
2843 test -f "$ac_file" || continue
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log' for more details." >&5
2854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2859 rm -f conftest$ac_cv_exeext
2860 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2861 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2866 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2868 if test "${ac_cv_objext+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2886 rm -f conftest.o conftest.obj
2887 if { (ac_try="$ac_compile"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 for ac_file in conftest.o conftest.obj conftest.*; do
2898 test -f "$ac_file" || continue;
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2918 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2919 echo "${ECHO_T}$ac_cv_objext" >&6; }
2920 OBJEXT=$ac_cv_objext
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.$ac_objext; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2976 GCC=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS=${CFLAGS+set}
2978 ac_save_CFLAGS=$CFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 ac_save_c_werror_flag=$ac_c_werror_flag
2985 ac_c_werror_flag=yes
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3116 if test "$ac_test_CFLAGS" = set; then
3117 CFLAGS=$ac_save_CFLAGS
3118 elif test $ac_cv_prog_cc_g = yes; then
3119 if test "$GCC" = yes; then
3125 if test "$GCC" = yes; then
3131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_cc_c89+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 ac_cv_prog_cc_c89=no
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3162 s = g (p, va_arg (v,int));
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
3170 as 'x'. The following induces an error, until -std is added to get
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
3173 that's true only with -std. */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3198 CC="$ac_save_CC $ac_arg"
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_c89=$ac_arg
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext
3225 test "x$ac_cv_prog_cc_c89" != "xno" && break
3227 rm -f conftest.$ac_ext
3232 case "x$ac_cv_prog_cc_c89" in
3234 { echo "$as_me:$LINENO: result: none needed" >&5
3235 echo "${ECHO_T}none needed" >&6; } ;;
3237 { echo "$as_me:$LINENO: result: unsupported" >&5
3238 echo "${ECHO_T}unsupported" >&6; } ;;
3240 CC="$CC $ac_cv_prog_cc_c89"
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 ac_cpp='$CXXCPP $CPPFLAGS'
3254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3257 if test -z "$CXX"; then
3258 if test -n "$CCC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3268 if test "${ac_cv_prog_CXX+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 if test -n "$CXX"; then
3272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 if test -n "$CXX"; then
3293 { echo "$as_me:$LINENO: result: $CXX" >&5
3294 echo "${ECHO_T}$CXX" >&6; }
3296 { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3301 test -n "$CXX" && break
3304 if test -z "$CXX"; then
3306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3308 # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 if test -n "$ac_ct_CXX"; then
3316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_ac_ct_CXX="$ac_prog"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3336 if test -n "$ac_ct_CXX"; then
3337 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3338 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3340 { echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6; }
3345 test -n "$ac_ct_CXX" && break
3348 if test "x$ac_ct_CXX" = x; then
3351 case $cross_compiling:$ac_tool_warned in
3353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3354 whose name does not start with the host triplet. If you think this
3355 configuration is useful to you, please write to autoconf@gnu.org." >&5
3356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3357 whose name does not start with the host triplet. If you think this
3358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3359 ac_tool_warned=yes ;;
3367 # Provide some information about the compiler.
3368 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3369 ac_compiler=`set X $ac_compile; echo $2`
3370 { (ac_try="$ac_compiler --version >&5"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_compiler --version >&5") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }
3380 { (ac_try="$ac_compiler -v >&5"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_compiler -v >&5") 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }
3390 { (ac_try="$ac_compiler -V >&5"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compiler -V >&5") 2>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }
3401 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3402 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_cxx_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3454 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3455 GXX=`test $ac_compiler_gnu = yes && echo yes`
3456 ac_test_CXXFLAGS=${CXXFLAGS+set}
3457 ac_save_CXXFLAGS=$CXXFLAGS
3458 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3459 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3460 if test "${ac_cv_prog_cxx_g+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3464 ac_cxx_werror_flag=yes
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_compile") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_cxx_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest.$ac_objext; then
3499 ac_cv_prog_cxx_g=yes
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_cxx_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_cxx_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_cv_prog_cxx_g=yes
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3594 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3595 if test "$ac_test_CXXFLAGS" = set; then
3596 CXXFLAGS=$ac_save_CXXFLAGS
3597 elif test $ac_cv_prog_cxx_g = yes; then
3598 if test "$GXX" = yes; then
3604 if test "$GXX" = yes; then
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 if test "x$CC" != xcc; then
3617 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3618 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3620 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3621 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3623 set dummy $CC; ac_cc=`echo $2 |
3624 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3625 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3643 # Make sure it works both with $CC and with simple cc.
3644 # We do the test twice because some compilers refuse to overwrite an
3645 # existing .o file with -o, though they will create one.
3646 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3648 if { (case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_try") 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); };
3667 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3668 if test "x$CC" != xcc; then
3669 # Test first that cc exists at all.
3670 if { ac_try='cc -c conftest.$ac_ext >&5'
3671 { (case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_try") 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3682 if { (case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_try") 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); };
3704 # cc exists but doesn't like -o.
3705 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3710 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3712 rm -f core conftest*
3715 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3716 { echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6; }
3719 { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3722 cat >>confdefs.h <<\_ACEOF
3723 #define NO_MINUS_C_MINUS_O 1
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3739 if test -z "$CPP"; then
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747 for ac_c_preproc_warn_flag in '' yes
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3762 # include <limits.h>
3764 # include <assert.h>
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Broken: fails on valid input.
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <ac_nonexistent.h>
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3821 # Broken: success on invalid input.
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Passes both tests.
3832 rm -f conftest.err conftest.$ac_ext
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3849 { echo "$as_me:$LINENO: result: $CPP" >&5
3850 echo "${ECHO_T}$CPP" >&6; }
3852 for ac_c_preproc_warn_flag in '' yes
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat >conftest.$ac_ext <<_ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3867 # include <limits.h>
3869 # include <assert.h>
3873 if { (ac_try="$ac_cpp conftest.$ac_ext"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev/null && {
3886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 # Broken: fails on valid input.
3898 rm -f conftest.err conftest.$ac_ext
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <ac_nonexistent.h>
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3926 # Broken: success on invalid input.
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 # Passes both tests.
3937 rm -f conftest.err conftest.$ac_ext
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3945 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&2;}
3949 { (exit 1); exit 1; }; }
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
3982 # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'GREP' >> "conftest.nl"
3995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_GREP_found && break 3
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_GREP=$GREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4046 # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
4064 # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 echo 'EGREP' >> "conftest.nl"
4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 ac_count=`expr $ac_count + 1`
4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 $ac_path_EGREP_found && break 3
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4110 ac_cv_path_EGREP=$EGREP
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 if test $ac_cv_c_compiler_gnu = yes; then
4122 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4123 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4124 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 ac_pattern="Autoconf.*'x'"
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4139 ac_cv_prog_gcc_traditional=yes
4141 ac_cv_prog_gcc_traditional=no
4146 if test $ac_cv_prog_gcc_traditional = no; then
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4158 ac_cv_prog_gcc_traditional=yes
4164 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4165 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4166 if test $ac_cv_prog_gcc_traditional = yes; then
4167 CC="$CC -traditional"
4171 BASECC=`basename $CC`
4173 if test "x$BASECC" = xgcc; then
4174 cat >>confdefs.h <<\_ACEOF
4180 # Extract the first word of "$CXX", so it can be a program name with args.
4181 set dummy $CXX; ac_word=$2
4182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4184 if test "${ac_cv_path_CXX+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4212 if test -n "$CXX"; then
4213 { echo "$as_me:$LINENO: result: $CXX" >&5
4214 echo "${ECHO_T}$CXX" >&6; }
4216 { echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6; }
4221 if test ! -e $CXX; then
4222 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4223 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4224 { (exit 1); exit 1; }; }
4227 # Find a good install program. We prefer a C program (faster),
4228 # so one script is as good as another. But avoid the broken or
4229 # incompatible versions:
4230 # SysV /etc/install, /usr/sbin/install
4231 # SunOS /usr/etc/install
4232 # IRIX /sbin/install
4234 # AmigaOS /C/install, which installs bootblocks on floppy discs
4235 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4236 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4237 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4238 # OS/2's system install, which has a completely different semantic
4239 # ./install, which can be erroneously created by make from ./install.sh.
4240 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4241 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4242 if test -z "$INSTALL"; then
4243 if test "${ac_cv_path_install+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 # Account for people who put trailing slashes in PATH elements.
4253 ./ | .// | /cC/* | \
4254 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4255 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4258 # OSF1 and SCO ODT 3.0 have their own names for install.
4259 # Don't use installbsd from OSF since it installs stuff as root
4261 for ac_prog in ginstall scoinst install; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4264 if test $ac_prog = install &&
4265 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4266 # AIX install. It has an incompatible calling convention.
4268 elif test $ac_prog = install &&
4269 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4270 # program-specific install script used by HP pwplus--don't use.
4273 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4286 if test "${ac_cv_path_install+set}" = set; then
4287 INSTALL=$ac_cv_path_install
4289 # As a last resort, use the slow shell script. Don't cache a
4290 # value for INSTALL within a source directory, because that will
4291 # break other packages using the cache if that directory is
4292 # removed, or if the value is a relative name.
4293 INSTALL=$ac_install_sh
4296 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4297 echo "${ECHO_T}$INSTALL" >&6; }
4299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4300 # It thinks the first close brace ends the variable substitution.
4301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4307 # Extract the first word of "mv", so it can be a program name with args.
4308 set dummy mv; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_path_MV+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4339 if test -n "$MV"; then
4340 { echo "$as_me:$LINENO: result: $MV" >&5
4341 echo "${ECHO_T}$MV" >&6; }
4343 { echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6; }
4348 # Extract the first word of "rm", so it can be a program name with args.
4349 set dummy rm; ac_word=$2
4350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4352 if test "${ac_cv_path_REMOVE+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4379 REMOVE=$ac_cv_path_REMOVE
4380 if test -n "$REMOVE"; then
4381 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4382 echo "${ECHO_T}$REMOVE" >&6; }
4384 { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4389 # Extract the first word of "cp", so it can be a program name with args.
4390 set dummy cp; ac_word=$2
4391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_CP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4421 if test -n "$CP"; then
4422 { echo "$as_me:$LINENO: result: $CP" >&5
4423 echo "${ECHO_T}$CP" >&6; }
4425 { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4430 # Extract the first word of "sed", so it can be a program name with args.
4431 set dummy sed; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_path_SED+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4462 if test -n "$SED"; then
4463 { echo "$as_me:$LINENO: result: $SED" >&5
4464 echo "${ECHO_T}$SED" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 # Extract the first word of "echo", so it can be a program name with args.
4472 set dummy echo; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_path_ECHO+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4502 ECHO=$ac_cv_path_ECHO
4503 if test -n "$ECHO"; then
4504 { echo "$as_me:$LINENO: result: $ECHO" >&5
4505 echo "${ECHO_T}$ECHO" >&6; }
4507 { echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6; }
4512 # Extract the first word of "cmp", so it can be a program name with args.
4513 set dummy cmp; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_CMP+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4544 if test -n "$CMP"; then
4545 { echo "$as_me:$LINENO: result: $CMP" >&5
4546 echo "${ECHO_T}$CMP" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 # Extract the first word of "tbl", so it can be a program name with args.
4554 set dummy tbl; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_path_TBL+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4585 if test -n "$TBL"; then
4586 { echo "$as_me:$LINENO: result: $TBL" >&5
4587 echo "${ECHO_T}$TBL" >&6; }
4589 { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4594 # Extract the first word of "ar", so it can be a program name with args.
4595 set dummy ar; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_path_AR+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4626 if test -n "$AR"; then
4627 { echo "$as_me:$LINENO: result: $AR" >&5
4628 echo "${ECHO_T}$AR" >&6; }
4630 { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4635 # Extract the first word of "openssl", so it can be a program name with args.
4636 set dummy openssl; ac_word=$2
4637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4639 if test "${ac_cv_path_OPENSSL+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4666 OPENSSL=$ac_cv_path_OPENSSL
4667 if test -n "$OPENSSL"; then
4668 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4669 echo "${ECHO_T}$OPENSSL" >&6; }
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 # Extract the first word of "mtx", so it can be a program name with args.
4677 set dummy mtx; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_path_MTX+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4708 if test -n "$MTX"; then
4709 { echo "$as_me:$LINENO: result: $MTX" >&5
4710 echo "${ECHO_T}$MTX" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4717 # Extract the first word of "dd", so it can be a program name with args.
4718 set dummy dd; ac_word=$2
4719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4721 if test "${ac_cv_path_DD+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4749 if test -n "$DD"; then
4750 { echo "$as_me:$LINENO: result: $DD" >&5
4751 echo "${ECHO_T}$DD" >&6; }
4753 { echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6; }
4758 # Extract the first word of "mkisofs", so it can be a program name with args.
4759 set dummy mkisofs; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_MKISOFS+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4789 MKISOFS=$ac_cv_path_MKISOFS
4790 if test -n "$MKISOFS"; then
4791 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4792 echo "${ECHO_T}$MKISOFS" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4799 # Extract the first word of "python", so it can be a program name with args.
4800 set dummy python; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_PYTHON+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4830 PYTHON=$ac_cv_path_PYTHON
4831 if test -n "$PYTHON"; then
4832 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4833 echo "${ECHO_T}$PYTHON" >&6; }
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 # Extract the first word of "growisofs", so it can be a program name with args.
4841 set dummy growisofs; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4871 GROWISOFS=$ac_cv_path_GROWISOFS
4872 if test -n "$GROWISOFS"; then
4873 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4874 echo "${ECHO_T}$GROWISOFS" >&6; }
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4882 set dummy dvd+rw-mediainfo; ac_word=$2
4883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 case $DVDRWMEDIAINFO in
4890 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4912 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4913 if test -n "$DVDRWMEDIAINFO"; then
4914 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4917 { echo "$as_me:$LINENO: result: no" >&5
4918 echo "${ECHO_T}no" >&6; }
4922 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4923 set dummy dvd+rw-format; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 case $DVDRWFORMAT in
4931 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4953 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4954 if test -n "$DVDRWFORMAT"; then
4955 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4956 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4963 # Extract the first word of "pkg-config", so it can be a program name with args.
4964 set dummy pkg-config; ac_word=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4994 PKGCONFIG=$ac_cv_path_PKGCONFIG
4995 if test -n "$PKGCONFIG"; then
4996 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4997 echo "${ECHO_T}$PKGCONFIG" >&6; }
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5004 # Extract the first word of "qmake", so it can be a program name with args.
5005 set dummy qmake; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_path_QMAKE+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5035 QMAKE=$ac_cv_path_QMAKE
5036 if test -n "$QMAKE"; then
5037 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5038 echo "${ECHO_T}$QMAKE" >&6; }
5040 { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5045 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5046 set dummy qmake-qt4; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5076 QMAKEQT4=$ac_cv_path_QMAKEQT4
5077 if test -n "$QMAKEQT4"; then
5078 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5079 echo "${ECHO_T}$QMAKEQT4" >&6; }
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5087 if test "x$WXCONFIG" = x; then
5090 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5091 set dummy ${WXCONFIG}; ac_word=$2
5092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5094 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5121 WXCONFIG=$ac_cv_path_WXCONFIG
5122 if test -n "$WXCONFIG"; then
5123 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5124 echo "${ECHO_T}$WXCONFIG" >&6; }
5126 { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5132 # Extract the first word of "cdrecord", so it can be a program name with args.
5133 set dummy cdrecord; ac_word=$2
5134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5136 if test "${ac_cv_path_CDRECORD+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5163 CDRECORD=$ac_cv_path_CDRECORD
5164 if test -n "$CDRECORD"; then
5165 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5166 echo "${ECHO_T}$CDRECORD" >&6; }
5168 { echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6; }
5173 # Extract the first word of "pidof", so it can be a program name with args.
5174 set dummy pidof; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_path_PIDOF+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5204 PIDOF=$ac_cv_path_PIDOF
5205 if test -n "$PIDOF"; then
5206 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5207 echo "${ECHO_T}$PIDOF" >&6; }
5209 { echo "$as_me:$LINENO: result: no" >&5
5210 echo "${ECHO_T}no" >&6; }
5214 for ac_prog in gawk mawk nawk awk
5216 # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220 if test "${ac_cv_prog_AWK+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 if test -n "$AWK"; then
5224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233 ac_cv_prog_AWK="$ac_prog"
5234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 if test -n "$AWK"; then
5245 { echo "$as_me:$LINENO: result: $AWK" >&5
5246 echo "${ECHO_T}$AWK" >&6; }
5248 { echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6; }
5253 test -n "$AWK" && break
5256 # Some AWK programs fail, so test it and warn the user
5257 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5258 { if ((prog == $2) || (("(" prog ")") == $2) ||
5259 (("" prog "") == $2) ||
5260 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5262 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5263 The regex engine of $AWK is too broken to be used you
5264 might want to install GNU AWK.
5265 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5266 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5267 The regex engine of $AWK is too broken to be used you
5268 might want to install GNU AWK.
5269 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5270 { (exit 1); exit 1; }; }
5273 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5274 set dummy $THE_AWK; ac_word=$2
5275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5277 if test "${ac_cv_path_AWK+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5305 if test -n "$AWK"; then
5306 { echo "$as_me:$LINENO: result: $AWK" >&5
5307 echo "${ECHO_T}$AWK" >&6; }
5309 { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5316 test -n "$ARFLAG" || ARFLAGS="cr"
5327 # Check whether --enable-libtool was given.
5328 if test "${enable_libtool+set}" = set; then
5329 enableval=$enable_libtool;
5330 if test x$enableval = xno; then
5339 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5340 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5345 macro_version='2.2.6'
5346 macro_revision='1.3012'
5360 ltmain="$ac_aux_dir/ltmain.sh"
5362 # Make sure we can run config.sub.
5363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5364 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5365 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5366 { (exit 1); exit 1; }; }
5368 { echo "$as_me:$LINENO: checking build system type" >&5
5369 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5370 if test "${ac_cv_build+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_build_alias=$build_alias
5374 test "x$ac_build_alias" = x &&
5375 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5376 test "x$ac_build_alias" = x &&
5377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5379 { (exit 1); exit 1; }; }
5380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5381 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5382 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5383 { (exit 1); exit 1; }; }
5386 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5387 echo "${ECHO_T}$ac_cv_build" >&6; }
5388 case $ac_cv_build in
5390 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5391 echo "$as_me: error: invalid value of canonical build" >&2;}
5392 { (exit 1); exit 1; }; };;
5395 ac_save_IFS=$IFS; IFS='-'
5401 # Remember, the first character of IFS is used to create $*,
5402 # except with old shells:
5405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5408 { echo "$as_me:$LINENO: checking host system type" >&5
5409 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5410 if test "${ac_cv_host+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 if test "x$host_alias" = x; then
5414 ac_cv_host=$ac_cv_build
5416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5417 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5418 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5419 { (exit 1); exit 1; }; }
5423 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5424 echo "${ECHO_T}$ac_cv_host" >&6; }
5427 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5428 echo "$as_me: error: invalid value of canonical host" >&2;}
5429 { (exit 1); exit 1; }; };;
5432 ac_save_IFS=$IFS; IFS='-'
5438 # Remember, the first character of IFS is used to create $*,
5439 # except with old shells:
5442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5445 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5446 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5447 if test "${ac_cv_path_SED+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5451 for ac_i in 1 2 3 4 5 6 7; do
5452 ac_script="$ac_script$as_nl$ac_script"
5454 echo "$ac_script" | sed 99q >conftest.sed
5455 $as_unset ac_script || ac_script=
5456 # Extract the first word of "sed gsed" to use in msg output
5457 if test -z "$SED"; then
5458 set dummy sed gsed; ac_prog_name=$2
5459 if test "${ac_cv_path_SED+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 ac_path_SED_found=false
5463 # Loop through the user's path and test for each of PROGNAME-LIST
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_prog in sed gsed; do
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5472 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5473 # Check for GNU ac_path_SED and select it if it is found.
5474 # Check for GNU $ac_path_SED
5475 case `"$ac_path_SED" --version 2>&1` in
5477 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5483 cat "conftest.in" "conftest.in" >"conftest.tmp"
5484 mv "conftest.tmp" "conftest.in"
5485 cp "conftest.in" "conftest.nl"
5486 echo '' >> "conftest.nl"
5487 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5489 ac_count=`expr $ac_count + 1`
5490 if test $ac_count -gt ${ac_path_SED_max-0}; then
5491 # Best one so far, save it but keep looking for a better one
5492 ac_cv_path_SED="$ac_path_SED"
5493 ac_path_SED_max=$ac_count
5495 # 10*(2^10) chars as input seems more than enough
5496 test $ac_count -gt 10 && break
5498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 $ac_path_SED_found && break 3
5512 SED="$ac_cv_path_SED"
5513 if test -z "$SED"; then
5514 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5515 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5516 { (exit 1); exit 1; }; }
5524 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5525 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5526 SED="$ac_cv_path_SED"
5529 test -z "$SED" && SED=sed
5530 Xsed="$SED -e 1s/^X//"
5542 { echo "$as_me:$LINENO: checking for fgrep" >&5
5543 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5544 if test "${ac_cv_path_FGREP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5548 then ac_cv_path_FGREP="$GREP -F"
5550 # Extract the first word of "fgrep" to use in msg output
5551 if test -z "$FGREP"; then
5552 set dummy fgrep; ac_prog_name=$2
5553 if test "${ac_cv_path_FGREP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_path_FGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in fgrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5567 # Check for GNU ac_path_FGREP and select it if it is found.
5568 # Check for GNU $ac_path_FGREP
5569 case `"$ac_path_FGREP" --version 2>&1` in
5571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5574 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 echo 'FGREP' >> "conftest.nl"
5581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 ac_count=`expr $ac_count + 1`
5584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_FGREP="$ac_path_FGREP"
5587 ac_path_FGREP_max=$ac_count
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596 $ac_path_FGREP_found && break 3
5606 FGREP="$ac_cv_path_FGREP"
5607 if test -z "$FGREP"; then
5608 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610 { (exit 1); exit 1; }; }
5614 ac_cv_path_FGREP=$FGREP
5620 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5621 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5622 FGREP="$ac_cv_path_FGREP"
5625 test -z "$GREP" && GREP=grep
5645 # Check whether --with-gnu-ld was given.
5646 if test "${with_gnu_ld+set}" = set; then
5647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5653 if test "$GCC" = yes; then
5654 # Check if gcc -print-prog-name=ld gives a path.
5655 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5656 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5659 # gcc leaves a trailing carriage return which upsets mingw
5660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5665 # Accept absolute paths.
5667 re_direlt='/[^/][^/]*/\.\./'
5668 # Canonicalize the pathname of ld
5669 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5670 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5671 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5673 test -z "$LD" && LD="$ac_prog"
5676 # If it fails, then pretend we aren't using GCC.
5680 # If it is relative, then search for the first ld in PATH.
5684 elif test "$with_gnu_ld" = yes; then
5685 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5686 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5688 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5689 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5691 if test "${lt_cv_path_LD+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test -z "$LD"; then
5695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5696 for ac_dir in $PATH; do
5698 test -z "$ac_dir" && ac_dir=.
5699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5700 lt_cv_path_LD="$ac_dir/$ac_prog"
5701 # Check to see if the program is GNU ld. I'd rather use --version,
5702 # but apparently some variants of GNU ld only accept -v.
5703 # Break only if it was the GNU/non-GNU ld that we prefer.
5704 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5705 *GNU* | *'with BFD'*)
5706 test "$with_gnu_ld" != no && break
5709 test "$with_gnu_ld" != yes && break
5716 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5721 if test -n "$LD"; then
5722 { echo "$as_me:$LINENO: result: $LD" >&5
5723 echo "${ECHO_T}$LD" >&6; }
5725 { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5728 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5729 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5730 { (exit 1); exit 1; }; }
5731 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5732 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5733 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5737 case `$LD -v 2>&1 </dev/null` in
5738 *GNU* | *'with BFD'*)
5739 lt_cv_prog_gnu_ld=yes
5742 lt_cv_prog_gnu_ld=no
5746 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5747 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5748 with_gnu_ld=$lt_cv_prog_gnu_ld
5758 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5759 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5760 if test "${lt_cv_path_NM+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 if test -n "$NM"; then
5764 # Let the user override the test.
5767 lt_nm_to_check="${ac_tool_prefix}nm"
5768 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5769 lt_nm_to_check="$lt_nm_to_check nm"
5771 for lt_tmp_nm in $lt_nm_to_check; do
5772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5773 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5775 test -z "$ac_dir" && ac_dir=.
5776 tmp_nm="$ac_dir/$lt_tmp_nm"
5777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5778 # Check to see if the nm accepts a BSD-compat flag.
5779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5780 # nm: unknown option "B" ignored
5781 # Tru64's nm complains that /dev/null is an invalid object file
5782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5783 */dev/null* | *'Invalid file or object type'*)
5784 lt_cv_path_NM="$tmp_nm -B"
5788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5790 lt_cv_path_NM="$tmp_nm -p"
5794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5795 continue # so that we can try to find one that supports BSD flags
5804 : ${lt_cv_path_NM=no}
5807 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5808 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5809 if test "$lt_cv_path_NM" != "no"; then
5812 # Didn't find any BSD compatible name lister, look for dumpbin.
5813 if test -n "$ac_tool_prefix"; then
5814 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 if test -n "$DUMPBIN"; then
5824 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 DUMPBIN=$ac_cv_prog_DUMPBIN
5844 if test -n "$DUMPBIN"; then
5845 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5846 echo "${ECHO_T}$DUMPBIN" >&6; }
5848 { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5853 test -n "$DUMPBIN" && break
5856 if test -z "$DUMPBIN"; then
5857 ac_ct_DUMPBIN=$DUMPBIN
5858 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5860 # Extract the first word of "$ac_prog", so it can be a program name with args.
5861 set dummy $ac_prog; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 if test -n "$ac_ct_DUMPBIN"; then
5868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5888 if test -n "$ac_ct_DUMPBIN"; then
5889 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5890 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5892 { echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6; }
5897 test -n "$ac_ct_DUMPBIN" && break
5900 if test "x$ac_ct_DUMPBIN" = x; then
5903 case $cross_compiling:$ac_tool_warned in
5905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5906 whose name does not start with the host triplet. If you think this
5907 configuration is useful to you, please write to autoconf@gnu.org." >&5
5908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet. If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5911 ac_tool_warned=yes ;;
5913 DUMPBIN=$ac_ct_DUMPBIN
5918 if test "$DUMPBIN" != ":"; then
5922 test -z "$NM" && NM=nm
5929 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5930 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5931 if test "${lt_cv_nm_interface+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 lt_cv_nm_interface="BSD nm"
5935 echo "int some_variable = 0;" > conftest.$ac_ext
5936 (eval echo "\"\$as_me:5936: $ac_compile\"" >&5)
5937 (eval "$ac_compile" 2>conftest.err)
5938 cat conftest.err >&5
5939 (eval echo "\"\$as_me:5939: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5940 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5941 cat conftest.err >&5
5942 (eval echo "\"\$as_me:5942: output\"" >&5)
5943 cat conftest.out >&5
5944 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5945 lt_cv_nm_interface="MS dumpbin"
5949 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5950 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5952 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5953 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5955 if test "$LN_S" = "ln -s"; then
5956 { echo "$as_me:$LINENO: result: yes" >&5
5957 echo "${ECHO_T}yes" >&6; }
5959 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5960 echo "${ECHO_T}no, using $LN_S" >&6; }
5963 # find the maximum length of command line arguments
5964 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5965 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5966 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 # On DJGPP, this test can blow up pretty badly due to problems in libc
5975 # (any single argument exceeding 2000 bytes causes a buffer overrun
5976 # during glob expansion). Even if it were fixed, the result of this
5977 # check would be larger than it should be.
5978 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5982 # Under GNU Hurd, this test is not required because there is
5983 # no limit to the length of command line arguments.
5984 # Libtool will interpret -1 as no limit whatsoever
5985 lt_cv_sys_max_cmd_len=-1;
5988 cygwin* | mingw* | cegcc*)
5989 # On Win9x/ME, this test blows up -- it succeeds, but takes
5990 # about 5 minutes as the teststring grows exponentially.
5991 # Worse, since 9x/ME are not pre-emptively multitasking,
5992 # you end up with a "frozen" computer, even though with patience
5993 # the test eventually succeeds (with a max line length of 256k).
5994 # Instead, let's just punt: use the minimum linelength reported by
5995 # all of the supported platforms: 8192 (on NT/2K/XP).
5996 lt_cv_sys_max_cmd_len=8192;
6000 # On AmigaOS with pdksh, this test takes hours, literally.
6001 # So we just punt and use a minimum line length of 8192.
6002 lt_cv_sys_max_cmd_len=8192;
6005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6006 # This has been around since 386BSD, at least. Likely further.
6007 if test -x /sbin/sysctl; then
6008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6009 elif test -x /usr/sbin/sysctl; then
6010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6014 # And add a safety zone
6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6020 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6021 lt_cv_sys_max_cmd_len=196608
6025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6027 # nice to cause kernel panics so lets avoid the loop below.
6028 # First set a reasonable default.
6029 lt_cv_sys_max_cmd_len=16384
6031 if test -x /sbin/sysconfig; then
6032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6038 lt_cv_sys_max_cmd_len=102400
6040 sysv5* | sco5v6* | sysv4.2uw2*)
6041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6042 if test -n "$kargmax"; then
6043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6045 lt_cv_sys_max_cmd_len=32768
6049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6050 if test -n "$lt_cv_sys_max_cmd_len"; then
6051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6054 # Make teststring a little bigger before we do anything with it.
6055 # a 1K string should be a reasonable start.
6056 for i in 1 2 3 4 5 6 7 8 ; do
6057 teststring=$teststring$teststring
6059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6060 # If test is not a shell built-in, we'll probably end up computing a
6061 # maximum length that is only half of the actual maximum length, but
6063 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6064 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6065 test $i != 17 # 1/2 MB should be enough
6068 teststring=$teststring$teststring
6070 # Only check the string length outside the loop.
6071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6073 # Add a significant safety factor because C++ compilers can tack on
6074 # massive amounts of additional arguments before passing them to the
6075 # linker. It appears as though 1/2 is a usable value.
6076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6083 if test -n $lt_cv_sys_max_cmd_len ; then
6084 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6087 { echo "$as_me:$LINENO: result: none" >&5
6088 echo "${ECHO_T}none" >&6; }
6090 max_cmd_len=$lt_cv_sys_max_cmd_len
6101 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6102 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6103 # Try some XSI features
6106 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6108 && eval 'test $(( 1 + 1 )) -eq 2 \
6109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6111 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6112 echo "${ECHO_T}$xsi_shell" >&6; }
6115 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6116 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6118 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6120 && lt_shell_append=yes
6121 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6122 echo "${ECHO_T}$lt_shell_append" >&6; }
6125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6135 # test EBCDIC or ASCII
6136 case `echo X|tr X '\101'` in
6137 A) # ASCII based system
6138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6139 lt_SP2NL='tr \040 \012'
6140 lt_NL2SP='tr \015\012 \040\040'
6142 *) # EBCDIC based system
6143 lt_SP2NL='tr \100 \n'
6144 lt_NL2SP='tr \r\n \100\100'
6156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6158 if test "${lt_cv_ld_reload_flag+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 lt_cv_ld_reload_flag='-r'
6163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6165 reload_flag=$lt_cv_ld_reload_flag
6166 case $reload_flag in
6168 *) reload_flag=" $reload_flag" ;;
6170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173 if test "$GCC" = yes; then
6174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -n "$OBJDUMP"; then
6198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 OBJDUMP=$ac_cv_prog_OBJDUMP
6218 if test -n "$OBJDUMP"; then
6219 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6220 echo "${ECHO_T}$OBJDUMP" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6228 if test -z "$ac_cv_prog_OBJDUMP"; then
6229 ac_ct_OBJDUMP=$OBJDUMP
6230 # Extract the first word of "objdump", so it can be a program name with args.
6231 set dummy objdump; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$ac_ct_OBJDUMP"; then
6238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6258 if test -n "$ac_ct_OBJDUMP"; then
6259 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6260 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6262 { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6266 if test "x$ac_ct_OBJDUMP" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet. If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6279 OBJDUMP=$ac_ct_OBJDUMP
6282 OBJDUMP="$ac_cv_prog_OBJDUMP"
6285 test -z "$OBJDUMP" && OBJDUMP=objdump
6295 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6296 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6297 if test "${lt_cv_deplibs_check_method+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 lt_cv_file_magic_cmd='$MAGIC_CMD'
6301 lt_cv_file_magic_test_file=
6302 lt_cv_deplibs_check_method='unknown'
6303 # Need to set the preceding variable on all platforms that support
6304 # interlibrary dependencies.
6305 # 'none' -- dependencies not supported.
6306 # `unknown' -- same as none, but documents that we really don't know.
6307 # 'pass_all' -- all dependencies passed with no checks.
6308 # 'test_compile' -- check by making test program.
6309 # 'file_magic [[regex]]' -- check by looking for files in library path
6310 # which responds to the $file_magic_cmd with a given extended regex.
6311 # If you have `file' or equivalent on your system and you're not sure
6312 # whether `pass_all' will *always* work, you probably want this one.
6316 lt_cv_deplibs_check_method=pass_all
6320 lt_cv_deplibs_check_method=pass_all
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6325 lt_cv_file_magic_cmd='/usr/bin/file -L'
6326 lt_cv_file_magic_test_file=/shlib/libc.so
6330 # func_win32_libid is a shell function defined in ltmain.sh
6331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6332 lt_cv_file_magic_cmd='func_win32_libid'
6336 # Base MSYS/MinGW do not provide the 'file' command needed by
6337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6338 # unless we find 'file', for example because we are cross-compiling.
6339 if ( file / ) >/dev/null 2>&1; then
6340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341 lt_cv_file_magic_cmd='func_win32_libid'
6343 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6344 lt_cv_file_magic_cmd='$OBJDUMP -f'
6349 # use the weaker test based on 'objdump'. See mingw*.
6350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6351 lt_cv_file_magic_cmd='$OBJDUMP -f'
6354 darwin* | rhapsody*)
6355 lt_cv_deplibs_check_method=pass_all
6358 freebsd* | dragonfly*)
6359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6362 # Not sure whether the presence of OpenBSD here was a mistake.
6363 # Let's accept both of them until this is cleared up.
6364 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6365 lt_cv_file_magic_cmd=/usr/bin/file
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6370 lt_cv_deplibs_check_method=pass_all
6375 lt_cv_deplibs_check_method=pass_all
6378 hpux10.20* | hpux11*)
6379 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6386 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]'
6387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6401 irix5* | irix6* | nonstopux*)
6403 *-32|*"-32 ") libmagic=32-bit;;
6404 *-n32|*"-n32 ") libmagic=N32;;
6405 *-64|*"-64 ") libmagic=64-bit;;
6406 *) libmagic=never-match;;
6408 lt_cv_deplibs_check_method=pass_all
6411 # This must be Linux ELF.
6412 linux* | k*bsd*-gnu)
6413 lt_cv_deplibs_check_method=pass_all
6417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6426 lt_cv_file_magic_cmd=/usr/bin/file
6427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6431 lt_cv_deplibs_check_method=pass_all
6435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6442 osf3* | osf4* | osf5*)
6443 lt_cv_deplibs_check_method=pass_all
6447 lt_cv_deplibs_check_method=pass_all
6451 lt_cv_deplibs_check_method=pass_all
6454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6455 lt_cv_deplibs_check_method=pass_all
6459 case $host_vendor in
6461 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]'
6462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6465 lt_cv_deplibs_check_method=pass_all
6468 lt_cv_file_magic_cmd='/bin/file'
6469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6472 lt_cv_file_magic_cmd='/bin/file'
6473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6474 lt_cv_file_magic_test_file=/lib/libc.so
6477 lt_cv_deplibs_check_method=pass_all
6480 lt_cv_deplibs_check_method=pass_all
6486 lt_cv_deplibs_check_method=pass_all
6491 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6492 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6493 file_magic_cmd=$lt_cv_file_magic_cmd
6494 deplibs_check_method=$lt_cv_deplibs_check_method
6495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}ar; ac_word=$2
6511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_AR+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 if test -n "$AR"; then
6517 ac_cv_prog_AR="$AR" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_AR="${ac_tool_prefix}ar"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 if test -n "$AR"; then
6538 { echo "$as_me:$LINENO: result: $AR" >&5
6539 echo "${ECHO_T}$AR" >&6; }
6541 { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6547 if test -z "$ac_cv_prog_AR"; then
6549 # Extract the first word of "ar", so it can be a program name with args.
6550 set dummy ar; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$ac_ct_AR"; then
6557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_AR="ar"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6577 if test -n "$ac_ct_AR"; then
6578 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6579 echo "${ECHO_T}$ac_ct_AR" >&6; }
6581 { echo "$as_me:$LINENO: result: no" >&5
6582 echo "${ECHO_T}no" >&6; }
6585 if test "x$ac_ct_AR" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6591 whose name does not start with the host triplet. If you think this
6592 configuration is useful to you, please write to autoconf@gnu.org." >&5
6593 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet. If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6596 ac_tool_warned=yes ;;
6604 test -z "$AR" && AR=ar
6605 test -z "$AR_FLAGS" && AR_FLAGS=cru
6617 if test -n "$ac_tool_prefix"; then
6618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6619 set dummy ${ac_tool_prefix}strip; ac_word=$2
6620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622 if test "${ac_cv_prog_STRIP+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 if test -n "$STRIP"; then
6626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 STRIP=$ac_cv_prog_STRIP
6646 if test -n "$STRIP"; then
6647 { echo "$as_me:$LINENO: result: $STRIP" >&5
6648 echo "${ECHO_T}$STRIP" >&6; }
6650 { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6656 if test -z "$ac_cv_prog_STRIP"; then
6658 # Extract the first word of "strip", so it can be a program name with args.
6659 set dummy strip; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 if test -n "$ac_ct_STRIP"; then
6666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675 ac_cv_prog_ac_ct_STRIP="strip"
6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6686 if test -n "$ac_ct_STRIP"; then
6687 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6688 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6694 if test "x$ac_ct_STRIP" = x; then
6697 case $cross_compiling:$ac_tool_warned in
6699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6700 whose name does not start with the host triplet. If you think this
6701 configuration is useful to you, please write to autoconf@gnu.org." >&5
6702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet. If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6705 ac_tool_warned=yes ;;
6710 STRIP="$ac_cv_prog_STRIP"
6713 test -z "$STRIP" && STRIP=:
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725 if test "${ac_cv_prog_RANLIB+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 if test -n "$RANLIB"; then
6729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 RANLIB=$ac_cv_prog_RANLIB
6749 if test -n "$RANLIB"; then
6750 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6751 echo "${ECHO_T}$RANLIB" >&6; }
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6759 if test -z "$ac_cv_prog_RANLIB"; then
6760 ac_ct_RANLIB=$RANLIB
6761 # Extract the first word of "ranlib", so it can be a program name with args.
6762 set dummy ranlib; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 if test -n "$ac_ct_RANLIB"; then
6769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_RANLIB="ranlib"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6789 if test -n "$ac_ct_RANLIB"; then
6790 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6791 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6797 if test "x$ac_ct_RANLIB" = x; then
6800 case $cross_compiling:$ac_tool_warned in
6802 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&5
6805 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6806 whose name does not start with the host triplet. If you think this
6807 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6808 ac_tool_warned=yes ;;
6810 RANLIB=$ac_ct_RANLIB
6813 RANLIB="$ac_cv_prog_RANLIB"
6816 test -z "$RANLIB" && RANLIB=:
6823 # Determine commands to create old-style static archives.
6824 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6825 old_postinstall_cmds='chmod 644 $oldlib'
6826 old_postuninstall_cmds=
6828 if test -n "$RANLIB"; then
6831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6837 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6873 # If no C compiler was specified, use CC.
6876 # If no C compiler flags were specified, use CFLAGS.
6877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6879 # Allow CC to be a program name with arguments.
6883 # Check for command to grab the raw symbol name followed by C symbol from nm.
6884 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 # These are sane defaults that work on at least a few old systems.
6891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6893 # Character class describing NM global symbol codes.
6894 symcode='[BCDEGRST]'
6896 # Regexp to match symbols that can be accessed directly from C.
6897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899 # Define system-specific variables.
6904 cygwin* | mingw* | pw32* | cegcc*)
6905 symcode='[ABCDGISTW]'
6908 if test "$host_cpu" = ia64; then
6909 symcode='[ABCDEGRST]'
6913 symcode='[BCDEGRST]'
6916 symcode='[BCDEGQRST]'
6927 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6935 # If we're using GNU nm, then use its standard symbol codes.
6936 case `$NM -V 2>&1` in
6937 *GNU* | *'with BFD'*)
6938 symcode='[ABCDGIRSTW]' ;;
6941 # Transform an extracted symbol line into a proper C declaration.
6942 # Some systems (esp. on ia64) link data and code symbols differently,
6943 # so use this general approach.
6944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6946 # Transform an extracted symbol line into symbol name and symbol address
6947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6948 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'"
6950 # Handle CRLF in mingw tool chain
6954 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6958 # Try without a prefix underscore, then with it.
6959 for ac_symprfx in "" "_"; do
6961 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6962 symxfrm="\\1 $ac_symprfx\\2 \\2"
6964 # Write the raw and C identifiers.
6965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6966 # Fake it for dumpbin and say T for any non-static function
6967 # and D for any global variable.
6968 # Also find C++ and __fastcall symbols from MSVC++,
6969 # which start with @ or ?.
6970 lt_cv_sys_global_symbol_pipe="$AWK '"\
6971 " {last_section=section; section=\$ 3};"\
6972 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6973 " \$ 0!~/External *\|/{next};"\
6974 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6975 " {if(hide[section]) next};"\
6976 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6977 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6978 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6979 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6980 " ' prfx=^$ac_symprfx"
6982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6985 # Check to see that the pipe works correctly.
6989 cat > conftest.$ac_ext <<_LT_EOF
6994 void nm_test_func(void);
6995 void nm_test_func(void){}
6999 int main(){nm_test_var='a';nm_test_func();return(0);}
7002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7003 (eval $ac_compile) 2>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; then
7007 # Now try to grab the symbols.
7009 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7010 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && test -s "$nlist"; then
7014 # Try sorting and uniquifying the output.
7015 if sort "$nlist" | uniq > "$nlist"T; then
7016 mv -f "$nlist"T "$nlist"
7021 # Make sure that we snagged all the symbols we need.
7022 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7023 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7024 cat <<_LT_EOF > conftest.$ac_ext
7030 # Now generate the symbol file.
7031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033 cat <<_LT_EOF >> conftest.$ac_ext
7035 /* The mapping between symbol names and symbols. */
7040 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 { "@PROGRAM@", (void *) 0 },
7044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7045 cat <<\_LT_EOF >> conftest.$ac_ext
7049 /* This works around a problem in FreeBSD linker */
7050 #ifdef FREEBSD_WORKAROUND
7051 static const void *lt_preloaded_setup() {
7052 return lt__PROGRAM__LTX_preloaded_symbols;
7060 # Now try linking the two files.
7061 mv conftest.$ac_objext conftstm.$ac_objext
7062 lt_save_LIBS="$LIBS"
7063 lt_save_CFLAGS="$CFLAGS"
7064 LIBS="conftstm.$ac_objext"
7065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7073 LIBS="$lt_save_LIBS"
7074 CFLAGS="$lt_save_CFLAGS"
7076 echo "cannot find nm_test_func in $nlist" >&5
7079 echo "cannot find nm_test_var in $nlist" >&5
7082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7085 echo "$progname: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7088 rm -rf conftest* conftst*
7090 # Do not use the global_symbol_pipe unless it works.
7091 if test "$pipe_works" = yes; then
7094 lt_cv_sys_global_symbol_pipe=
7100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7101 lt_cv_sys_global_symbol_to_cdecl=
7103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7104 { echo "$as_me:$LINENO: result: failed" >&5
7105 echo "${ECHO_T}failed" >&6; }
7107 { echo "$as_me:$LINENO: result: ok" >&5
7108 echo "${ECHO_T}ok" >&6; }
7132 # Check whether --enable-libtool-lock was given.
7133 if test "${enable_libtool_lock+set}" = set; then
7134 enableval=$enable_libtool_lock;
7137 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7139 # Some flags need to be propagated to the compiler or linker for good
7143 # Find out which ABI we are using.
7144 echo 'int i;' > conftest.$ac_ext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; then
7150 case `/usr/bin/file conftest.$ac_objext` in
7162 # Find out which ABI we are using.
7163 echo '#line 7163 "configure"' > conftest.$ac_ext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165 (eval $ac_compile) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; then
7169 if test "$lt_cv_prog_gnu_ld" = yes; then
7170 case `/usr/bin/file conftest.$ac_objext` in
7172 LD="${LD-ld} -melf32bsmip"
7175 LD="${LD-ld} -melf32bmipn32"
7178 LD="${LD-ld} -melf64bmip"
7182 case `/usr/bin/file conftest.$ac_objext` in
7198 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7199 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7200 # Find out which ABI we are using.
7201 echo 'int i;' > conftest.$ac_ext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; then
7207 case `/usr/bin/file conftest.o` in
7210 x86_64-*kfreebsd*-gnu)
7211 LD="${LD-ld} -m elf_i386_fbsd"
7214 LD="${LD-ld} -m elf_i386"
7216 ppc64-*linux*|powerpc64-*linux*)
7217 LD="${LD-ld} -m elf32ppclinux"
7220 LD="${LD-ld} -m elf_s390"
7223 LD="${LD-ld} -m elf32_sparc"
7229 x86_64-*kfreebsd*-gnu)
7230 LD="${LD-ld} -m elf_x86_64_fbsd"
7233 LD="${LD-ld} -m elf_x86_64"
7235 ppc*-*linux*|powerpc*-*linux*)
7236 LD="${LD-ld} -m elf64ppc"
7238 s390*-*linux*|s390*-*tpf*)
7239 LD="${LD-ld} -m elf64_s390"
7242 LD="${LD-ld} -m elf64_sparc"
7252 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7253 SAVE_CFLAGS="$CFLAGS"
7254 CFLAGS="$CFLAGS -belf"
7255 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7256 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7257 if test "${lt_cv_cc_needs_belf+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_link") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest$ac_exeext &&
7298 $as_test_x conftest$ac_exeext; then
7299 lt_cv_cc_needs_belf=yes
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 lt_cv_cc_needs_belf=no
7307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7308 conftest$ac_exeext conftest.$ac_ext
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7317 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7320 CFLAGS="$SAVE_CFLAGS"
7324 # Find out which ABI we are using.
7325 echo 'int i;' > conftest.$ac_ext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; then
7331 case `/usr/bin/file conftest.o` in
7333 case $lt_cv_prog_gnu_ld in
7334 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7336 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7348 need_locks="$enable_libtool_lock"
7352 rhapsody* | darwin*)
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 if test -n "$DSYMUTIL"; then
7362 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7382 if test -n "$DSYMUTIL"; then
7383 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7384 echo "${ECHO_T}$DSYMUTIL" >&6; }
7386 { echo "$as_me:$LINENO: result: no" >&5
7387 echo "${ECHO_T}no" >&6; }
7392 if test -z "$ac_cv_prog_DSYMUTIL"; then
7393 ac_ct_DSYMUTIL=$DSYMUTIL
7394 # Extract the first word of "dsymutil", so it can be a program name with args.
7395 set dummy dsymutil; ac_word=$2
7396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7398 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 if test -n "$ac_ct_DSYMUTIL"; then
7402 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7422 if test -n "$ac_ct_DSYMUTIL"; then
7423 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7424 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7430 if test "x$ac_ct_DSYMUTIL" = x; then
7433 case $cross_compiling:$ac_tool_warned in
7435 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7436 whose name does not start with the host triplet. If you think this
7437 configuration is useful to you, please write to autoconf@gnu.org." >&5
7438 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet. If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7441 ac_tool_warned=yes ;;
7443 DSYMUTIL=$ac_ct_DSYMUTIL
7446 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 if test -n "$NMEDIT"; then
7458 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 NMEDIT=$ac_cv_prog_NMEDIT
7478 if test -n "$NMEDIT"; then
7479 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7480 echo "${ECHO_T}$NMEDIT" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7488 if test -z "$ac_cv_prog_NMEDIT"; then
7489 ac_ct_NMEDIT=$NMEDIT
7490 # Extract the first word of "nmedit", so it can be a program name with args.
7491 set dummy nmedit; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 if test -n "$ac_ct_NMEDIT"; then
7498 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7518 if test -n "$ac_ct_NMEDIT"; then
7519 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7520 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7522 { echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6; }
7526 if test "x$ac_ct_NMEDIT" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7532 whose name does not start with the host triplet. If you think this
7533 configuration is useful to you, please write to autoconf@gnu.org." >&5
7534 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7535 whose name does not start with the host triplet. If you think this
7536 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7537 ac_tool_warned=yes ;;
7539 NMEDIT=$ac_ct_NMEDIT
7542 NMEDIT="$ac_cv_prog_NMEDIT"
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_prog_LIPO+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 if test -n "$LIPO"; then
7554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 LIPO=$ac_cv_prog_LIPO
7574 if test -n "$LIPO"; then
7575 { echo "$as_me:$LINENO: result: $LIPO" >&5
7576 echo "${ECHO_T}$LIPO" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7584 if test -z "$ac_cv_prog_LIPO"; then
7586 # Extract the first word of "lipo", so it can be a program name with args.
7587 set dummy lipo; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 if test -n "$ac_ct_LIPO"; then
7594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_ac_ct_LIPO="lipo"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614 if test -n "$ac_ct_LIPO"; then
7615 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7616 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7622 if test "x$ac_ct_LIPO" = x; then
7625 case $cross_compiling:$ac_tool_warned in
7627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7628 whose name does not start with the host triplet. If you think this
7629 configuration is useful to you, please write to autoconf@gnu.org." >&5
7630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7631 whose name does not start with the host triplet. If you think this
7632 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7633 ac_tool_warned=yes ;;
7638 LIPO="$ac_cv_prog_LIPO"
7641 if test -n "$ac_tool_prefix"; then
7642 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7643 set dummy ${ac_tool_prefix}otool; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_prog_OTOOL+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 if test -n "$OTOOL"; then
7650 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7659 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 OTOOL=$ac_cv_prog_OTOOL
7670 if test -n "$OTOOL"; then
7671 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7672 echo "${ECHO_T}$OTOOL" >&6; }
7674 { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7680 if test -z "$ac_cv_prog_OTOOL"; then
7682 # Extract the first word of "otool", so it can be a program name with args.
7683 set dummy otool; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 if test -n "$ac_ct_OTOOL"; then
7690 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 ac_cv_prog_ac_ct_OTOOL="otool"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7710 if test -n "$ac_ct_OTOOL"; then
7711 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7712 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7714 { echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6; }
7718 if test "x$ac_ct_OTOOL" = x; then
7721 case $cross_compiling:$ac_tool_warned in
7723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7724 whose name does not start with the host triplet. If you think this
7725 configuration is useful to you, please write to autoconf@gnu.org." >&5
7726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7727 whose name does not start with the host triplet. If you think this
7728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7729 ac_tool_warned=yes ;;
7734 OTOOL="$ac_cv_prog_OTOOL"
7737 if test -n "$ac_tool_prefix"; then
7738 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 if test -n "$OTOOL64"; then
7746 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 OTOOL64=$ac_cv_prog_OTOOL64
7766 if test -n "$OTOOL64"; then
7767 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7768 echo "${ECHO_T}$OTOOL64" >&6; }
7770 { echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6; }
7776 if test -z "$ac_cv_prog_OTOOL64"; then
7777 ac_ct_OTOOL64=$OTOOL64
7778 # Extract the first word of "otool64", so it can be a program name with args.
7779 set dummy otool64; ac_word=$2
7780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 if test -n "$ac_ct_OTOOL64"; then
7786 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_ac_ct_OTOOL64="otool64"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7806 if test -n "$ac_ct_OTOOL64"; then
7807 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7808 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7810 { echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6; }
7814 if test "x$ac_ct_OTOOL64" = x; then
7817 case $cross_compiling:$ac_tool_warned in
7819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7820 whose name does not start with the host triplet. If you think this
7821 configuration is useful to you, please write to autoconf@gnu.org." >&5
7822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7823 whose name does not start with the host triplet. If you think this
7824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7825 ac_tool_warned=yes ;;
7827 OTOOL64=$ac_ct_OTOOL64
7830 OTOOL64="$ac_cv_prog_OTOOL64"
7859 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7860 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7861 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7864 lt_cv_apple_cc_single_mod=no
7865 if test -z "${LT_MULTI_MODULE}"; then
7866 # By default we will add the -single_module flag. You can override
7867 # by either setting the environment variable LT_MULTI_MODULE
7868 # non-empty at configure time, or by adding -multi_module to the
7870 rm -rf libconftest.dylib*
7871 echo "int foo(void){return 1;}" > conftest.c
7872 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7873 -dynamiclib -Wl,-single_module conftest.c" >&5
7874 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7877 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7878 lt_cv_apple_cc_single_mod=yes
7880 cat conftest.err >&5
7882 rm -rf libconftest.dylib*
7886 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7887 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7888 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7889 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7890 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 lt_cv_ld_exported_symbols_list=no
7894 save_LDFLAGS=$LDFLAGS
7895 echo "_main" > conftest.sym
7896 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_link") 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest$ac_exeext &&
7929 $as_test_x conftest$ac_exeext; then
7930 lt_cv_ld_exported_symbols_list=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 lt_cv_ld_exported_symbols_list=no
7938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7939 conftest$ac_exeext conftest.$ac_ext
7940 LDFLAGS="$save_LDFLAGS"
7943 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7944 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7946 rhapsody* | darwin1.[012])
7947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7950 darwin*) # darwin 5.x on
7951 # if running on 10.5 or later, the deployment target defaults
7952 # to the OS version, if on x86, and 10.4, the deployment
7953 # target defaults to 10.4. Don't you love it?
7954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7955 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7965 _lt_dar_single_mod='$single_module'
7967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7972 if test "$DSYMUTIL" != ":"; then
7973 _lt_dsymutil='~$DSYMUTIL $lib || :'
7980 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7982 if test "${ac_cv_header_stdc+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_header_stdc=yes
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 ac_cv_header_stdc=no
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 if test $ac_cv_header_stdc = yes; then
8032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8033 cat >conftest.$ac_ext <<_ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8043 $EGREP "memchr" >/dev/null 2>&1; then
8046 ac_cv_header_stdc=no
8052 if test $ac_cv_header_stdc = yes; then
8053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064 $EGREP "free" >/dev/null 2>&1; then
8067 ac_cv_header_stdc=no
8073 if test $ac_cv_header_stdc = yes; then
8074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075 if test "$cross_compiling" = yes; then
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8086 #if ((' ' & 0x0FF) == 0x020)
8087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8090 # define ISLOWER(c) \
8091 (('a' <= (c) && (c) <= 'i') \
8092 || ('j' <= (c) && (c) <= 'r') \
8093 || ('s' <= (c) && (c) <= 'z'))
8094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8102 for (i = 0; i < 256; i++)
8103 if (XOR (islower (i), ISLOWER (i))
8104 || toupper (i) != TOUPPER (i))
8109 rm -f conftest$ac_exeext
8110 if { (ac_try="$ac_link"
8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113 *) ac_try_echo=$ac_try;;
8115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8116 (eval "$ac_link") 2>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8131 echo "$as_me: program exited with status $ac_status" >&5
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_header_stdc=no
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8144 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8145 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8146 if test $ac_cv_header_stdc = yes; then
8148 cat >>confdefs.h <<\_ACEOF
8149 #define STDC_HEADERS 1
8154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8165 inttypes.h stdint.h unistd.h
8167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8181 #include <$ac_header>
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1 >conftest.err
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.$ac_objext; then
8200 eval "$as_ac_Header=yes"
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 eval "$as_ac_Header=no"
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 ac_res=`eval echo '${'$as_ac_Header'}'`
8211 { echo "$as_me:$LINENO: result: $ac_res" >&5
8212 echo "${ECHO_T}$ac_res" >&6; }
8213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8214 cat >>confdefs.h <<_ACEOF
8215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8224 for ac_header in dlfcn.h
8226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8240 #include <$ac_header>
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 eval "$as_ac_Header=yes"
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 eval "$as_ac_Header=no"
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ac_res=`eval echo '${'$as_ac_Header'}'`
8270 { echo "$as_me:$LINENO: result: $ac_res" >&5
8271 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8284 ac_cpp='$CXXCPP $CPPFLAGS'
8285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8288 if test -z "$CXX"; then
8289 if test -n "$CCC"; then
8292 if test -n "$ac_tool_prefix"; then
8293 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8299 if test "${ac_cv_prog_CXX+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 if test -n "$CXX"; then
8303 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 if test -n "$CXX"; then
8324 { echo "$as_me:$LINENO: result: $CXX" >&5
8325 echo "${ECHO_T}$CXX" >&6; }
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 test -n "$CXX" && break
8335 if test -z "$CXX"; then
8337 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8339 # Extract the first word of "$ac_prog", so it can be a program name with args.
8340 set dummy $ac_prog; ac_word=$2
8341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8343 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 if test -n "$ac_ct_CXX"; then
8347 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_ac_ct_CXX="$ac_prog"
8357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8367 if test -n "$ac_ct_CXX"; then
8368 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8369 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8371 { echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6; }
8376 test -n "$ac_ct_CXX" && break
8379 if test "x$ac_ct_CXX" = x; then
8382 case $cross_compiling:$ac_tool_warned in
8384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8385 whose name does not start with the host triplet. If you think this
8386 configuration is useful to you, please write to autoconf@gnu.org." >&5
8387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8388 whose name does not start with the host triplet. If you think this
8389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8390 ac_tool_warned=yes ;;
8398 # Provide some information about the compiler.
8399 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8400 ac_compiler=`set X $ac_compile; echo $2`
8401 { (ac_try="$ac_compiler --version >&5"
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compiler --version >&5") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }
8411 { (ac_try="$ac_compiler -v >&5"
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_compiler -v >&5") 2>&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }
8421 { (ac_try="$ac_compiler -V >&5"
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compiler -V >&5") 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }
8432 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8433 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8434 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8455 rm -f conftest.$ac_objext
8456 if { (ac_try="$ac_compile"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_cxx_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.$ac_objext; then
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8484 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8485 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8486 GXX=`test $ac_compiler_gnu = yes && echo yes`
8487 ac_test_CXXFLAGS=${CXXFLAGS+set}
8488 ac_save_CXXFLAGS=$CXXFLAGS
8489 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8490 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8491 if test "${ac_cv_prog_cxx_g+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8495 ac_cxx_werror_flag=yes
8498 cat >conftest.$ac_ext <<_ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_cxx_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8530 ac_cv_prog_cxx_g=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8551 rm -f conftest.$ac_objext
8552 if { (ac_try="$ac_compile"
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_compile") 2>conftest.er1
8560 grep -v '^ *+' conftest.er1 >conftest.err
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && {
8565 test -z "$ac_cxx_werror_flag" ||
8566 test ! -s conftest.err
8567 } && test -s conftest.$ac_objext; then
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_cxx_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_prog_cxx_g=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8626 if test "$ac_test_CXXFLAGS" = set; then
8627 CXXFLAGS=$ac_save_CXXFLAGS
8628 elif test $ac_cv_prog_cxx_g = yes; then
8629 if test "$GXX" = yes; then
8635 if test "$GXX" = yes; then
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8648 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8649 (test "X$CXX" != "Xg++"))) ; then
8651 ac_cpp='$CXXCPP $CPPFLAGS'
8652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8655 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8656 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8657 if test -z "$CXXCPP"; then
8658 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 # Double quotes because CXXCPP needs to be expanded
8662 for CXXCPP in "$CXX -E" "/lib/cpp"
8665 for ac_cxx_preproc_warn_flag in '' yes
8667 # Use a header file that comes with gcc, so configuring glibc
8668 # with a fresh cross-compiler works.
8669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670 # <limits.h> exists even on freestanding compilers.
8671 # On the NeXT, cc -E runs the code through the compiler's parser,
8672 # not just through cpp. "Syntax error" is here to catch this case.
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8680 # include <limits.h>
8682 # include <assert.h>
8686 if { (ac_try="$ac_cpp conftest.$ac_ext"
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } >/dev/null && {
8699 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8700 test ! -s conftest.err
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 # Broken: fails on valid input.
8711 rm -f conftest.err conftest.$ac_ext
8713 # OK, works on sane cases. Now check whether nonexistent headers
8714 # can be detected and how.
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 #include <ac_nonexistent.h>
8723 if { (ac_try="$ac_cpp conftest.$ac_ext"
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev/null && {
8736 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8737 test ! -s conftest.err
8739 # Broken: success on invalid input.
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 # Passes both tests.
8750 rm -f conftest.err conftest.$ac_ext
8753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8754 rm -f conftest.err conftest.$ac_ext
8755 if $ac_preproc_ok; then
8760 ac_cv_prog_CXXCPP=$CXXCPP
8763 CXXCPP=$ac_cv_prog_CXXCPP
8765 ac_cv_prog_CXXCPP=$CXXCPP
8767 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8768 echo "${ECHO_T}$CXXCPP" >&6; }
8770 for ac_cxx_preproc_warn_flag in '' yes
8772 # Use a header file that comes with gcc, so configuring glibc
8773 # with a fresh cross-compiler works.
8774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8775 # <limits.h> exists even on freestanding compilers.
8776 # On the NeXT, cc -E runs the code through the compiler's parser,
8777 # not just through cpp. "Syntax error" is here to catch this case.
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8785 # include <limits.h>
8787 # include <assert.h>
8791 if { (ac_try="$ac_cpp conftest.$ac_ext"
8793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794 *) ac_try_echo=$ac_try;;
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8799 grep -v '^ *+' conftest.er1 >conftest.err
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null && {
8804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8805 test ! -s conftest.err
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 # Broken: fails on valid input.
8816 rm -f conftest.err conftest.$ac_ext
8818 # OK, works on sane cases. Now check whether nonexistent headers
8819 # can be detected and how.
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 #include <ac_nonexistent.h>
8828 if { (ac_try="$ac_cpp conftest.$ac_ext"
8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null && {
8841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8842 test ! -s conftest.err
8844 # Broken: success on invalid input.
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 # Passes both tests.
8855 rm -f conftest.err conftest.$ac_ext
8858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8859 rm -f conftest.err conftest.$ac_ext
8860 if $ac_preproc_ok; then
8863 _lt_caught_CXX_error=yes
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873 _lt_caught_CXX_error=yes
8881 # Check whether --enable-shared was given.
8882 if test "${enable_shared+set}" = set; then
8883 enableval=$enable_shared; p=${PACKAGE-default}
8885 yes) enable_shared=yes ;;
8886 no) enable_shared=no ;;
8889 # Look at the argument we got. We use all the common list separators.
8890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8891 for pkg in $enableval; do
8893 if test "X$pkg" = "X$p"; then
8910 # Check whether --enable-static was given.
8911 if test "${enable_static+set}" = set; then
8912 enableval=$enable_static; p=${PACKAGE-default}
8914 yes) enable_static=yes ;;
8915 no) enable_static=no ;;
8918 # Look at the argument we got. We use all the common list separators.
8919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8920 for pkg in $enableval; do
8922 if test "X$pkg" = "X$p"; then
8951 # Check whether --with-pic was given.
8952 if test "${with_pic+set}" = set; then
8953 withval=$with_pic; pic_mode="$withval"
8959 test -z "$pic_mode" && pic_mode=default
8967 # Check whether --enable-fast-install was given.
8968 if test "${enable_fast_install+set}" = set; then
8969 enableval=$enable_fast_install; p=${PACKAGE-default}
8971 yes) enable_fast_install=yes ;;
8972 no) enable_fast_install=no ;;
8974 enable_fast_install=no
8975 # Look at the argument we got. We use all the common list separators.
8976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8977 for pkg in $enableval; do
8979 if test "X$pkg" = "X$p"; then
8980 enable_fast_install=yes
8987 enable_fast_install=yes
9000 # This can be used to rebuild libtool when needed
9001 LIBTOOL_DEPS="$ltmain"
9003 # Always use our own libtool.
9004 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9030 test -z "$LN_S" && LN_S="ln -s"
9045 if test -n "${ZSH_VERSION+set}" ; then
9046 setopt NO_GLOB_SUBST
9049 { echo "$as_me:$LINENO: checking for objdir" >&5
9050 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9051 if test "${lt_cv_objdir+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 rm -f .libs 2>/dev/null
9055 mkdir .libs 2>/dev/null
9056 if test -d .libs; then
9059 # MS-DOS does not allow filenames that begin with a dot.
9062 rmdir .libs 2>/dev/null
9064 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9065 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9066 objdir=$lt_cv_objdir
9072 cat >>confdefs.h <<_ACEOF
9073 #define LT_OBJDIR "$lt_cv_objdir/"
9094 # AIX sometimes has problems with the GCC collect2 program. For some
9095 # reason, if we set the COLLECT_NAMES environment variable, the problems
9096 # vanish in a puff of smoke.
9097 if test "X${COLLECT_NAMES+set}" != Xset; then
9099 export COLLECT_NAMES
9104 # Sed substitution that helps us do robust quoting. It backslashifies
9105 # metacharacters that are still active within double-quoted strings.
9106 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9108 # Same as above, but do not quote variable references.
9109 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9111 # Sed substitution to delay expansion of an escaped shell variable in a
9112 # double_quote_subst'ed string.
9113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9115 # Sed substitution to delay expansion of an escaped single quote.
9116 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9118 # Sed substitution to avoid accidental globbing in evaled expressions
9119 no_glob_subst='s/\*/\\\*/g'
9123 can_build_shared=yes
9125 # All known linkers require a `.a' archive for static linking (except MSVC,
9126 # which needs '.lib').
9129 with_gnu_ld="$lt_cv_prog_gnu_ld"
9132 old_CFLAGS="$CFLAGS"
9134 # Set sane defaults for various variables
9135 test -z "$CC" && CC=cc
9136 test -z "$LTCC" && LTCC=$CC
9137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9138 test -z "$LD" && LD=ld
9139 test -z "$ac_objext" && ac_objext=o
9141 for cc_temp in $compiler""; do
9143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9149 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9152 # Only perform the check for file, if the check method requires it
9153 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9154 case $deplibs_check_method in
9156 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9157 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9158 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9159 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9167 lt_save_MAGIC_CMD="$MAGIC_CMD"
9168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9169 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9170 for ac_dir in $ac_dummy; do
9172 test -z "$ac_dir" && ac_dir=.
9173 if test -f $ac_dir/${ac_tool_prefix}file; then
9174 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9175 if test -n "$file_magic_test_file"; then
9176 case $deplibs_check_method in
9178 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9181 $EGREP "$file_magic_regex" > /dev/null; then
9186 *** Warning: the command libtool uses to detect shared libraries,
9187 *** $file_magic_cmd, produces output that libtool cannot recognize.
9188 *** The result is that libtool may fail to recognize shared libraries
9189 *** as such. This will affect the creation of libtool libraries that
9190 *** depend on shared libraries, but programs linked with such libtool
9191 *** libraries will work regardless of this problem. Nevertheless, you
9192 *** may want to report the problem to your system manager and/or to
9193 *** bug-libtool@gnu.org
9203 MAGIC_CMD="$lt_save_MAGIC_CMD"
9208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9209 if test -n "$MAGIC_CMD"; then
9210 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9211 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9213 { echo "$as_me:$LINENO: result: no" >&5
9214 echo "${ECHO_T}no" >&6; }
9221 if test -z "$lt_cv_path_MAGIC_CMD"; then
9222 if test -n "$ac_tool_prefix"; then
9223 { echo "$as_me:$LINENO: checking for file" >&5
9224 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9225 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9233 lt_save_MAGIC_CMD="$MAGIC_CMD"
9234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9236 for ac_dir in $ac_dummy; do
9238 test -z "$ac_dir" && ac_dir=.
9239 if test -f $ac_dir/file; then
9240 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9241 if test -n "$file_magic_test_file"; then
9242 case $deplibs_check_method in
9244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9247 $EGREP "$file_magic_regex" > /dev/null; then
9252 *** Warning: the command libtool uses to detect shared libraries,
9253 *** $file_magic_cmd, produces output that libtool cannot recognize.
9254 *** The result is that libtool may fail to recognize shared libraries
9255 *** as such. This will affect the creation of libtool libraries that
9256 *** depend on shared libraries, but programs linked with such libtool
9257 *** libraries will work regardless of this problem. Nevertheless, you
9258 *** may want to report the problem to your system manager and/or to
9259 *** bug-libtool@gnu.org
9269 MAGIC_CMD="$lt_save_MAGIC_CMD"
9274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9275 if test -n "$MAGIC_CMD"; then
9276 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9277 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9279 { echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6; }
9293 # Use C for the default configuration in the libtool script
9297 ac_cpp='$CPP $CPPFLAGS'
9298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303 # Source file extension for C test sources.
9306 # Object file extension for compiled C test sources.
9310 # Code to be used in simple compile tests
9311 lt_simple_compile_test_code="int some_variable = 0;"
9313 # Code to be used in simple link tests
9314 lt_simple_link_test_code='int main(){return(0);}'
9322 # If no C compiler was specified, use CC.
9325 # If no C compiler flags were specified, use CFLAGS.
9326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9328 # Allow CC to be a program name with arguments.
9331 # Save the default compiler, since it gets overwritten when the other
9332 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9333 compiler_DEFAULT=$CC
9335 # save warnings/boilerplate of simple test code
9336 ac_outfile=conftest.$ac_objext
9337 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9338 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9339 _lt_compiler_boilerplate=`cat conftest.err`
9342 ac_outfile=conftest.$ac_objext
9343 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9344 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9345 _lt_linker_boilerplate=`cat conftest.err`
9350 ## There is no encapsulation within the following macros, do not change
9351 ## the running order or otherwise move them around unless you know exactly
9352 ## what you are doing...
9353 if test -n "$compiler"; then
9355 lt_prog_compiler_no_builtin_flag=
9357 if test "$GCC" = yes; then
9358 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9360 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9361 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9362 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 lt_cv_prog_compiler_rtti_exceptions=no
9366 ac_outfile=conftest.$ac_objext
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368 lt_compiler_flag="-fno-rtti -fno-exceptions"
9369 # Insert the option either (1) after the last *FLAGS variable, or
9370 # (2) before a word containing "conftest.", or (3) at the end.
9371 # Note that $ac_compile itself does not contain backslashes and begins
9372 # with a dollar sign (not a hyphen), so the echo should work correctly.
9373 # The option is referenced via a variable to avoid confusing sed.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:9378: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>conftest.err)
9381 cat conftest.err >&5
9382 echo "$as_me:9382: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s "$ac_outfile"; then
9384 # The compiler can only warn and ignore the option if not recognized
9385 # So say no if there are warnings other than the usual output.
9386 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler_rtti_exceptions=yes
9395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9396 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9398 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9411 lt_prog_compiler_wl=
9412 lt_prog_compiler_pic=
9413 lt_prog_compiler_static=
9415 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9416 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9418 if test "$GCC" = yes; then
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_static='-static'
9424 # All AIX code is PIC.
9425 if test "$host_cpu" = ia64; then
9426 # AIX 5 now supports IA64 processor
9427 lt_prog_compiler_static='-Bstatic'
9434 # see comment about AmigaOS4 .so support
9435 lt_prog_compiler_pic='-fPIC'
9438 # FIXME: we need at least 68020 code to build shared libraries, but
9439 # adding the `-m68020' flag to GCC prevents building anything better,
9441 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9447 # PIC is the default for these OSes.
9450 mingw* | cygwin* | pw32* | os2* | cegcc*)
9451 # This hack is so that the source file can tell whether it is being
9452 # built for inclusion in a dll (and should export symbols for example).
9453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9454 # (--disable-auto-import) libraries
9455 lt_prog_compiler_pic='-DDLL_EXPORT'
9458 darwin* | rhapsody*)
9459 # PIC is the default on this platform
9460 # Common symbols not allowed in MH_DYLIB files
9461 lt_prog_compiler_pic='-fno-common'
9465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9467 # sets the default TLS model and affects inlining.
9473 lt_prog_compiler_pic='-fPIC'
9479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9480 # Instead, we relocate shared libraries at runtime.
9484 # Just because we use GCC doesn't mean we suddenly get shared libraries
9485 # on systems that don't support them.
9486 lt_prog_compiler_can_build_shared=no
9491 # QNX uses GNU C++, but need to define -shared option too, otherwise
9493 lt_prog_compiler_pic='-fPIC -shared'
9497 if test -d /usr/nec; then
9498 lt_prog_compiler_pic=-Kconform_pic
9503 lt_prog_compiler_pic='-fPIC'
9507 # PORTME Check for flag to pass linker flags through the system compiler.
9510 lt_prog_compiler_wl='-Wl,'
9511 if test "$host_cpu" = ia64; then
9512 # AIX 5 now supports IA64 processor
9513 lt_prog_compiler_static='-Bstatic'
9515 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9519 mingw* | cygwin* | pw32* | os2* | cegcc*)
9520 # This hack is so that the source file can tell whether it is being
9521 # built for inclusion in a dll (and should export symbols for example).
9522 lt_prog_compiler_pic='-DDLL_EXPORT'
9525 hpux9* | hpux10* | hpux11*)
9526 lt_prog_compiler_wl='-Wl,'
9527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9534 lt_prog_compiler_pic='+Z'
9537 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9538 lt_prog_compiler_static='${wl}-a ${wl}archive'
9541 irix5* | irix6* | nonstopux*)
9542 lt_prog_compiler_wl='-Wl,'
9543 # PIC (with -KPIC) is the default.
9544 lt_prog_compiler_static='-non_shared'
9547 linux* | k*bsd*-gnu)
9548 case $cc_basename in
9549 # old Intel for x86_64 which still supported -KPIC.
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-KPIC'
9553 lt_prog_compiler_static='-static'
9555 # icc used to be incompatible with GCC.
9556 # ICC 10 doesn't accept -KPIC any more.
9558 lt_prog_compiler_wl='-Wl,'
9559 lt_prog_compiler_pic='-fPIC'
9560 lt_prog_compiler_static='-static'
9562 # Lahey Fortran 8.1.
9564 lt_prog_compiler_wl='-Wl,'
9565 lt_prog_compiler_pic='--shared'
9566 lt_prog_compiler_static='--static'
9568 pgcc* | pgf77* | pgf90* | pgf95*)
9569 # Portland Group compilers (*not* the Pentium gcc compiler,
9570 # which looks to be a dead project)
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_pic='-fpic'
9573 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_wl='-Wl,'
9577 # All Alpha code is PIC.
9578 lt_prog_compiler_static='-non_shared'
9581 # IBM XL C 8.0/Fortran 10.1 on PPC
9582 lt_prog_compiler_wl='-Wl,'
9583 lt_prog_compiler_pic='-qpic'
9584 lt_prog_compiler_static='-qstaticlink'
9587 case `$CC -V 2>&1 | sed 5q` in
9590 lt_prog_compiler_pic='-KPIC'
9591 lt_prog_compiler_static='-Bstatic'
9592 lt_prog_compiler_wl='-Wl,'
9595 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9596 lt_prog_compiler_pic='-KPIC'
9597 lt_prog_compiler_static='-Bstatic'
9598 lt_prog_compiler_wl=''
9606 lt_prog_compiler_pic='-KPIC'
9607 lt_prog_compiler_static='-Bstatic'
9611 # QNX uses GNU C++, but need to define -shared option too, otherwise
9613 lt_prog_compiler_pic='-fPIC -shared'
9616 osf3* | osf4* | osf5*)
9617 lt_prog_compiler_wl='-Wl,'
9618 # All OSF/1 code is PIC.
9619 lt_prog_compiler_static='-non_shared'
9623 lt_prog_compiler_static='-non_shared'
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 case $cc_basename in
9631 lt_prog_compiler_wl='-Qoption ld ';;
9633 lt_prog_compiler_wl='-Wl,';;
9638 lt_prog_compiler_wl='-Qoption ld '
9639 lt_prog_compiler_pic='-PIC'
9640 lt_prog_compiler_static='-Bstatic'
9643 sysv4 | sysv4.2uw2* | sysv4.3*)
9644 lt_prog_compiler_wl='-Wl,'
9645 lt_prog_compiler_pic='-KPIC'
9646 lt_prog_compiler_static='-Bstatic'
9650 if test -d /usr/nec ;then
9651 lt_prog_compiler_pic='-Kconform_pic'
9652 lt_prog_compiler_static='-Bstatic'
9656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_pic='-KPIC'
9659 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_can_build_shared=no
9668 lt_prog_compiler_pic='-pic'
9669 lt_prog_compiler_static='-Bstatic'
9673 lt_prog_compiler_can_build_shared=no
9679 # For platforms which do not support PIC, -DPIC is meaningless:
9681 lt_prog_compiler_pic=
9684 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9696 # Check to make sure the PIC flag actually works.
9698 if test -n "$lt_prog_compiler_pic"; then
9699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9701 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 lt_cv_prog_compiler_pic_works=no
9705 ac_outfile=conftest.$ac_objext
9706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9707 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9708 # Insert the option either (1) after the last *FLAGS variable, or
9709 # (2) before a word containing "conftest.", or (3) at the end.
9710 # Note that $ac_compile itself does not contain backslashes and begins
9711 # with a dollar sign (not a hyphen), so the echo should work correctly.
9712 # The option is referenced via a variable to avoid confusing sed.
9713 lt_compile=`echo "$ac_compile" | $SED \
9714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9716 -e 's:$: $lt_compiler_flag:'`
9717 (eval echo "\"\$as_me:9717: $lt_compile\"" >&5)
9718 (eval "$lt_compile" 2>conftest.err)
9720 cat conftest.err >&5
9721 echo "$as_me:9721: \$? = $ac_status" >&5
9722 if (exit $ac_status) && test -s "$ac_outfile"; then
9723 # The compiler can only warn and ignore the option if not recognized
9724 # So say no if there are warnings other than the usual output.
9725 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9728 lt_cv_prog_compiler_pic_works=yes
9734 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9735 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9737 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9738 case $lt_prog_compiler_pic in
9740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9743 lt_prog_compiler_pic=
9744 lt_prog_compiler_can_build_shared=no
9755 # Check to make sure the static flag actually works.
9757 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9760 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 lt_cv_prog_compiler_static_works=no
9764 save_LDFLAGS="$LDFLAGS"
9765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9766 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9768 # The linker can only warn and ignore the option if not recognized
9769 # So say no if there are warnings
9770 if test -s conftest.err; then
9771 # Append any errors to the config.log.
9772 cat conftest.err 1>&5
9773 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9775 if diff conftest.exp conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_static_works=yes
9779 lt_cv_prog_compiler_static_works=yes
9783 LDFLAGS="$save_LDFLAGS"
9786 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9787 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9789 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9792 lt_prog_compiler_static=
9801 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 lt_cv_prog_compiler_c_o=no
9807 $RM -r conftest 2>/dev/null
9811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9813 lt_compiler_flag="-o out/conftest2.$ac_objext"
9814 # Insert the option either (1) after the last *FLAGS variable, or
9815 # (2) before a word containing "conftest.", or (3) at the end.
9816 # Note that $ac_compile itself does not contain backslashes and begins
9817 # with a dollar sign (not a hyphen), so the echo should work correctly.
9818 lt_compile=`echo "$ac_compile" | $SED \
9819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9821 -e 's:$: $lt_compiler_flag:'`
9822 (eval echo "\"\$as_me:9822: $lt_compile\"" >&5)
9823 (eval "$lt_compile" 2>out/conftest.err)
9825 cat out/conftest.err >&5
9826 echo "$as_me:9826: \$? = $ac_status" >&5
9827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9829 # The compiler can only warn and ignore the option if not recognized
9830 # So say no if there are warnings
9831 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9834 lt_cv_prog_compiler_c_o=yes
9839 # SGI C++ compiler will create directory out/ii_files/ for
9840 # template instantiation
9841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9842 $RM out/* && rmdir out
9848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9856 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9857 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9858 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 lt_cv_prog_compiler_c_o=no
9862 $RM -r conftest 2>/dev/null
9866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868 lt_compiler_flag="-o out/conftest2.$ac_objext"
9869 # Insert the option either (1) after the last *FLAGS variable, or
9870 # (2) before a word containing "conftest.", or (3) at the end.
9871 # Note that $ac_compile itself does not contain backslashes and begins
9872 # with a dollar sign (not a hyphen), so the echo should work correctly.
9873 lt_compile=`echo "$ac_compile" | $SED \
9874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9876 -e 's:$: $lt_compiler_flag:'`
9877 (eval echo "\"\$as_me:9877: $lt_compile\"" >&5)
9878 (eval "$lt_compile" 2>out/conftest.err)
9880 cat out/conftest.err >&5
9881 echo "$as_me:9881: \$? = $ac_status" >&5
9882 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9884 # The compiler can only warn and ignore the option if not recognized
9885 # So say no if there are warnings
9886 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9887 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9888 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler_c_o=yes
9894 # SGI C++ compiler will create directory out/ii_files/ for
9895 # template instantiation
9896 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9897 $RM out/* && rmdir out
9903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909 hard_links="nottested"
9910 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9911 # do not overwrite the value of need_locks provided by the user
9912 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9913 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9918 ln conftest.a conftest.b 2>&5 || hard_links=no
9919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9920 { echo "$as_me:$LINENO: result: $hard_links" >&5
9921 echo "${ECHO_T}$hard_links" >&6; }
9922 if test "$hard_links" = no; then
9923 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9924 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9936 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9940 allow_undefined_flag=
9941 always_export_symbols=no
9943 archive_expsym_cmds=
9944 compiler_needs_object=no
9945 enable_shared_with_static_runtimes=no
9946 export_dynamic_flag_spec=
9947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9948 hardcode_automatic=no
9950 hardcode_direct_absolute=no
9951 hardcode_libdir_flag_spec=
9952 hardcode_libdir_flag_spec_ld=
9953 hardcode_libdir_separator=
9955 hardcode_shlibpath_var=unsupported
9957 link_all_deplibs=unknown
9960 old_archive_from_new_cmds=
9961 old_archive_from_expsyms_cmds=
9962 thread_safe_flag_spec=
9963 whole_archive_flag_spec=
9964 # include_expsyms should be a list of space-separated symbols to be *always*
9965 # included in the symbol list
9967 # exclude_expsyms can be an extended regexp of symbols to exclude
9968 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9969 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9970 # as well as any symbol that contains `d'.
9971 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9972 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9973 # platforms (ab)use it in PIC code, but their linkers get confused if
9974 # the symbol is explicitly referenced. Since portable code cannot
9975 # rely on this symbol name, it's probably fine to never include it in
9976 # preloaded symbol tables.
9977 # Exclude shared library initialization/finalization symbols.
9978 extract_expsyms_cmds=
9981 cygwin* | mingw* | pw32* | cegcc*)
9982 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9983 # When not using gcc, we currently assume that we are using
9984 # Microsoft Visual C++.
9985 if test "$GCC" != yes; then
9990 # we just hope/assume this is gcc and not c89 (= MSVC++)
9999 if test "$with_gnu_ld" = yes; then
10000 # If archive_cmds runs LD, not CC, wlarc should be empty
10003 # Set some defaults for GNU ld with shared library support. These
10004 # are reset later if shared libraries are not supported. Putting them
10005 # here allows them to be overridden if necessary.
10006 runpath_var=LD_RUN_PATH
10007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10008 export_dynamic_flag_spec='${wl}--export-dynamic'
10009 # ancient GNU ld didn't support --whole-archive et. al.
10010 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10011 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10013 whole_archive_flag_spec=
10015 supports_anon_versioning=no
10016 case `$LD -v 2>&1` in
10017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10020 *\ 2.11.*) ;; # other 2.11 versions
10021 *) supports_anon_versioning=yes ;;
10024 # See if GNU ld supports shared libraries.
10027 # On AIX/PPC, the GNU linker is very broken
10028 if test "$host_cpu" != ia64; then
10032 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10033 *** to be unable to reliably create shared libraries on AIX.
10034 *** Therefore, libtool is disabling shared libraries support. If you
10035 *** really care for shared libraries, you may want to modify your PATH
10036 *** so that a non-GNU linker is found, and then restart.
10045 # see comment about AmigaOS4 .so support
10046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047 archive_expsym_cmds=''
10050 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)'
10051 hardcode_libdir_flag_spec='-L$libdir'
10052 hardcode_minus_L=yes
10058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10059 allow_undefined_flag=unsupported
10060 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10061 # support --undefined. This deserves some investigation. FIXME
10062 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 cygwin* | mingw* | pw32* | cegcc*)
10069 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10070 # as there is no search path for DLLs.
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 allow_undefined_flag=unsupported
10073 always_export_symbols=no
10074 enable_shared_with_static_runtimes=yes
10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10077 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079 # If the export-symbols file already is a .def file (1st line
10080 # is EXPORTS), use it as is; otherwise, prepend...
10081 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10082 cp $export_symbols $output_objdir/$soname.def;
10084 echo EXPORTS > $output_objdir/$soname.def;
10085 cat $export_symbols >> $output_objdir/$soname.def;
10087 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10095 hardcode_shlibpath_var=no
10096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10097 export_dynamic_flag_spec='${wl}-E'
10098 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10099 # Instead, shared libraries are loaded at an image base (0x10000000 by
10100 # default) and relocated if they conflict, which is a slow very memory
10101 # consuming and fragmenting process. To avoid this, we pick a random,
10102 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10103 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10105 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'
10108 gnu* | linux* | tpf* | k*bsd*-gnu)
10110 if test "$host_os" = linux-dietlibc; then
10111 case $cc_basename in
10112 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10115 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10116 && test "$tmp_diet" = no
10119 tmp_sharedflag='-shared'
10120 case $cc_basename,$host_cpu in
10121 pgcc*) # Portland Group C compiler
10122 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'
10123 tmp_addflag=' $pic_flag'
10125 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10126 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'
10127 tmp_addflag=' $pic_flag -Mnomain' ;;
10128 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10129 tmp_addflag=' -i_dynamic' ;;
10130 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10131 tmp_addflag=' -i_dynamic -nofor_main' ;;
10132 ifc* | ifort*) # Intel Fortran compiler
10133 tmp_addflag=' -nofor_main' ;;
10134 lf95*) # Lahey Fortran 8.1
10135 whole_archive_flag_spec=
10136 tmp_sharedflag='--shared' ;;
10137 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10138 tmp_sharedflag='-qmkshrobj'
10141 case `$CC -V 2>&1 | sed 5q` in
10142 *Sun\ C*) # Sun C 5.9
10143 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'
10144 compiler_needs_object=yes
10145 tmp_sharedflag='-G' ;;
10146 *Sun\ F*) # Sun Fortran 8.3
10147 tmp_sharedflag='-G' ;;
10149 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 if test "x$supports_anon_versioning" = xyes; then
10152 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10154 echo "local: *; };" >> $output_objdir/$libname.ver~
10155 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10158 case $cc_basename in
10160 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10161 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10162 hardcode_libdir_flag_spec=
10163 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10164 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10165 if test "x$supports_anon_versioning" = xyes; then
10166 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10168 echo "local: *; };" >> $output_objdir/$libname.ver~
10169 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10189 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10194 *** create shared libraries on Solaris systems. Therefore, libtool
10195 *** is disabling shared libraries support. We urge you to upgrade GNU
10196 *** binutils to release 2.9.1 or newer. Another option is to modify
10197 *** your PATH or compiler configuration so that the native linker is
10198 *** used, and then restart.
10201 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10210 case `$LD -v 2>&1` in
10211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10216 *** reliably create shared libraries on SCO systems. Therefore, libtool
10217 *** is disabling shared libraries support. We urge you to upgrade GNU
10218 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10219 *** your PATH or compiler configuration so that the native linker is
10220 *** used, and then restart.
10225 # For security reasons, it is highly recommended that you always
10226 # use absolute paths for naming shared libraries, and exclude the
10227 # DT_RUNPATH tag from executables and libraries. But doing so
10228 # requires that you compile everything twice, which is a pain.
10229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_direct=yes
10244 hardcode_shlibpath_var=no
10248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10257 if test "$ld_shlibs" = no; then
10259 hardcode_libdir_flag_spec=
10260 export_dynamic_flag_spec=
10261 whole_archive_flag_spec=
10264 # PORTME fill in a description of your system's linker (not GNU ld)
10267 allow_undefined_flag=unsupported
10268 always_export_symbols=yes
10269 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'
10270 # Note: this linker hardcodes the directories in LIBPATH if there
10271 # are no directories specified by -L.
10272 hardcode_minus_L=yes
10273 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10274 # Neither direct hardcoding nor static linking is supported with a
10276 hardcode_direct=unsupported
10281 if test "$host_cpu" = ia64; then
10282 # On IA64, the linker does run time linking by default, so we don't
10283 # have to do anything special.
10284 aix_use_runtimelinking=no
10285 exp_sym_flag='-Bexport'
10288 # If we're using GNU nm, then we don't want the "-C" option.
10289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10291 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'
10293 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'
10295 aix_use_runtimelinking=no
10297 # Test if we are trying to use run time linking or normal
10298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10299 # need to do runtime linking.
10300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10301 for ld_flag in $LDFLAGS; do
10302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10303 aix_use_runtimelinking=yes
10310 exp_sym_flag='-bexport'
10311 no_entry_flag='-bnoentry'
10314 # When large executables or shared objects are built, AIX ld can
10315 # have problems creating the table of contents. If linking a library
10316 # or program results in "error TOC overflow" add -mminimal-toc to
10317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10321 hardcode_direct=yes
10322 hardcode_direct_absolute=yes
10323 hardcode_libdir_separator=':'
10324 link_all_deplibs=yes
10325 file_list_spec='${wl}-f,'
10327 if test "$GCC" = yes; then
10328 case $host_os in aix4.[012]|aix4.[012].*)
10329 # We only want to do this on AIX 4.2 and lower, the check
10330 # below for broken collect2 doesn't work under 4.3+
10331 collect2name=`${CC} -print-prog-name=collect2`
10332 if test -f "$collect2name" &&
10333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10335 # We have reworked collect2
10338 # We have old collect2
10339 hardcode_direct=unsupported
10340 # It fails to find uninstalled libraries when the uninstalled
10341 # path is not listed in the libpath. Setting hardcode_minus_L
10342 # to unsupported forces relinking
10343 hardcode_minus_L=yes
10344 hardcode_libdir_flag_spec='-L$libdir'
10345 hardcode_libdir_separator=
10349 shared_flag='-shared'
10350 if test "$aix_use_runtimelinking" = yes; then
10351 shared_flag="$shared_flag "'${wl}-G'
10355 if test "$host_cpu" = ia64; then
10356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10357 # chokes on -Wl,-G. The following line is correct:
10360 if test "$aix_use_runtimelinking" = yes; then
10361 shared_flag='${wl}-G'
10363 shared_flag='${wl}-bM:SRE'
10368 export_dynamic_flag_spec='${wl}-bexpall'
10369 # It seems that -bexpall does not export symbols beginning with
10370 # underscore (_), so it is better to generate a list of symbols to export.
10371 always_export_symbols=yes
10372 if test "$aix_use_runtimelinking" = yes; then
10373 # Warning - without using the other runtime loading flags (-brtl),
10374 # -berok will link without error, but may produce a broken library.
10375 allow_undefined_flag='-berok'
10376 # Determine the default libpath from the value encoded in an
10377 # empty executable.
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
10412 lt_aix_libpath_sed='
10413 /Import File Strings/,/^$/ {
10419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420 # Check for a 64-bit object if we didn't find anything.
10421 if test -z "$aix_libpath"; then
10422 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10432 conftest$ac_exeext conftest.$ac_ext
10433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10436 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"
10438 if test "$host_cpu" = ia64; then
10439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10440 allow_undefined_flag="-z nodefs"
10441 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"
10443 # Determine the default libpath from the value encoded in an
10444 # empty executable.
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest$ac_exeext &&
10477 $as_test_x conftest$ac_exeext; then
10479 lt_aix_libpath_sed='
10480 /Import File Strings/,/^$/ {
10486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10487 # Check for a 64-bit object if we didn't find anything.
10488 if test -z "$aix_libpath"; then
10489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10499 conftest$ac_exeext conftest.$ac_ext
10500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10502 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10503 # Warning - without using the other run time loading flags,
10504 # -berok will link without error, but may produce a broken library.
10505 no_undefined_flag=' ${wl}-bernotok'
10506 allow_undefined_flag=' ${wl}-berok'
10507 # Exported symbols can be pulled into shared objects from archives
10508 whole_archive_flag_spec='$convenience'
10509 archive_cmds_need_lc=yes
10510 # This is similar to how AIX traditionally builds its shared libraries.
10511 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'
10519 # see comment about AmigaOS4 .so support
10520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521 archive_expsym_cmds=''
10524 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)'
10525 hardcode_libdir_flag_spec='-L$libdir'
10526 hardcode_minus_L=yes
10532 export_dynamic_flag_spec=-rdynamic
10535 cygwin* | mingw* | pw32* | cegcc*)
10536 # When not using gcc, we currently assume that we are using
10537 # Microsoft Visual C++.
10538 # hardcode_libdir_flag_spec is actually meaningless, as there is
10539 # no search path for DLLs.
10540 hardcode_libdir_flag_spec=' '
10541 allow_undefined_flag=unsupported
10542 # Tell ltmain to make .lib files, not .a files.
10544 # Tell ltmain to make .dll files, not .so files.
10546 # FIXME: Setting linknames here is a bad hack.
10547 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10548 # The linker will automatically build a .lib file if we build a DLL.
10549 old_archive_from_new_cmds='true'
10550 # FIXME: Should let the user specify the lib program.
10551 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10552 fix_srcfile_path='`cygpath -w "$srcfile"`'
10553 enable_shared_with_static_runtimes=yes
10556 darwin* | rhapsody*)
10559 archive_cmds_need_lc=no
10561 hardcode_automatic=yes
10562 hardcode_shlibpath_var=unsupported
10563 whole_archive_flag_spec=''
10564 link_all_deplibs=yes
10565 allow_undefined_flag="$_lt_dar_allow_undefined"
10566 case $cc_basename in
10567 ifort*) _lt_dar_can_shared=yes ;;
10568 *) _lt_dar_can_shared=$GCC ;;
10570 if test "$_lt_dar_can_shared" = "yes"; then
10571 output_verbose_link_cmd=echo
10572 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10573 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10574 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}"
10575 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}"
10584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585 hardcode_libdir_flag_spec='-L$libdir'
10586 hardcode_shlibpath_var=no
10593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10594 # support. Future versions do this automatically, but an explicit c++rt0.o
10595 # does not break anything, and helps significantly (at the cost of a little
10598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10599 hardcode_libdir_flag_spec='-R$libdir'
10600 hardcode_direct=yes
10601 hardcode_shlibpath_var=no
10604 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10607 hardcode_direct=yes
10608 hardcode_minus_L=yes
10609 hardcode_shlibpath_var=no
10612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10613 freebsd* | dragonfly*)
10614 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10615 hardcode_libdir_flag_spec='-R$libdir'
10616 hardcode_direct=yes
10617 hardcode_shlibpath_var=no
10621 if test "$GCC" = yes; then
10622 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'
10624 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'
10626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10627 hardcode_libdir_separator=:
10628 hardcode_direct=yes
10630 # hardcode_minus_L: Not really in the search PATH,
10631 # but as the default location of the library.
10632 hardcode_minus_L=yes
10633 export_dynamic_flag_spec='${wl}-E'
10637 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10642 if test "$with_gnu_ld" = no; then
10643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10644 hardcode_libdir_flag_spec_ld='+b $libdir'
10645 hardcode_libdir_separator=:
10646 hardcode_direct=yes
10647 hardcode_direct_absolute=yes
10648 export_dynamic_flag_spec='${wl}-E'
10649 # hardcode_minus_L: Not really in the search PATH,
10650 # but as the default location of the library.
10651 hardcode_minus_L=yes
10656 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10659 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10681 if test "$with_gnu_ld" = no; then
10682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10683 hardcode_libdir_separator=:
10688 hardcode_shlibpath_var=no
10691 hardcode_direct=yes
10692 hardcode_direct_absolute=yes
10693 export_dynamic_flag_spec='${wl}-E'
10695 # hardcode_minus_L: Not really in the search PATH,
10696 # but as the default location of the library.
10697 hardcode_minus_L=yes
10703 irix5* | irix6* | nonstopux*)
10704 if test "$GCC" = yes; then
10705 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'
10706 # Try to use the -exported_symbol ld option, if it does not
10707 # work, assume that -exports_file does not work either and
10708 # implicitly export all symbols.
10709 save_LDFLAGS="$LDFLAGS"
10710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10711 cat >conftest.$ac_ext <<_ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (ac_try="$ac_link"
10716 case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_link") 2>conftest.er1
10723 grep -v '^ *+' conftest.er1 >conftest.err
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } && {
10728 test -z "$ac_c_werror_flag" ||
10729 test ! -s conftest.err
10730 } && test -s conftest$ac_exeext &&
10731 $as_test_x conftest$ac_exeext; then
10732 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'
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LDFLAGS="$save_LDFLAGS"
10745 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'
10746 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'
10748 archive_cmds_need_lc='no'
10749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10750 hardcode_libdir_separator=:
10752 link_all_deplibs=yes
10756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10761 hardcode_libdir_flag_spec='-R$libdir'
10762 hardcode_direct=yes
10763 hardcode_shlibpath_var=no
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes
10769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10770 hardcode_libdir_separator=:
10771 hardcode_shlibpath_var=no
10778 if test -f /usr/libexec/ld.so; then
10779 hardcode_direct=yes
10780 hardcode_shlibpath_var=no
10781 hardcode_direct_absolute=yes
10782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10786 export_dynamic_flag_spec='${wl}-E'
10789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_libdir_flag_spec='-R$libdir'
10794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10805 hardcode_libdir_flag_spec='-L$libdir'
10806 hardcode_minus_L=yes
10807 allow_undefined_flag=unsupported
10808 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'
10809 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10813 if test "$GCC" = yes; then
10814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10815 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'
10817 allow_undefined_flag=' -expect_unresolved \*'
10818 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'
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10822 hardcode_libdir_separator=:
10825 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-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'
10829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10831 allow_undefined_flag=' -expect_unresolved \*'
10832 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'
10833 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~
10834 $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'
10836 # Both c and cxx compiler support -rpath directly
10837 hardcode_libdir_flag_spec='-rpath $libdir'
10839 archive_cmds_need_lc='no'
10840 hardcode_libdir_separator=:
10844 no_undefined_flag=' -z defs'
10845 if test "$GCC" = yes; then
10847 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10851 case `$CC -V 2>&1` in
10854 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10856 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10860 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10866 hardcode_libdir_flag_spec='-R$libdir'
10867 hardcode_shlibpath_var=no
10869 solaris2.[0-5] | solaris2.[0-5].*) ;;
10871 # The compiler driver will combine and reorder linker options,
10872 # but understands `-z linker_flag'. GCC discards it without `$wl',
10873 # but is careful enough not to reorder.
10874 # Supported since Solaris 2.6 (maybe 2.5.1?)
10875 if test "$GCC" = yes; then
10876 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10882 link_all_deplibs=yes
10886 if test "x$host_vendor" = xsequent; then
10887 # Use $CC to link under sequent, because it throws in some extra .o
10888 # files that make .init and .fini sections work.
10889 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10891 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_libdir_flag_spec='-L$libdir'
10894 hardcode_direct=yes
10895 hardcode_minus_L=yes
10896 hardcode_shlibpath_var=no
10900 case $host_vendor in
10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10903 hardcode_direct=yes # is this really true???
10906 ## LD is ld it makes a PLAMLIB
10907 ## CC just makes a GrossModule.
10908 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10909 reload_cmds='$CC -r -o $output$reload_objs'
10913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10914 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10917 runpath_var='LD_RUN_PATH'
10918 hardcode_shlibpath_var=no
10922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923 hardcode_shlibpath_var=no
10924 export_dynamic_flag_spec='-Bexport'
10928 if test -d /usr/nec; then
10929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_shlibpath_var=no
10931 runpath_var=LD_RUN_PATH
10932 hardcode_runpath_var=yes
10937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10938 no_undefined_flag='${wl}-z,text'
10939 archive_cmds_need_lc=no
10940 hardcode_shlibpath_var=no
10941 runpath_var='LD_RUN_PATH'
10943 if test "$GCC" = yes; then
10944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 sysv5* | sco3.2v5* | sco5v6*)
10953 # Note: We can NOT use -z defs as we might desire, because we do not
10954 # link with -lc, and that would cause any symbols used from libc to
10955 # always be unresolved, which means just about no library would
10956 # ever link correctly. If we're not using GNU ld we use -z text
10957 # though, which does catch some bad symbols but isn't as heavy-handed
10959 no_undefined_flag='${wl}-z,text'
10960 allow_undefined_flag='${wl}-z,nodefs'
10961 archive_cmds_need_lc=no
10962 hardcode_shlibpath_var=no
10963 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10964 hardcode_libdir_separator=':'
10965 link_all_deplibs=yes
10966 export_dynamic_flag_spec='${wl}-Bexport'
10967 runpath_var='LD_RUN_PATH'
10969 if test "$GCC" = yes; then
10970 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10971 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_libdir_flag_spec='-L$libdir'
10981 hardcode_shlibpath_var=no
10989 if test x$host_vendor = xsni; then
10991 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10992 export_dynamic_flag_spec='${wl}-Blargedynsym'
10998 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10999 echo "${ECHO_T}$ld_shlibs" >&6; }
11000 test "$ld_shlibs" = no && can_build_shared=no
11002 with_gnu_ld=$with_gnu_ld
11019 # Do we need to explicitly link libc?
11021 case "x$archive_cmds_need_lc" in
11023 # Assume -lc should be added
11024 archive_cmds_need_lc=yes
11026 if test "$enable_shared" = yes && test "$GCC" = yes; then
11027 case $archive_cmds in
11029 # FIXME: we may have to deal with multi-command sequences.
11032 # Test whether the compiler implicitly links with -lc since on some
11033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11034 # to ld, don't add -lc before -lgcc.
11035 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } 2>conftest.err; then
11047 libobjs=conftest.$ac_objext
11049 wl=$lt_prog_compiler_wl
11050 pic_flag=$lt_prog_compiler_pic
11056 lt_save_allow_undefined_flag=$allow_undefined_flag
11057 allow_undefined_flag=
11058 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }
11064 archive_cmds_need_lc=no
11066 archive_cmds_need_lc=yes
11068 allow_undefined_flag=$lt_save_allow_undefined_flag
11070 cat conftest.err 1>&5
11073 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11074 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11237 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11240 if test "$GCC" = yes; then
11242 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11243 *) lt_awk_arg="/^libraries:/" ;;
11245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11246 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11247 # if the path contains ";" then we assume it to be the separator
11248 # otherwise default to the standard path separator (i.e. ":") - it is
11249 # assumed that no part of a normal pathname contains ";" but that should
11250 # okay in the real world where ";" in dirpaths is itself problematic.
11251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11255 # Ok, now we have the path, separated by spaces, we can step through it
11256 # and add multilib dir if necessary.
11257 lt_tmp_lt_search_path_spec=
11258 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11259 for lt_sys_path in $lt_search_path_spec; do
11260 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11263 test -d "$lt_sys_path" && \
11264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11267 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11268 BEGIN {RS=" "; FS="/|\n";} {
11271 for (lt_i = NF; lt_i > 0; lt_i--) {
11272 if ($lt_i != "" && $lt_i != ".") {
11273 if ($lt_i == "..") {
11276 if (lt_count == 0) {
11277 lt_foo="/" $lt_i lt_foo;
11284 if (lt_foo != "") { lt_freq[lt_foo]++; }
11285 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11287 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11291 library_names_spec=
11292 libname_spec='lib$name'
11296 postuninstall_cmds=
11300 shlibpath_overrides_runpath=unknown
11302 dynamic_linker="$host_os ld.so"
11303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11304 need_lib_prefix=unknown
11305 hardcode_into_libs=no
11307 # when you set need_version to no, make sure it does not cause -set_version
11308 # flags to be left without arguments
11309 need_version=unknown
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11315 shlibpath_var=LIBPATH
11317 # AIX 3 has no versioning support, so we append a major version to the name.
11318 soname_spec='${libname}${release}${shared_ext}$major'
11325 hardcode_into_libs=yes
11326 if test "$host_cpu" = ia64; then
11327 # AIX 5 supports IA64
11328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11329 shlibpath_var=LD_LIBRARY_PATH
11331 # With GCC up to 2.95.x, collect2 would create an import file
11332 # for dependence libraries. The import file would start with
11333 # the line `#! .'. This would cause the generated library to
11334 # depend on `.', always an invalid library. This was fixed in
11335 # development snapshots of GCC prior to 3.0.
11337 aix4 | aix4.[01] | aix4.[01].*)
11338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11343 can_build_shared=no
11347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11348 # soname into executable. Probably we can add versioning support to
11349 # collect2, so additional links can be useful in future.
11350 if test "$aix_use_runtimelinking" = yes; then
11351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11352 # instead of lib<name>.a to let people know that these are not
11353 # typical AIX shared libraries.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 # We preserve .a as extension for shared libraries through AIX4.2
11357 # and later when we are not doing run time linking.
11358 library_names_spec='${libname}${release}.a $libname.a'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LIBPATH
11368 # Since July 2007 AmigaOS4 officially supports .so libraries.
11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373 library_names_spec='$libname.ixlibrary $libname.a'
11374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375 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'
11381 library_names_spec='${libname}${shared_ext}'
11382 dynamic_linker="$host_os ld.so"
11383 shlibpath_var=LIBRARY_PATH
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11395 # the default ld.so.conf also contains /usr/contrib/lib and
11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11397 # libtool to hard-code these into programs
11400 cygwin* | mingw* | pw32* | cegcc*)
11401 version_type=windows
11406 case $GCC,$host_os in
11407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11408 library_names_spec='$libname.dll.a'
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \${file}`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname~
11415 chmod a+x \$dldir/$dlname~
11416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420 dlpath=$dir/\$dldll~
11422 shlibpath_overrides_runpath=yes
11426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11428 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11431 # MinGW DLLs use traditional 'lib' prefix
11432 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11433 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11435 # It is most probably a Windows format PATH printed by
11436 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11437 # path with ; separators, and with drive letters. We can handle the
11438 # drive letters (cygwin fileutils understands them), so leave them,
11439 # especially as we might pass files found there to a mingw objdump,
11440 # which wouldn't understand a cygwinified path. Ahh.
11441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11447 # pw32 DLLs use 'pw' prefix rather than 'lib'
11448 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11454 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11457 dynamic_linker='Win32 ld.exe'
11458 # FIXME: first we should search . and the directory the executable is in
11462 darwin* | rhapsody*)
11463 dynamic_linker="$host_os dyld"
11464 version_type=darwin
11467 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11468 soname_spec='${libname}${release}${major}$shared_ext'
11469 shlibpath_overrides_runpath=yes
11470 shlibpath_var=DYLD_LIBRARY_PATH
11471 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11473 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 shlibpath_var=LD_LIBRARY_PATH
11490 freebsd* | dragonfly*)
11491 # DragonFly does not have aout. When/if they implement a new
11492 # versioning mechanism, adjust this.
11493 if test -x /usr/bin/objformat; then
11494 objformat=`/usr/bin/objformat`
11497 freebsd[123]*) objformat=aout ;;
11498 *) objformat=elf ;;
11501 version_type=freebsd-$objformat
11502 case $version_type in
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11513 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11518 freebsd3.[01]* | freebsdelf3.[01]*)
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11527 *) # from 4.6 on, and DragonFly
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 hardcode_into_libs=yes
11544 hpux9* | hpux10* | hpux11*)
11545 # Give a soname corresponding to the major version so that dld.sl refuses to
11546 # link against other versions.
11553 hardcode_into_libs=yes
11554 dynamic_linker="$host_os dld.so"
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 if test "X$HPUX_IA64_MODE" = X32; then
11560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11568 hardcode_into_libs=yes
11569 dynamic_linker="$host_os dld.sl"
11570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11579 dynamic_linker="$host_os dld.sl"
11580 shlibpath_var=SHLIB_PATH
11581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11587 postinstall_cmds='chmod 555 $lib'
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=no
11599 hardcode_into_libs=yes
11602 irix5* | irix6* | nonstopux*)
11604 nonstopux*) version_type=nonstopux ;;
11606 if test "$lt_cv_prog_gnu_ld" = yes; then
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11617 irix5* | nonstopux*)
11618 libsuff= shlibsuff=
11621 case $LD in # libtool.m4 will add one of these switches to LD
11622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11623 libsuff= shlibsuff= libmagic=32-bit;;
11624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11625 libsuff=32 shlibsuff=N32 libmagic=N32;;
11626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11628 *) libsuff= shlibsuff= libmagic=never-match;;
11632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11633 shlibpath_overrides_runpath=no
11634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11636 hardcode_into_libs=yes
11639 # No shared lib support for Linux oldld, aout, or coff.
11640 linux*oldld* | linux*aout* | linux*coff*)
11644 # This must be Linux ELF.
11645 linux* | k*bsd*-gnu)
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 # Some binutils ld are patched to set DT_RUNPATH
11655 save_LDFLAGS=$LDFLAGS
11656 save_libdir=$libdir
11657 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11658 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_link") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest$ac_exeext &&
11691 $as_test_x conftest$ac_exeext; then
11692 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11693 shlibpath_overrides_runpath=yes
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LDFLAGS=$save_LDFLAGS
11706 libdir=$save_libdir
11708 # This implies no fast_install, which is unacceptable.
11709 # Some rework will be needed to allow for fast_install
11710 # before this can be enabled.
11711 hardcode_into_libs=yes
11713 # Append ld.so.conf contents to the search path
11714 if test -f /etc/ld.so.conf; then
11715 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' ' '`
11716 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11719 # We used to test for /lib/ld.so.1 and disable shared libraries on
11720 # powerpc, because MkLinux only supported shared libraries with the
11721 # GNU dynamic linker. Since this was broken with cross compilers,
11722 # most powerpc-linux boxes support dynamic linking these days and
11723 # people can always --disable-shared, the test was removed, and we
11724 # assume the GNU/Linux dynamic linker is in use.
11725 dynamic_linker='GNU/Linux ld.so'
11732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11735 dynamic_linker='NetBSD (a.out) ld.so'
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11738 soname_spec='${libname}${release}${shared_ext}$major'
11739 dynamic_linker='NetBSD ld.elf_so'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=yes
11743 hardcode_into_libs=yes
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=yes
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11758 soname_spec='${libname}${release}${shared_ext}$major'
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=no
11761 hardcode_into_libs=yes
11762 dynamic_linker='ldqnx.so'
11767 sys_lib_dlsearch_path_spec="/usr/lib"
11769 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11771 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11772 *) need_version=no ;;
11774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11779 openbsd2.[89] | openbsd2.[89].*)
11780 shlibpath_overrides_runpath=no
11783 shlibpath_overrides_runpath=yes
11787 shlibpath_overrides_runpath=yes
11792 libname_spec='$name'
11795 library_names_spec='$libname${shared_ext} $libname.a'
11796 dynamic_linker='OS/2 ld.exe'
11797 shlibpath_var=LIBPATH
11800 osf3* | osf4* | osf5*)
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11808 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=yes
11823 hardcode_into_libs=yes
11824 # ldd complains unless libraries are executable
11825 postinstall_cmds='chmod +x $lib'
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11832 shlibpath_var=LD_LIBRARY_PATH
11833 shlibpath_overrides_runpath=yes
11834 if test "$with_gnu_ld" = yes; then
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 case $host_vendor in
11847 shlibpath_overrides_runpath=no
11849 runpath_var=LD_RUN_PATH
11857 shlibpath_overrides_runpath=no
11858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11864 if test -d /usr/nec ;then
11866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11867 soname_spec='$libname${shared_ext}.$major'
11868 shlibpath_var=LD_LIBRARY_PATH
11872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873 version_type=freebsd-elf
11876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11877 soname_spec='${libname}${release}${shared_ext}$major'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 shlibpath_overrides_runpath=yes
11880 hardcode_into_libs=yes
11881 if test "$with_gnu_ld" = yes; then
11882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11887 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11891 sys_lib_dlsearch_path_spec='/usr/lib'
11895 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11900 shlibpath_var=LD_LIBRARY_PATH
11901 shlibpath_overrides_runpath=no
11902 hardcode_into_libs=yes
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 shlibpath_var=LD_LIBRARY_PATH
11916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11917 echo "${ECHO_T}$dynamic_linker" >&6; }
11918 test "$dynamic_linker" = no && can_build_shared=no
11920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11921 if test "$GCC" = yes; then
11922 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11925 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11926 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11928 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11929 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12018 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12021 if test -n "$hardcode_libdir_flag_spec" ||
12022 test -n "$runpath_var" ||
12023 test "X$hardcode_automatic" = "Xyes" ; then
12025 # We can hardcode non-existent directories.
12026 if test "$hardcode_direct" != no &&
12027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12028 # have to relink, otherwise we might link with an installed library
12029 # when we should be linking with a yet-to-be-installed one
12030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12031 test "$hardcode_minus_L" != no; then
12032 # Linking always hardcodes the temporary library directory.
12033 hardcode_action=relink
12035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12036 hardcode_action=immediate
12039 # We cannot hardcode anything, or else we can only hardcode existing
12041 hardcode_action=unsupported
12043 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12044 echo "${ECHO_T}$hardcode_action" >&6; }
12046 if test "$hardcode_action" = relink ||
12047 test "$inherit_rpath" = yes; then
12048 # Fast installation is not supported
12049 enable_fast_install=no
12050 elif test "$shlibpath_overrides_runpath" = yes ||
12051 test "$enable_shared" = no; then
12052 # Fast installation is not necessary
12053 enable_fast_install=needless
12061 if test "x$enable_dlopen" != xyes; then
12062 enable_dlopen=unknown
12063 enable_dlopen_self=unknown
12064 enable_dlopen_self_static=unknown
12071 lt_cv_dlopen="load_add_on"
12073 lt_cv_dlopen_self=yes
12076 mingw* | pw32* | cegcc*)
12077 lt_cv_dlopen="LoadLibrary"
12082 lt_cv_dlopen="dlopen"
12087 # if libdl is installed we need to link against it
12088 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 ac_check_lib_save_LIBS=$LIBS
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12102 /* Override any GCC internal prototype to avoid an error.
12103 Use char because int might match the return type of a GCC
12104 builtin and then its argument prototype would still apply. */
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (ac_try="$ac_link"
12119 case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_link") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest$ac_exeext &&
12134 $as_test_x conftest$ac_exeext; then
12135 ac_cv_lib_dl_dlopen=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 ac_cv_lib_dl_dlopen=no
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12149 if test $ac_cv_lib_dl_dlopen = yes; then
12150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12153 lt_cv_dlopen="dyld"
12155 lt_cv_dlopen_self=yes
12162 { echo "$as_me:$LINENO: checking for shl_load" >&5
12163 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12164 if test "${ac_cv_func_shl_load+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175 #define shl_load innocuous_shl_load
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char shl_load (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12183 # include <limits.h>
12185 # include <assert.h>
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined __stub_shl_load || defined __stub___shl_load
12207 return shl_load ();
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1 >conftest.err
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest$ac_exeext &&
12229 $as_test_x conftest$ac_exeext; then
12230 ac_cv_func_shl_load=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ac_cv_func_shl_load=no
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12241 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12242 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12243 if test $ac_cv_func_shl_load = yes; then
12244 lt_cv_dlopen="shl_load"
12246 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12247 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 ac_check_lib_save_LIBS=$LIBS
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12270 return shl_load ();
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext &&
12292 $as_test_x conftest$ac_exeext; then
12293 ac_cv_lib_dld_shl_load=yes
12295 echo "$as_me: failed program was:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12298 ac_cv_lib_dld_shl_load=no
12301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12306 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12307 if test $ac_cv_lib_dld_shl_load = yes; then
12308 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12310 { echo "$as_me:$LINENO: checking for dlopen" >&5
12311 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12312 if test "${ac_cv_func_dlopen+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12323 #define dlopen innocuous_dlopen
12325 /* System header to define __stub macros and hopefully few prototypes,
12326 which can conflict with char dlopen (); below.
12327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12328 <limits.h> exists even on freestanding compilers. */
12331 # include <limits.h>
12333 # include <assert.h>
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12345 /* The GNU C library defines this for functions which it implements
12346 to always fail with ENOSYS. Some functions are actually named
12347 something starting with __ and the normal name is an alias. */
12348 #if defined __stub_dlopen || defined __stub___dlopen
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_link") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest$ac_exeext &&
12377 $as_test_x conftest$ac_exeext; then
12378 ac_cv_func_dlopen=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_func_dlopen=no
12386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387 conftest$ac_exeext conftest.$ac_ext
12389 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12390 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12391 if test $ac_cv_func_dlopen = yes; then
12392 lt_cv_dlopen="dlopen"
12394 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 ac_check_lib_save_LIBS=$LIBS
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest$ac_exeext &&
12440 $as_test_x conftest$ac_exeext; then
12441 ac_cv_lib_dl_dlopen=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_cv_lib_dl_dlopen=no
12449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LIBS=$ac_check_lib_save_LIBS
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12454 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12455 if test $ac_cv_lib_dl_dlopen = yes; then
12456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12458 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12459 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12460 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 ac_check_lib_save_LIBS=$LIBS
12464 LIBS="-lsvld $LIBS"
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest$ac_exeext &&
12504 $as_test_x conftest$ac_exeext; then
12505 ac_cv_lib_svld_dlopen=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_cv_lib_svld_dlopen=no
12513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12514 conftest$ac_exeext conftest.$ac_ext
12515 LIBS=$ac_check_lib_save_LIBS
12517 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12518 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12519 if test $ac_cv_lib_svld_dlopen = yes; then
12520 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12522 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12523 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12524 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 ac_check_lib_save_LIBS=$LIBS
12529 cat >conftest.$ac_ext <<_ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12546 return dld_link ();
12551 rm -f conftest.$ac_objext conftest$ac_exeext
12552 if { (ac_try="$ac_link"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_link") 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest$ac_exeext &&
12568 $as_test_x conftest$ac_exeext; then
12569 ac_cv_lib_dld_dld_link=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_lib_dld_dld_link=no
12577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12578 conftest$ac_exeext conftest.$ac_ext
12579 LIBS=$ac_check_lib_save_LIBS
12581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12582 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12583 if test $ac_cv_lib_dld_dld_link = yes; then
12584 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12605 if test "x$lt_cv_dlopen" != xno; then
12611 case $lt_cv_dlopen in
12613 save_CPPFLAGS="$CPPFLAGS"
12614 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12616 save_LDFLAGS="$LDFLAGS"
12617 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12620 LIBS="$lt_cv_dlopen_libs $LIBS"
12622 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12623 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12624 if test "${lt_cv_dlopen_self+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 if test "$cross_compiling" = yes; then :
12628 lt_cv_dlopen_self=cross
12630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12631 lt_status=$lt_dlunknown
12632 cat > conftest.$ac_ext <<_LT_EOF
12633 #line 12633 "configure"
12634 #include "confdefs.h"
12643 # define LT_DLGLOBAL RTLD_GLOBAL
12646 # define LT_DLGLOBAL DL_GLOBAL
12648 # define LT_DLGLOBAL 0
12652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12653 find out it does not work in some platform. */
12654 #ifndef LT_DLLAZY_OR_NOW
12656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12659 # define LT_DLLAZY_OR_NOW DL_LAZY
12662 # define LT_DLLAZY_OR_NOW RTLD_NOW
12665 # define LT_DLLAZY_OR_NOW DL_NOW
12667 # define LT_DLLAZY_OR_NOW 0
12674 void fnord() { int i=42;}
12677 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12678 int status = $lt_dlunknown;
12682 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12683 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12684 /* dlclose (self); */
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12697 (./conftest; exit; ) >&5 2>/dev/null
12699 case x$lt_status in
12700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12705 # compilation failed
12706 lt_cv_dlopen_self=no
12713 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12714 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12716 if test "x$lt_cv_dlopen_self" = xyes; then
12717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12718 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12719 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12720 if test "${lt_cv_dlopen_self_static+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 if test "$cross_compiling" = yes; then :
12724 lt_cv_dlopen_self_static=cross
12726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12727 lt_status=$lt_dlunknown
12728 cat > conftest.$ac_ext <<_LT_EOF
12729 #line 12729 "configure"
12730 #include "confdefs.h"
12739 # define LT_DLGLOBAL RTLD_GLOBAL
12742 # define LT_DLGLOBAL DL_GLOBAL
12744 # define LT_DLGLOBAL 0
12748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12749 find out it does not work in some platform. */
12750 #ifndef LT_DLLAZY_OR_NOW
12752 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12755 # define LT_DLLAZY_OR_NOW DL_LAZY
12758 # define LT_DLLAZY_OR_NOW RTLD_NOW
12761 # define LT_DLLAZY_OR_NOW DL_NOW
12763 # define LT_DLLAZY_OR_NOW 0
12770 void fnord() { int i=42;}
12773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12774 int status = $lt_dlunknown;
12778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12779 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12780 /* dlclose (self); */
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12793 (./conftest; exit; ) >&5 2>/dev/null
12795 case x$lt_status in
12796 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12797 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12798 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12801 # compilation failed
12802 lt_cv_dlopen_self_static=no
12809 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12810 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12813 CPPFLAGS="$save_CPPFLAGS"
12814 LDFLAGS="$save_LDFLAGS"
12819 case $lt_cv_dlopen_self in
12820 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12821 *) enable_dlopen_self=unknown ;;
12824 case $lt_cv_dlopen_self_static in
12825 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12826 *) enable_dlopen_self_static=unknown ;;
12848 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12850 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12851 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12852 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12853 { echo "$as_me:$LINENO: result: yes" >&5
12854 echo "${ECHO_T}yes" >&6; }
12856 # FIXME - insert some real tests, host_os isn't really good enough
12859 if test -n "$STRIP" ; then
12860 striplib="$STRIP -x"
12861 old_striplib="$STRIP -S"
12862 { echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6; }
12865 { echo "$as_me:$LINENO: result: no" >&5
12866 echo "${ECHO_T}no" >&6; }
12870 { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12887 # Report which library types will actually be built
12888 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12890 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12891 echo "${ECHO_T}$can_build_shared" >&6; }
12893 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12895 test "$can_build_shared" = "no" && enable_shared=no
12897 # On AIX, shared libraries and static libraries use the same namespace, and
12898 # are all built from PIC.
12901 test "$enable_shared" = yes && enable_static=no
12902 if test -n "$RANLIB"; then
12903 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12904 postinstall_cmds='$RANLIB $lib'
12909 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12910 test "$enable_shared" = yes && enable_static=no
12914 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12915 echo "${ECHO_T}$enable_shared" >&6; }
12917 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12918 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12919 # Make sure either enable_shared or enable_static is yes.
12920 test "$enable_shared" = yes || enable_static=yes
12921 { echo "$as_me:$LINENO: result: $enable_static" >&5
12922 echo "${ECHO_T}$enable_static" >&6; }
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938 ac_cpp='$CXXCPP $CPPFLAGS'
12939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12943 archive_cmds_need_lc_CXX=no
12944 allow_undefined_flag_CXX=
12945 always_export_symbols_CXX=no
12946 archive_expsym_cmds_CXX=
12947 compiler_needs_object_CXX=no
12948 export_dynamic_flag_spec_CXX=
12949 hardcode_direct_CXX=no
12950 hardcode_direct_absolute_CXX=no
12951 hardcode_libdir_flag_spec_CXX=
12952 hardcode_libdir_flag_spec_ld_CXX=
12953 hardcode_libdir_separator_CXX=
12954 hardcode_minus_L_CXX=no
12955 hardcode_shlibpath_var_CXX=unsupported
12956 hardcode_automatic_CXX=no
12957 inherit_rpath_CXX=no
12959 module_expsym_cmds_CXX=
12960 link_all_deplibs_CXX=unknown
12961 old_archive_cmds_CXX=$old_archive_cmds
12962 no_undefined_flag_CXX=
12963 whole_archive_flag_spec_CXX=
12964 enable_shared_with_static_runtimes_CXX=no
12966 # Source file extension for C++ test sources.
12969 # Object file extension for compiled C++ test sources.
12973 # No sense in running all these tests if we already determined that
12974 # the CXX compiler isn't working. Some variables (like enable_shared)
12975 # are currently assumed to apply to all compilers on this platform,
12976 # and will be corrupted by setting them based on a non-working compiler.
12977 if test "$_lt_caught_CXX_error" != yes; then
12978 # Code to be used in simple compile tests
12979 lt_simple_compile_test_code="int some_variable = 0;"
12981 # Code to be used in simple link tests
12982 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12991 # If no C compiler was specified, use CC.
12994 # If no C compiler flags were specified, use CFLAGS.
12995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12997 # Allow CC to be a program name with arguments.
13001 # save warnings/boilerplate of simple test code
13002 ac_outfile=conftest.$ac_objext
13003 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13004 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13005 _lt_compiler_boilerplate=`cat conftest.err`
13008 ac_outfile=conftest.$ac_objext
13009 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13010 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13011 _lt_linker_boilerplate=`cat conftest.err`
13015 # Allow CC to be a program name with arguments.
13020 lt_save_with_gnu_ld=$with_gnu_ld
13021 lt_save_path_LD=$lt_cv_path_LD
13022 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13023 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13025 $as_unset lt_cv_prog_gnu_ld
13027 if test -n "${lt_cv_path_LDCXX+set}"; then
13028 lt_cv_path_LD=$lt_cv_path_LDCXX
13030 $as_unset lt_cv_path_LD
13032 test -z "${LDCXX+set}" || LD=$LDCXX
13036 for cc_temp in $compiler""; do
13038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13044 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13047 if test -n "$compiler"; then
13048 # We don't want -fno-exception when compiling C++ code, so set the
13049 # no_builtin_flag separately
13050 if test "$GXX" = yes; then
13051 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13053 lt_prog_compiler_no_builtin_flag_CXX=
13056 if test "$GXX" = yes; then
13057 # Set up default GNU C++ configuration
13061 # Check whether --with-gnu-ld was given.
13062 if test "${with_gnu_ld+set}" = set; then
13063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13069 if test "$GCC" = yes; then
13070 # Check if gcc -print-prog-name=ld gives a path.
13071 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13072 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13075 # gcc leaves a trailing carriage return which upsets mingw
13076 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13078 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13081 # Accept absolute paths.
13083 re_direlt='/[^/][^/]*/\.\./'
13084 # Canonicalize the pathname of ld
13085 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13086 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13087 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13089 test -z "$LD" && LD="$ac_prog"
13092 # If it fails, then pretend we aren't using GCC.
13096 # If it is relative, then search for the first ld in PATH.
13097 with_gnu_ld=unknown
13100 elif test "$with_gnu_ld" = yes; then
13101 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13102 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13104 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13105 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13107 if test "${lt_cv_path_LD+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 if test -z "$LD"; then
13111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13112 for ac_dir in $PATH; do
13114 test -z "$ac_dir" && ac_dir=.
13115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13116 lt_cv_path_LD="$ac_dir/$ac_prog"
13117 # Check to see if the program is GNU ld. I'd rather use --version,
13118 # but apparently some variants of GNU ld only accept -v.
13119 # Break only if it was the GNU/non-GNU ld that we prefer.
13120 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13121 *GNU* | *'with BFD'*)
13122 test "$with_gnu_ld" != no && break
13125 test "$with_gnu_ld" != yes && break
13132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13136 LD="$lt_cv_path_LD"
13137 if test -n "$LD"; then
13138 { echo "$as_me:$LINENO: result: $LD" >&5
13139 echo "${ECHO_T}$LD" >&6; }
13141 { echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6; }
13144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13146 { (exit 1); exit 1; }; }
13147 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13149 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13153 case `$LD -v 2>&1 </dev/null` in
13154 *GNU* | *'with BFD'*)
13155 lt_cv_prog_gnu_ld=yes
13158 lt_cv_prog_gnu_ld=no
13162 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13163 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13164 with_gnu_ld=$lt_cv_prog_gnu_ld
13172 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13173 # archiving commands below assume that GNU ld is being used.
13174 if test "$with_gnu_ld" = yes; then
13175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176 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'
13178 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13179 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13181 # If archive_cmds runs LD, not CC, wlarc should be empty
13182 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13183 # investigate it a little bit more. (MM)
13186 # ancient GNU ld didn't support --whole-archive et. al.
13187 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13188 $GREP 'no-whole-archive' > /dev/null; then
13189 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13191 whole_archive_flag_spec_CXX=
13197 # A generic and very simple default shared library creation
13198 # command for GNU C++ for the case where it uses the native
13199 # linker, instead of GNU ld. If possible, this setting should
13200 # overridden to take advantage of the native linker features on
13201 # the platform it is being used on.
13202 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13205 # Commands to make compiler produce verbose output that lists
13206 # what "hidden" libraries, object files and flags are used when
13207 # linking a shared library.
13208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13216 # PORTME: fill in a description of your system's C++ link characteristics
13217 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13218 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13222 # FIXME: insert proper C++ library support
13226 if test "$host_cpu" = ia64; then
13227 # On IA64, the linker does run time linking by default, so we don't
13228 # have to do anything special.
13229 aix_use_runtimelinking=no
13230 exp_sym_flag='-Bexport'
13233 aix_use_runtimelinking=no
13235 # Test if we are trying to use run time linking or normal
13236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13237 # need to do runtime linking.
13238 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13239 for ld_flag in $LDFLAGS; do
13242 aix_use_runtimelinking=yes
13250 exp_sym_flag='-bexport'
13251 no_entry_flag='-bnoentry'
13254 # When large executables or shared objects are built, AIX ld can
13255 # have problems creating the table of contents. If linking a library
13256 # or program results in "error TOC overflow" add -mminimal-toc to
13257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13260 archive_cmds_CXX=''
13261 hardcode_direct_CXX=yes
13262 hardcode_direct_absolute_CXX=yes
13263 hardcode_libdir_separator_CXX=':'
13264 link_all_deplibs_CXX=yes
13265 file_list_spec_CXX='${wl}-f,'
13267 if test "$GXX" = yes; then
13268 case $host_os in aix4.[012]|aix4.[012].*)
13269 # We only want to do this on AIX 4.2 and lower, the check
13270 # below for broken collect2 doesn't work under 4.3+
13271 collect2name=`${CC} -print-prog-name=collect2`
13272 if test -f "$collect2name" &&
13273 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13275 # We have reworked collect2
13278 # We have old collect2
13279 hardcode_direct_CXX=unsupported
13280 # It fails to find uninstalled libraries when the uninstalled
13281 # path is not listed in the libpath. Setting hardcode_minus_L
13282 # to unsupported forces relinking
13283 hardcode_minus_L_CXX=yes
13284 hardcode_libdir_flag_spec_CXX='-L$libdir'
13285 hardcode_libdir_separator_CXX=
13288 shared_flag='-shared'
13289 if test "$aix_use_runtimelinking" = yes; then
13290 shared_flag="$shared_flag "'${wl}-G'
13294 if test "$host_cpu" = ia64; then
13295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13296 # chokes on -Wl,-G. The following line is correct:
13299 if test "$aix_use_runtimelinking" = yes; then
13300 shared_flag='${wl}-G'
13302 shared_flag='${wl}-bM:SRE'
13307 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13308 # It seems that -bexpall does not export symbols beginning with
13309 # underscore (_), so it is better to generate a list of symbols to
13311 always_export_symbols_CXX=yes
13312 if test "$aix_use_runtimelinking" = yes; then
13313 # Warning - without using the other runtime loading flags (-brtl),
13314 # -berok will link without error, but may produce a broken library.
13315 allow_undefined_flag_CXX='-berok'
13316 # Determine the default libpath from the value encoded in an empty
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && {
13347 test -z "$ac_cxx_werror_flag" ||
13348 test ! -s conftest.err
13349 } && test -s conftest$ac_exeext &&
13350 $as_test_x conftest$ac_exeext; then
13352 lt_aix_libpath_sed='
13353 /Import File Strings/,/^$/ {
13359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13360 # Check for a 64-bit object if we didn't find anything.
13361 if test -z "$aix_libpath"; then
13362 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext conftest.$ac_ext
13373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13375 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13377 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"
13379 if test "$host_cpu" = ia64; then
13380 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13381 allow_undefined_flag_CXX="-z nodefs"
13382 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"
13384 # Determine the default libpath from the value encoded in an
13385 # empty executable.
13386 cat >conftest.$ac_ext <<_ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13401 rm -f conftest.$ac_objext conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>conftest.er1
13410 grep -v '^ *+' conftest.er1 >conftest.err
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && {
13415 test -z "$ac_cxx_werror_flag" ||
13416 test ! -s conftest.err
13417 } && test -s conftest$ac_exeext &&
13418 $as_test_x conftest$ac_exeext; then
13420 lt_aix_libpath_sed='
13421 /Import File Strings/,/^$/ {
13427 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13428 # Check for a 64-bit object if we didn't find anything.
13429 if test -z "$aix_libpath"; then
13430 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13443 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13444 # Warning - without using the other run time loading flags,
13445 # -berok will link without error, but may produce a broken library.
13446 no_undefined_flag_CXX=' ${wl}-bernotok'
13447 allow_undefined_flag_CXX=' ${wl}-berok'
13448 # Exported symbols can be pulled into shared objects from archives
13449 whole_archive_flag_spec_CXX='$convenience'
13450 archive_cmds_need_lc_CXX=yes
13451 # This is similar to how AIX traditionally builds its shared
13453 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'
13459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13460 allow_undefined_flag_CXX=unsupported
13461 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462 # support --undefined. This deserves some investigation. FIXME
13463 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13470 case $cc_basename in
13472 # FIXME: insert proper C++ library support
13478 cygwin* | mingw* | pw32* | cegcc*)
13479 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13480 # as there is no search path for DLLs.
13481 hardcode_libdir_flag_spec_CXX='-L$libdir'
13482 allow_undefined_flag_CXX=unsupported
13483 always_export_symbols_CXX=no
13484 enable_shared_with_static_runtimes_CXX=yes
13486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13487 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'
13488 # If the export-symbols file already is a .def file (1st line
13489 # is EXPORTS), use it as is; otherwise, prepend...
13490 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13491 cp $export_symbols $output_objdir/$soname.def;
13493 echo EXPORTS > $output_objdir/$soname.def;
13494 cat $export_symbols >> $output_objdir/$soname.def;
13496 $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'
13501 darwin* | rhapsody*)
13504 archive_cmds_need_lc_CXX=no
13505 hardcode_direct_CXX=no
13506 hardcode_automatic_CXX=yes
13507 hardcode_shlibpath_var_CXX=unsupported
13508 whole_archive_flag_spec_CXX=''
13509 link_all_deplibs_CXX=yes
13510 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13511 case $cc_basename in
13512 ifort*) _lt_dar_can_shared=yes ;;
13513 *) _lt_dar_can_shared=$GCC ;;
13515 if test "$_lt_dar_can_shared" = "yes"; then
13516 output_verbose_link_cmd=echo
13517 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}"
13518 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13519 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}"
13520 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}"
13521 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13522 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}"
13523 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}"
13533 case $cc_basename in
13535 # FIXME: insert proper C++ library support
13539 # Green Hills C++ Compiler
13540 # FIXME: insert proper C++ library support
13544 # FIXME: insert proper C++ library support
13551 # C++ shared libraries reported to be fairly broken before
13557 archive_cmds_need_lc_CXX=no
13560 freebsd* | dragonfly*)
13561 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13570 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13571 hardcode_libdir_separator_CXX=:
13572 export_dynamic_flag_spec_CXX='${wl}-E'
13573 hardcode_direct_CXX=yes
13574 hardcode_minus_L_CXX=yes # Not in the search PATH,
13575 # but as the default
13576 # location of the library.
13578 case $cc_basename in
13580 # FIXME: insert proper C++ library support
13584 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'
13585 # Commands to make compiler produce verbose output that lists
13586 # what "hidden" libraries, object files and flags are used when
13587 # linking a shared library.
13589 # There doesn't appear to be a way to prevent this compiler from
13590 # explicitly linking system object files so we need to strip them
13591 # from the output so that they don't get included in the library
13593 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'
13596 if test "$GXX" = yes; then
13597 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'
13599 # FIXME: insert proper C++ library support
13607 if test $with_gnu_ld = no; then
13608 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13609 hardcode_libdir_separator_CXX=:
13615 export_dynamic_flag_spec_CXX='${wl}-E'
13621 hardcode_direct_CXX=no
13622 hardcode_shlibpath_var_CXX=no
13625 hardcode_direct_CXX=yes
13626 hardcode_direct_absolute_CXX=yes
13627 hardcode_minus_L_CXX=yes # Not in the search PATH,
13628 # but as the default
13629 # location of the library.
13633 case $cc_basename in
13635 # FIXME: insert proper C++ library support
13641 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13644 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13647 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13650 # Commands to make compiler produce verbose output that lists
13651 # what "hidden" libraries, object files and flags are used when
13652 # linking a shared library.
13654 # There doesn't appear to be a way to prevent this compiler from
13655 # explicitly linking system object files so we need to strip them
13656 # from the output so that they don't get included in the library
13658 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'
13661 if test "$GXX" = yes; then
13662 if test $with_gnu_ld = no; then
13665 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13668 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 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'
13676 # FIXME: insert proper C++ library support
13684 hardcode_direct_CXX=no
13685 hardcode_shlibpath_var_CXX=no
13686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13687 export_dynamic_flag_spec_CXX='${wl}-E'
13688 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13689 # Instead, shared libraries are loaded at an image base (0x10000000 by
13690 # default) and relocated if they conflict, which is a slow very memory
13691 # consuming and fragmenting process. To avoid this, we pick a random,
13692 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13693 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13694 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'
13695 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'
13698 case $cc_basename in
13701 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'
13703 # Archives containing C++ object files must be created using
13704 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13705 # necessary to make sure instantiated templates are included
13707 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13710 if test "$GXX" = yes; then
13711 if test "$with_gnu_ld" = no; then
13712 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'
13714 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'
13717 link_all_deplibs_CXX=yes
13720 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13721 hardcode_libdir_separator_CXX=:
13722 inherit_rpath_CXX=yes
13725 linux* | k*bsd*-gnu)
13726 case $cc_basename in
13728 # Kuck and Associates, Inc. (KAI) C++ Compiler
13730 # KCC will only create a shared library if the output file
13731 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13732 # to its proper name (with version) after linking.
13733 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'
13734 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'
13735 # Commands to make compiler produce verbose output that lists
13736 # what "hidden" libraries, object files and flags are used when
13737 # linking a shared library.
13739 # There doesn't appear to be a way to prevent this compiler from
13740 # explicitly linking system object files so we need to strip them
13741 # from the output so that they don't get included in the library
13743 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'
13745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13748 # Archives containing C++ object files must be created using
13749 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13750 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13755 # version 8.0 and above of icpc choke on multiply defined symbols
13756 # if we add $predep_objects and $postdep_objects, however 7.1 and
13757 # earlier do not add the objects themselves.
13758 case `$CC -V 2>&1` in
13760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13761 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'
13763 *) # Version 8.0 or newer
13766 ia64*) tmp_idyn=' -i_dynamic';;
13768 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13769 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'
13772 archive_cmds_need_lc_CXX=no
13773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13775 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13778 # Portland Group C++ compiler
13780 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13781 prelink_cmds_CXX='tpldir=Template.dir~
13783 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13784 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13785 old_archive_cmds_CXX='tpldir=Template.dir~
13787 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13788 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13790 archive_cmds_CXX='tpldir=Template.dir~
13792 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13793 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13794 archive_expsym_cmds_CXX='tpldir=Template.dir~
13796 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13797 $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'
13799 *) # Version 6 will use weak symbols
13800 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13801 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'
13805 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13806 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13807 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'
13811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812 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'
13814 runpath_var=LD_RUN_PATH
13815 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13816 hardcode_libdir_separator_CXX=:
13818 # Commands to make compiler produce verbose output that lists
13819 # what "hidden" libraries, object files and flags are used when
13820 # linking a shared library.
13822 # There doesn't appear to be a way to prevent this compiler from
13823 # explicitly linking system object files so we need to strip them
13824 # from the output so that they don't get included in the library
13826 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'
13829 # IBM XL 8.0 on PPC, with GNU ld
13830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13832 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13833 if test "x$supports_anon_versioning" = xyes; then
13834 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13836 echo "local: *; };" >> $output_objdir/$libname.ver~
13837 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13841 case `$CC -V 2>&1 | sed 5q` in
13844 no_undefined_flag_CXX=' -zdefs'
13845 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13846 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'
13847 hardcode_libdir_flag_spec_CXX='-R$libdir'
13848 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'
13849 compiler_needs_object_CXX=yes
13851 # Not sure whether something based on
13852 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13854 output_verbose_link_cmd='echo'
13856 # Archives containing C++ object files must be created using
13857 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13858 # necessary to make sure instantiated templates are included
13860 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13868 # FIXME: insert proper C++ library support
13873 # FIXME: insert proper C++ library support
13878 case $cc_basename in
13880 # FIXME: insert proper C++ library support
13884 # FIXME: insert proper C++ library support
13891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13892 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13894 hardcode_libdir_flag_spec_CXX='-R$libdir'
13895 hardcode_direct_CXX=yes
13896 hardcode_shlibpath_var_CXX=no
13898 # Workaround some broken pre-1.5 toolchains
13899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13907 # C++ shared libraries are fairly broken
13912 if test -f /usr/libexec/ld.so; then
13913 hardcode_direct_CXX=yes
13914 hardcode_shlibpath_var_CXX=no
13915 hardcode_direct_absolute_CXX=yes
13916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13919 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13920 export_dynamic_flag_spec_CXX='${wl}-E'
13921 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13923 output_verbose_link_cmd=echo
13929 osf3* | osf4* | osf5*)
13930 case $cc_basename in
13932 # Kuck and Associates, Inc. (KAI) C++ Compiler
13934 # KCC will only create a shared library if the output file
13935 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13936 # to its proper name (with version) after linking.
13937 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'
13939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13940 hardcode_libdir_separator_CXX=:
13942 # Archives containing C++ object files must be created using
13943 # the KAI C++ compiler.
13945 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13946 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13950 # Rational C++ 2.4.1
13951 # FIXME: insert proper C++ library support
13957 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13958 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'
13959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13962 allow_undefined_flag_CXX=' -expect_unresolved \*'
13963 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'
13964 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13965 echo "-hidden">> $lib.exp~
13966 $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~
13968 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13972 hardcode_libdir_separator_CXX=:
13974 # Commands to make compiler produce verbose output that lists
13975 # what "hidden" libraries, object files and flags are used when
13976 # linking a shared library.
13978 # There doesn't appear to be a way to prevent this compiler from
13979 # explicitly linking system object files so we need to strip them
13980 # from the output so that they don't get included in the library
13982 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'
13985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13989 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'
13992 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'
13996 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13997 hardcode_libdir_separator_CXX=:
13999 # Commands to make compiler produce verbose output that lists
14000 # what "hidden" libraries, object files and flags are used when
14001 # linking a shared library.
14002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14005 # FIXME: insert proper C++ library support
14013 # FIXME: insert proper C++ library support
14018 case $cc_basename in
14021 # FIXME: insert proper C++ library support
14026 # FIXME: insert proper C++ library support
14030 # FIXME: insert proper C++ library support
14037 case $cc_basename in
14039 # Sun C++ 4.2, 5.x and Centerline C++
14040 archive_cmds_need_lc_CXX=yes
14041 no_undefined_flag_CXX=' -zdefs'
14042 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14044 $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'
14046 hardcode_libdir_flag_spec_CXX='-R$libdir'
14047 hardcode_shlibpath_var_CXX=no
14049 solaris2.[0-5] | solaris2.[0-5].*) ;;
14051 # The compiler driver will combine and reorder linker options,
14052 # but understands `-z linker_flag'.
14053 # Supported since Solaris 2.6 (maybe 2.5.1?)
14054 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14057 link_all_deplibs_CXX=yes
14059 output_verbose_link_cmd='echo'
14061 # Archives containing C++ object files must be created using
14062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14063 # necessary to make sure instantiated templates are included
14065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14068 # Green Hills C++ Compiler
14069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14071 # The C++ compiler must be used to create the archive.
14072 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14075 # GNU C++ compiler with Solaris linker
14076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14077 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14078 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14079 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14080 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14081 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14083 # Commands to make compiler produce verbose output that lists
14084 # what "hidden" libraries, object files and flags are used when
14085 # linking a shared library.
14086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14090 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14091 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14092 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14094 # Commands to make compiler produce verbose output that lists
14095 # what "hidden" libraries, object files and flags are used when
14096 # linking a shared library.
14097 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14100 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14102 solaris2.[0-5] | solaris2.[0-5].*) ;;
14104 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14112 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14113 no_undefined_flag_CXX='${wl}-z,text'
14114 archive_cmds_need_lc_CXX=no
14115 hardcode_shlibpath_var_CXX=no
14116 runpath_var='LD_RUN_PATH'
14118 case $cc_basename in
14120 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14124 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14125 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14130 sysv5* | sco3.2v5* | sco5v6*)
14131 # Note: We can NOT use -z defs as we might desire, because we do not
14132 # link with -lc, and that would cause any symbols used from libc to
14133 # always be unresolved, which means just about no library would
14134 # ever link correctly. If we're not using GNU ld we use -z text
14135 # though, which does catch some bad symbols but isn't as heavy-handed
14137 no_undefined_flag_CXX='${wl}-z,text'
14138 allow_undefined_flag_CXX='${wl}-z,nodefs'
14139 archive_cmds_need_lc_CXX=no
14140 hardcode_shlibpath_var_CXX=no
14141 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14142 hardcode_libdir_separator_CXX=':'
14143 link_all_deplibs_CXX=yes
14144 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14145 runpath_var='LD_RUN_PATH'
14147 case $cc_basename in
14149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14150 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14153 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14154 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14160 case $cc_basename in
14162 # NonStop-UX NCC 3.20
14163 # FIXME: insert proper C++ library support
14167 # FIXME: insert proper C++ library support
14174 # FIXME: insert proper C++ library support
14179 # FIXME: insert proper C++ library support
14184 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14185 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14186 test "$ld_shlibs_CXX" = no && can_build_shared=no
14192 ## There is no encapsulation within the following macros, do not change
14193 ## the running order or otherwise move them around unless you know exactly
14194 ## what you are doing...
14195 # Dependencies to place before and after the object being linked:
14196 predep_objects_CXX=
14197 postdep_objects_CXX=
14200 compiler_lib_search_path_CXX=
14202 cat > conftest.$ac_ext <<_LT_EOF
14206 Foo (void) { a = 0; }
14212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14213 (eval $ac_compile) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; then
14217 # Parse the compiler output and extract the necessary
14218 # objects, libraries and library flags.
14220 # Sentinel used to keep track of whether or not we are before
14221 # the conftest object file.
14222 pre_test_object_deps_done=no
14224 for p in `eval "$output_verbose_link_cmd"`; do
14228 # Some compilers place space between "-{L,R}" and the path.
14229 # Remove the space.
14230 if test $p = "-L" ||
14231 test $p = "-R"; then
14238 if test "$pre_test_object_deps_done" = no; then
14241 # Internal compiler library paths should come after those
14242 # provided the user. The postdeps already come after the
14243 # user supplied libs so there is no need to process them.
14244 if test -z "$compiler_lib_search_path_CXX"; then
14245 compiler_lib_search_path_CXX="${prev}${p}"
14247 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14250 # The "-l" case would never come before the object being
14251 # linked, so don't bother handling this case.
14254 if test -z "$postdeps_CXX"; then
14255 postdeps_CXX="${prev}${p}"
14257 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14263 # This assumes that the test object file only shows up
14264 # once in the compiler output.
14265 if test "$p" = "conftest.$objext"; then
14266 pre_test_object_deps_done=yes
14270 if test "$pre_test_object_deps_done" = no; then
14271 if test -z "$predep_objects_CXX"; then
14272 predep_objects_CXX="$p"
14274 predep_objects_CXX="$predep_objects_CXX $p"
14277 if test -z "$postdep_objects_CXX"; then
14278 postdep_objects_CXX="$p"
14280 postdep_objects_CXX="$postdep_objects_CXX $p"
14285 *) ;; # Ignore the rest.
14293 echo "libtool.m4: error: problem compiling CXX test program"
14296 $RM -f confest.$objext
14298 # PORTME: override above test on systems where it is broken
14301 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14302 # hack all around it, let's just trust "g++" to DTRT.
14303 predep_objects_CXX=
14304 postdep_objects_CXX=
14309 case `$CC -V 2>&1 | sed 5q` in
14313 # The more standards-conforming stlport4 library is
14314 # incompatible with the Cstd library. Avoid specifying
14315 # it if it's in CXXFLAGS. Ignore libCrun as
14316 # -library=stlport4 depends on it.
14317 case " $CXX $CXXFLAGS " in
14318 *" -library=stlport4 "*)
14319 solaris_use_stlport4=yes
14323 if test "$solaris_use_stlport4" != yes; then
14324 postdeps_CXX='-library=Cstd -library=Crun'
14331 case $cc_basename in
14333 # The more standards-conforming stlport4 library is
14334 # incompatible with the Cstd library. Avoid specifying
14335 # it if it's in CXXFLAGS. Ignore libCrun as
14336 # -library=stlport4 depends on it.
14337 case " $CXX $CXXFLAGS " in
14338 *" -library=stlport4 "*)
14339 solaris_use_stlport4=yes
14343 # Adding this requires a known-good setup of shared libraries for
14344 # Sun compiler versions before 5.6, else PIC objects from an old
14345 # archive will be linked into the output, leading to subtle bugs.
14346 if test "$solaris_use_stlport4" != yes; then
14347 postdeps_CXX='-library=Cstd -library=Crun'
14355 case " $postdeps_CXX " in
14356 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14358 compiler_lib_search_dirs_CXX=
14359 if test -n "${compiler_lib_search_path_CXX}"; then
14360 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14393 lt_prog_compiler_wl_CXX=
14394 lt_prog_compiler_pic_CXX=
14395 lt_prog_compiler_static_CXX=
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14400 # C++ specific cases for pic, static, wl, etc.
14401 if test "$GXX" = yes; then
14402 lt_prog_compiler_wl_CXX='-Wl,'
14403 lt_prog_compiler_static_CXX='-static'
14407 # All AIX code is PIC.
14408 if test "$host_cpu" = ia64; then
14409 # AIX 5 now supports IA64 processor
14410 lt_prog_compiler_static_CXX='-Bstatic'
14417 # see comment about AmigaOS4 .so support
14418 lt_prog_compiler_pic_CXX='-fPIC'
14421 # FIXME: we need at least 68020 code to build shared libraries, but
14422 # adding the `-m68020' flag to GCC prevents building anything better,
14424 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14430 # PIC is the default for these OSes.
14432 mingw* | cygwin* | os2* | pw32* | cegcc*)
14433 # This hack is so that the source file can tell whether it is being
14434 # built for inclusion in a dll (and should export symbols for example).
14435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14436 # (--disable-auto-import) libraries
14437 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14439 darwin* | rhapsody*)
14440 # PIC is the default on this platform
14441 # Common symbols not allowed in MH_DYLIB files
14442 lt_prog_compiler_pic_CXX='-fno-common'
14445 # DJGPP does not support shared libraries at all
14446 lt_prog_compiler_pic_CXX=
14449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14450 # Instead, we relocate shared libraries at runtime.
14453 if test -d /usr/nec; then
14454 lt_prog_compiler_pic_CXX=-Kconform_pic
14458 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14459 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14460 # sets the default TLS model and affects inlining.
14465 lt_prog_compiler_pic_CXX='-fPIC'
14470 # QNX uses GNU C++, but need to define -shared option too, otherwise
14471 # it will coredump.
14472 lt_prog_compiler_pic_CXX='-fPIC -shared'
14475 lt_prog_compiler_pic_CXX='-fPIC'
14481 # All AIX code is PIC.
14482 if test "$host_cpu" = ia64; then
14483 # AIX 5 now supports IA64 processor
14484 lt_prog_compiler_static_CXX='-Bstatic'
14486 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14490 case $cc_basename in
14492 # Green Hills C++ Compiler
14493 # _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"
14498 case $cc_basename in
14500 lt_prog_compiler_pic_CXX='-KPIC'
14503 # Green Hills C++ Compiler
14504 lt_prog_compiler_pic_CXX='-pic'
14510 freebsd* | dragonfly*)
14511 # FreeBSD uses GNU C++
14513 hpux9* | hpux10* | hpux11*)
14514 case $cc_basename in
14516 lt_prog_compiler_wl_CXX='-Wl,'
14517 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14518 if test "$host_cpu" != ia64; then
14519 lt_prog_compiler_pic_CXX='+Z'
14523 lt_prog_compiler_wl_CXX='-Wl,'
14524 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14530 lt_prog_compiler_pic_CXX='+Z'
14539 # This is c89, which is MS Visual C++ (no shared libs)
14540 # Anyone wants to do a port?
14542 irix5* | irix6* | nonstopux*)
14543 case $cc_basename in
14545 lt_prog_compiler_wl_CXX='-Wl,'
14546 lt_prog_compiler_static_CXX='-non_shared'
14547 # CC pic flag -KPIC is the default.
14553 linux* | k*bsd*-gnu)
14554 case $cc_basename in
14557 lt_prog_compiler_wl_CXX='--backend -Wl,'
14558 lt_prog_compiler_pic_CXX='-fPIC'
14561 # old Intel C++ for x86_64 which still supported -KPIC.
14562 lt_prog_compiler_wl_CXX='-Wl,'
14563 lt_prog_compiler_pic_CXX='-KPIC'
14564 lt_prog_compiler_static_CXX='-static'
14567 # Intel C++, used to be incompatible with GCC.
14568 # ICC 10 doesn't accept -KPIC any more.
14569 lt_prog_compiler_wl_CXX='-Wl,'
14570 lt_prog_compiler_pic_CXX='-fPIC'
14571 lt_prog_compiler_static_CXX='-static'
14574 # Portland Group C++ compiler
14575 lt_prog_compiler_wl_CXX='-Wl,'
14576 lt_prog_compiler_pic_CXX='-fpic'
14577 lt_prog_compiler_static_CXX='-Bstatic'
14581 # Make sure the PIC flag is empty. It appears that all Alpha
14582 # Linux and Compaq Tru64 Unix objects are PIC.
14583 lt_prog_compiler_pic_CXX=
14584 lt_prog_compiler_static_CXX='-non_shared'
14587 # IBM XL 8.0 on PPC
14588 lt_prog_compiler_wl_CXX='-Wl,'
14589 lt_prog_compiler_pic_CXX='-qpic'
14590 lt_prog_compiler_static_CXX='-qstaticlink'
14593 case `$CC -V 2>&1 | sed 5q` in
14596 lt_prog_compiler_pic_CXX='-KPIC'
14597 lt_prog_compiler_static_CXX='-Bstatic'
14598 lt_prog_compiler_wl_CXX='-Qoption ld '
14609 case $cc_basename in
14611 lt_prog_compiler_pic_CXX='-W c,exportall'
14620 # QNX uses GNU C++, but need to define -shared option too, otherwise
14621 # it will coredump.
14622 lt_prog_compiler_pic_CXX='-fPIC -shared'
14624 osf3* | osf4* | osf5*)
14625 case $cc_basename in
14627 lt_prog_compiler_wl_CXX='--backend -Wl,'
14630 # Rational C++ 2.4.1
14631 lt_prog_compiler_pic_CXX='-pic'
14634 # Digital/Compaq C++
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 # Make sure the PIC flag is empty. It appears that all Alpha
14637 # Linux and Compaq Tru64 Unix objects are PIC.
14638 lt_prog_compiler_pic_CXX=
14639 lt_prog_compiler_static_CXX='-non_shared'
14648 case $cc_basename in
14650 # Sun C++ 4.2, 5.x and Centerline C++
14651 lt_prog_compiler_pic_CXX='-KPIC'
14652 lt_prog_compiler_static_CXX='-Bstatic'
14653 lt_prog_compiler_wl_CXX='-Qoption ld '
14656 # Green Hills C++ Compiler
14657 lt_prog_compiler_pic_CXX='-PIC'
14664 case $cc_basename in
14667 lt_prog_compiler_pic_CXX='-pic'
14668 lt_prog_compiler_static_CXX='-Bstatic'
14672 lt_prog_compiler_pic_CXX='-pic'
14678 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14679 case $cc_basename in
14681 lt_prog_compiler_wl_CXX='-Wl,'
14682 lt_prog_compiler_pic_CXX='-KPIC'
14683 lt_prog_compiler_static_CXX='-Bstatic'
14688 case $cc_basename in
14690 # NonStop-UX NCC 3.20
14691 lt_prog_compiler_pic_CXX='-KPIC'
14700 lt_prog_compiler_can_build_shared_CXX=no
14706 # For platforms which do not support PIC, -DPIC is meaningless:
14708 lt_prog_compiler_pic_CXX=
14711 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14715 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14720 # Check to make sure the PIC flag actually works.
14722 if test -n "$lt_prog_compiler_pic_CXX"; then
14723 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14725 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 lt_cv_prog_compiler_pic_works_CXX=no
14729 ac_outfile=conftest.$ac_objext
14730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14732 # Insert the option either (1) after the last *FLAGS variable, or
14733 # (2) before a word containing "conftest.", or (3) at the end.
14734 # Note that $ac_compile itself does not contain backslashes and begins
14735 # with a dollar sign (not a hyphen), so the echo should work correctly.
14736 # The option is referenced via a variable to avoid confusing sed.
14737 lt_compile=`echo "$ac_compile" | $SED \
14738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14740 -e 's:$: $lt_compiler_flag:'`
14741 (eval echo "\"\$as_me:14741: $lt_compile\"" >&5)
14742 (eval "$lt_compile" 2>conftest.err)
14744 cat conftest.err >&5
14745 echo "$as_me:14745: \$? = $ac_status" >&5
14746 if (exit $ac_status) && test -s "$ac_outfile"; then
14747 # The compiler can only warn and ignore the option if not recognized
14748 # So say no if there are warnings other than the usual output.
14749 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14752 lt_cv_prog_compiler_pic_works_CXX=yes
14758 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14759 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14761 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14762 case $lt_prog_compiler_pic_CXX in
14764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14767 lt_prog_compiler_pic_CXX=
14768 lt_prog_compiler_can_build_shared_CXX=no
14776 # Check to make sure the static flag actually works.
14778 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14781 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 lt_cv_prog_compiler_static_works_CXX=no
14785 save_LDFLAGS="$LDFLAGS"
14786 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14789 # The linker can only warn and ignore the option if not recognized
14790 # So say no if there are warnings
14791 if test -s conftest.err; then
14792 # Append any errors to the config.log.
14793 cat conftest.err 1>&5
14794 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14796 if diff conftest.exp conftest.er2 >/dev/null; then
14797 lt_cv_prog_compiler_static_works_CXX=yes
14800 lt_cv_prog_compiler_static_works_CXX=yes
14804 LDFLAGS="$save_LDFLAGS"
14807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14808 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14810 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14813 lt_prog_compiler_static_CXX=
14819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14821 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 lt_cv_prog_compiler_c_o_CXX=no
14825 $RM -r conftest 2>/dev/null
14829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14831 lt_compiler_flag="-o out/conftest2.$ac_objext"
14832 # Insert the option either (1) after the last *FLAGS variable, or
14833 # (2) before a word containing "conftest.", or (3) at the end.
14834 # Note that $ac_compile itself does not contain backslashes and begins
14835 # with a dollar sign (not a hyphen), so the echo should work correctly.
14836 lt_compile=`echo "$ac_compile" | $SED \
14837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14839 -e 's:$: $lt_compiler_flag:'`
14840 (eval echo "\"\$as_me:14840: $lt_compile\"" >&5)
14841 (eval "$lt_compile" 2>out/conftest.err)
14843 cat out/conftest.err >&5
14844 echo "$as_me:14844: \$? = $ac_status" >&5
14845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14847 # The compiler can only warn and ignore the option if not recognized
14848 # So say no if there are warnings
14849 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14852 lt_cv_prog_compiler_c_o_CXX=yes
14857 # SGI C++ compiler will create directory out/ii_files/ for
14858 # template instantiation
14859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14860 $RM out/* && rmdir out
14866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14873 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 lt_cv_prog_compiler_c_o_CXX=no
14877 $RM -r conftest 2>/dev/null
14881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14883 lt_compiler_flag="-o out/conftest2.$ac_objext"
14884 # Insert the option either (1) after the last *FLAGS variable, or
14885 # (2) before a word containing "conftest.", or (3) at the end.
14886 # Note that $ac_compile itself does not contain backslashes and begins
14887 # with a dollar sign (not a hyphen), so the echo should work correctly.
14888 lt_compile=`echo "$ac_compile" | $SED \
14889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14891 -e 's:$: $lt_compiler_flag:'`
14892 (eval echo "\"\$as_me:14892: $lt_compile\"" >&5)
14893 (eval "$lt_compile" 2>out/conftest.err)
14895 cat out/conftest.err >&5
14896 echo "$as_me:14896: \$? = $ac_status" >&5
14897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14899 # The compiler can only warn and ignore the option if not recognized
14900 # So say no if there are warnings
14901 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14904 lt_cv_prog_compiler_c_o_CXX=yes
14909 # SGI C++ compiler will create directory out/ii_files/ for
14910 # template instantiation
14911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14912 $RM out/* && rmdir out
14918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14924 hard_links="nottested"
14925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14926 # do not overwrite the value of need_locks provided by the user
14927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14933 ln conftest.a conftest.b 2>&5 || hard_links=no
14934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14935 { echo "$as_me:$LINENO: result: $hard_links" >&5
14936 echo "${ECHO_T}$hard_links" >&6; }
14937 if test "$hard_links" = no; then
14938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14948 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14949 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14951 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14954 # If we're using GNU nm, then we don't want the "-C" option.
14955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14956 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14957 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'
14959 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'
14963 export_symbols_cmds_CXX="$ltdll_cmds"
14965 cygwin* | mingw* | cegcc*)
14966 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'
14969 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14972 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14974 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14975 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14976 test "$ld_shlibs_CXX" = no && can_build_shared=no
14978 with_gnu_ld_CXX=$with_gnu_ld
14986 # Do we need to explicitly link libc?
14988 case "x$archive_cmds_need_lc_CXX" in
14990 # Assume -lc should be added
14991 archive_cmds_need_lc_CXX=yes
14993 if test "$enable_shared" = yes && test "$GCC" = yes; then
14994 case $archive_cmds_CXX in
14996 # FIXME: we may have to deal with multi-command sequences.
14999 # Test whether the compiler implicitly links with -lc since on some
15000 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15001 # to ld, don't add -lc before -lgcc.
15002 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008 (eval $ac_compile) 2>&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } 2>conftest.err; then
15014 libobjs=conftest.$ac_objext
15016 wl=$lt_prog_compiler_wl_CXX
15017 pic_flag=$lt_prog_compiler_pic_CXX
15023 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15024 allow_undefined_flag_CXX=
15025 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15026 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }
15031 archive_cmds_need_lc_CXX=no
15033 archive_cmds_need_lc_CXX=yes
15035 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15037 cat conftest.err 1>&5
15040 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15041 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15111 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15112 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15114 library_names_spec=
15115 libname_spec='lib$name'
15119 postuninstall_cmds=
15123 shlibpath_overrides_runpath=unknown
15125 dynamic_linker="$host_os ld.so"
15126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15127 need_lib_prefix=unknown
15128 hardcode_into_libs=no
15130 # when you set need_version to no, make sure it does not cause -set_version
15131 # flags to be left without arguments
15132 need_version=unknown
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15138 shlibpath_var=LIBPATH
15140 # AIX 3 has no versioning support, so we append a major version to the name.
15141 soname_spec='${libname}${release}${shared_ext}$major'
15148 hardcode_into_libs=yes
15149 if test "$host_cpu" = ia64; then
15150 # AIX 5 supports IA64
15151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15152 shlibpath_var=LD_LIBRARY_PATH
15154 # With GCC up to 2.95.x, collect2 would create an import file
15155 # for dependence libraries. The import file would start with
15156 # the line `#! .'. This would cause the generated library to
15157 # depend on `.', always an invalid library. This was fixed in
15158 # development snapshots of GCC prior to 3.0.
15160 aix4 | aix4.[01] | aix4.[01].*)
15161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15163 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15166 can_build_shared=no
15170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15171 # soname into executable. Probably we can add versioning support to
15172 # collect2, so additional links can be useful in future.
15173 if test "$aix_use_runtimelinking" = yes; then
15174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15175 # instead of lib<name>.a to let people know that these are not
15176 # typical AIX shared libraries.
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179 # We preserve .a as extension for shared libraries through AIX4.2
15180 # and later when we are not doing run time linking.
15181 library_names_spec='${libname}${release}.a $libname.a'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LIBPATH
15191 # Since July 2007 AmigaOS4 officially supports .so libraries.
15192 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 library_names_spec='$libname.ixlibrary $libname.a'
15197 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15198 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'
15204 library_names_spec='${libname}${shared_ext}'
15205 dynamic_linker="$host_os ld.so"
15206 shlibpath_var=LIBRARY_PATH
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15218 # the default ld.so.conf also contains /usr/contrib/lib and
15219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15220 # libtool to hard-code these into programs
15223 cygwin* | mingw* | pw32* | cegcc*)
15224 version_type=windows
15229 case $GCC,$host_os in
15230 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15231 library_names_spec='$libname.dll.a'
15232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15233 postinstall_cmds='base_file=`basename \${file}`~
15234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15235 dldir=$destdir/`dirname \$dlpath`~
15236 test -d \$dldir || mkdir -p \$dldir~
15237 $install_prog $dir/$dlname \$dldir/$dlname~
15238 chmod a+x \$dldir/$dlname~
15239 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15240 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15243 dlpath=$dir/\$dldll~
15245 shlibpath_overrides_runpath=yes
15249 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15250 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15254 # MinGW DLLs use traditional 'lib' prefix
15255 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15256 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15257 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15258 # It is most probably a Windows format PATH printed by
15259 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15260 # path with ; separators, and with drive letters. We can handle the
15261 # drive letters (cygwin fileutils understands them), so leave them,
15262 # especially as we might pass files found there to a mingw objdump,
15263 # which wouldn't understand a cygwinified path. Ahh.
15264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15270 # pw32 DLLs use 'pw' prefix rather than 'lib'
15271 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15277 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15280 dynamic_linker='Win32 ld.exe'
15281 # FIXME: first we should search . and the directory the executable is in
15285 darwin* | rhapsody*)
15286 dynamic_linker="$host_os dyld"
15287 version_type=darwin
15290 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15291 soname_spec='${libname}${release}${major}$shared_ext'
15292 shlibpath_overrides_runpath=yes
15293 shlibpath_var=DYLD_LIBRARY_PATH
15294 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15312 freebsd* | dragonfly*)
15313 # DragonFly does not have aout. When/if they implement a new
15314 # versioning mechanism, adjust this.
15315 if test -x /usr/bin/objformat; then
15316 objformat=`/usr/bin/objformat`
15319 freebsd[123]*) objformat=aout ;;
15320 *) objformat=elf ;;
15323 version_type=freebsd-$objformat
15324 case $version_type in
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15335 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15340 freebsd3.[01]* | freebsdelf3.[01]*)
15341 shlibpath_overrides_runpath=yes
15342 hardcode_into_libs=yes
15344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15346 shlibpath_overrides_runpath=no
15347 hardcode_into_libs=yes
15349 *) # from 4.6 on, and DragonFly
15350 shlibpath_overrides_runpath=yes
15351 hardcode_into_libs=yes
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 hardcode_into_libs=yes
15366 hpux9* | hpux10* | hpux11*)
15367 # Give a soname corresponding to the major version so that dld.sl refuses to
15368 # link against other versions.
15375 hardcode_into_libs=yes
15376 dynamic_linker="$host_os dld.so"
15377 shlibpath_var=LD_LIBRARY_PATH
15378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 if test "X$HPUX_IA64_MODE" = X32; then
15382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390 hardcode_into_libs=yes
15391 dynamic_linker="$host_os dld.sl"
15392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401 dynamic_linker="$host_os dld.sl"
15402 shlibpath_var=SHLIB_PATH
15403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15409 postinstall_cmds='chmod 555 $lib'
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=no
15421 hardcode_into_libs=yes
15424 irix5* | irix6* | nonstopux*)
15426 nonstopux*) version_type=nonstopux ;;
15428 if test "$lt_cv_prog_gnu_ld" = yes; then
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15439 irix5* | nonstopux*)
15440 libsuff= shlibsuff=
15443 case $LD in # libtool.m4 will add one of these switches to LD
15444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15445 libsuff= shlibsuff= libmagic=32-bit;;
15446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15447 libsuff=32 shlibsuff=N32 libmagic=N32;;
15448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15450 *) libsuff= shlibsuff= libmagic=never-match;;
15454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15455 shlibpath_overrides_runpath=no
15456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15458 hardcode_into_libs=yes
15461 # No shared lib support for Linux oldld, aout, or coff.
15462 linux*oldld* | linux*aout* | linux*coff*)
15466 # This must be Linux ELF.
15467 linux* | k*bsd*-gnu)
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15474 shlibpath_var=LD_LIBRARY_PATH
15475 shlibpath_overrides_runpath=no
15476 # Some binutils ld are patched to set DT_RUNPATH
15477 save_LDFLAGS=$LDFLAGS
15478 save_libdir=$libdir
15479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15481 cat >conftest.$ac_ext <<_ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h. */
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (ac_try="$ac_link"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15503 (eval "$ac_link") 2>conftest.er1
15505 grep -v '^ *+' conftest.er1 >conftest.err
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && {
15510 test -z "$ac_cxx_werror_flag" ||
15511 test ! -s conftest.err
15512 } && test -s conftest$ac_exeext &&
15513 $as_test_x conftest$ac_exeext; then
15514 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15515 shlibpath_overrides_runpath=yes
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15526 conftest$ac_exeext conftest.$ac_ext
15527 LDFLAGS=$save_LDFLAGS
15528 libdir=$save_libdir
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15535 # Append ld.so.conf contents to the search path
15536 if test -f /etc/ld.so.conf; then
15537 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' ' '`
15538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15541 # We used to test for /lib/ld.so.1 and disable shared libraries on
15542 # powerpc, because MkLinux only supported shared libraries with the
15543 # GNU dynamic linker. Since this was broken with cross compilers,
15544 # most powerpc-linux boxes support dynamic linking these days and
15545 # people can always --disable-shared, the test was removed, and we
15546 # assume the GNU/Linux dynamic linker is in use.
15547 dynamic_linker='GNU/Linux ld.so'
15554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15557 dynamic_linker='NetBSD (a.out) ld.so'
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15560 soname_spec='${libname}${release}${shared_ext}$major'
15561 dynamic_linker='NetBSD ld.elf_so'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=yes
15565 hardcode_into_libs=yes
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 shlibpath_overrides_runpath=yes
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=no
15583 hardcode_into_libs=yes
15584 dynamic_linker='ldqnx.so'
15589 sys_lib_dlsearch_path_spec="/usr/lib"
15591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15594 *) need_version=no ;;
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15601 openbsd2.[89] | openbsd2.[89].*)
15602 shlibpath_overrides_runpath=no
15605 shlibpath_overrides_runpath=yes
15609 shlibpath_overrides_runpath=yes
15614 libname_spec='$name'
15617 library_names_spec='$libname${shared_ext} $libname.a'
15618 dynamic_linker='OS/2 ld.exe'
15619 shlibpath_var=LIBPATH
15622 osf3* | osf4* | osf5*)
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=yes
15645 hardcode_into_libs=yes
15646 # ldd complains unless libraries are executable
15647 postinstall_cmds='chmod +x $lib'
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes
15656 if test "$with_gnu_ld" = yes; then
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 case $host_vendor in
15669 shlibpath_overrides_runpath=no
15671 runpath_var=LD_RUN_PATH
15679 shlibpath_overrides_runpath=no
15680 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15686 if test -d /usr/nec ;then
15688 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15689 soname_spec='$libname${shared_ext}.$major'
15690 shlibpath_var=LD_LIBRARY_PATH
15694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15695 version_type=freebsd-elf
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 shlibpath_overrides_runpath=yes
15702 hardcode_into_libs=yes
15703 if test "$with_gnu_ld" = yes; then
15704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15706 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713 sys_lib_dlsearch_path_spec='/usr/lib'
15717 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=no
15724 hardcode_into_libs=yes
15729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15730 soname_spec='${libname}${release}${shared_ext}$major'
15731 shlibpath_var=LD_LIBRARY_PATH
15738 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15739 echo "${ECHO_T}$dynamic_linker" >&6; }
15740 test "$dynamic_linker" = no && can_build_shared=no
15742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15743 if test "$GCC" = yes; then
15744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15747 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15748 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15751 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15789 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15790 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15791 hardcode_action_CXX=
15792 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15793 test -n "$runpath_var_CXX" ||
15794 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15796 # We can hardcode non-existent directories.
15797 if test "$hardcode_direct_CXX" != no &&
15798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15799 # have to relink, otherwise we might link with an installed library
15800 # when we should be linking with a yet-to-be-installed one
15801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15802 test "$hardcode_minus_L_CXX" != no; then
15803 # Linking always hardcodes the temporary library directory.
15804 hardcode_action_CXX=relink
15806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15807 hardcode_action_CXX=immediate
15810 # We cannot hardcode anything, or else we can only hardcode existing
15812 hardcode_action_CXX=unsupported
15814 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15815 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15817 if test "$hardcode_action_CXX" = relink ||
15818 test "$inherit_rpath_CXX" = yes; then
15819 # Fast installation is not supported
15820 enable_fast_install=no
15821 elif test "$shlibpath_overrides_runpath" = yes ||
15822 test "$enable_shared" = no; then
15823 # Fast installation is not necessary
15824 enable_fast_install=needless
15833 fi # test -n "$compiler"
15839 with_gnu_ld=$lt_save_with_gnu_ld
15840 lt_cv_path_LDCXX=$lt_cv_path_LD
15841 lt_cv_path_LD=$lt_save_path_LD
15842 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15843 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15844 fi # test "$_lt_caught_CXX_error" != yes
15847 ac_cpp='$CPP $CPPFLAGS'
15848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15864 ac_config_commands="$ac_config_commands libtool"
15869 # Only expand once:
15874 if test x$use_libtool != xno; then
15875 DEFAULT_OBJECT_TYPE=".lo"
15876 DEFAULT_ARCHIVE_TYPE=".la"
15877 DEFAULT_SHARED_OBJECT_TYPE=".la"
15878 LIBTOOL="\$(LIBTOOL)"
15879 LIBTOOL_INSTALL_TARGET="libtool-install"
15880 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15881 LIBTOOL_CLEAN_TARGET="libtool-clean"
15882 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15884 DEFAULT_OBJECT_TYPE=".o"
15885 DEFAULT_ARCHIVE_TYPE=".a"
15886 DEFAULT_SHARED_OBJECT_TYPE=".so"
15887 LIBTOOL="# \$(LIBTOOL)"
15888 LIBTOOL_INSTALL_TARGET=""
15889 LIBTOOL_UNINSTALL_TARGET=""
15890 LIBTOOL_CLEAN_TARGET=""
15891 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15903 # Check whether --enable-includes was given.
15904 if test "${enable_includes+set}" = set; then
15905 enableval=$enable_includes;
15906 if test x$enableval = xyes; then
15907 install_includes=yes
15915 if test x$use_libtool != xno -a x$install_includes = xyes; then
15916 INCLUDE_INSTALL_TARGET="install-includes"
15917 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15919 INCLUDE_INSTALL_TARGET=""
15920 INCLUDE_UNINSTALL_TARGET=""
15926 { echo "$as_me:$LINENO: checking host system type" >&5
15927 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15928 if test "${ac_cv_host+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 if test "x$host_alias" = x; then
15932 ac_cv_host=$ac_cv_build
15934 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15935 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15936 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15937 { (exit 1); exit 1; }; }
15941 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15942 echo "${ECHO_T}$ac_cv_host" >&6; }
15943 case $ac_cv_host in
15945 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15946 echo "$as_me: error: invalid value of canonical host" >&2;}
15947 { (exit 1); exit 1; }; };;
15950 ac_save_IFS=$IFS; IFS='-'
15956 # Remember, the first character of IFS is used to create $*,
15957 # except with old shells:
15960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15964 *cygwin* ) CYGWIN=yes;;
15968 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15974 HAVE_SUN_OS_FALSE='#'
15976 HAVE_SUN_OS_TRUE='#'
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_SUN_OS 1
15988 HAVE_SUN_OS_FALSE='#'
15990 HAVE_SUN_OS_TRUE='#'
15995 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16001 HAVE_OSF1_OS_FALSE='#'
16003 HAVE_OSF1_OS_TRUE='#'
16004 HAVE_OSF1_OS_FALSE=
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_OSF1_OS 1
16015 HAVE_OSF1_OS_FALSE='#'
16017 HAVE_OSF1_OS_TRUE='#'
16018 HAVE_OSF1_OS_FALSE=
16022 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16028 HAVE_AIX_OS_FALSE='#'
16030 HAVE_AIX_OS_TRUE='#'
16033 cat >>confdefs.h <<\_ACEOF
16034 #define HAVE_AIX_OS 1
16042 HAVE_AIX_OS_FALSE='#'
16044 HAVE_AIX_OS_TRUE='#'
16049 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16055 HAVE_HPUX_OS_FALSE='#'
16057 HAVE_HPUX_OS_TRUE='#'
16058 HAVE_HPUX_OS_FALSE=
16060 cat >>confdefs.h <<\_ACEOF
16061 #define HAVE_HPUX_OS 1
16069 HAVE_HPUX_OS_FALSE='#'
16071 HAVE_HPUX_OS_TRUE='#'
16072 HAVE_HPUX_OS_FALSE=
16076 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16081 HAVE_LINUX_OS_TRUE=
16082 HAVE_LINUX_OS_FALSE='#'
16084 HAVE_LINUX_OS_TRUE='#'
16085 HAVE_LINUX_OS_FALSE=
16087 cat >>confdefs.h <<\_ACEOF
16088 #define HAVE_LINUX_OS 1
16095 HAVE_LINUX_OS_TRUE=
16096 HAVE_LINUX_OS_FALSE='#'
16098 HAVE_LINUX_OS_TRUE='#'
16099 HAVE_LINUX_OS_FALSE=
16103 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16108 HAVE_FREEBSD_OS_TRUE=
16109 HAVE_FREEBSD_OS_FALSE='#'
16111 HAVE_FREEBSD_OS_TRUE='#'
16112 HAVE_FREEBSD_OS_FALSE=
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_FREEBSD_OS 1
16122 HAVE_FREEBSD_OS_TRUE=
16123 HAVE_FREEBSD_OS_FALSE='#'
16125 HAVE_FREEBSD_OS_TRUE='#'
16126 HAVE_FREEBSD_OS_FALSE=
16130 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16135 HAVE_NETBSD_OS_TRUE=
16136 HAVE_NETBSD_OS_FALSE='#'
16138 HAVE_NETBSD_OS_TRUE='#'
16139 HAVE_NETBSD_OS_FALSE=
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_NETBSD_OS 1
16149 HAVE_NETBSD_OS_TRUE=
16150 HAVE_NETBSD_OS_FALSE='#'
16152 HAVE_NETBSD_OS_TRUE='#'
16153 HAVE_NETBSD_OS_FALSE=
16157 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16162 HAVE_OPENBSD_OS_TRUE=
16163 HAVE_OPENBSD_OS_FALSE='#'
16165 HAVE_OPENBSD_OS_TRUE='#'
16166 HAVE_OPENBSD_OS_FALSE=
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_OPENBSD_OS 1
16176 HAVE_OPENBSD_OS_TRUE=
16177 HAVE_OPENBSD_OS_FALSE='#'
16179 HAVE_OPENBSD_OS_TRUE='#'
16180 HAVE_OPENBSD_OS_FALSE=
16184 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16190 HAVE_BSDI_OS_FALSE='#'
16192 HAVE_BSDI_OS_TRUE='#'
16193 HAVE_BSDI_OS_FALSE=
16195 cat >>confdefs.h <<\_ACEOF
16196 #define HAVE_BSDI_OS 1
16204 HAVE_BSDI_OS_FALSE='#'
16206 HAVE_BSDI_OS_TRUE='#'
16207 HAVE_BSDI_OS_FALSE=
16211 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16217 HAVE_SGI_OS_FALSE='#'
16219 HAVE_SGI_OS_TRUE='#'
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_SGI_OS 1
16231 HAVE_SGI_OS_FALSE='#'
16233 HAVE_SGI_OS_TRUE='#'
16238 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16244 HAVE_IRIX_OS_FALSE='#'
16246 HAVE_IRIX_OS_TRUE='#'
16247 HAVE_IRIX_OS_FALSE=
16249 cat >>confdefs.h <<\_ACEOF
16250 #define HAVE_IRIX_OS 1
16258 HAVE_IRIX_OS_FALSE='#'
16260 HAVE_IRIX_OS_TRUE='#'
16261 HAVE_IRIX_OS_FALSE=
16265 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16270 HAVE_DARWIN_OS_TRUE=
16271 HAVE_DARWIN_OS_FALSE='#'
16273 HAVE_DARWIN_OS_TRUE='#'
16274 HAVE_DARWIN_OS_FALSE=
16276 cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_DARWIN_OS 1
16284 HAVE_DARWIN_OS_TRUE=
16285 HAVE_DARWIN_OS_FALSE='#'
16287 HAVE_DARWIN_OS_TRUE='#'
16288 HAVE_DARWIN_OS_FALSE=
16293 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16294 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16295 if test "x$DISTNAME" != "x"
16297 echo "distname set to $DISTNAME"
16298 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16301 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16304 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16307 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16310 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16313 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16316 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16319 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16322 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16325 elif test -f /etc/SuSE-release
16328 elif test -d /etc/SuSEconfig
16331 elif test -f /etc/mandrake-release
16334 elif test -f /etc/whitebox-release
16337 elif test -f /etc/redhat-release
16340 elif test -f /etc/gentoo-release
16343 elif test -f /etc/debian_version
16346 elif test -f /etc/slackware-version
16349 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16352 elif test -f /etc/engarde-version
16355 elif test "$CYGWIN" = yes
16358 cat >>confdefs.h <<\_ACEOF
16359 #define HAVE_CYGWIN 1
16365 { echo "$as_me:$LINENO: result: done" >&5
16366 echo "${ECHO_T}done" >&6; }
16369 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16371 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16372 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 cat >conftest.make <<\_ACEOF
16378 @echo '@@@%%%=$(MAKE)=@@@%%%'
16380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16382 *@@@%%%=?*=@@@%%%*)
16383 eval ac_cv_prog_make_${ac_make}_set=yes;;
16385 eval ac_cv_prog_make_${ac_make}_set=no;;
16387 rm -f conftest.make
16389 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16390 { echo "$as_me:$LINENO: result: yes" >&5
16391 echo "${ECHO_T}yes" >&6; }
16394 { echo "$as_me:$LINENO: result: no" >&5
16395 echo "${ECHO_T}no" >&6; }
16396 SET_MAKE="MAKE=${MAKE-make}"
16402 if test -n "$ac_aux_dir"; then
16403 case "$ac_aux_dir" in
16404 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16405 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16408 if test -z "$MKINSTALLDIRS"; then
16409 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16414 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16415 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16416 # Check whether --enable-nls was given.
16417 if test "${enable_nls+set}" = set; then
16418 enableval=$enable_nls; USE_NLS=$enableval
16423 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16424 echo "${ECHO_T}$USE_NLS" >&6; }
16431 # Prepare PATH_SEPARATOR.
16432 # The user is always right.
16433 if test "${PATH_SEPARATOR+set}" != set; then
16434 echo "#! /bin/sh" >conf$$.sh
16435 echo "exit 0" >>conf$$.sh
16437 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16445 # Find out how to test for executable files. Don't use a zero-byte file,
16446 # as systems may use methods other than mode bits to determine executability.
16447 cat >conf$$.file <<_ASEOF
16451 chmod +x conf$$.file
16452 if test -x conf$$.file >/dev/null 2>&1; then
16453 ac_executable_p="test -x"
16455 ac_executable_p="test -f"
16459 # Extract the first word of "msgfmt", so it can be a program name with args.
16460 set dummy msgfmt; ac_word=$2
16461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16463 if test "${ac_cv_path_MSGFMT+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16471 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16472 for ac_dir in $PATH; do
16474 test -z "$ac_dir" && ac_dir=.
16475 for ac_exec_ext in '' $ac_executable_extensions; do
16476 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16477 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16478 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16479 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16480 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16487 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16491 MSGFMT="$ac_cv_path_MSGFMT"
16492 if test "$MSGFMT" != ":"; then
16493 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16494 echo "${ECHO_T}$MSGFMT" >&6; }
16496 { echo "$as_me:$LINENO: result: no" >&5
16497 echo "${ECHO_T}no" >&6; }
16500 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16501 set dummy gmsgfmt; ac_word=$2
16502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16504 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16516 test -z "$as_dir" && as_dir=.
16517 for ac_exec_ext in '' $ac_executable_extensions; do
16518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16519 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16527 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16531 GMSGFMT=$ac_cv_path_GMSGFMT
16532 if test -n "$GMSGFMT"; then
16533 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16534 echo "${ECHO_T}$GMSGFMT" >&6; }
16536 { echo "$as_me:$LINENO: result: no" >&5
16537 echo "${ECHO_T}no" >&6; }
16543 # Prepare PATH_SEPARATOR.
16544 # The user is always right.
16545 if test "${PATH_SEPARATOR+set}" != set; then
16546 echo "#! /bin/sh" >conf$$.sh
16547 echo "exit 0" >>conf$$.sh
16549 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16557 # Find out how to test for executable files. Don't use a zero-byte file,
16558 # as systems may use methods other than mode bits to determine executability.
16559 cat >conf$$.file <<_ASEOF
16563 chmod +x conf$$.file
16564 if test -x conf$$.file >/dev/null 2>&1; then
16565 ac_executable_p="test -x"
16567 ac_executable_p="test -f"
16571 # Extract the first word of "xgettext", so it can be a program name with args.
16572 set dummy xgettext; ac_word=$2
16573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16575 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16578 case "$XGETTEXT" in
16580 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16583 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16584 for ac_dir in $PATH; do
16586 test -z "$ac_dir" && ac_dir=.
16587 for ac_exec_ext in '' $ac_executable_extensions; do
16588 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16589 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16590 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16591 (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
16592 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16599 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16603 XGETTEXT="$ac_cv_path_XGETTEXT"
16604 if test "$XGETTEXT" != ":"; then
16605 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16606 echo "${ECHO_T}$XGETTEXT" >&6; }
16608 { echo "$as_me:$LINENO: result: no" >&5
16609 echo "${ECHO_T}no" >&6; }
16615 # Prepare PATH_SEPARATOR.
16616 # The user is always right.
16617 if test "${PATH_SEPARATOR+set}" != set; then
16618 echo "#! /bin/sh" >conf$$.sh
16619 echo "exit 0" >>conf$$.sh
16621 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16629 # Find out how to test for executable files. Don't use a zero-byte file,
16630 # as systems may use methods other than mode bits to determine executability.
16631 cat >conf$$.file <<_ASEOF
16635 chmod +x conf$$.file
16636 if test -x conf$$.file >/dev/null 2>&1; then
16637 ac_executable_p="test -x"
16639 ac_executable_p="test -f"
16643 # Extract the first word of "msgmerge", so it can be a program name with args.
16644 set dummy msgmerge; ac_word=$2
16645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16647 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 case "$MSGMERGE" in
16652 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16655 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16656 for ac_dir in $PATH; do
16658 test -z "$ac_dir" && ac_dir=.
16659 for ac_exec_ext in '' $ac_executable_extensions; do
16660 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16661 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16662 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16663 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16670 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16674 MSGMERGE="$ac_cv_path_MSGMERGE"
16675 if test "$MSGMERGE" != ":"; then
16676 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16677 echo "${ECHO_T}$MSGMERGE" >&6; }
16679 { echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6; }
16684 if test "$GMSGFMT" != ":"; then
16685 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16686 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16689 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16690 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16691 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16696 if test "$XGETTEXT" != ":"; then
16697 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16698 (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
16701 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16702 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16708 ac_config_commands="$ac_config_commands default-1"
16712 if test "X$prefix" = "XNONE"; then
16713 acl_final_prefix="$ac_default_prefix"
16715 acl_final_prefix="$prefix"
16717 if test "X$exec_prefix" = "XNONE"; then
16718 acl_final_exec_prefix='${prefix}'
16720 acl_final_exec_prefix="$exec_prefix"
16722 acl_save_prefix="$prefix"
16723 prefix="$acl_final_prefix"
16724 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16725 prefix="$acl_save_prefix"
16728 # Check whether --with-gnu-ld was given.
16729 if test "${with_gnu_ld+set}" = set; then
16730 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16735 # Prepare PATH_SEPARATOR.
16736 # The user is always right.
16737 if test "${PATH_SEPARATOR+set}" != set; then
16738 echo "#! /bin/sh" >conf$$.sh
16739 echo "exit 0" >>conf$$.sh
16741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16749 if test "$GCC" = yes; then
16750 # Check if gcc -print-prog-name=ld gives a path.
16751 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16752 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16755 # gcc leaves a trailing carriage return which upsets mingw
16756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16761 # Accept absolute paths.
16762 [\\/]* | [A-Za-z]:[\\/]*)
16763 re_direlt='/[^/][^/]*/\.\./'
16764 # Canonicalize the path of ld
16765 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16766 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16767 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16769 test -z "$LD" && LD="$ac_prog"
16772 # If it fails, then pretend we aren't using GCC.
16776 # If it is relative, then search for the first ld in PATH.
16777 with_gnu_ld=unknown
16780 elif test "$with_gnu_ld" = yes; then
16781 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16784 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16787 if test "${acl_cv_path_LD+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 if test -z "$LD"; then
16791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16792 for ac_dir in $PATH; do
16793 test -z "$ac_dir" && ac_dir=.
16794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16795 acl_cv_path_LD="$ac_dir/$ac_prog"
16796 # Check to see if the program is GNU ld. I'd rather use --version,
16797 # but apparently some GNU ld's only accept -v.
16798 # Break only if it was the GNU/non-GNU ld that we prefer.
16799 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16800 *GNU* | *'with BFD'*)
16801 test "$with_gnu_ld" != no && break ;;
16803 test "$with_gnu_ld" != yes && break ;;
16809 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16813 LD="$acl_cv_path_LD"
16814 if test -n "$LD"; then
16815 { echo "$as_me:$LINENO: result: $LD" >&5
16816 echo "${ECHO_T}$LD" >&6; }
16818 { echo "$as_me:$LINENO: result: no" >&5
16819 echo "${ECHO_T}no" >&6; }
16821 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16822 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16823 { (exit 1); exit 1; }; }
16824 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16825 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16826 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16830 case `$LD -v 2>&1 </dev/null` in
16831 *GNU* | *'with BFD'*)
16832 acl_cv_prog_gnu_ld=yes ;;
16834 acl_cv_prog_gnu_ld=no ;;
16837 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16838 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16839 with_gnu_ld=$acl_cv_prog_gnu_ld
16844 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16845 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16846 if test "${acl_cv_rpath+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16851 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16853 rm -f ./conftest.sh
16857 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16858 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16860 libext="$acl_cv_libext"
16861 shlibext="$acl_cv_shlibext"
16862 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16863 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16864 hardcode_direct="$acl_cv_hardcode_direct"
16865 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16866 # Check whether --enable-rpath was given.
16867 if test "${enable_rpath+set}" = set; then
16868 enableval=$enable_rpath; :
16882 acl_save_prefix="$prefix"
16883 prefix="$acl_final_prefix"
16884 acl_save_exec_prefix="$exec_prefix"
16885 exec_prefix="$acl_final_exec_prefix"
16887 eval additional_includedir=\"$includedir\"
16888 eval additional_libdir=\"$libdir\"
16890 exec_prefix="$acl_save_exec_prefix"
16891 prefix="$acl_save_prefix"
16894 # Check whether --with-libiconv-prefix was given.
16895 if test "${with_libiconv_prefix+set}" = set; then
16896 withval=$with_libiconv_prefix;
16897 if test "X$withval" = "Xno"; then
16900 if test "X$withval" = "X"; then
16902 acl_save_prefix="$prefix"
16903 prefix="$acl_final_prefix"
16904 acl_save_exec_prefix="$exec_prefix"
16905 exec_prefix="$acl_final_exec_prefix"
16907 eval additional_includedir=\"$includedir\"
16908 eval additional_libdir=\"$libdir\"
16910 exec_prefix="$acl_save_exec_prefix"
16911 prefix="$acl_save_prefix"
16914 additional_includedir="$withval/include"
16915 additional_libdir="$withval/lib"
16926 names_already_handled=
16927 names_next_round='iconv '
16928 while test -n "$names_next_round"; do
16929 names_this_round="$names_next_round"
16931 for name in $names_this_round; do
16933 for n in $names_already_handled; do
16934 if test "$n" = "$name"; then
16935 already_handled=yes
16939 if test -z "$already_handled"; then
16940 names_already_handled="$names_already_handled $name"
16941 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16942 eval value=\"\$HAVE_LIB$uppername\"
16943 if test -n "$value"; then
16944 if test "$value" = yes; then
16945 eval value=\"\$LIB$uppername\"
16946 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16947 eval value=\"\$LTLIB$uppername\"
16948 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16957 if test $use_additional = yes; then
16958 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16959 found_dir="$additional_libdir"
16960 found_so="$additional_libdir/lib$name.$shlibext"
16961 if test -f "$additional_libdir/lib$name.la"; then
16962 found_la="$additional_libdir/lib$name.la"
16965 if test -f "$additional_libdir/lib$name.$libext"; then
16966 found_dir="$additional_libdir"
16967 found_a="$additional_libdir/lib$name.$libext"
16968 if test -f "$additional_libdir/lib$name.la"; then
16969 found_la="$additional_libdir/lib$name.la"
16974 if test "X$found_dir" = "X"; then
16975 for x in $LDFLAGS $LTLIBICONV; do
16977 acl_save_prefix="$prefix"
16978 prefix="$acl_final_prefix"
16979 acl_save_exec_prefix="$exec_prefix"
16980 exec_prefix="$acl_final_exec_prefix"
16982 exec_prefix="$acl_save_exec_prefix"
16983 prefix="$acl_save_prefix"
16987 dir=`echo "X$x" | sed -e 's/^X-L//'`
16988 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16990 found_so="$dir/lib$name.$shlibext"
16991 if test -f "$dir/lib$name.la"; then
16992 found_la="$dir/lib$name.la"
16995 if test -f "$dir/lib$name.$libext"; then
16997 found_a="$dir/lib$name.$libext"
16998 if test -f "$dir/lib$name.la"; then
16999 found_la="$dir/lib$name.la"
17005 if test "X$found_dir" != "X"; then
17010 if test "X$found_dir" != "X"; then
17011 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17012 if test "X$found_so" != "X"; then
17013 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17017 for x in $ltrpathdirs; do
17018 if test "X$x" = "X$found_dir"; then
17023 if test -z "$haveit"; then
17024 ltrpathdirs="$ltrpathdirs $found_dir"
17026 if test "$hardcode_direct" = yes; then
17027 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17029 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17030 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17032 for x in $rpathdirs; do
17033 if test "X$x" = "X$found_dir"; then
17038 if test -z "$haveit"; then
17039 rpathdirs="$rpathdirs $found_dir"
17043 for x in $LDFLAGS $LIBICONV; do
17045 acl_save_prefix="$prefix"
17046 prefix="$acl_final_prefix"
17047 acl_save_exec_prefix="$exec_prefix"
17048 exec_prefix="$acl_final_exec_prefix"
17050 exec_prefix="$acl_save_exec_prefix"
17051 prefix="$acl_save_prefix"
17053 if test "X$x" = "X-L$found_dir"; then
17058 if test -z "$haveit"; then
17059 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17061 if test "$hardcode_minus_L" != no; then
17062 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17064 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17070 if test "X$found_a" != "X"; then
17071 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17073 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17076 additional_includedir=
17077 case "$found_dir" in
17079 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17080 additional_includedir="$basedir/include"
17083 if test "X$additional_includedir" != "X"; then
17084 if test "X$additional_includedir" != "X/usr/include"; then
17086 if test "X$additional_includedir" = "X/usr/local/include"; then
17087 if test -n "$GCC"; then
17089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17093 if test -z "$haveit"; then
17094 for x in $CPPFLAGS $INCICONV; do
17096 acl_save_prefix="$prefix"
17097 prefix="$acl_final_prefix"
17098 acl_save_exec_prefix="$exec_prefix"
17099 exec_prefix="$acl_final_exec_prefix"
17101 exec_prefix="$acl_save_exec_prefix"
17102 prefix="$acl_save_prefix"
17104 if test "X$x" = "X-I$additional_includedir"; then
17109 if test -z "$haveit"; then
17110 if test -d "$additional_includedir"; then
17111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17117 if test -n "$found_la"; then
17118 save_libdir="$libdir"
17119 case "$found_la" in
17120 */* | *\\*) . "$found_la" ;;
17121 *) . "./$found_la" ;;
17123 libdir="$save_libdir"
17124 for dep in $dependency_libs; do
17127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17128 if test "X$additional_libdir" != "X/usr/lib"; then
17130 if test "X$additional_libdir" = "X/usr/local/lib"; then
17131 if test -n "$GCC"; then
17133 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17137 if test -z "$haveit"; then
17139 for x in $LDFLAGS $LIBICONV; do
17141 acl_save_prefix="$prefix"
17142 prefix="$acl_final_prefix"
17143 acl_save_exec_prefix="$exec_prefix"
17144 exec_prefix="$acl_final_exec_prefix"
17146 exec_prefix="$acl_save_exec_prefix"
17147 prefix="$acl_save_prefix"
17149 if test "X$x" = "X-L$additional_libdir"; then
17154 if test -z "$haveit"; then
17155 if test -d "$additional_libdir"; then
17156 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17160 for x in $LDFLAGS $LTLIBICONV; do
17162 acl_save_prefix="$prefix"
17163 prefix="$acl_final_prefix"
17164 acl_save_exec_prefix="$exec_prefix"
17165 exec_prefix="$acl_final_exec_prefix"
17167 exec_prefix="$acl_save_exec_prefix"
17168 prefix="$acl_save_prefix"
17170 if test "X$x" = "X-L$additional_libdir"; then
17175 if test -z "$haveit"; then
17176 if test -d "$additional_libdir"; then
17177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17184 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17185 if test "$enable_rpath" != no; then
17187 for x in $rpathdirs; do
17188 if test "X$x" = "X$dir"; then
17193 if test -z "$haveit"; then
17194 rpathdirs="$rpathdirs $dir"
17197 for x in $ltrpathdirs; do
17198 if test "X$x" = "X$dir"; then
17203 if test -z "$haveit"; then
17204 ltrpathdirs="$ltrpathdirs $dir"
17209 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17212 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17215 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17222 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17229 if test "X$rpathdirs" != "X"; then
17230 if test -n "$hardcode_libdir_separator"; then
17232 for found_dir in $rpathdirs; do
17233 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17235 acl_save_libdir="$libdir"
17237 eval flag=\"$hardcode_libdir_flag_spec\"
17238 libdir="$acl_save_libdir"
17239 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17241 for found_dir in $rpathdirs; do
17242 acl_save_libdir="$libdir"
17243 libdir="$found_dir"
17244 eval flag=\"$hardcode_libdir_flag_spec\"
17245 libdir="$acl_save_libdir"
17246 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17250 if test "X$ltrpathdirs" != "X"; then
17251 for found_dir in $ltrpathdirs; do
17252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17273 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17274 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17275 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 gt_save_CPPFLAGS="$CPPFLAGS"
17279 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17280 gt_save_LIBS="$LIBS"
17281 LIBS="$LIBS -framework CoreFoundation"
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <CFPreferences.h>
17292 CFPreferencesCopyAppValue(NULL, NULL)
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 gt_cv_func_CFPreferencesCopyAppValue=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 gt_cv_func_CFPreferencesCopyAppValue=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 CPPFLAGS="$gt_save_CPPFLAGS"
17326 LIBS="$gt_save_LIBS"
17328 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17329 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17332 cat >>confdefs.h <<\_ACEOF
17333 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17337 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17338 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17339 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 gt_save_CPPFLAGS="$CPPFLAGS"
17343 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17344 gt_save_LIBS="$LIBS"
17345 LIBS="$LIBS -framework CoreFoundation"
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 #include <CFLocale.h>
17356 CFLocaleCopyCurrent();
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (ac_try="$ac_link"
17363 case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_link") 2>conftest.er1
17370 grep -v '^ *+' conftest.er1 >conftest.err
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext &&
17378 $as_test_x conftest$ac_exeext; then
17379 gt_cv_func_CFLocaleCopyCurrent=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 gt_cv_func_CFLocaleCopyCurrent=no
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17389 CPPFLAGS="$gt_save_CPPFLAGS"
17390 LIBS="$gt_save_LIBS"
17392 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17393 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17394 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_CFLOCALECOPYCURRENT 1
17402 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17403 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17409 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17410 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17411 # Check whether --enable-nls was given.
17412 if test "${enable_nls+set}" = set; then
17413 enableval=$enable_nls; USE_NLS=$enableval
17418 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17419 echo "${ECHO_T}$USE_NLS" >&6; }
17428 if test "$USE_NLS" = "yes"; then
17429 gt_use_preinstalled_gnugettext=no
17436 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17437 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17438 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 #include <libintl.h>
17448 extern int _nl_msg_cat_cntr;
17449 extern int *_nl_domain_bindings;
17453 bindtextdomain ("", "");
17454 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (ac_try="$ac_link"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_link") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1 >conftest.err
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest$ac_exeext &&
17476 $as_test_x conftest$ac_exeext; then
17477 gt_cv_func_gnugettext1_libc=yes
17479 echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 gt_cv_func_gnugettext1_libc=no
17485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17486 conftest$ac_exeext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17489 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17491 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17497 am_save_CPPFLAGS="$CPPFLAGS"
17499 for element in $INCICONV; do
17501 for x in $CPPFLAGS; do
17503 acl_save_prefix="$prefix"
17504 prefix="$acl_final_prefix"
17505 acl_save_exec_prefix="$exec_prefix"
17506 exec_prefix="$acl_final_exec_prefix"
17508 exec_prefix="$acl_save_exec_prefix"
17509 prefix="$acl_save_prefix"
17511 if test "X$x" = "X$element"; then
17516 if test -z "$haveit"; then
17517 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17522 { echo "$as_me:$LINENO: checking for iconv" >&5
17523 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17524 if test "${am_cv_func_iconv+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 am_cv_func_iconv="no, consider installing GNU libiconv"
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 #include <stdlib.h>
17541 iconv_t cd = iconv_open("","");
17542 iconv(cd,NULL,NULL,NULL,NULL);
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>conftest.er1
17557 grep -v '^ *+' conftest.er1 >conftest.err
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext &&
17565 $as_test_x conftest$ac_exeext; then
17566 am_cv_func_iconv=yes
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17575 conftest$ac_exeext conftest.$ac_ext
17576 if test "$am_cv_func_iconv" != yes; then
17577 am_save_LIBS="$LIBS"
17578 LIBS="$LIBS $LIBICONV"
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 #include <stdlib.h>
17590 iconv_t cd = iconv_open("","");
17591 iconv(cd,NULL,NULL,NULL,NULL);
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (ac_try="$ac_link"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_link") 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && {
17611 test -z "$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17613 } && test -s conftest$ac_exeext &&
17614 $as_test_x conftest$ac_exeext; then
17615 am_cv_lib_iconv=yes
17616 am_cv_func_iconv=yes
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17625 conftest$ac_exeext conftest.$ac_ext
17626 LIBS="$am_save_LIBS"
17630 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17631 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17632 if test "$am_cv_func_iconv" = yes; then
17634 cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_ICONV 1
17639 if test "$am_cv_lib_iconv" = yes; then
17640 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17641 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17642 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17643 echo "${ECHO_T}$LIBICONV" >&6; }
17645 CPPFLAGS="$am_save_CPPFLAGS"
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17662 eval additional_includedir=\"$includedir\"
17663 eval additional_libdir=\"$libdir\"
17665 exec_prefix="$acl_save_exec_prefix"
17666 prefix="$acl_save_prefix"
17669 # Check whether --with-libintl-prefix was given.
17670 if test "${with_libintl_prefix+set}" = set; then
17671 withval=$with_libintl_prefix;
17672 if test "X$withval" = "Xno"; then
17675 if test "X$withval" = "X"; then
17677 acl_save_prefix="$prefix"
17678 prefix="$acl_final_prefix"
17679 acl_save_exec_prefix="$exec_prefix"
17680 exec_prefix="$acl_final_exec_prefix"
17682 eval additional_includedir=\"$includedir\"
17683 eval additional_libdir=\"$libdir\"
17685 exec_prefix="$acl_save_exec_prefix"
17686 prefix="$acl_save_prefix"
17689 additional_includedir="$withval/include"
17690 additional_libdir="$withval/lib"
17701 names_already_handled=
17702 names_next_round='intl '
17703 while test -n "$names_next_round"; do
17704 names_this_round="$names_next_round"
17706 for name in $names_this_round; do
17708 for n in $names_already_handled; do
17709 if test "$n" = "$name"; then
17710 already_handled=yes
17714 if test -z "$already_handled"; then
17715 names_already_handled="$names_already_handled $name"
17716 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17717 eval value=\"\$HAVE_LIB$uppername\"
17718 if test -n "$value"; then
17719 if test "$value" = yes; then
17720 eval value=\"\$LIB$uppername\"
17721 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17722 eval value=\"\$LTLIB$uppername\"
17723 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17732 if test $use_additional = yes; then
17733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17734 found_dir="$additional_libdir"
17735 found_so="$additional_libdir/lib$name.$shlibext"
17736 if test -f "$additional_libdir/lib$name.la"; then
17737 found_la="$additional_libdir/lib$name.la"
17740 if test -f "$additional_libdir/lib$name.$libext"; then
17741 found_dir="$additional_libdir"
17742 found_a="$additional_libdir/lib$name.$libext"
17743 if test -f "$additional_libdir/lib$name.la"; then
17744 found_la="$additional_libdir/lib$name.la"
17749 if test "X$found_dir" = "X"; then
17750 for x in $LDFLAGS $LTLIBINTL; do
17752 acl_save_prefix="$prefix"
17753 prefix="$acl_final_prefix"
17754 acl_save_exec_prefix="$exec_prefix"
17755 exec_prefix="$acl_final_exec_prefix"
17757 exec_prefix="$acl_save_exec_prefix"
17758 prefix="$acl_save_prefix"
17762 dir=`echo "X$x" | sed -e 's/^X-L//'`
17763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17765 found_so="$dir/lib$name.$shlibext"
17766 if test -f "$dir/lib$name.la"; then
17767 found_la="$dir/lib$name.la"
17770 if test -f "$dir/lib$name.$libext"; then
17772 found_a="$dir/lib$name.$libext"
17773 if test -f "$dir/lib$name.la"; then
17774 found_la="$dir/lib$name.la"
17780 if test "X$found_dir" != "X"; then
17785 if test "X$found_dir" != "X"; then
17786 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17787 if test "X$found_so" != "X"; then
17788 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17789 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17792 for x in $ltrpathdirs; do
17793 if test "X$x" = "X$found_dir"; then
17798 if test -z "$haveit"; then
17799 ltrpathdirs="$ltrpathdirs $found_dir"
17801 if test "$hardcode_direct" = yes; then
17802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17805 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17807 for x in $rpathdirs; do
17808 if test "X$x" = "X$found_dir"; then
17813 if test -z "$haveit"; then
17814 rpathdirs="$rpathdirs $found_dir"
17818 for x in $LDFLAGS $LIBINTL; do
17820 acl_save_prefix="$prefix"
17821 prefix="$acl_final_prefix"
17822 acl_save_exec_prefix="$exec_prefix"
17823 exec_prefix="$acl_final_exec_prefix"
17825 exec_prefix="$acl_save_exec_prefix"
17826 prefix="$acl_save_prefix"
17828 if test "X$x" = "X-L$found_dir"; then
17833 if test -z "$haveit"; then
17834 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17836 if test "$hardcode_minus_L" != no; then
17837 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17839 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17845 if test "X$found_a" != "X"; then
17846 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17848 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17851 additional_includedir=
17852 case "$found_dir" in
17854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17855 additional_includedir="$basedir/include"
17858 if test "X$additional_includedir" != "X"; then
17859 if test "X$additional_includedir" != "X/usr/include"; then
17861 if test "X$additional_includedir" = "X/usr/local/include"; then
17862 if test -n "$GCC"; then
17864 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17868 if test -z "$haveit"; then
17869 for x in $CPPFLAGS $INCINTL; do
17871 acl_save_prefix="$prefix"
17872 prefix="$acl_final_prefix"
17873 acl_save_exec_prefix="$exec_prefix"
17874 exec_prefix="$acl_final_exec_prefix"
17876 exec_prefix="$acl_save_exec_prefix"
17877 prefix="$acl_save_prefix"
17879 if test "X$x" = "X-I$additional_includedir"; then
17884 if test -z "$haveit"; then
17885 if test -d "$additional_includedir"; then
17886 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17892 if test -n "$found_la"; then
17893 save_libdir="$libdir"
17894 case "$found_la" in
17895 */* | *\\*) . "$found_la" ;;
17896 *) . "./$found_la" ;;
17898 libdir="$save_libdir"
17899 for dep in $dependency_libs; do
17902 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17903 if test "X$additional_libdir" != "X/usr/lib"; then
17905 if test "X$additional_libdir" = "X/usr/local/lib"; then
17906 if test -n "$GCC"; then
17908 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17912 if test -z "$haveit"; then
17914 for x in $LDFLAGS $LIBINTL; do
17916 acl_save_prefix="$prefix"
17917 prefix="$acl_final_prefix"
17918 acl_save_exec_prefix="$exec_prefix"
17919 exec_prefix="$acl_final_exec_prefix"
17921 exec_prefix="$acl_save_exec_prefix"
17922 prefix="$acl_save_prefix"
17924 if test "X$x" = "X-L$additional_libdir"; then
17929 if test -z "$haveit"; then
17930 if test -d "$additional_libdir"; then
17931 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17935 for x in $LDFLAGS $LTLIBINTL; do
17937 acl_save_prefix="$prefix"
17938 prefix="$acl_final_prefix"
17939 acl_save_exec_prefix="$exec_prefix"
17940 exec_prefix="$acl_final_exec_prefix"
17942 exec_prefix="$acl_save_exec_prefix"
17943 prefix="$acl_save_prefix"
17945 if test "X$x" = "X-L$additional_libdir"; then
17950 if test -z "$haveit"; then
17951 if test -d "$additional_libdir"; then
17952 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17959 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17960 if test "$enable_rpath" != no; then
17962 for x in $rpathdirs; do
17963 if test "X$x" = "X$dir"; then
17968 if test -z "$haveit"; then
17969 rpathdirs="$rpathdirs $dir"
17972 for x in $ltrpathdirs; do
17973 if test "X$x" = "X$dir"; then
17978 if test -z "$haveit"; then
17979 ltrpathdirs="$ltrpathdirs $dir"
17984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17990 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17991 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17997 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17998 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18004 if test "X$rpathdirs" != "X"; then
18005 if test -n "$hardcode_libdir_separator"; then
18007 for found_dir in $rpathdirs; do
18008 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18010 acl_save_libdir="$libdir"
18012 eval flag=\"$hardcode_libdir_flag_spec\"
18013 libdir="$acl_save_libdir"
18014 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18016 for found_dir in $rpathdirs; do
18017 acl_save_libdir="$libdir"
18018 libdir="$found_dir"
18019 eval flag=\"$hardcode_libdir_flag_spec\"
18020 libdir="$acl_save_libdir"
18021 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18025 if test "X$ltrpathdirs" != "X"; then
18026 for found_dir in $ltrpathdirs; do
18027 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18031 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18032 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18033 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 gt_save_CPPFLAGS="$CPPFLAGS"
18037 CPPFLAGS="$CPPFLAGS $INCINTL"
18038 gt_save_LIBS="$LIBS"
18039 LIBS="$LIBS $LIBINTL"
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 #include <libintl.h>
18047 extern int _nl_msg_cat_cntr;
18052 const char *_nl_expand_alias (const char *);
18056 bindtextdomain ("", "");
18057 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext &&
18079 $as_test_x conftest$ac_exeext; then
18080 gt_cv_func_gnugettext1_libintl=yes
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 gt_cv_func_gnugettext1_libintl=no
18088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18089 conftest$ac_exeext conftest.$ac_ext
18090 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18091 LIBS="$LIBS $LIBICONV"
18092 cat >conftest.$ac_ext <<_ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 #include <libintl.h>
18099 extern int _nl_msg_cat_cntr;
18104 const char *_nl_expand_alias (const char *);
18108 bindtextdomain ("", "");
18109 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (ac_try="$ac_link"
18116 case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_link") 2>conftest.er1
18123 grep -v '^ *+' conftest.er1 >conftest.err
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } && {
18128 test -z "$ac_c_werror_flag" ||
18129 test ! -s conftest.err
18130 } && test -s conftest$ac_exeext &&
18131 $as_test_x conftest$ac_exeext; then
18132 LIBINTL="$LIBINTL $LIBICONV"
18133 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18134 gt_cv_func_gnugettext1_libintl=yes
18137 echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18144 conftest$ac_exeext conftest.$ac_ext
18146 CPPFLAGS="$gt_save_CPPFLAGS"
18147 LIBS="$gt_save_LIBS"
18149 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18150 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18153 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18154 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18155 && test "$PACKAGE" != gettext-runtime \
18156 && test "$PACKAGE" != gettext-tools; }; then
18157 gt_use_preinstalled_gnugettext=yes
18166 if test -n "$INTL_MACOSX_LIBS"; then
18167 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18168 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18169 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18170 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18174 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18175 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18177 cat >>confdefs.h <<\_ACEOF
18178 #define ENABLE_NLS 1
18186 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18187 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18188 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18189 echo "${ECHO_T}$USE_NLS" >&6; }
18190 if test "$USE_NLS" = "yes"; then
18191 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18192 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18193 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18194 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18195 gt_source="external libintl"
18200 gt_source="included intl directory"
18202 { echo "$as_me:$LINENO: result: $gt_source" >&5
18203 echo "${ECHO_T}$gt_source" >&6; }
18206 if test "$USE_NLS" = "yes"; then
18208 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18209 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18210 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18211 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18212 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18213 echo "${ECHO_T}$LIBINTL" >&6; }
18215 for element in $INCINTL; do
18217 for x in $CPPFLAGS; do
18219 acl_save_prefix="$prefix"
18220 prefix="$acl_final_prefix"
18221 acl_save_exec_prefix="$exec_prefix"
18222 exec_prefix="$acl_final_exec_prefix"
18224 exec_prefix="$acl_save_exec_prefix"
18225 prefix="$acl_save_prefix"
18227 if test "X$x" = "X$element"; then
18232 if test -z "$haveit"; then
18233 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_GETTEXT 1
18245 cat >>confdefs.h <<\_ACEOF
18246 #define HAVE_DCGETTEXT 1
18256 INTLLIBS="$LIBINTL"
18263 if test x${prefix} = xNONE ; then
18264 if test `eval echo ${datarootdir}` = NONE/share ; then
18265 datarootdir=/usr/share
18269 if test x${prefix} = xNONE ; then
18270 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18271 sysconfdir=/etc/bacula
18274 if test `eval echo ${libdir}` = NONE/lib ; then
18278 if test `eval echo ${includedir}` = NONE/include ; then
18279 includedir=/usr/include
18285 if test x${exec_prefix} = xNONE ; then
18286 exec_prefix=${prefix}
18289 sysconfdir=`eval echo ${sysconfdir}`
18290 datarootdir=`eval echo ${datarootdir}`
18291 libdir=`eval echo ${libdir}`
18292 includedir=`eval echo ${includedir}`
18293 localedir=`eval echo ${datarootdir}/locale`
18294 cat >>confdefs.h <<_ACEOF
18295 #define SYSCONFDIR "$sysconfdir"
18298 cat >>confdefs.h <<_ACEOF
18299 #define LOCALEDIR "$localedir"
18303 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18304 sbindir=${exec_prefix}/sbin
18306 sbindir=`eval echo ${sbindir}`
18308 if test x$mandir = x'${prefix}/man' ; then
18309 mandir=/usr/share/man
18312 for ac_prog in msgfmt
18314 # Extract the first word of "$ac_prog", so it can be a program name with args.
18315 set dummy $ac_prog; ac_word=$2
18316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18318 if test "${ac_cv_path_MSGFMT+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18327 for as_dir in $PATH
18330 test -z "$as_dir" && as_dir=.
18331 for ac_exec_ext in '' $ac_executable_extensions; do
18332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18333 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18344 MSGFMT=$ac_cv_path_MSGFMT
18345 if test -n "$MSGFMT"; then
18346 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18347 echo "${ECHO_T}$MSGFMT" >&6; }
18349 { echo "$as_me:$LINENO: result: no" >&5
18350 echo "${ECHO_T}no" >&6; }
18354 test -n "$MSGFMT" && break
18356 test -n "$MSGFMT" || MSGFMT="no"
18358 if test "$MSGFMT" = "no"
18360 echo 'msgfmt program not found, disabling NLS !'
18362 USE_INCLUDED_LIBINTL=no
18365 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18366 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18367 if test "${ac_cv_gnu_library_2+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18377 #include <features.h>
18378 #ifdef __GNU_LIBRARY__
18379 #if (__GLIBC__ >= 2)
18385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18386 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18387 ac_cv_gnu_library_2=yes
18389 ac_cv_gnu_library_2=no
18396 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18397 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18399 GLIBC2="$ac_cv_gnu_library_2"
18402 if test -n "$ac_tool_prefix"; then
18403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18407 if test "${ac_cv_prog_RANLIB+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 if test -n "$RANLIB"; then
18411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18414 for as_dir in $PATH
18417 test -z "$as_dir" && as_dir=.
18418 for ac_exec_ext in '' $ac_executable_extensions; do
18419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18430 RANLIB=$ac_cv_prog_RANLIB
18431 if test -n "$RANLIB"; then
18432 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18433 echo "${ECHO_T}$RANLIB" >&6; }
18435 { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18441 if test -z "$ac_cv_prog_RANLIB"; then
18442 ac_ct_RANLIB=$RANLIB
18443 # Extract the first word of "ranlib", so it can be a program name with args.
18444 set dummy ranlib; ac_word=$2
18445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 if test -n "$ac_ct_RANLIB"; then
18451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454 for as_dir in $PATH
18457 test -z "$as_dir" && as_dir=.
18458 for ac_exec_ext in '' $ac_executable_extensions; do
18459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18460 ac_cv_prog_ac_ct_RANLIB="ranlib"
18461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18471 if test -n "$ac_ct_RANLIB"; then
18472 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18473 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18475 { echo "$as_me:$LINENO: result: no" >&5
18476 echo "${ECHO_T}no" >&6; }
18479 if test "x$ac_ct_RANLIB" = x; then
18482 case $cross_compiling:$ac_tool_warned in
18484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18485 whose name does not start with the host triplet. If you think this
18486 configuration is useful to you, please write to autoconf@gnu.org." >&5
18487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18488 whose name does not start with the host triplet. If you think this
18489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18490 ac_tool_warned=yes ;;
18492 RANLIB=$ac_ct_RANLIB
18495 RANLIB="$ac_cv_prog_RANLIB"
18499 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18500 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18501 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 ac_check_lib_save_LIBS=$LIBS
18505 LIBS="-lcposix $LIBS"
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18523 return strerror ();
18528 rm -f conftest.$ac_objext conftest$ac_exeext
18529 if { (ac_try="$ac_link"
18530 case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_link") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } && {
18542 test -z "$ac_c_werror_flag" ||
18543 test ! -s conftest.err
18544 } && test -s conftest$ac_exeext &&
18545 $as_test_x conftest$ac_exeext; then
18546 ac_cv_lib_cposix_strerror=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_cposix_strerror=no
18554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18559 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18560 if test $ac_cv_lib_cposix_strerror = yes; then
18561 LIBS="$LIBS -lcposix"
18566 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18568 if test "${ac_cv_c_const+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 cat >conftest.$ac_ext <<_ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18581 /* FIXME: Include the comments suggested by Paul. */
18582 #ifndef __cplusplus
18583 /* Ultrix mips cc rejects this. */
18584 typedef int charset[2];
18586 /* SunOS 4.1.1 cc rejects this. */
18587 char const *const *pcpcc;
18589 /* NEC SVR4.0.2 mips cc rejects this. */
18590 struct point {int x, y;};
18591 static struct point const zero = {0,0};
18592 /* AIX XL C 1.02.0.0 rejects this.
18593 It does not let you subtract one const X* pointer from another in
18594 an arm of an if-expression whose if-part is not a constant
18596 const char *g = "string";
18597 pcpcc = &g + (g ? g-g : 0);
18598 /* HPUX 7.0 cc rejects these. */
18600 ppc = (char**) pcpcc;
18601 pcpcc = (char const *const *) ppc;
18602 { /* SCO 3.2v4 cc rejects this. */
18604 char const *s = 0 ? (char *) 0 : (char const *) 0;
18609 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18610 int x[] = {25, 17};
18611 const int *foo = &x[0];
18614 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18615 typedef const int *iptr;
18619 { /* AIX XL C 1.02.0.0 rejects this saying
18620 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18621 struct s { int j; const int *ap[3]; };
18622 struct s *b; b->j = 5;
18624 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18625 const int foo = 10;
18626 if (!foo) return 0;
18628 return !cs[0] && !zero.x;
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_compile") 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest.$ac_objext; then
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18662 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18663 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18664 if test $ac_cv_c_const = no; then
18666 cat >>confdefs.h <<\_ACEOF
18673 { echo "$as_me:$LINENO: checking for signed" >&5
18674 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18675 if test "${bh_cv_c_signed+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_compile") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest.$ac_objext; then
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18720 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18721 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18722 if test $bh_cv_c_signed = no; then
18724 cat >>confdefs.h <<\_ACEOF
18730 { echo "$as_me:$LINENO: checking for inline" >&5
18731 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18732 if test "${ac_cv_c_inline+set}" = set; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 for ac_kw in inline __inline__ __inline; do
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 #ifndef __cplusplus
18745 static $ac_kw foo_t static_foo () {return 0; }
18746 $ac_kw foo_t foo () {return 0; }
18750 rm -f conftest.$ac_objext
18751 if { (ac_try="$ac_compile"
18752 case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_compile") 2>conftest.er1
18759 grep -v '^ *+' conftest.er1 >conftest.err
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest.$ac_objext; then
18767 ac_cv_c_inline=$ac_kw
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18776 test "$ac_cv_c_inline" != no && break
18780 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18781 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18784 case $ac_cv_c_inline in
18787 case $ac_cv_c_inline in
18789 *) ac_val=$ac_cv_c_inline;;
18791 cat >>confdefs.h <<_ACEOF
18792 #ifndef __cplusplus
18793 #define inline $ac_val
18799 { echo "$as_me:$LINENO: checking for off_t" >&5
18800 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18801 if test "${ac_cv_type_off_t+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 $ac_includes_default
18811 typedef off_t ac__type_new_;
18815 if ((ac__type_new_ *) 0)
18817 if (sizeof (ac__type_new_))
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_compile") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest.$ac_objext; then
18840 ac_cv_type_off_t=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ac_cv_type_off_t=no
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18850 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18851 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18852 if test $ac_cv_type_off_t = yes; then
18856 cat >>confdefs.h <<_ACEOF
18857 #define off_t long int
18862 { echo "$as_me:$LINENO: checking for size_t" >&5
18863 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18864 if test "${ac_cv_type_size_t+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873 $ac_includes_default
18874 typedef size_t ac__type_new_;
18878 if ((ac__type_new_ *) 0)
18880 if (sizeof (ac__type_new_))
18886 rm -f conftest.$ac_objext
18887 if { (ac_try="$ac_compile"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_compile") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest.$ac_objext; then
18903 ac_cv_type_size_t=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_cv_type_size_t=no
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18913 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18914 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18915 if test $ac_cv_type_size_t = yes; then
18919 cat >>confdefs.h <<_ACEOF
18920 #define size_t unsigned int
18926 { echo "$as_me:$LINENO: checking for long long" >&5
18927 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18928 if test "${ac_cv_type_long_long+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 long long ll = 1LL; int i = 63;
18941 long long llmax = (long long) -1;
18942 return ll << i | ll >> i | llmax / ll | llmax % ll;
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } && {
18961 test -z "$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18963 } && test -s conftest$ac_exeext &&
18964 $as_test_x conftest$ac_exeext; then
18965 ac_cv_type_long_long=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_type_long_long=no
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974 conftest$ac_exeext conftest.$ac_ext
18976 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18977 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18978 if test $ac_cv_type_long_long = yes; then
18980 cat >>confdefs.h <<\_ACEOF
18981 #define HAVE_LONG_LONG 1
18987 { echo "$as_me:$LINENO: checking for long double" >&5
18988 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
18989 if test "${gt_cv_c_long_double+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 if test "$GCC" = yes; then
18993 gt_cv_c_long_double=yes
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19002 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19003 long double foo = 0.0;
19004 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19005 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 gt_cv_c_long_double=yes
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 gt_cv_c_long_double=no
19040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19044 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19045 if test $gt_cv_c_long_double = yes; then
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_LONG_DOUBLE 1
19054 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19055 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19056 if test "${gt_cv_c_wchar_t+set}" = set; then
19057 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #include <stddef.h>
19066 wchar_t foo = (wchar_t)'\0';
19075 rm -f conftest.$ac_objext
19076 if { (ac_try="$ac_compile"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_compile") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest.$ac_objext; then
19092 gt_cv_c_wchar_t=yes
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19102 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19103 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19104 if test $gt_cv_c_wchar_t = yes; then
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_WCHAR_T 1
19113 { echo "$as_me:$LINENO: checking for wint_t" >&5
19114 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19115 if test "${gt_cv_c_wint_t+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19125 wint_t foo = (wchar_t)'\0';
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_compile") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest.$ac_objext; then
19153 echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19162 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19163 if test $gt_cv_c_wint_t = yes; then
19165 cat >>confdefs.h <<\_ACEOF
19166 #define HAVE_WINT_T 1
19172 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19173 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19174 if test "${gl_cv_header_inttypes_h+set}" = set; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 cat >conftest.$ac_ext <<_ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 #include <sys/types.h>
19184 #include <inttypes.h>
19188 uintmax_t i = (uintmax_t) -1;
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_compile") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest.$ac_objext; then
19210 gl_cv_header_inttypes_h=yes
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 gl_cv_header_inttypes_h=no
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19221 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19222 if test $gl_cv_header_inttypes_h = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19231 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19232 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19233 if test "${gl_cv_header_stdint_h+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <sys/types.h>
19243 #include <stdint.h>
19247 uintmax_t i = (uintmax_t) -1;
19252 rm -f conftest.$ac_objext
19253 if { (ac_try="$ac_compile"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_compile") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest.$ac_objext; then
19269 gl_cv_header_stdint_h=yes
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 gl_cv_header_stdint_h=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19280 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19281 if test $gl_cv_header_stdint_h = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STDINT_H_WITH_UINTMAX 1
19292 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19293 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19294 if test "${gt_cv_c_intmax_t+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 cat >conftest.$ac_ext <<_ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19304 #include <stddef.h>
19305 #include <stdlib.h>
19306 #if HAVE_STDINT_H_WITH_UINTMAX
19307 #include <stdint.h>
19309 #if HAVE_INTTYPES_H_WITH_UINTMAX
19310 #include <inttypes.h>
19321 rm -f conftest.$ac_objext
19322 if { (ac_try="$ac_compile"
19323 case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_compile") 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } && {
19335 test -z "$ac_c_werror_flag" ||
19336 test ! -s conftest.err
19337 } && test -s conftest.$ac_objext; then
19338 gt_cv_c_intmax_t=yes
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 gt_cv_c_intmax_t=no
19346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19349 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19350 if test $gt_cv_c_intmax_t = yes; then
19352 cat >>confdefs.h <<\_ACEOF
19353 #define HAVE_INTMAX_T 1
19360 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19361 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19362 if test "${gt_cv_func_printf_posix+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 if test "$cross_compiling" = yes; then
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19375 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19381 $EGREP "notposix" >/dev/null 2>&1; then
19382 gt_cv_func_printf_posix="guessing no"
19384 gt_cv_func_printf_posix="guessing yes"
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19398 #include <string.h>
19399 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19400 dollar expansion (possibly an autoconf bug). */
19401 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19402 static char buf[100];
19405 sprintf (buf, format, 33, 55);
19406 return (strcmp (buf, "55 33") != 0);
19409 rm -f conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420 { (case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_try") 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 gt_cv_func_printf_posix=yes
19431 echo "$as_me: program exited with status $ac_status" >&5
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ( exit $ac_status )
19436 gt_cv_func_printf_posix=no
19438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19444 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19445 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19446 case $gt_cv_func_printf_posix in
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_POSIX_PRINTF 1
19456 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19457 # for constant arguments. Useless!
19458 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19459 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19460 if test "${ac_cv_working_alloca_h+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19469 #include <alloca.h>
19473 char *p = (char *) alloca (2 * sizeof (int));
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_link") 2>conftest.er1
19488 grep -v '^ *+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest$ac_exeext &&
19496 $as_test_x conftest$ac_exeext; then
19497 ac_cv_working_alloca_h=yes
19499 echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_working_alloca_h=no
19505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19506 conftest$ac_exeext conftest.$ac_ext
19508 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19509 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19510 if test $ac_cv_working_alloca_h = yes; then
19512 cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_ALLOCA_H 1
19518 { echo "$as_me:$LINENO: checking for alloca" >&5
19519 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19520 if test "${ac_cv_func_alloca_works+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19530 # define alloca __builtin_alloca
19533 # include <malloc.h>
19534 # define alloca _alloca
19536 # ifdef HAVE_ALLOCA_H
19537 # include <alloca.h>
19542 # ifndef alloca /* predefined by HP cc +Olibcalls */
19553 char *p = (char *) alloca (1);
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 ac_cv_func_alloca_works=yes
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_func_alloca_works=no
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19589 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19591 if test $ac_cv_func_alloca_works = yes; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA 1
19598 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19599 # that cause trouble. Some versions do not even contain alloca or
19600 # contain a buggy version. If you still want to use their alloca,
19601 # use ar to extract alloca.o from them instead of compiling alloca.c.
19603 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19605 cat >>confdefs.h <<\_ACEOF
19610 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19611 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19612 if test "${ac_cv_os_cray+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #if defined CRAY && ! defined CRAY2
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629 $EGREP "webecray" >/dev/null 2>&1; then
19637 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19638 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19639 if test $ac_cv_os_cray = yes; then
19640 for ac_func in _getb67 GETB67 getb67; do
19641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19655 #define $ac_func innocuous_$ac_func
19657 /* System header to define __stub macros and hopefully few prototypes,
19658 which can conflict with char $ac_func (); below.
19659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19660 <limits.h> exists even on freestanding compilers. */
19663 # include <limits.h>
19665 # include <assert.h>
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19677 /* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680 #if defined __stub_$ac_func || defined __stub___$ac_func
19687 return $ac_func ();
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (ac_try="$ac_link"
19694 case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_link") 2>conftest.er1
19701 grep -v '^ *+' conftest.er1 >conftest.err
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } && {
19706 test -z "$ac_c_werror_flag" ||
19707 test ! -s conftest.err
19708 } && test -s conftest$ac_exeext &&
19709 $as_test_x conftest$ac_exeext; then
19710 eval "$as_ac_var=yes"
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 eval "$as_ac_var=no"
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719 conftest$ac_exeext conftest.$ac_ext
19721 ac_res=`eval echo '${'$as_ac_var'}'`
19722 { echo "$as_me:$LINENO: result: $ac_res" >&5
19723 echo "${ECHO_T}$ac_res" >&6; }
19724 if test `eval echo '${'$as_ac_var'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727 #define CRAY_STACKSEG_END $ac_func
19736 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19737 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19738 if test "${ac_cv_c_stack_direction+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 if test "$cross_compiling" = yes; then
19742 ac_cv_c_stack_direction=0
19744 cat >conftest.$ac_ext <<_ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h. */
19750 $ac_includes_default
19752 find_stack_direction ()
19754 static char *addr = 0;
19759 return find_stack_direction ();
19762 return (&dummy > addr) ? 1 : -1;
19768 return find_stack_direction () < 0;
19771 rm -f conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_cv_c_stack_direction=1
19793 echo "$as_me: program exited with status $ac_status" >&5
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19797 ( exit $ac_status )
19798 ac_cv_c_stack_direction=-1
19800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19805 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19806 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19808 cat >>confdefs.h <<_ACEOF
19809 #define STACK_DIRECTION $ac_cv_c_stack_direction
19817 for ac_header in stdlib.h unistd.h
19819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_res=`eval echo '${'$as_ac_Header'}'`
19827 { echo "$as_me:$LINENO: result: $ac_res" >&5
19828 echo "${ECHO_T}$ac_res" >&6; }
19830 # Is the header compilable?
19831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $ac_includes_default
19840 #include <$ac_header>
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_header_compiler=yes
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_header_compiler=no
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19869 echo "${ECHO_T}$ac_header_compiler" >&6; }
19871 # Is the header present?
19872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 #include <$ac_header>
19882 if { (ac_try="$ac_cpp conftest.$ac_ext"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } >/dev/null && {
19895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19898 ac_header_preproc=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_header_preproc=no
19906 rm -f conftest.err conftest.$ac_ext
19907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908 echo "${ECHO_T}$ac_header_preproc" >&6; }
19910 # So? What about this header?
19911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19917 ac_header_preproc=yes
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 eval "$as_ac_Header=\$ac_header_preproc"
19942 ac_res=`eval echo '${'$as_ac_Header'}'`
19943 { echo "$as_me:$LINENO: result: $ac_res" >&5
19944 echo "${ECHO_T}$ac_res" >&6; }
19947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19948 cat >>confdefs.h <<_ACEOF
19949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19957 for ac_func in getpagesize
19959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19973 #define $ac_func innocuous_$ac_func
19975 /* System header to define __stub macros and hopefully few prototypes,
19976 which can conflict with char $ac_func (); below.
19977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978 <limits.h> exists even on freestanding compilers. */
19981 # include <limits.h>
19983 # include <assert.h>
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19995 /* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998 #if defined __stub_$ac_func || defined __stub___$ac_func
20005 return $ac_func ();
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 eval "$as_ac_var=yes"
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 eval "$as_ac_var=no"
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20039 ac_res=`eval echo '${'$as_ac_var'}'`
20040 { echo "$as_me:$LINENO: result: $ac_res" >&5
20041 echo "${ECHO_T}$ac_res" >&6; }
20042 if test `eval echo '${'$as_ac_var'}'` = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20050 { echo "$as_me:$LINENO: checking for working mmap" >&5
20051 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20052 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 if test "$cross_compiling" = yes; then
20056 ac_cv_func_mmap_fixed_mapped=no
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20065 /* malloc might have been renamed as rpl_malloc. */
20068 /* Thanks to Mike Haertel and Jim Avera for this test.
20069 Here is a matrix of mmap possibilities:
20070 mmap private not fixed
20071 mmap private fixed at somewhere currently unmapped
20072 mmap private fixed at somewhere already mapped
20073 mmap shared not fixed
20074 mmap shared fixed at somewhere currently unmapped
20075 mmap shared fixed at somewhere already mapped
20076 For private mappings, we should verify that changes cannot be read()
20077 back from the file, nor mmap's back from the file at a different
20078 address. (There have been systems where private was not correctly
20079 implemented like the infamous i386 svr4.0, and systems where the
20080 VM page cache was not coherent with the file system buffer cache
20081 like early versions of FreeBSD and possibly contemporary NetBSD.)
20082 For shared mappings, we should conversely verify that changes get
20083 propagated back to all the places they're supposed to be.
20085 Grep wants private fixed already mapped.
20086 The main things grep needs to know about mmap are:
20087 * does it exist and is it safe to write into the mmap'd area
20088 * how to use it (BSD variants) */
20091 #include <sys/mman.h>
20093 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20097 /* This mess was copied from the GNU getpagesize.h. */
20098 #ifndef HAVE_GETPAGESIZE
20099 /* Assume that all systems that can run configure have sys/param.h. */
20100 # ifndef HAVE_SYS_PARAM_H
20101 # define HAVE_SYS_PARAM_H 1
20104 # ifdef _SC_PAGESIZE
20105 # define getpagesize() sysconf(_SC_PAGESIZE)
20106 # else /* no _SC_PAGESIZE */
20107 # ifdef HAVE_SYS_PARAM_H
20108 # include <sys/param.h>
20109 # ifdef EXEC_PAGESIZE
20110 # define getpagesize() EXEC_PAGESIZE
20111 # else /* no EXEC_PAGESIZE */
20113 # define getpagesize() NBPG * CLSIZE
20116 # endif /* no CLSIZE */
20117 # else /* no NBPG */
20119 # define getpagesize() NBPC
20120 # else /* no NBPC */
20122 # define getpagesize() PAGESIZE
20123 # endif /* PAGESIZE */
20124 # endif /* no NBPC */
20125 # endif /* no NBPG */
20126 # endif /* no EXEC_PAGESIZE */
20127 # else /* no HAVE_SYS_PARAM_H */
20128 # define getpagesize() 8192 /* punt totally */
20129 # endif /* no HAVE_SYS_PARAM_H */
20130 # endif /* no _SC_PAGESIZE */
20132 #endif /* no HAVE_GETPAGESIZE */
20137 char *data, *data2, *data3;
20141 pagesize = getpagesize ();
20143 /* First, make a file with some known garbage in it. */
20144 data = (char *) malloc (pagesize);
20147 for (i = 0; i < pagesize; ++i)
20148 *(data + i) = rand ();
20150 fd = creat ("conftest.mmap", 0600);
20153 if (write (fd, data, pagesize) != pagesize)
20157 /* Next, try to mmap the file at a fixed address which already has
20158 something else allocated at it. If we can, also make sure that
20159 we see the same garbage. */
20160 fd = open ("conftest.mmap", O_RDWR);
20163 data2 = (char *) malloc (2 * pagesize);
20166 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20167 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20168 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20170 for (i = 0; i < pagesize; ++i)
20171 if (*(data + i) != *(data2 + i))
20174 /* Finally, make sure that changes to the mapped area do not
20175 percolate back to the file as seen by read(). (This is a bug on
20176 some variants of i386 svr4.0.) */
20177 for (i = 0; i < pagesize; ++i)
20178 *(data2 + i) = *(data2 + i) + 1;
20179 data3 = (char *) malloc (pagesize);
20182 if (read (fd, data3, pagesize) != pagesize)
20184 for (i = 0; i < pagesize; ++i)
20185 if (*(data + i) != *(data3 + i))
20191 rm -f conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202 { (case "(($ac_try" in
20203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204 *) ac_try_echo=$ac_try;;
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207 (eval "$ac_try") 2>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_func_mmap_fixed_mapped=yes
20213 echo "$as_me: program exited with status $ac_status" >&5
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ( exit $ac_status )
20218 ac_cv_func_mmap_fixed_mapped=no
20220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20225 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20226 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20227 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE_MMAP 1
20234 rm -f conftest.mmap
20237 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20238 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20239 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20249 #include <features.h>
20250 #ifdef __GNU_LIBRARY__
20251 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20259 ac_cv_gnu_library_2_1=yes
20261 ac_cv_gnu_library_2_1=no
20268 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20269 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20271 GLIBC21="$ac_cv_gnu_library_2_1"
20276 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20277 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20278 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 if test "$cross_compiling" = yes; then
20284 # Guess based on the CPU.
20285 case "$host_cpu" in
20286 alpha* | i3456786 | m68k | s390*)
20287 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20289 gt_cv_int_divbyzero_sigfpe="guessing no";;
20293 cat >conftest.$ac_ext <<_ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20300 #include <stdlib.h>
20301 #include <signal.h>
20305 sigfpe_handler (int sig)
20307 sigfpe_handler (sig) int sig;
20310 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20311 exit (sig != SIGFPE);
20321 signal (SIGFPE, sigfpe_handler);
20322 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20323 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20324 signal (SIGTRAP, sigfpe_handler);
20326 /* Linux/SPARC yields signal SIGILL. */
20327 #if defined (__sparc__) && defined (__linux__)
20328 signal (SIGILL, sigfpe_handler);
20337 rm -f conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20348 { (case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_try") 2>&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 gt_cv_int_divbyzero_sigfpe=yes
20359 echo "$as_me: program exited with status $ac_status" >&5
20360 echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ( exit $ac_status )
20364 gt_cv_int_divbyzero_sigfpe=no
20366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20372 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20373 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20374 case "$gt_cv_int_divbyzero_sigfpe" in
20379 cat >>confdefs.h <<_ACEOF
20380 #define INTDIV0_RAISES_SIGFPE $value
20385 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20386 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20387 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 unsigned long long ull = 1ULL; int i = 63;
20400 unsigned long long ullmax = (unsigned long long) -1;
20401 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20406 rm -f conftest.$ac_objext conftest$ac_exeext
20407 if { (ac_try="$ac_link"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_link") 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest$ac_exeext &&
20423 $as_test_x conftest$ac_exeext; then
20424 ac_cv_type_unsigned_long_long=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_type_unsigned_long_long=no
20432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20433 conftest$ac_exeext conftest.$ac_ext
20435 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20436 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20437 if test $ac_cv_type_unsigned_long_long = yes; then
20439 cat >>confdefs.h <<\_ACEOF
20440 #define HAVE_UNSIGNED_LONG_LONG 1
20448 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20450 test $ac_cv_type_unsigned_long_long = yes \
20451 && ac_type='unsigned long long' \
20452 || ac_type='unsigned long'
20454 cat >>confdefs.h <<_ACEOF
20455 #define uintmax_t $ac_type
20460 cat >>confdefs.h <<\_ACEOF
20461 #define HAVE_UINTMAX_T 1
20467 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20468 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20469 if test "${gt_cv_header_inttypes_h+set}" = set; then
20470 echo $ECHO_N "(cached) $ECHO_C" >&6
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20479 #include <sys/types.h>
20480 #include <inttypes.h>
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 gt_cv_header_inttypes_h=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 gt_cv_header_inttypes_h=no
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20518 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20519 if test $gt_cv_header_inttypes_h = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_INTTYPES_H 1
20529 if test $gt_cv_header_inttypes_h = yes; then
20530 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20531 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20532 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <inttypes.h>
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_compile") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest.$ac_objext; then
20572 gt_cv_inttypes_pri_broken=no
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 gt_cv_inttypes_pri_broken=yes
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20584 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20586 if test "$gt_cv_inttypes_pri_broken" = yes; then
20588 cat >>confdefs.h <<_ACEOF
20589 #define PRI_MACROS_BROKEN 1
20596 for ac_header in stdint.h
20598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 ac_res=`eval echo '${'$as_ac_Header'}'`
20606 { echo "$as_me:$LINENO: result: $ac_res" >&5
20607 echo "${ECHO_T}$ac_res" >&6; }
20609 # Is the header compilable?
20610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20612 cat >conftest.$ac_ext <<_ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 $ac_includes_default
20619 #include <$ac_header>
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_compile") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && {
20635 test -z "$ac_c_werror_flag" ||
20636 test ! -s conftest.err
20637 } && test -s conftest.$ac_objext; then
20638 ac_header_compiler=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_header_compiler=no
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20648 echo "${ECHO_T}$ac_header_compiler" >&6; }
20650 # Is the header present?
20651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 #include <$ac_header>
20661 if { (ac_try="$ac_cpp conftest.$ac_ext"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20669 grep -v '^ *+' conftest.er1 >conftest.err
20671 cat conftest.err >&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); } >/dev/null && {
20674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20675 test ! -s conftest.err
20677 ac_header_preproc=yes
20679 echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20682 ac_header_preproc=no
20685 rm -f conftest.err conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20687 echo "${ECHO_T}$ac_header_preproc" >&6; }
20689 # So? What about this header?
20690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20696 ac_header_preproc=yes
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 eval "$as_ac_Header=\$ac_header_preproc"
20721 ac_res=`eval echo '${'$as_ac_Header'}'`
20722 { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20735 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20736 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20745 #include <limits.h>
20747 #include <stdint.h>
20754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20755 $EGREP "Found it" >/dev/null 2>&1; then
20760 if test -z "$result"; then
20761 if test "$cross_compiling" = yes; then
20762 # Depending upon the size, compute the lo and hi bounds.
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 #include <stddef.h>
20773 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20799 cat >conftest.$ac_ext <<_ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h. */
20805 #include <stddef.h>
20809 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_hi=$ac_mid; break
20835 echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20838 ac_lo=`expr $ac_mid + 1`
20839 if test $ac_lo -le $ac_mid; then
20843 ac_mid=`expr 2 '*' $ac_mid + 1`
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <stddef.h>
20862 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_compile") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest.$ac_objext; then
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <stddef.h>
20898 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
20914 grep -v '^ *+' conftest.er1 >conftest.err
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && {
20919 test -z "$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20921 } && test -s conftest.$ac_objext; then
20922 ac_lo=$ac_mid; break
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_hi=`expr '(' $ac_mid ')' - 1`
20928 if test $ac_mid -le $ac_hi; then
20932 ac_mid=`expr 2 '*' $ac_mid`
20935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 # Binary search between lo and hi bounds.
20949 while test "x$ac_lo" != "x$ac_hi"; do
20950 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <stddef.h>
20961 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest.$ac_objext; then
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_lo=`expr '(' $ac_mid ')' + 1`
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 ?*) res_hi=$ac_lo;;
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <stddef.h>
21007 static long int longval () { return ~(size_t)0 / 10; }
21008 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21010 #include <stdlib.h>
21015 FILE *f = fopen ("conftest.val", "w");
21018 if ((~(size_t)0 / 10) < 0)
21020 long int i = longval ();
21021 if (i != (~(size_t)0 / 10))
21023 fprintf (f, "%ld\n", i);
21027 unsigned long int i = ulongval ();
21028 if (i != (~(size_t)0 / 10))
21030 fprintf (f, "%lu\n", i);
21032 return ferror (f) || fclose (f) != 0;
21038 rm -f conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_link") 2>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049 { (case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_try") 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 res_hi=`cat conftest.val`
21060 echo "$as_me: program exited with status $ac_status" >&5
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21064 ( exit $ac_status )
21067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21071 if test "$cross_compiling" = yes; then
21072 # Depending upon the size, compute the lo and hi bounds.
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 #include <stddef.h>
21083 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21090 rm -f conftest.$ac_objext
21091 if { (ac_try="$ac_compile"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_compile") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && {
21104 test -z "$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 } && test -s conftest.$ac_objext; then
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <stddef.h>
21119 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21126 rm -f conftest.$ac_objext
21127 if { (ac_try="$ac_compile"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_compile") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest.$ac_objext; then
21143 ac_hi=$ac_mid; break
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 ac_lo=`expr $ac_mid + 1`
21149 if test $ac_lo -le $ac_mid; then
21153 ac_mid=`expr 2 '*' $ac_mid + 1`
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 cat >conftest.$ac_ext <<_ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 #include <stddef.h>
21172 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21179 rm -f conftest.$ac_objext
21180 if { (ac_try="$ac_compile"
21181 case "(($ac_try" in
21182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183 *) ac_try_echo=$ac_try;;
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186 (eval "$ac_compile") 2>conftest.er1
21188 grep -v '^ *+' conftest.er1 >conftest.err
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } && {
21193 test -z "$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21195 } && test -s conftest.$ac_objext; then
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21204 #include <stddef.h>
21208 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21215 rm -f conftest.$ac_objext
21216 if { (ac_try="$ac_compile"
21217 case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_compile") 2>conftest.er1
21224 grep -v '^ *+' conftest.er1 >conftest.err
21226 cat conftest.err >&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } && {
21229 test -z "$ac_c_werror_flag" ||
21230 test ! -s conftest.err
21231 } && test -s conftest.$ac_objext; then
21232 ac_lo=$ac_mid; break
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_hi=`expr '(' $ac_mid ')' - 1`
21238 if test $ac_mid -le $ac_hi; then
21242 ac_mid=`expr 2 '*' $ac_mid`
21245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 # Binary search between lo and hi bounds.
21259 while test "x$ac_lo" != "x$ac_hi"; do
21260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 #include <stddef.h>
21271 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_compile") 2>conftest.er1
21287 grep -v '^ *+' conftest.er1 >conftest.err
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } && {
21292 test -z "$ac_c_werror_flag" ||
21293 test ! -s conftest.err
21294 } && test -s conftest.$ac_objext; then
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_lo=`expr '(' $ac_mid ')' + 1`
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 ?*) res_lo=$ac_lo;;
21310 cat >conftest.$ac_ext <<_ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <stddef.h>
21317 static long int longval () { return ~(size_t)0 % 10; }
21318 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21320 #include <stdlib.h>
21325 FILE *f = fopen ("conftest.val", "w");
21328 if ((~(size_t)0 % 10) < 0)
21330 long int i = longval ();
21331 if (i != (~(size_t)0 % 10))
21333 fprintf (f, "%ld\n", i);
21337 unsigned long int i = ulongval ();
21338 if (i != (~(size_t)0 % 10))
21340 fprintf (f, "%lu\n", i);
21342 return ferror (f) || fclose (f) != 0;
21348 rm -f conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_link") 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359 { (case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364 (eval "$ac_try") 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 res_lo=`cat conftest.val`
21370 echo "$as_me: program exited with status $ac_status" >&5
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ( exit $ac_status )
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21381 if test "$cross_compiling" = yes; then
21382 # Depending upon the size, compute the lo and hi bounds.
21383 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 #include <stddef.h>
21393 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21400 rm -f conftest.$ac_objext
21401 if { (ac_try="$ac_compile"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_compile") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest.$ac_objext; then
21419 cat >conftest.$ac_ext <<_ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h. */
21425 #include <stddef.h>
21429 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1 >conftest.err
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_hi=$ac_mid; break
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_lo=`expr $ac_mid + 1`
21459 if test $ac_lo -le $ac_mid; then
21463 ac_mid=`expr 2 '*' $ac_mid + 1`
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 #include <stddef.h>
21482 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493 *) ac_try_echo=$ac_try;;
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1 >conftest.err
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.$ac_objext; then
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 #include <stddef.h>
21518 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } && {
21539 test -z "$ac_c_werror_flag" ||
21540 test ! -s conftest.err
21541 } && test -s conftest.$ac_objext; then
21542 ac_lo=$ac_mid; break
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ac_hi=`expr '(' $ac_mid ')' - 1`
21548 if test $ac_mid -le $ac_hi; then
21552 ac_mid=`expr 2 '*' $ac_mid`
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 # Binary search between lo and hi bounds.
21569 while test "x$ac_lo" != "x$ac_hi"; do
21570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <stddef.h>
21581 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_lo=`expr '(' $ac_mid ')' + 1`
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 ?*) fits_in_uint=$ac_lo;;
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <stddef.h>
21627 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21628 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21630 #include <stdlib.h>
21635 FILE *f = fopen ("conftest.val", "w");
21638 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21640 long int i = longval ();
21641 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21643 fprintf (f, "%ld\n", i);
21647 unsigned long int i = ulongval ();
21648 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21650 fprintf (f, "%lu\n", i);
21652 return ferror (f) || fclose (f) != 0;
21658 rm -f conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_link") 2>&5
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21669 { (case "(($ac_try" in
21670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21671 *) ac_try_echo=$ac_try;;
21673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21674 (eval "$ac_try") 2>&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21678 fits_in_uint=`cat conftest.val`
21680 echo "$as_me: program exited with status $ac_status" >&5
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ( exit $ac_status )
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21691 if test "$fits_in_uint" = 1; then
21692 cat >conftest.$ac_ext <<_ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h. */
21698 #include <stddef.h>
21700 extern unsigned long foo;
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_compile") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1 >conftest.err
21721 cat conftest.err >&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest.$ac_objext; then
21729 echo "$as_me: failed program was:" >&5
21730 sed 's/^/| /' conftest.$ac_ext >&5
21735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 if test -z "$result"; then
21738 if test "$fits_in_uint" = 1; then
21739 result="$res_hi$res_lo"U
21741 result="$res_hi$res_lo"UL
21744 result='~(size_t)0'
21747 { echo "$as_me:$LINENO: result: $result" >&5
21748 echo "${ECHO_T}$result" >&6; }
21749 if test "$result" != yes; then
21751 cat >>confdefs.h <<_ACEOF
21752 #define SIZE_MAX $result
21761 for ac_header in stdint.h
21763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21770 ac_res=`eval echo '${'$as_ac_Header'}'`
21771 { echo "$as_me:$LINENO: result: $ac_res" >&5
21772 echo "${ECHO_T}$ac_res" >&6; }
21774 # Is the header compilable?
21775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 $ac_includes_default
21784 #include <$ac_header>
21786 rm -f conftest.$ac_objext
21787 if { (ac_try="$ac_compile"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_compile") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest.$ac_objext; then
21803 ac_header_compiler=yes
21805 echo "$as_me: failed program was:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ac_header_compiler=no
21811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21813 echo "${ECHO_T}$ac_header_compiler" >&6; }
21815 # Is the header present?
21816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 #include <$ac_header>
21826 if { (ac_try="$ac_cpp conftest.$ac_ext"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1 >conftest.err
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } >/dev/null && {
21839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21842 ac_header_preproc=yes
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847 ac_header_preproc=no
21850 rm -f conftest.err conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21852 echo "${ECHO_T}$ac_header_preproc" >&6; }
21854 # So? What about this header?
21855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21861 ac_header_preproc=yes
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 eval "$as_ac_Header=\$ac_header_preproc"
21886 ac_res=`eval echo '${'$as_ac_Header'}'`
21887 { echo "$as_me:$LINENO: result: $ac_res" >&5
21888 echo "${ECHO_T}$ac_res" >&6; }
21891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21907 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21908 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21909 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21919 typedef ptrdiff_t ac__type_new_;
21923 if ((ac__type_new_ *) 0)
21925 if (sizeof (ac__type_new_))
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 ac_cv_type_ptrdiff_t=yes
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_cv_type_ptrdiff_t=no
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21959 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21960 if test $ac_cv_type_ptrdiff_t = yes; then
21964 cat >>confdefs.h <<\_ACEOF
21965 #define ptrdiff_t long
21981 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
21982 stdlib.h string.h unistd.h sys/param.h
21984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 ac_res=`eval echo '${'$as_ac_Header'}'`
21992 { echo "$as_me:$LINENO: result: $ac_res" >&5
21993 echo "${ECHO_T}$ac_res" >&6; }
21995 # Is the header compilable?
21996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 $ac_includes_default
22005 #include <$ac_header>
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22024 ac_header_compiler=yes
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_header_compiler=no
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22034 echo "${ECHO_T}$ac_header_compiler" >&6; }
22036 # Is the header present?
22037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #include <$ac_header>
22047 if { (ac_try="$ac_cpp conftest.$ac_ext"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22055 grep -v '^ *+' conftest.er1 >conftest.err
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } >/dev/null && {
22060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22063 ac_header_preproc=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_header_preproc=no
22071 rm -f conftest.err conftest.$ac_ext
22072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22073 echo "${ECHO_T}$ac_header_preproc" >&6; }
22075 # So? What about this header?
22076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22082 ac_header_preproc=yes
22085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 eval "$as_ac_Header=\$ac_header_preproc"
22107 ac_res=`eval echo '${'$as_ac_Header'}'`
22108 { echo "$as_me:$LINENO: result: $ac_res" >&5
22109 echo "${ECHO_T}$ac_res" >&6; }
22112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113 cat >>confdefs.h <<_ACEOF
22114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22144 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22145 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22146 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22163 #define $ac_func innocuous_$ac_func
22165 /* System header to define __stub macros and hopefully few prototypes,
22166 which can conflict with char $ac_func (); below.
22167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22168 <limits.h> exists even on freestanding compilers. */
22171 # include <limits.h>
22173 # include <assert.h>
22178 /* Override any GCC internal prototype to avoid an error.
22179 Use char because int might match the return type of a GCC
22180 builtin and then its argument prototype would still apply. */
22185 /* The GNU C library defines this for functions which it implements
22186 to always fail with ENOSYS. Some functions are actually named
22187 something starting with __ and the normal name is an alias. */
22188 #if defined __stub_$ac_func || defined __stub___$ac_func
22195 return $ac_func ();
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_link") 2>conftest.er1
22209 grep -v '^ *+' conftest.er1 >conftest.err
22211 cat conftest.err >&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && {
22214 test -z "$ac_c_werror_flag" ||
22215 test ! -s conftest.err
22216 } && test -s conftest$ac_exeext &&
22217 $as_test_x conftest$ac_exeext; then
22218 eval "$as_ac_var=yes"
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22223 eval "$as_ac_var=no"
22226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22227 conftest$ac_exeext conftest.$ac_ext
22229 ac_res=`eval echo '${'$as_ac_var'}'`
22230 { echo "$as_me:$LINENO: result: $ac_res" >&5
22231 echo "${ECHO_T}$ac_res" >&6; }
22232 if test `eval echo '${'$as_ac_var'}'` = yes; then
22233 cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22242 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22243 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22244 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 cat >conftest.$ac_ext <<_ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22259 char *p = (char *) _snprintf;
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.$ac_objext; then
22283 ac_cv_have_decl__snprintf=yes
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ac_cv_have_decl__snprintf=no
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22294 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22295 if test $ac_cv_have_decl__snprintf = yes; then
22301 cat >>confdefs.h <<_ACEOF
22302 #define HAVE_DECL__SNPRINTF $gt_value
22307 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22308 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22309 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22324 char *p = (char *) _snwprintf;
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_cv_have_decl__snwprintf=yes
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_have_decl__snwprintf=no
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22359 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22360 if test $ac_cv_have_decl__snwprintf = yes; then
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_DECL__SNWPRINTF $gt_value
22373 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22374 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22375 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22389 #ifndef feof_unlocked
22390 char *p = (char *) feof_unlocked;
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_compile") 2>conftest.er1
22406 grep -v '^ *+' conftest.er1 >conftest.err
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest.$ac_objext; then
22414 ac_cv_have_decl_feof_unlocked=yes
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_have_decl_feof_unlocked=no
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22425 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22426 if test $ac_cv_have_decl_feof_unlocked = yes; then
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22438 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22439 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22440 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22454 #ifndef fgets_unlocked
22455 char *p = (char *) fgets_unlocked;
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_compile") 2>conftest.er1
22471 grep -v '^ *+' conftest.er1 >conftest.err
22473 cat conftest.err >&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } && {
22476 test -z "$ac_c_werror_flag" ||
22477 test ! -s conftest.err
22478 } && test -s conftest.$ac_objext; then
22479 ac_cv_have_decl_fgets_unlocked=yes
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_have_decl_fgets_unlocked=no
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22490 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22491 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22503 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22504 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22505 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 cat >conftest.$ac_ext <<_ACEOF
22511 cat confdefs.h >>conftest.$ac_ext
22512 cat >>conftest.$ac_ext <<_ACEOF
22513 /* end confdefs.h. */
22519 #ifndef getc_unlocked
22520 char *p = (char *) getc_unlocked;
22527 rm -f conftest.$ac_objext
22528 if { (ac_try="$ac_compile"
22529 case "(($ac_try" in
22530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22531 *) ac_try_echo=$ac_try;;
22533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22534 (eval "$ac_compile") 2>conftest.er1
22536 grep -v '^ *+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && {
22541 test -z "$ac_c_werror_flag" ||
22542 test ! -s conftest.err
22543 } && test -s conftest.$ac_objext; then
22544 ac_cv_have_decl_getc_unlocked=yes
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22549 ac_cv_have_decl_getc_unlocked=no
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22555 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22556 if test $ac_cv_have_decl_getc_unlocked = yes; then
22562 cat >>confdefs.h <<_ACEOF
22563 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22568 case $gt_cv_func_printf_posix in
22569 *yes) HAVE_POSIX_PRINTF=1 ;;
22570 *) HAVE_POSIX_PRINTF=0 ;;
22573 if test "$ac_cv_func_asprintf" = yes; then
22579 if test "$ac_cv_func_snprintf" = yes; then
22585 if test "$ac_cv_func_wprintf" = yes; then
22597 am_save_CPPFLAGS="$CPPFLAGS"
22599 for element in $INCICONV; do
22601 for x in $CPPFLAGS; do
22603 acl_save_prefix="$prefix"
22604 prefix="$acl_final_prefix"
22605 acl_save_exec_prefix="$exec_prefix"
22606 exec_prefix="$acl_final_exec_prefix"
22608 exec_prefix="$acl_save_exec_prefix"
22609 prefix="$acl_save_prefix"
22611 if test "X$x" = "X$element"; then
22616 if test -z "$haveit"; then
22617 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22622 { echo "$as_me:$LINENO: checking for iconv" >&5
22623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22624 if test "${am_cv_func_iconv+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22628 am_cv_func_iconv="no, consider installing GNU libiconv"
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 #include <stdlib.h>
22641 iconv_t cd = iconv_open("","");
22642 iconv(cd,NULL,NULL,NULL,NULL);
22648 rm -f conftest.$ac_objext conftest$ac_exeext
22649 if { (ac_try="$ac_link"
22650 case "(($ac_try" in
22651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652 *) ac_try_echo=$ac_try;;
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655 (eval "$ac_link") 2>conftest.er1
22657 grep -v '^ *+' conftest.er1 >conftest.err
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } && {
22662 test -z "$ac_c_werror_flag" ||
22663 test ! -s conftest.err
22664 } && test -s conftest$ac_exeext &&
22665 $as_test_x conftest$ac_exeext; then
22666 am_cv_func_iconv=yes
22668 echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22675 conftest$ac_exeext conftest.$ac_ext
22676 if test "$am_cv_func_iconv" != yes; then
22677 am_save_LIBS="$LIBS"
22678 LIBS="$LIBS $LIBICONV"
22679 cat >conftest.$ac_ext <<_ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 #include <stdlib.h>
22690 iconv_t cd = iconv_open("","");
22691 iconv(cd,NULL,NULL,NULL,NULL);
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_link") 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest$ac_exeext &&
22714 $as_test_x conftest$ac_exeext; then
22715 am_cv_lib_iconv=yes
22716 am_cv_func_iconv=yes
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 conftest$ac_exeext conftest.$ac_ext
22726 LIBS="$am_save_LIBS"
22730 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22731 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22732 if test "$am_cv_func_iconv" = yes; then
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_ICONV 1
22739 if test "$am_cv_lib_iconv" = yes; then
22740 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22741 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22742 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22743 echo "${ECHO_T}$LIBICONV" >&6; }
22745 CPPFLAGS="$am_save_CPPFLAGS"
22752 if test "$am_cv_func_iconv" = yes; then
22753 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22754 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22755 if test "${am_cv_proto_iconv+set}" = set; then
22756 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22766 #include <stdlib.h>
22772 #if defined(__STDC__) || defined(__cplusplus)
22773 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_compile") 2>conftest.er1
22795 grep -v '^ *+' conftest.er1 >conftest.err
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } && {
22800 test -z "$ac_c_werror_flag" ||
22801 test ! -s conftest.err
22802 } && test -s conftest.$ac_objext; then
22803 am_cv_proto_iconv_arg1=""
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22808 am_cv_proto_iconv_arg1="const"
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812 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);"
22815 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22816 { echo "$as_me:$LINENO: result: ${ac_t:-
22817 }$am_cv_proto_iconv" >&5
22818 echo "${ECHO_T}${ac_t:-
22819 }$am_cv_proto_iconv" >&6; }
22821 cat >>confdefs.h <<_ACEOF
22822 #define ICONV_CONST $am_cv_proto_iconv_arg1
22828 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22829 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22830 if test "${am_cv_langinfo_codeset+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 #include <langinfo.h>
22843 char* cs = nl_langinfo(CODESET);
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_link") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest$ac_exeext &&
22865 $as_test_x conftest$ac_exeext; then
22866 am_cv_langinfo_codeset=yes
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 am_cv_langinfo_codeset=no
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22878 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22879 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22880 if test $am_cv_langinfo_codeset = yes; then
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_LANGINFO_CODESET 1
22888 if test $ac_cv_header_locale_h = yes; then
22890 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22891 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22892 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22893 echo $ECHO_N "(cached) $ECHO_C" >&6
22895 cat >conftest.$ac_ext <<_ACEOF
22898 cat confdefs.h >>conftest.$ac_ext
22899 cat >>conftest.$ac_ext <<_ACEOF
22900 /* end confdefs.h. */
22901 #include <locale.h>
22910 rm -f conftest.$ac_objext conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_link") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest$ac_exeext &&
22927 $as_test_x conftest$ac_exeext; then
22928 gt_cv_val_LC_MESSAGES=yes
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 gt_cv_val_LC_MESSAGES=no
22936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22937 conftest$ac_exeext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22940 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22941 if test $gt_cv_val_LC_MESSAGES = yes; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_LC_MESSAGES 1
22951 if test -n "$INTL_MACOSX_LIBS"; then
22952 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22955 for ac_prog in bison
22957 # Extract the first word of "$ac_prog", so it can be a program name with args.
22958 set dummy $ac_prog; ac_word=$2
22959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22961 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
22964 if test -n "$INTLBISON"; then
22965 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22968 for as_dir in $PATH
22971 test -z "$as_dir" && as_dir=.
22972 for ac_exec_ext in '' $ac_executable_extensions; do
22973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22974 ac_cv_prog_INTLBISON="$ac_prog"
22975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22984 INTLBISON=$ac_cv_prog_INTLBISON
22985 if test -n "$INTLBISON"; then
22986 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
22987 echo "${ECHO_T}$INTLBISON" >&6; }
22989 { echo "$as_me:$LINENO: result: no" >&5
22990 echo "${ECHO_T}no" >&6; }
22994 test -n "$INTLBISON" && break
22997 if test -z "$INTLBISON"; then
23000 { echo "$as_me:$LINENO: checking version of bison" >&5
23001 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23002 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23003 case $ac_prog_version in
23004 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23005 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23006 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23007 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23009 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23010 echo "${ECHO_T}$ac_prog_version" >&6; }
23012 if test $ac_verc_fail = yes; then
23031 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23032 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23033 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 gt_save_CPPFLAGS="$CPPFLAGS"
23037 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23038 gt_save_LIBS="$LIBS"
23039 LIBS="$LIBS -framework CoreFoundation"
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <CFPreferences.h>
23050 CFPreferencesCopyAppValue(NULL, NULL)
23055 rm -f conftest.$ac_objext conftest$ac_exeext
23056 if { (ac_try="$ac_link"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_link") 2>conftest.er1
23064 grep -v '^ *+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest$ac_exeext &&
23072 $as_test_x conftest$ac_exeext; then
23073 gt_cv_func_CFPreferencesCopyAppValue=yes
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 gt_cv_func_CFPreferencesCopyAppValue=no
23081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23082 conftest$ac_exeext conftest.$ac_ext
23083 CPPFLAGS="$gt_save_CPPFLAGS"
23084 LIBS="$gt_save_LIBS"
23086 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23087 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23088 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23095 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23096 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23097 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 gt_save_CPPFLAGS="$CPPFLAGS"
23101 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23102 gt_save_LIBS="$LIBS"
23103 LIBS="$LIBS -framework CoreFoundation"
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 #include <CFLocale.h>
23114 CFLocaleCopyCurrent();
23119 rm -f conftest.$ac_objext conftest$ac_exeext
23120 if { (ac_try="$ac_link"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126 (eval "$ac_link") 2>conftest.er1
23128 grep -v '^ *+' conftest.er1 >conftest.err
23130 cat conftest.err >&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest$ac_exeext &&
23136 $as_test_x conftest$ac_exeext; then
23137 gt_cv_func_CFLocaleCopyCurrent=yes
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 gt_cv_func_CFLocaleCopyCurrent=no
23145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23146 conftest$ac_exeext conftest.$ac_ext
23147 CPPFLAGS="$gt_save_CPPFLAGS"
23148 LIBS="$gt_save_LIBS"
23150 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23151 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23152 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23154 cat >>confdefs.h <<\_ACEOF
23155 #define HAVE_CFLOCALECOPYCURRENT 1
23160 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23161 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23167 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23168 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23169 # Check whether --enable-nls was given.
23170 if test "${enable_nls+set}" = set; then
23171 enableval=$enable_nls; USE_NLS=$enableval
23176 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23177 echo "${ECHO_T}$USE_NLS" >&6; }
23182 BUILD_INCLUDED_LIBINTL=no
23183 USE_INCLUDED_LIBINTL=no
23189 if test "$USE_NLS" = "yes"; then
23190 gt_use_preinstalled_gnugettext=no
23192 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23193 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23195 # Check whether --with-included-gettext was given.
23196 if test "${with_included_gettext+set}" = set; then
23197 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23199 nls_cv_force_use_gnu_gettext=no
23202 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23203 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23205 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23206 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23213 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23214 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23215 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 cat >conftest.$ac_ext <<_ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23224 #include <libintl.h>
23225 extern int _nl_msg_cat_cntr;
23226 extern int *_nl_domain_bindings;
23230 bindtextdomain ("", "");
23231 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23236 rm -f conftest.$ac_objext conftest$ac_exeext
23237 if { (ac_try="$ac_link"
23238 case "(($ac_try" in
23239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240 *) ac_try_echo=$ac_try;;
23242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243 (eval "$ac_link") 2>conftest.er1
23245 grep -v '^ *+' conftest.er1 >conftest.err
23247 cat conftest.err >&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } && {
23250 test -z "$ac_c_werror_flag" ||
23251 test ! -s conftest.err
23252 } && test -s conftest$ac_exeext &&
23253 $as_test_x conftest$ac_exeext; then
23254 gt_cv_func_gnugettext1_libc=yes
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23259 gt_cv_func_gnugettext1_libc=no
23262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23263 conftest$ac_exeext conftest.$ac_ext
23265 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23266 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23268 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23274 acl_save_prefix="$prefix"
23275 prefix="$acl_final_prefix"
23276 acl_save_exec_prefix="$exec_prefix"
23277 exec_prefix="$acl_final_exec_prefix"
23279 eval additional_includedir=\"$includedir\"
23280 eval additional_libdir=\"$libdir\"
23282 exec_prefix="$acl_save_exec_prefix"
23283 prefix="$acl_save_prefix"
23286 # Check whether --with-libintl-prefix was given.
23287 if test "${with_libintl_prefix+set}" = set; then
23288 withval=$with_libintl_prefix;
23289 if test "X$withval" = "Xno"; then
23292 if test "X$withval" = "X"; then
23294 acl_save_prefix="$prefix"
23295 prefix="$acl_final_prefix"
23296 acl_save_exec_prefix="$exec_prefix"
23297 exec_prefix="$acl_final_exec_prefix"
23299 eval additional_includedir=\"$includedir\"
23300 eval additional_libdir=\"$libdir\"
23302 exec_prefix="$acl_save_exec_prefix"
23303 prefix="$acl_save_prefix"
23306 additional_includedir="$withval/include"
23307 additional_libdir="$withval/lib"
23318 names_already_handled=
23319 names_next_round='intl '
23320 while test -n "$names_next_round"; do
23321 names_this_round="$names_next_round"
23323 for name in $names_this_round; do
23325 for n in $names_already_handled; do
23326 if test "$n" = "$name"; then
23327 already_handled=yes
23331 if test -z "$already_handled"; then
23332 names_already_handled="$names_already_handled $name"
23333 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23334 eval value=\"\$HAVE_LIB$uppername\"
23335 if test -n "$value"; then
23336 if test "$value" = yes; then
23337 eval value=\"\$LIB$uppername\"
23338 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23339 eval value=\"\$LTLIB$uppername\"
23340 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23349 if test $use_additional = yes; then
23350 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23351 found_dir="$additional_libdir"
23352 found_so="$additional_libdir/lib$name.$shlibext"
23353 if test -f "$additional_libdir/lib$name.la"; then
23354 found_la="$additional_libdir/lib$name.la"
23357 if test -f "$additional_libdir/lib$name.$libext"; then
23358 found_dir="$additional_libdir"
23359 found_a="$additional_libdir/lib$name.$libext"
23360 if test -f "$additional_libdir/lib$name.la"; then
23361 found_la="$additional_libdir/lib$name.la"
23366 if test "X$found_dir" = "X"; then
23367 for x in $LDFLAGS $LTLIBINTL; do
23369 acl_save_prefix="$prefix"
23370 prefix="$acl_final_prefix"
23371 acl_save_exec_prefix="$exec_prefix"
23372 exec_prefix="$acl_final_exec_prefix"
23374 exec_prefix="$acl_save_exec_prefix"
23375 prefix="$acl_save_prefix"
23379 dir=`echo "X$x" | sed -e 's/^X-L//'`
23380 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23382 found_so="$dir/lib$name.$shlibext"
23383 if test -f "$dir/lib$name.la"; then
23384 found_la="$dir/lib$name.la"
23387 if test -f "$dir/lib$name.$libext"; then
23389 found_a="$dir/lib$name.$libext"
23390 if test -f "$dir/lib$name.la"; then
23391 found_la="$dir/lib$name.la"
23397 if test "X$found_dir" != "X"; then
23402 if test "X$found_dir" != "X"; then
23403 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23404 if test "X$found_so" != "X"; then
23405 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23409 for x in $ltrpathdirs; do
23410 if test "X$x" = "X$found_dir"; then
23415 if test -z "$haveit"; then
23416 ltrpathdirs="$ltrpathdirs $found_dir"
23418 if test "$hardcode_direct" = yes; then
23419 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23421 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23422 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23424 for x in $rpathdirs; do
23425 if test "X$x" = "X$found_dir"; then
23430 if test -z "$haveit"; then
23431 rpathdirs="$rpathdirs $found_dir"
23435 for x in $LDFLAGS $LIBINTL; do
23437 acl_save_prefix="$prefix"
23438 prefix="$acl_final_prefix"
23439 acl_save_exec_prefix="$exec_prefix"
23440 exec_prefix="$acl_final_exec_prefix"
23442 exec_prefix="$acl_save_exec_prefix"
23443 prefix="$acl_save_prefix"
23445 if test "X$x" = "X-L$found_dir"; then
23450 if test -z "$haveit"; then
23451 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23453 if test "$hardcode_minus_L" != no; then
23454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23456 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23462 if test "X$found_a" != "X"; then
23463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23465 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23468 additional_includedir=
23469 case "$found_dir" in
23471 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23472 additional_includedir="$basedir/include"
23475 if test "X$additional_includedir" != "X"; then
23476 if test "X$additional_includedir" != "X/usr/include"; then
23478 if test "X$additional_includedir" = "X/usr/local/include"; then
23479 if test -n "$GCC"; then
23481 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23485 if test -z "$haveit"; then
23486 for x in $CPPFLAGS $INCINTL; do
23488 acl_save_prefix="$prefix"
23489 prefix="$acl_final_prefix"
23490 acl_save_exec_prefix="$exec_prefix"
23491 exec_prefix="$acl_final_exec_prefix"
23493 exec_prefix="$acl_save_exec_prefix"
23494 prefix="$acl_save_prefix"
23496 if test "X$x" = "X-I$additional_includedir"; then
23501 if test -z "$haveit"; then
23502 if test -d "$additional_includedir"; then
23503 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23509 if test -n "$found_la"; then
23510 save_libdir="$libdir"
23511 case "$found_la" in
23512 */* | *\\*) . "$found_la" ;;
23513 *) . "./$found_la" ;;
23515 libdir="$save_libdir"
23516 for dep in $dependency_libs; do
23519 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23520 if test "X$additional_libdir" != "X/usr/lib"; then
23522 if test "X$additional_libdir" = "X/usr/local/lib"; then
23523 if test -n "$GCC"; then
23525 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23529 if test -z "$haveit"; then
23531 for x in $LDFLAGS $LIBINTL; do
23533 acl_save_prefix="$prefix"
23534 prefix="$acl_final_prefix"
23535 acl_save_exec_prefix="$exec_prefix"
23536 exec_prefix="$acl_final_exec_prefix"
23538 exec_prefix="$acl_save_exec_prefix"
23539 prefix="$acl_save_prefix"
23541 if test "X$x" = "X-L$additional_libdir"; then
23546 if test -z "$haveit"; then
23547 if test -d "$additional_libdir"; then
23548 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23552 for x in $LDFLAGS $LTLIBINTL; do
23554 acl_save_prefix="$prefix"
23555 prefix="$acl_final_prefix"
23556 acl_save_exec_prefix="$exec_prefix"
23557 exec_prefix="$acl_final_exec_prefix"
23559 exec_prefix="$acl_save_exec_prefix"
23560 prefix="$acl_save_prefix"
23562 if test "X$x" = "X-L$additional_libdir"; then
23567 if test -z "$haveit"; then
23568 if test -d "$additional_libdir"; then
23569 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23576 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23577 if test "$enable_rpath" != no; then
23579 for x in $rpathdirs; do
23580 if test "X$x" = "X$dir"; then
23585 if test -z "$haveit"; then
23586 rpathdirs="$rpathdirs $dir"
23589 for x in $ltrpathdirs; do
23590 if test "X$x" = "X$dir"; then
23595 if test -z "$haveit"; then
23596 ltrpathdirs="$ltrpathdirs $dir"
23601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23607 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23608 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23614 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23615 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23621 if test "X$rpathdirs" != "X"; then
23622 if test -n "$hardcode_libdir_separator"; then
23624 for found_dir in $rpathdirs; do
23625 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23627 acl_save_libdir="$libdir"
23629 eval flag=\"$hardcode_libdir_flag_spec\"
23630 libdir="$acl_save_libdir"
23631 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23633 for found_dir in $rpathdirs; do
23634 acl_save_libdir="$libdir"
23635 libdir="$found_dir"
23636 eval flag=\"$hardcode_libdir_flag_spec\"
23637 libdir="$acl_save_libdir"
23638 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23642 if test "X$ltrpathdirs" != "X"; then
23643 for found_dir in $ltrpathdirs; do
23644 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23648 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23649 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23650 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23653 gt_save_CPPFLAGS="$CPPFLAGS"
23654 CPPFLAGS="$CPPFLAGS $INCINTL"
23655 gt_save_LIBS="$LIBS"
23656 LIBS="$LIBS $LIBINTL"
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #include <libintl.h>
23664 extern int _nl_msg_cat_cntr;
23669 const char *_nl_expand_alias (const char *);
23673 bindtextdomain ("", "");
23674 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (ac_try="$ac_link"
23681 case "(($ac_try" in
23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683 *) ac_try_echo=$ac_try;;
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_link") 2>conftest.er1
23688 grep -v '^ *+' conftest.er1 >conftest.err
23690 cat conftest.err >&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } && {
23693 test -z "$ac_c_werror_flag" ||
23694 test ! -s conftest.err
23695 } && test -s conftest$ac_exeext &&
23696 $as_test_x conftest$ac_exeext; then
23697 gt_cv_func_gnugettext1_libintl=yes
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 gt_cv_func_gnugettext1_libintl=no
23705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23706 conftest$ac_exeext conftest.$ac_ext
23707 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23708 LIBS="$LIBS $LIBICONV"
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 #include <libintl.h>
23716 extern int _nl_msg_cat_cntr;
23721 const char *_nl_expand_alias (const char *);
23725 bindtextdomain ("", "");
23726 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23731 rm -f conftest.$ac_objext conftest$ac_exeext
23732 if { (ac_try="$ac_link"
23733 case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_link") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest$ac_exeext &&
23748 $as_test_x conftest$ac_exeext; then
23749 LIBINTL="$LIBINTL $LIBICONV"
23750 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23751 gt_cv_func_gnugettext1_libintl=yes
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23763 CPPFLAGS="$gt_save_CPPFLAGS"
23764 LIBS="$gt_save_LIBS"
23766 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23767 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23770 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23771 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23772 && test "$PACKAGE" != gettext-runtime \
23773 && test "$PACKAGE" != gettext-tools; }; then
23774 gt_use_preinstalled_gnugettext=yes
23782 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23783 nls_cv_use_gnu_gettext=yes
23787 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23788 BUILD_INCLUDED_LIBINTL=yes
23789 USE_INCLUDED_LIBINTL=yes
23790 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23791 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23792 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23796 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23797 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23802 if test -n "$INTL_MACOSX_LIBS"; then
23803 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23804 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23805 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23806 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23810 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23811 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define ENABLE_NLS 1
23822 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23823 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23824 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23825 echo "${ECHO_T}$USE_NLS" >&6; }
23826 if test "$USE_NLS" = "yes"; then
23827 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23828 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23829 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23830 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23831 gt_source="external libintl"
23836 gt_source="included intl directory"
23838 { echo "$as_me:$LINENO: result: $gt_source" >&5
23839 echo "${ECHO_T}$gt_source" >&6; }
23842 if test "$USE_NLS" = "yes"; then
23844 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23845 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23846 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23847 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23848 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23849 echo "${ECHO_T}$LIBINTL" >&6; }
23851 for element in $INCINTL; do
23853 for x in $CPPFLAGS; do
23855 acl_save_prefix="$prefix"
23856 prefix="$acl_final_prefix"
23857 acl_save_exec_prefix="$exec_prefix"
23858 exec_prefix="$acl_final_exec_prefix"
23860 exec_prefix="$acl_save_exec_prefix"
23861 prefix="$acl_save_prefix"
23863 if test "X$x" = "X$element"; then
23868 if test -z "$haveit"; then
23869 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_GETTEXT 1
23881 cat >>confdefs.h <<\_ACEOF
23882 #define HAVE_DCGETTEXT 1
23891 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23892 BUILD_INCLUDED_LIBINTL=yes
23899 nls_cv_header_intl=
23900 nls_cv_header_libgt=
23912 if test "$USE_INCLUDED_LIBINTL" = yes; then
23913 INTLOBJS="\$(GETTOBJS)"
23917 INTL_LIBTOOL_SUFFIX_PREFIX=
23921 INTLLIBS="$LIBINTL"
23933 support_postgresql=no
23935 support_smartalloc=yes
23936 support_readline=yes
23940 support_wx_console=no
23941 support_tray_monitor=no
23946 support_static_tools=no
23947 support_static_fd=no
23948 support_static_sd=no
23949 support_static_dir=no
23950 support_static_cons=no
23952 build_client_only=no
23960 # Check whether --enable-gnome was given.
23961 if test "${enable_gnome+set}" = set; then
23962 enableval=$enable_gnome;
23963 if test x$enableval = xyes; then
23972 if test x$support_gnome = xyes; then
23973 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23975 if test $pkg = 0; then
23976 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23977 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23978 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23979 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23984 GNOME_DIR=src/gnome2-console
23985 gnome_version="Version 2.x"
23987 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
23988 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
23989 { (exit 1); exit 1; }; }
23994 # Check whether --enable-bat was given.
23995 if test "${enable_bat+set}" = set; then
23996 enableval=$enable_bat;
23997 if test x$enableval = xyes; then
23999 cat >>confdefs.h <<\_ACEOF
24011 if test x$support_bat = xyes; then
24012 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24014 if test $pkg = 0; then
24015 BAT_DIR=src/qt-console
24017 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24018 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24019 { (exit 1); exit 1; }; }
24029 if test x$support_bat = xyes; then
24030 { echo "$as_me:$LINENO: checking for qwt support" >&5
24031 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24033 # Check whether --with-qwt was given.
24034 if test "${with_qwt+set}" = set; then
24036 case "$with_qwt" in
24041 if test -f ${with_qwt}/include/qwt.h; then
24042 QWT_INC="${with_qwt}/include"
24043 QWT_LDFLAGS="-L${with_qwt}/lib"
24054 if test $no_qwt = no; then
24055 if test x$QWT_INC = x; then
24056 for root in /usr /usr/local; do
24057 for ver in qwt qwt5 qwt-qt4; do
24058 if test -f ${root}/include/${ver}/qwt.h; then
24059 QWT_INC="${root}/include/${ver}"
24060 if test -d ${root}/lib64/; then
24061 QWT_LDFLAGS="-L${root}/lib64"
24062 elif test -d ${root}/lib/64/; then
24063 QWT_LDFLAGS="-L${root}/64"
24065 QWT_LDFLAGS="-L${root}/lib"
24076 if test x$QWT_INC = x; then
24077 { echo "$as_me:$LINENO: result: no" >&5
24078 echo "${ECHO_T}no" >&6; }
24081 cat >>confdefs.h <<\_ACEOF
24085 { echo "$as_me:$LINENO: result: yes" >&5
24086 echo "${ECHO_T}yes" >&6; }
24096 # Check whether --enable-bwx-console was given.
24097 if test "${enable_bwx_console+set}" = set; then
24098 enableval=$enable_bwx_console;
24099 if test x$enableval = xyes; then
24100 support_wx_console=yes
24108 if test x$support_wx_console = xyes; then
24109 abc=`$WXCONFIG $WXFLAGS --cppflags`
24111 if test $pkg = 0; then
24112 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24113 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24114 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24118 WX_DIR=src/wx-console
24121 echo "wx-config program not found. bwx-console disabled."
24123 support_wx_console=no
24128 # Check whether --enable-tray-monitor was given.
24129 if test "${enable_tray_monitor+set}" = set; then
24130 enableval=$enable_tray_monitor;
24131 if test x$enableval = xyes; then
24132 support_tray_monitor=yes
24140 if test x$support_tray_monitor = xyes; then
24141 abc=`$PKGCONFIG --exists gtk+-2.0`
24143 if test $pkg = 0; then
24144 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24145 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24148 TRAY_MONITOR_DIR=src/tray-monitor
24149 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24151 if test $pkg = 0; then
24153 cat >>confdefs.h <<\_ACEOF
24154 #define HAVE_GTK_2_4 1
24162 # Check whether --enable-smartalloc was given.
24163 if test "${enable_smartalloc+set}" = set; then
24164 enableval=$enable_smartalloc;
24165 if test x$enableval = xno; then
24166 support_smartalloc=no
24173 if test x$support_smartalloc = xyes; then
24175 cat >>confdefs.h <<\_ACEOF
24176 #define SMARTALLOC 1
24181 # Check whether --enable-static-tools was given.
24182 if test "${enable_static_tools+set}" = set; then
24183 enableval=$enable_static_tools;
24184 if test x$enableval = xyes; then
24185 support_static_tools=yes
24193 if test x$support_static_tools = xyes; then
24194 TTOOL_LDFLAGS="-static"
24198 # Check whether --enable-static-fd was given.
24199 if test "${enable_static_fd+set}" = set; then
24200 enableval=$enable_static_fd;
24201 if test x$enableval = xyes; then
24202 support_static_fd=yes
24210 if test x$support_static_fd = xyes; then
24211 STATIC_FD="static-bacula-fd"
24215 # Check whether --enable-static-sd was given.
24216 if test "${enable_static_sd+set}" = set; then
24217 enableval=$enable_static_sd;
24218 if test x$enableval = xyes; then
24219 support_static_sd=yes
24227 if test x$support_static_sd = xyes; then
24228 STATIC_SD="static-bacula-sd"
24232 # Check whether --enable-static-dir was given.
24233 if test "${enable_static_dir+set}" = set; then
24234 enableval=$enable_static_dir;
24235 if test x$enableval = xyes; then
24236 support_static_dir=yes
24244 if test x$support_static_dir = xyes; then
24245 STATIC_DIR="static-bacula-dir"
24249 # Check whether --enable-static-cons was given.
24250 if test "${enable_static_cons+set}" = set; then
24251 enableval=$enable_static_cons;
24252 if test x$enableval = xyes; then
24253 support_static_cons=yes
24263 if test x$support_static_cons = xyes; then
24264 STATIC_CONS="static-bconsole"
24265 STATIC_GNOME_CONS="static-bgnome-console"
24266 STATIC_WX_CONS="static-bwx-console"
24272 # Check whether --enable-client-only was given.
24273 if test "${enable_client_only+set}" = set; then
24274 enableval=$enable_client_only;
24275 if test x$enableval = xyes; then
24276 build_client_only=yes
24284 if test x$build_client_only = xno; then
24291 # Check whether --enable-build-dird was given.
24292 if test "${enable_build_dird+set}" = set; then
24293 enableval=$enable_build_dird;
24294 if test x$enableval = xno; then
24301 if test x$build_dird = xyes; then
24302 DIRD_DIR="src/dird"
24303 DIR_TOOLS="DIRTOOLS"
24306 DIR_TOOLS="NODIRTOOLS"
24311 # Check whether --enable-build-stored was given.
24312 if test "${enable_build_stored+set}" = set; then
24313 enableval=$enable_build_stored;
24314 if test x$enableval = xno; then
24321 if test x$build_stored = xyes; then
24322 STORED_DIR="src/stored"
24328 # Check whether --enable-conio was given.
24329 if test "${enable_conio+set}" = set; then
24330 enableval=$enable_conio;
24331 if test x$enableval = xno; then
24341 # Check whether --enable-ipv6 was given.
24342 if test "${enable_ipv6+set}" = set; then
24343 enableval=$enable_ipv6;
24344 if test x$enableval = xno; then
24352 if test x$support_ipv6 = xyes; then
24353 cat >conftest.$ac_ext <<_ACEOF
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h. */
24359 #include <sys/types.h>
24360 #include <sys/socket.h>
24361 #include <netinet/in.h>
24365 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (ac_try="$ac_link"
24372 case "(($ac_try" in
24373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374 *) ac_try_echo=$ac_try;;
24376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24377 (eval "$ac_link") 2>conftest.er1
24379 grep -v '^ *+' conftest.er1 >conftest.err
24381 cat conftest.err >&5
24382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 (exit $ac_status); } && {
24384 test -z "$ac_c_werror_flag" ||
24385 test ! -s conftest.err
24386 } && test -s conftest$ac_exeext &&
24387 $as_test_x conftest$ac_exeext; then
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24397 conftest$ac_exeext conftest.$ac_ext
24400 if test x$support_ipv6 = xyes; then
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_IPV6 1
24409 if test x$support_conio = xyes; then
24410 if test "${ac_cv_header_termcap_h+set}" = set; then
24411 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24412 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24413 if test "${ac_cv_header_termcap_h+set}" = set; then
24414 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24417 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24419 # Is the header compilable?
24420 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24421 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 #include <termcap.h>
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438 (eval "$ac_compile") 2>conftest.er1
24440 grep -v '^ *+' conftest.er1 >conftest.err
24442 cat conftest.err >&5
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); } && {
24445 test -z "$ac_c_werror_flag" ||
24446 test ! -s conftest.err
24447 } && test -s conftest.$ac_objext; then
24448 ac_header_compiler=yes
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 ac_header_compiler=no
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458 echo "${ECHO_T}$ac_header_compiler" >&6; }
24460 # Is the header present?
24461 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24462 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 #include <termcap.h>
24471 if { (ac_try="$ac_cpp conftest.$ac_ext"
24472 case "(($ac_try" in
24473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24474 *) ac_try_echo=$ac_try;;
24476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24479 grep -v '^ *+' conftest.er1 >conftest.err
24481 cat conftest.err >&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } >/dev/null && {
24484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24485 test ! -s conftest.err
24487 ac_header_preproc=yes
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24492 ac_header_preproc=no
24495 rm -f conftest.err conftest.$ac_ext
24496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24497 echo "${ECHO_T}$ac_header_preproc" >&6; }
24499 # So? What about this header?
24500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24502 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24503 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24504 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24505 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24506 ac_header_preproc=yes
24509 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24510 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24511 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24512 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24513 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24514 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24516 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24518 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24520 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24524 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24525 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24526 if test "${ac_cv_header_termcap_h+set}" = set; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24529 ac_cv_header_termcap_h=$ac_header_preproc
24531 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24532 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24535 if test $ac_cv_header_termcap_h = yes; then
24536 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24537 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24538 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24539 echo $ECHO_N "(cached) $ECHO_C" >&6
24541 ac_check_lib_save_LIBS=$LIBS
24542 LIBS="-ltermcap $LIBS"
24543 cat >conftest.$ac_ext <<_ACEOF
24546 cat confdefs.h >>conftest.$ac_ext
24547 cat >>conftest.$ac_ext <<_ACEOF
24548 /* end confdefs.h. */
24550 /* Override any GCC internal prototype to avoid an error.
24551 Use char because int might match the return type of a GCC
24552 builtin and then its argument prototype would still apply. */
24565 rm -f conftest.$ac_objext conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_link") 2>conftest.er1
24574 grep -v '^ *+' conftest.er1 >conftest.err
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest$ac_exeext &&
24582 $as_test_x conftest$ac_exeext; then
24583 ac_cv_lib_termcap_tgetent=yes
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 ac_cv_lib_termcap_tgetent=no
24591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24592 conftest$ac_exeext conftest.$ac_ext
24593 LIBS=$ac_check_lib_save_LIBS
24595 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24596 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24597 if test $ac_cv_lib_termcap_tgetent = yes; then
24598 CONS_LIBS="-ltermcap"
24602 support_readline=no
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_CONIO 1
24610 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24611 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24612 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24613 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 ac_check_lib_save_LIBS=$LIBS
24616 LIBS="-lncurses $LIBS"
24617 cat >conftest.$ac_ext <<_ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h. */
24624 /* Override any GCC internal prototype to avoid an error.
24625 Use char because int might match the return type of a GCC
24626 builtin and then its argument prototype would still apply. */
24639 rm -f conftest.$ac_objext conftest$ac_exeext
24640 if { (ac_try="$ac_link"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_link") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest$ac_exeext &&
24656 $as_test_x conftest$ac_exeext; then
24657 ac_cv_lib_ncurses_tgetent=yes
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_cv_lib_ncurses_tgetent=no
24665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24666 conftest$ac_exeext conftest.$ac_ext
24667 LIBS=$ac_check_lib_save_LIBS
24669 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24670 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24671 if test $ac_cv_lib_ncurses_tgetent = yes; then
24672 CONS_LIBS="-lncurses"
24676 support_readline=no
24678 cat >>confdefs.h <<\_ACEOF
24679 #define HAVE_CONIO 1
24692 for ac_header in curses.h
24694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24701 ac_res=`eval echo '${'$as_ac_Header'}'`
24702 { echo "$as_me:$LINENO: result: $ac_res" >&5
24703 echo "${ECHO_T}$ac_res" >&6; }
24705 # Is the header compilable?
24706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24714 $ac_includes_default
24715 #include <$ac_header>
24717 rm -f conftest.$ac_objext
24718 if { (ac_try="$ac_compile"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 ac_header_compiler=yes
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_header_compiler=no
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24744 echo "${ECHO_T}$ac_header_compiler" >&6; }
24746 # Is the header present?
24747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 #include <$ac_header>
24757 if { (ac_try="$ac_cpp conftest.$ac_ext"
24758 case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24765 grep -v '^ *+' conftest.er1 >conftest.err
24767 cat conftest.err >&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } >/dev/null && {
24770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24773 ac_header_preproc=yes
24775 echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24778 ac_header_preproc=no
24781 rm -f conftest.err conftest.$ac_ext
24782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24783 echo "${ECHO_T}$ac_header_preproc" >&6; }
24785 # So? What about this header?
24786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24792 ac_header_preproc=yes
24795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 eval "$as_ac_Header=\$ac_header_preproc"
24817 ac_res=`eval echo '${'$as_ac_Header'}'`
24818 { echo "$as_me:$LINENO: result: $ac_res" >&5
24819 echo "${ECHO_T}$ac_res" >&6; }
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24831 { echo "$as_me:$LINENO: checking for term.h" >&5
24832 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24833 if test "${ac_cv_header_term_h+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24843 #include <curses.h>
24849 rm -f conftest.$ac_objext
24850 if { (ac_try="$ac_compile"
24851 case "(($ac_try" in
24852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853 *) ac_try_echo=$ac_try;;
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856 (eval "$ac_compile") 2>conftest.er1
24858 grep -v '^ *+' conftest.er1 >conftest.err
24860 cat conftest.err >&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest.$ac_objext; then
24866 ac_cv_header_term_h=yes
24868 echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 ac_cv_header_term_h=no
24874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24877 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24878 if test $ac_cv_header_term_h = yes; then
24879 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24880 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24881 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24884 ac_check_lib_save_LIBS=$LIBS
24885 LIBS="-lcurses $LIBS"
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24893 /* Override any GCC internal prototype to avoid an error.
24894 Use char because int might match the return type of a GCC
24895 builtin and then its argument prototype would still apply. */
24908 rm -f conftest.$ac_objext conftest$ac_exeext
24909 if { (ac_try="$ac_link"
24910 case "(($ac_try" in
24911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_link") 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && {
24922 test -z "$ac_c_werror_flag" ||
24923 test ! -s conftest.err
24924 } && test -s conftest$ac_exeext &&
24925 $as_test_x conftest$ac_exeext; then
24926 ac_cv_lib_curses_tgetent=yes
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_cv_lib_curses_tgetent=no
24934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24935 conftest$ac_exeext conftest.$ac_ext
24936 LIBS=$ac_check_lib_save_LIBS
24938 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24939 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24940 if test $ac_cv_lib_curses_tgetent = yes; then
24941 CONS_LIBS="-lcurses"
24945 support_readline=no
24947 cat >>confdefs.h <<\_ACEOF
24948 #define HAVE_CONIO 1
24956 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24967 # Check whether --enable-readline was given.
24968 if test "${enable_readline+set}" = set; then
24969 enableval=$enable_readline;
24970 if test x$enableval = xno; then
24971 support_readline=no
24980 if test x$support_readline = xyes; then
24982 # Check whether --with-readline was given.
24983 if test "${with_readline+set}" = set; then
24984 withval=$with_readline;
24985 case "$with_readline" in
24990 if test -f ${with_readline}/readline.h; then
24991 CONS_INC="-I${with_readline}"
24992 CONS_LDFLAGS="-L$with_readline"
24993 elif test -f ${with_readline}/include/readline/readline.h; then
24994 CONS_INC="-I${with_readline}/include/readline"
24995 CONS_LDFLAGS="-L${with_readline}/lib"
24996 with_readline="${with_readline}/include/readline"
24998 with_readline="/usr/include/readline"
25001 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25003 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25004 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25006 echo $ECHO_N "(cached) $ECHO_C" >&6
25008 ac_res=`eval echo '${'$as_ac_Header'}'`
25009 { echo "$as_me:$LINENO: result: $ac_res" >&5
25010 echo "${ECHO_T}$ac_res" >&6; }
25012 # Is the header compilable?
25013 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25014 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25022 #include <${with_readline}/readline.h>
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031 (eval "$ac_compile") 2>conftest.er1
25033 grep -v '^ *+' conftest.er1 >conftest.err
25035 cat conftest.err >&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } && {
25038 test -z "$ac_c_werror_flag" ||
25039 test ! -s conftest.err
25040 } && test -s conftest.$ac_objext; then
25041 ac_header_compiler=yes
25043 echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25046 ac_header_compiler=no
25049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25051 echo "${ECHO_T}$ac_header_compiler" >&6; }
25053 # Is the header present?
25054 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25055 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 #include <${with_readline}/readline.h>
25064 if { (ac_try="$ac_cpp conftest.$ac_ext"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } >/dev/null && {
25077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25080 ac_header_preproc=yes
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 ac_header_preproc=no
25088 rm -f conftest.err conftest.$ac_ext
25089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25090 echo "${ECHO_T}$ac_header_preproc" >&6; }
25092 # So? What about this header?
25093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25095 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25096 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25098 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25099 ac_header_preproc=yes
25102 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25103 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25104 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25105 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25106 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25107 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25108 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25109 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25110 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25111 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25113 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25117 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 eval "$as_ac_Header=\$ac_header_preproc"
25124 ac_res=`eval echo '${'$as_ac_Header'}'`
25125 { echo "$as_me:$LINENO: result: $ac_res" >&5
25126 echo "${ECHO_T}$ac_res" >&6; }
25129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25132 cat >>confdefs.h <<\_ACEOF
25133 #define HAVE_READLINE 1
25136 CONS_LIBS="-lreadline -lhistory -ltermcap"
25142 echo "readline.h not found. readline turned off ..."
25154 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25155 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25156 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25157 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25158 echo $ECHO_N "(cached) $ECHO_C" >&6
25160 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25161 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25163 # Is the header compilable?
25164 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25165 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25166 cat >conftest.$ac_ext <<_ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172 $ac_includes_default
25173 #include </usr/include/readline/readline.h>
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179 *) ac_try_echo=$ac_try;;
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182 (eval "$ac_compile") 2>conftest.er1
25184 grep -v '^ *+' conftest.er1 >conftest.err
25186 cat conftest.err >&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); } && {
25189 test -z "$ac_c_werror_flag" ||
25190 test ! -s conftest.err
25191 } && test -s conftest.$ac_objext; then
25192 ac_header_compiler=yes
25194 echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25197 ac_header_compiler=no
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25202 echo "${ECHO_T}$ac_header_compiler" >&6; }
25204 # Is the header present?
25205 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25206 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25207 cat >conftest.$ac_ext <<_ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h. */
25213 #include </usr/include/readline/readline.h>
25215 if { (ac_try="$ac_cpp conftest.$ac_ext"
25216 case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } >/dev/null && {
25228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25229 test ! -s conftest.err
25231 ac_header_preproc=yes
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 ac_header_preproc=no
25239 rm -f conftest.err conftest.$ac_ext
25240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25241 echo "${ECHO_T}$ac_header_preproc" >&6; }
25243 # So? What about this header?
25244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25246 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25247 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25248 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25249 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25250 ac_header_preproc=yes
25253 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25254 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25256 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25258 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25260 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25262 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25263 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25264 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25268 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25269 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25270 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25275 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25276 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25279 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25282 cat >>confdefs.h <<\_ACEOF
25283 #define HAVE_READLINE 1
25287 CONS_INC="-I/usr/include/readline"
25288 CONS_LIBS="-lreadline -ltermcap"
25292 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25294 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25295 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25297 echo $ECHO_N "(cached) $ECHO_C" >&6
25299 ac_res=`eval echo '${'$as_ac_Header'}'`
25300 { echo "$as_me:$LINENO: result: $ac_res" >&5
25301 echo "${ECHO_T}$ac_res" >&6; }
25303 # Is the header compilable?
25304 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25305 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 $ac_includes_default
25313 #include <${TOP_DIR}/depkgs/readline/readline.h>
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_compile") 2>conftest.er1
25324 grep -v '^ *+' conftest.er1 >conftest.err
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } && {
25329 test -z "$ac_c_werror_flag" ||
25330 test ! -s conftest.err
25331 } && test -s conftest.$ac_objext; then
25332 ac_header_compiler=yes
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25337 ac_header_compiler=no
25340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25342 echo "${ECHO_T}$ac_header_compiler" >&6; }
25344 # Is the header present?
25345 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25346 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25347 cat >conftest.$ac_ext <<_ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h. */
25353 #include <${TOP_DIR}/depkgs/readline/readline.h>
25355 if { (ac_try="$ac_cpp conftest.$ac_ext"
25356 case "(($ac_try" in
25357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358 *) ac_try_echo=$ac_try;;
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25363 grep -v '^ *+' conftest.er1 >conftest.err
25365 cat conftest.err >&5
25366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367 (exit $ac_status); } >/dev/null && {
25368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25369 test ! -s conftest.err
25371 ac_header_preproc=yes
25373 echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 ac_header_preproc=no
25379 rm -f conftest.err conftest.$ac_ext
25380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25381 echo "${ECHO_T}$ac_header_preproc" >&6; }
25383 # So? What about this header?
25384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25386 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25387 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25389 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25390 ac_header_preproc=yes
25393 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25395 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25397 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25398 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25399 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25400 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25402 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25404 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25408 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25409 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25411 echo $ECHO_N "(cached) $ECHO_C" >&6
25413 eval "$as_ac_Header=\$ac_header_preproc"
25415 ac_res=`eval echo '${'$as_ac_Header'}'`
25416 { echo "$as_me:$LINENO: result: $ac_res" >&5
25417 echo "${ECHO_T}$ac_res" >&6; }
25420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25423 cat >>confdefs.h <<\_ACEOF
25424 #define HAVE_READLINE 1
25428 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25429 CONS_LIBS="-lreadline -lhistory -ltermcap"
25430 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25431 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25436 echo "readline.h not found. readline turned off ..."
25463 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25464 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25465 if test "${ac_cv_header_stat_broken+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 #include <sys/types.h>
25475 #include <sys/stat.h>
25477 #if defined S_ISBLK && defined S_IFDIR
25478 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25481 #if defined S_ISBLK && defined S_IFCHR
25482 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25485 #if defined S_ISLNK && defined S_IFREG
25486 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25489 #if defined S_ISSOCK && defined S_IFREG
25490 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501 (eval "$ac_compile") 2>conftest.er1
25503 grep -v '^ *+' conftest.er1 >conftest.err
25505 cat conftest.err >&5
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } && {
25508 test -z "$ac_c_werror_flag" ||
25509 test ! -s conftest.err
25510 } && test -s conftest.$ac_objext; then
25511 ac_cv_header_stat_broken=no
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 ac_cv_header_stat_broken=yes
25519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25521 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25522 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25523 if test $ac_cv_header_stat_broken = yes; then
25525 cat >>confdefs.h <<\_ACEOF
25526 #define STAT_MACROS_BROKEN 1
25536 ac_header_dirent=no
25537 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25538 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25539 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25540 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 #include <sys/types.h>
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25569 (eval "$ac_compile") 2>conftest.er1
25571 grep -v '^ *+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } && {
25576 test -z "$ac_c_werror_flag" ||
25577 test ! -s conftest.err
25578 } && test -s conftest.$ac_objext; then
25579 eval "$as_ac_Header=yes"
25581 echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25584 eval "$as_ac_Header=no"
25587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589 ac_res=`eval echo '${'$as_ac_Header'}'`
25590 { echo "$as_me:$LINENO: result: $ac_res" >&5
25591 echo "${ECHO_T}$ac_res" >&6; }
25592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25593 cat >>confdefs.h <<_ACEOF
25594 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25597 ac_header_dirent=$ac_hdr; break
25601 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25602 if test $ac_header_dirent = dirent.h; then
25603 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25605 if test "${ac_cv_search_opendir+set}" = set; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 ac_func_search_save_LIBS=$LIBS
25609 cat >conftest.$ac_ext <<_ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25616 /* Override any GCC internal prototype to avoid an error.
25617 Use char because int might match the return type of a GCC
25618 builtin and then its argument prototype would still apply. */
25631 for ac_lib in '' dir; do
25632 if test -z "$ac_lib"; then
25633 ac_res="none required"
25636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25638 rm -f conftest.$ac_objext conftest$ac_exeext
25639 if { (ac_try="$ac_link"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645 (eval "$ac_link") 2>conftest.er1
25647 grep -v '^ *+' conftest.er1 >conftest.err
25649 cat conftest.err >&5
25650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest$ac_exeext &&
25655 $as_test_x conftest$ac_exeext; then
25656 ac_cv_search_opendir=$ac_res
25658 echo "$as_me: failed program was:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25666 if test "${ac_cv_search_opendir+set}" = set; then
25670 if test "${ac_cv_search_opendir+set}" = set; then
25673 ac_cv_search_opendir=no
25675 rm conftest.$ac_ext
25676 LIBS=$ac_func_search_save_LIBS
25678 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25679 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25680 ac_res=$ac_cv_search_opendir
25681 if test "$ac_res" != no; then
25682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25687 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25688 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25689 if test "${ac_cv_search_opendir+set}" = set; then
25690 echo $ECHO_N "(cached) $ECHO_C" >&6
25692 ac_func_search_save_LIBS=$LIBS
25693 cat >conftest.$ac_ext <<_ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25700 /* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25715 for ac_lib in '' x; do
25716 if test -z "$ac_lib"; then
25717 ac_res="none required"
25720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25722 rm -f conftest.$ac_objext conftest$ac_exeext
25723 if { (ac_try="$ac_link"
25724 case "(($ac_try" in
25725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726 *) ac_try_echo=$ac_try;;
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729 (eval "$ac_link") 2>conftest.er1
25731 grep -v '^ *+' conftest.er1 >conftest.err
25733 cat conftest.err >&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } && {
25736 test -z "$ac_c_werror_flag" ||
25737 test ! -s conftest.err
25738 } && test -s conftest$ac_exeext &&
25739 $as_test_x conftest$ac_exeext; then
25740 ac_cv_search_opendir=$ac_res
25742 echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25750 if test "${ac_cv_search_opendir+set}" = set; then
25754 if test "${ac_cv_search_opendir+set}" = set; then
25757 ac_cv_search_opendir=no
25759 rm conftest.$ac_ext
25760 LIBS=$ac_func_search_save_LIBS
25762 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25763 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25764 ac_res=$ac_cv_search_opendir
25765 if test "$ac_res" != no; then
25766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25779 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 cat >conftest.$ac_ext <<_ACEOF
25790 cat confdefs.h >>conftest.$ac_ext
25791 cat >>conftest.$ac_ext <<_ACEOF
25792 /* end confdefs.h. */
25793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25795 #define $ac_func innocuous_$ac_func
25797 /* System header to define __stub macros and hopefully few prototypes,
25798 which can conflict with char $ac_func (); below.
25799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25800 <limits.h> exists even on freestanding compilers. */
25803 # include <limits.h>
25805 # include <assert.h>
25810 /* Override any GCC internal prototype to avoid an error.
25811 Use char because int might match the return type of a GCC
25812 builtin and then its argument prototype would still apply. */
25817 /* The GNU C library defines this for functions which it implements
25818 to always fail with ENOSYS. Some functions are actually named
25819 something starting with __ and the normal name is an alias. */
25820 #if defined __stub_$ac_func || defined __stub___$ac_func
25827 return $ac_func ();
25832 rm -f conftest.$ac_objext conftest$ac_exeext
25833 if { (ac_try="$ac_link"
25834 case "(($ac_try" in
25835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25836 *) ac_try_echo=$ac_try;;
25838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25839 (eval "$ac_link") 2>conftest.er1
25841 grep -v '^ *+' conftest.er1 >conftest.err
25843 cat conftest.err >&5
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } && {
25846 test -z "$ac_c_werror_flag" ||
25847 test ! -s conftest.err
25848 } && test -s conftest$ac_exeext &&
25849 $as_test_x conftest$ac_exeext; then
25850 eval "$as_ac_var=yes"
25852 echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25855 eval "$as_ac_var=no"
25858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25859 conftest$ac_exeext conftest.$ac_ext
25861 ac_res=`eval echo '${'$as_ac_var'}'`
25862 { echo "$as_me:$LINENO: result: $ac_res" >&5
25863 echo "${ECHO_T}$ac_res" >&6; }
25864 if test `eval echo '${'$as_ac_var'}'` = yes; then
25865 cat >>confdefs.h <<_ACEOF
25866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25874 for ac_func in nanosleep nl_langinfo
25876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25882 cat >conftest.$ac_ext <<_ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25890 #define $ac_func innocuous_$ac_func
25892 /* System header to define __stub macros and hopefully few prototypes,
25893 which can conflict with char $ac_func (); below.
25894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25895 <limits.h> exists even on freestanding compilers. */
25898 # include <limits.h>
25900 # include <assert.h>
25905 /* Override any GCC internal prototype to avoid an error.
25906 Use char because int might match the return type of a GCC
25907 builtin and then its argument prototype would still apply. */
25912 /* The GNU C library defines this for functions which it implements
25913 to always fail with ENOSYS. Some functions are actually named
25914 something starting with __ and the normal name is an alias. */
25915 #if defined __stub_$ac_func || defined __stub___$ac_func
25922 return $ac_func ();
25927 rm -f conftest.$ac_objext conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25931 *) ac_try_echo=$ac_try;;
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934 (eval "$ac_link") 2>conftest.er1
25936 grep -v '^ *+' conftest.er1 >conftest.err
25938 cat conftest.err >&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } && {
25941 test -z "$ac_c_werror_flag" ||
25942 test ! -s conftest.err
25943 } && test -s conftest$ac_exeext &&
25944 $as_test_x conftest$ac_exeext; then
25945 eval "$as_ac_var=yes"
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25950 eval "$as_ac_var=no"
25953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25954 conftest$ac_exeext conftest.$ac_ext
25956 ac_res=`eval echo '${'$as_ac_var'}'`
25957 { echo "$as_me:$LINENO: result: $ac_res" >&5
25958 echo "${ECHO_T}$ac_res" >&6; }
25959 if test `eval echo '${'$as_ac_var'}'` = yes; then
25960 cat >>confdefs.h <<_ACEOF
25961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25968 for ac_header in varargs.h
25970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 ac_res=`eval echo '${'$as_ac_Header'}'`
25978 { echo "$as_me:$LINENO: result: $ac_res" >&5
25979 echo "${ECHO_T}$ac_res" >&6; }
25981 # Is the header compilable?
25982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25984 cat >conftest.$ac_ext <<_ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h. */
25990 $ac_includes_default
25991 #include <$ac_header>
25993 rm -f conftest.$ac_objext
25994 if { (ac_try="$ac_compile"
25995 case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26000 (eval "$ac_compile") 2>conftest.er1
26002 grep -v '^ *+' conftest.er1 >conftest.err
26004 cat conftest.err >&5
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } && {
26007 test -z "$ac_c_werror_flag" ||
26008 test ! -s conftest.err
26009 } && test -s conftest.$ac_objext; then
26010 ac_header_compiler=yes
26012 echo "$as_me: failed program was:" >&5
26013 sed 's/^/| /' conftest.$ac_ext >&5
26015 ac_header_compiler=no
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26020 echo "${ECHO_T}$ac_header_compiler" >&6; }
26022 # Is the header present?
26023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26025 cat >conftest.$ac_ext <<_ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h. */
26031 #include <$ac_header>
26033 if { (ac_try="$ac_cpp conftest.$ac_ext"
26034 case "(($ac_try" in
26035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036 *) ac_try_echo=$ac_try;;
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26041 grep -v '^ *+' conftest.er1 >conftest.err
26043 cat conftest.err >&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } >/dev/null && {
26046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26047 test ! -s conftest.err
26049 ac_header_preproc=yes
26051 echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26054 ac_header_preproc=no
26057 rm -f conftest.err conftest.$ac_ext
26058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26059 echo "${ECHO_T}$ac_header_preproc" >&6; }
26061 # So? What about this header?
26062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26068 ac_header_preproc=yes
26071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 eval "$as_ac_Header=\$ac_header_preproc"
26093 ac_res=`eval echo '${'$as_ac_Header'}'`
26094 { echo "$as_me:$LINENO: result: $ac_res" >&5
26095 echo "${ECHO_T}$ac_res" >&6; }
26098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26099 cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26109 { echo "$as_me:$LINENO: checking for Python support" >&5
26110 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26112 # Check whether --with-python was given.
26113 if test "${with_python+set}" = set; then
26114 withval=$with_python;
26117 if test "$withval" != "no"; then
26118 if test "$withval" = "yes"; then
26119 for python_root in /usr /usr/local /usr/sfw; do
26120 for ver in python2.2 python2.3 python2.4 python2.5; do
26121 if test -f $python_root/include/${ver}/Python.h; then
26122 PYTHON_INCDIR=-I$python_root/include/${ver}
26123 if test -d $python_root/lib64/${ver}/config; then
26124 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26126 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26133 if test x$PYTHON_INCDIR = x; then
26134 if test -f $prefix/include/Python.h; then
26135 PYTHON_INCDIR=-I$prefix/include
26136 if test -d $prefix/lib64/config; then
26137 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26139 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26142 { echo "$as_me:$LINENO: result: no" >&5
26143 echo "${ECHO_T}no" >&6; }
26144 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26145 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26146 { (exit 1); exit 1; }; }
26150 if test -f $withval/Python.h; then
26151 PYTHON_INCDIR=-I$withval
26152 PYTHON_LIBS="-L$withval/config -lpython"
26153 elif test -f $withval/include/Python.h; then
26154 PYTHON_INCDIR=-I$withval/include
26155 if test -d $withval/lib64/config; then
26156 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26158 PYTHON_LIBS="-L$withval/lib/config -lpython"
26160 elif test -f $withval/include/python/Python.h; then
26161 PYTHON_INCDIR=-I$withval/include/python
26162 if test -d $withval/lib64/python/config; then
26163 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26165 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26168 { echo "$as_me:$LINENO: result: no" >&5
26169 echo "${ECHO_T}no" >&6; }
26170 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26171 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26172 { (exit 1); exit 1; }; }
26176 cat >>confdefs.h <<\_ACEOF
26177 #define HAVE_PYTHON 1
26180 { echo "$as_me:$LINENO: result: yes" >&5
26181 echo "${ECHO_T}yes" >&6; }
26183 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26184 echo "$as_me: checking for more Python libs" >&6;}
26185 saved_LIBS="$LIBS"; LIBS=
26186 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26187 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26188 if test "${ac_cv_search_shm_open+set}" = set; then
26189 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 ac_func_search_save_LIBS=$LIBS
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26199 /* Override any GCC internal prototype to avoid an error.
26200 Use char because int might match the return type of a GCC
26201 builtin and then its argument prototype would still apply. */
26209 return shm_open ();
26214 for ac_lib in '' rt; do
26215 if test -z "$ac_lib"; then
26216 ac_res="none required"
26219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26221 rm -f conftest.$ac_objext conftest$ac_exeext
26222 if { (ac_try="$ac_link"
26223 case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228 (eval "$ac_link") 2>conftest.er1
26230 grep -v '^ *+' conftest.er1 >conftest.err
26232 cat conftest.err >&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); } && {
26235 test -z "$ac_c_werror_flag" ||
26236 test ! -s conftest.err
26237 } && test -s conftest$ac_exeext &&
26238 $as_test_x conftest$ac_exeext; then
26239 ac_cv_search_shm_open=$ac_res
26241 echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26249 if test "${ac_cv_search_shm_open+set}" = set; then
26253 if test "${ac_cv_search_shm_open+set}" = set; then
26256 ac_cv_search_shm_open=no
26258 rm conftest.$ac_ext
26259 LIBS=$ac_func_search_save_LIBS
26261 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26262 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26263 ac_res=$ac_cv_search_shm_open
26264 if test "$ac_res" != no; then
26265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26270 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26271 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26272 if test "${ac_cv_lib_util_openpty+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 ac_check_lib_save_LIBS=$LIBS
26276 LIBS="-lutil $LIBS"
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26284 /* Override any GCC internal prototype to avoid an error.
26285 Use char because int might match the return type of a GCC
26286 builtin and then its argument prototype would still apply. */
26299 rm -f conftest.$ac_objext conftest$ac_exeext
26300 if { (ac_try="$ac_link"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306 (eval "$ac_link") 2>conftest.er1
26308 grep -v '^ *+' conftest.er1 >conftest.err
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } && {
26313 test -z "$ac_c_werror_flag" ||
26314 test ! -s conftest.err
26315 } && test -s conftest$ac_exeext &&
26316 $as_test_x conftest$ac_exeext; then
26317 ac_cv_lib_util_openpty=yes
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ac_cv_lib_util_openpty=no
26325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26326 conftest$ac_exeext conftest.$ac_ext
26327 LIBS=$ac_check_lib_save_LIBS
26329 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26330 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26331 if test $ac_cv_lib_util_openpty = yes; then
26332 cat >>confdefs.h <<_ACEOF
26333 #define HAVE_LIBUTIL 1
26336 LIBS="-lutil $LIBS"
26340 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26343 { echo "$as_me:$LINENO: result: no" >&5
26344 echo "${ECHO_T}no" >&6; }
26349 { echo "$as_me:$LINENO: result: no" >&5
26350 echo "${ECHO_T}no" >&6; }
26358 { echo "$as_me:$LINENO: checking for socket" >&5
26359 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26360 if test "${ac_cv_func_socket+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26371 #define socket innocuous_socket
26373 /* System header to define __stub macros and hopefully few prototypes,
26374 which can conflict with char socket (); below.
26375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26376 <limits.h> exists even on freestanding compilers. */
26379 # include <limits.h>
26381 # include <assert.h>
26386 /* Override any GCC internal prototype to avoid an error.
26387 Use char because int might match the return type of a GCC
26388 builtin and then its argument prototype would still apply. */
26393 /* The GNU C library defines this for functions which it implements
26394 to always fail with ENOSYS. Some functions are actually named
26395 something starting with __ and the normal name is an alias. */
26396 #if defined __stub_socket || defined __stub___socket
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (ac_try="$ac_link"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_link") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest$ac_exeext &&
26425 $as_test_x conftest$ac_exeext; then
26426 ac_cv_func_socket=yes
26428 echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431 ac_cv_func_socket=no
26434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26435 conftest$ac_exeext conftest.$ac_ext
26437 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26438 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26439 if test $ac_cv_func_socket = yes; then
26440 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26441 echo "${ECHO_T}using libc's socket" >&6; }
26444 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26445 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26446 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26447 echo $ECHO_N "(cached) $ECHO_C" >&6
26449 ac_check_lib_save_LIBS=$LIBS
26450 LIBS="-lxnet $LIBS"
26451 cat >conftest.$ac_ext <<_ACEOF
26454 cat confdefs.h >>conftest.$ac_ext
26455 cat >>conftest.$ac_ext <<_ACEOF
26456 /* end confdefs.h. */
26458 /* Override any GCC internal prototype to avoid an error.
26459 Use char because int might match the return type of a GCC
26460 builtin and then its argument prototype would still apply. */
26473 rm -f conftest.$ac_objext conftest$ac_exeext
26474 if { (ac_try="$ac_link"
26475 case "(($ac_try" in
26476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26477 *) ac_try_echo=$ac_try;;
26479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26480 (eval "$ac_link") 2>conftest.er1
26482 grep -v '^ *+' conftest.er1 >conftest.err
26484 cat conftest.err >&5
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } && {
26487 test -z "$ac_c_werror_flag" ||
26488 test ! -s conftest.err
26489 } && test -s conftest$ac_exeext &&
26490 $as_test_x conftest$ac_exeext; then
26491 ac_cv_lib_xnet_socket=yes
26493 echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26496 ac_cv_lib_xnet_socket=no
26499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26500 conftest$ac_exeext conftest.$ac_ext
26501 LIBS=$ac_check_lib_save_LIBS
26503 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26504 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26505 if test $ac_cv_lib_xnet_socket = yes; then
26506 cat >>confdefs.h <<_ACEOF
26507 #define HAVE_LIBXNET 1
26510 LIBS="-lxnet $LIBS"
26515 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26516 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26517 if test "${ac_cv_lib_socket_socket+set}" = set; then
26518 echo $ECHO_N "(cached) $ECHO_C" >&6
26520 ac_check_lib_save_LIBS=$LIBS
26521 LIBS="-lsocket $LIBS"
26522 cat >conftest.$ac_ext <<_ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26529 /* Override any GCC internal prototype to avoid an error.
26530 Use char because int might match the return type of a GCC
26531 builtin and then its argument prototype would still apply. */
26544 rm -f conftest.$ac_objext conftest$ac_exeext
26545 if { (ac_try="$ac_link"
26546 case "(($ac_try" in
26547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26548 *) ac_try_echo=$ac_try;;
26550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26551 (eval "$ac_link") 2>conftest.er1
26553 grep -v '^ *+' conftest.er1 >conftest.err
26555 cat conftest.err >&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); } && {
26558 test -z "$ac_c_werror_flag" ||
26559 test ! -s conftest.err
26560 } && test -s conftest$ac_exeext &&
26561 $as_test_x conftest$ac_exeext; then
26562 ac_cv_lib_socket_socket=yes
26564 echo "$as_me: failed program was:" >&5
26565 sed 's/^/| /' conftest.$ac_ext >&5
26567 ac_cv_lib_socket_socket=no
26570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26571 conftest$ac_exeext conftest.$ac_ext
26572 LIBS=$ac_check_lib_save_LIBS
26574 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26575 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26576 if test $ac_cv_lib_socket_socket = yes; then
26577 cat >>confdefs.h <<_ACEOF
26578 #define HAVE_LIBSOCKET 1
26581 LIBS="-lsocket $LIBS"
26586 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26587 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26588 if test "${ac_cv_lib_inet_socket+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 ac_check_lib_save_LIBS=$LIBS
26592 LIBS="-linet $LIBS"
26593 cat >conftest.$ac_ext <<_ACEOF
26596 cat confdefs.h >>conftest.$ac_ext
26597 cat >>conftest.$ac_ext <<_ACEOF
26598 /* end confdefs.h. */
26600 /* Override any GCC internal prototype to avoid an error.
26601 Use char because int might match the return type of a GCC
26602 builtin and then its argument prototype would still apply. */
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (ac_try="$ac_link"
26617 case "(($ac_try" in
26618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619 *) ac_try_echo=$ac_try;;
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622 (eval "$ac_link") 2>conftest.er1
26624 grep -v '^ *+' conftest.er1 >conftest.err
26626 cat conftest.err >&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } && {
26629 test -z "$ac_c_werror_flag" ||
26630 test ! -s conftest.err
26631 } && test -s conftest$ac_exeext &&
26632 $as_test_x conftest$ac_exeext; then
26633 ac_cv_lib_inet_socket=yes
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26638 ac_cv_lib_inet_socket=no
26641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26642 conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26645 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26646 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26647 if test $ac_cv_lib_inet_socket = yes; then
26648 cat >>confdefs.h <<_ACEOF
26649 #define HAVE_LIBINET 1
26652 LIBS="-linet $LIBS"
26662 # Check whether --with-tcp-wrappers was given.
26663 if test "${with_tcp_wrappers+set}" = set; then
26664 withval=$with_tcp_wrappers;
26665 if test "x$withval" != "xno" ; then
26667 LIBS="$saved_LIBS -lwrap"
26668 { echo "$as_me:$LINENO: checking for libwrap" >&5
26669 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26670 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26671 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26672 if test "${ac_cv_search_nanosleep+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26675 ac_func_search_save_LIBS=$LIBS
26676 cat >conftest.$ac_ext <<_ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26683 /* Override any GCC internal prototype to avoid an error.
26684 Use char because int might match the return type of a GCC
26685 builtin and then its argument prototype would still apply. */
26693 return nanosleep ();
26698 for ac_lib in '' rt; do
26699 if test -z "$ac_lib"; then
26700 ac_res="none required"
26703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26705 rm -f conftest.$ac_objext conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709 *) ac_try_echo=$ac_try;;
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712 (eval "$ac_link") 2>conftest.er1
26714 grep -v '^ *+' conftest.er1 >conftest.err
26716 cat conftest.err >&5
26717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718 (exit $ac_status); } && {
26719 test -z "$ac_c_werror_flag" ||
26720 test ! -s conftest.err
26721 } && test -s conftest$ac_exeext &&
26722 $as_test_x conftest$ac_exeext; then
26723 ac_cv_search_nanosleep=$ac_res
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26733 if test "${ac_cv_search_nanosleep+set}" = set; then
26737 if test "${ac_cv_search_nanosleep+set}" = set; then
26740 ac_cv_search_nanosleep=no
26742 rm conftest.$ac_ext
26743 LIBS=$ac_func_search_save_LIBS
26745 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26746 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26747 ac_res=$ac_cv_search_nanosleep
26748 if test "$ac_res" != no; then
26749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26753 cat >conftest.$ac_ext <<_ACEOF
26756 cat confdefs.h >>conftest.$ac_ext
26757 cat >>conftest.$ac_ext <<_ACEOF
26758 /* end confdefs.h. */
26760 #include <sys/types.h>
26762 int deny_severity = 0;
26763 int allow_severity = 0;
26764 struct request_info *req;
26776 rm -f conftest.$ac_objext conftest$ac_exeext
26777 if { (ac_try="$ac_link"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_link") 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest$ac_exeext &&
26793 $as_test_x conftest$ac_exeext; then
26795 { echo "$as_me:$LINENO: result: yes" >&5
26796 echo "${ECHO_T}yes" >&6; }
26798 cat >>confdefs.h <<\_ACEOF
26799 #define HAVE_LIBWRAP 1
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26811 LIBS="$saved_LIBS -lwrap -lnsl"
26812 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26813 cat >conftest.$ac_ext <<_ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26820 #include <sys/types.h>
26822 int deny_severity = 0;
26823 int allow_severity = 0;
26824 struct request_info *req;
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (ac_try="$ac_link"
26838 case "(($ac_try" in
26839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26840 *) ac_try_echo=$ac_try;;
26842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26843 (eval "$ac_link") 2>conftest.er1
26845 grep -v '^ *+' conftest.er1 >conftest.err
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } && {
26850 test -z "$ac_c_werror_flag" ||
26851 test ! -s conftest.err
26852 } && test -s conftest$ac_exeext &&
26853 $as_test_x conftest$ac_exeext; then
26855 { echo "$as_me:$LINENO: result: yes" >&5
26856 echo "${ECHO_T}yes" >&6; }
26858 cat >>confdefs.h <<\_ACEOF
26859 #define HAVE_LIBWRAP 1
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26871 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26872 echo "$as_me: error: *** libwrap missing" >&2;}
26873 { (exit 1); exit 1; }; }
26878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26879 conftest$ac_exeext conftest.$ac_ext
26884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26885 conftest$ac_exeext conftest.$ac_ext
26892 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26893 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26895 # Check whether --with-openssl was given.
26896 if test "${with_openssl+set}" = set; then
26897 withval=$with_openssl;
26898 with_openssl_directory=${withval}
26904 if test "x$with_openssl_directory" != "xno"; then
26905 OPENSSL_LIBS="-lssl -lcrypto"
26908 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26910 # Make sure the $with_openssl_directory also makes sense
26912 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26913 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26914 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26918 saved_LIBS="${LIBS}"
26919 saved_CFLAGS="${CFLAGS}"
26920 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26921 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26923 cat >conftest.$ac_ext <<_ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26930 #include <openssl/ssl.h>
26936 CRYPTO_set_id_callback(NULL);
26942 rm -f conftest.$ac_objext conftest$ac_exeext
26943 if { (ac_try="$ac_link"
26944 case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_link") 2>conftest.er1
26951 grep -v '^ *+' conftest.er1 >conftest.err
26953 cat conftest.err >&5
26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955 (exit $ac_status); } && {
26956 test -z "$ac_c_werror_flag" ||
26957 test ! -s conftest.err
26958 } && test -s conftest$ac_exeext &&
26959 $as_test_x conftest$ac_exeext; then
26962 support_crypto="yes"
26965 echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26975 conftest$ac_exeext conftest.$ac_ext
26977 cat >conftest.$ac_ext <<_ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26984 #include <openssl/evp.h>
26996 rm -f conftest.$ac_objext conftest$ac_exeext
26997 if { (ac_try="$ac_link"
26998 case "(($ac_try" in
26999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27000 *) ac_try_echo=$ac_try;;
27002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27003 (eval "$ac_link") 2>conftest.er1
27005 grep -v '^ *+' conftest.er1 >conftest.err
27007 cat conftest.err >&5
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } && {
27010 test -z "$ac_c_werror_flag" ||
27011 test ! -s conftest.err
27012 } && test -s conftest$ac_exeext &&
27013 $as_test_x conftest$ac_exeext; then
27015 ac_cv_openssl_sha2="yes"
27018 echo "$as_me: failed program was:" >&5
27019 sed 's/^/| /' conftest.$ac_ext >&5
27022 ac_cv_openssl_sha2="no"
27027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27028 conftest$ac_exeext conftest.$ac_ext
27030 cat >conftest.$ac_ext <<_ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27037 #include <openssl/evp.h>
27049 rm -f conftest.$ac_objext conftest$ac_exeext
27050 if { (ac_try="$ac_link"
27051 case "(($ac_try" in
27052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_link") 2>conftest.er1
27058 grep -v '^ *+' conftest.er1 >conftest.err
27060 cat conftest.err >&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } && {
27063 test -z "$ac_c_werror_flag" ||
27064 test ! -s conftest.err
27065 } && test -s conftest$ac_exeext &&
27066 $as_test_x conftest$ac_exeext; then
27068 ac_cv_openssl_export="no"
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27075 ac_cv_openssl_export="yes"
27080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27081 conftest$ac_exeext conftest.$ac_ext
27083 LIBS="${saved_LIBS}"
27084 CFLAGS="${saved_CFLAGS}"
27086 if test "$support_tls" = "yes"; then
27088 cat >>confdefs.h <<\_ACEOF
27089 #define HAVE_OPENSSL 1
27093 cat >>confdefs.h <<\_ACEOF
27098 cat >>confdefs.h <<\_ACEOF
27099 #define HAVE_CRYPTO 1
27104 if test "$ac_cv_openssl_sha2" = "yes"; then
27106 cat >>confdefs.h <<\_ACEOF
27107 #define HAVE_SHA2 1
27112 if test "$ac_cv_openssl_export" = "yes"; then
27114 cat >>confdefs.h <<\_ACEOF
27115 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27121 support_crypto="no"
27126 { echo "$as_me:$LINENO: result: $support_tls" >&5
27127 echo "${ECHO_T}$support_tls" >&6; }
27131 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27132 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27133 if test "${ac_cv_search_dlopen+set}" = set; then
27134 echo $ECHO_N "(cached) $ECHO_C" >&6
27136 ac_func_search_save_LIBS=$LIBS
27137 cat >conftest.$ac_ext <<_ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h. */
27144 /* Override any GCC internal prototype to avoid an error.
27145 Use char because int might match the return type of a GCC
27146 builtin and then its argument prototype would still apply. */
27159 for ac_lib in '' dl; do
27160 if test -z "$ac_lib"; then
27161 ac_res="none required"
27164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27166 rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (ac_try="$ac_link"
27168 case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_link") 2>conftest.er1
27175 grep -v '^ *+' conftest.er1 >conftest.err
27177 cat conftest.err >&5
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } && {
27180 test -z "$ac_c_werror_flag" ||
27181 test ! -s conftest.err
27182 } && test -s conftest$ac_exeext &&
27183 $as_test_x conftest$ac_exeext; then
27184 ac_cv_search_dlopen=$ac_res
27186 echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27194 if test "${ac_cv_search_dlopen+set}" = set; then
27198 if test "${ac_cv_search_dlopen+set}" = set; then
27201 ac_cv_search_dlopen=no
27203 rm conftest.$ac_ext
27204 LIBS=$ac_func_search_save_LIBS
27206 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27207 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27208 ac_res=$ac_cv_search_dlopen
27209 if test "$ac_res" != no; then
27210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27215 working_dir=`eval echo ${prefix}/var/bacula/working`
27217 # Check whether --with-working-dir was given.
27218 if test "${with_working_dir+set}" = set; then
27219 withval=$with_working_dir;
27220 if test "x$withval" != "xno" ; then
27221 working_dir=$withval
27232 # Check whether --with-archivedir was given.
27233 if test "${with_archivedir+set}" = set; then
27234 withval=$with_archivedir;
27235 if test "x$withval" != "xno" ; then
27236 archivedir=$withval
27245 scriptdir=`eval echo ${sysconfdir}`
27247 # Check whether --with-scriptdir was given.
27248 if test "${with_scriptdir+set}" = set; then
27249 withval=$with_scriptdir;
27250 if test "x$withval" != "xno" ; then
27260 # ------------------------------------------
27261 # Where to place plugindir (script files)
27262 # ------------------------------------------
27263 plugindir=`eval echo ${sysconfdir}`
27265 # Check whether --with-plugindir was given.
27266 if test "${with_plugindir+set}" = set; then
27267 withval=$with_plugindir;
27268 if test "x$withval" != "xno" ; then
27278 dump_email=root@localhost
27280 # Check whether --with-dump-email was given.
27281 if test "${with_dump_email+set}" = set; then
27282 withval=$with_dump_email;
27283 if test "x$withval" != "xno" ; then
27284 dump_email=$withval
27293 job_email=root@localhost
27295 # Check whether --with-job-email was given.
27296 if test "${with_job_email+set}" = set; then
27297 withval=$with_job_email;
27298 if test "x$withval" != "xno" ; then
27308 smtp_host=localhost
27310 # Check whether --with-smtp_host was given.
27311 if test "${with_smtp_host+set}" = set; then
27312 withval=$with_smtp_host;
27313 if test "x$withval" != "xno" ; then
27325 # Check whether --with-pid-dir was given.
27326 if test "${with_pid_dir+set}" = set; then
27327 withval=$with_pid_dir;
27328 if test "x$withval" != "xno" ; then
27336 cat >>confdefs.h <<_ACEOF
27337 #define _PATH_BACULA_PIDDIR "$piddir"
27342 subsysdir=/var/run/subsys
27343 if test -d /var/run/subsys; then
27344 subsysdir=/var/run/subsys
27345 elif test -d /var/lock/subsys; then
27346 subsysdir=/var/lock/subsys
27348 subsysdir=/var/run/subsys
27351 # Check whether --with-subsys-dir was given.
27352 if test "${with_subsys_dir+set}" = set; then
27353 withval=$with_subsys_dir;
27354 if test "x$withval" != "xno" ; then
27366 # Check whether --with-baseport was given.
27367 if test "${with_baseport+set}" = set; then
27368 withval=$with_baseport;
27369 if test "x$withval" != "xno" ; then
27378 dir_port=`expr $baseport`
27379 fd_port=`expr $baseport + 1`
27380 sd_port=`expr $fd_port + 1`
27388 # Check whether --with-dir-password was given.
27389 if test "${with_dir_password+set}" = set; then
27390 withval=$with_dir_password;
27391 if test "x$withval" != "xno" ; then
27392 dir_password=$withval
27399 if test "x$dir_password" = "x" ; then
27400 if test "x$OPENSSL" = "xnone" ; then
27401 key=`autoconf/randpass 33`
27403 key=`openssl rand -base64 33`
27410 # Check whether --with-fd-password was given.
27411 if test "${with_fd_password+set}" = set; then
27412 withval=$with_fd_password;
27413 if test "x$withval" != "xno" ; then
27414 fd_password=$withval
27421 if test "x$fd_password" = "x" ; then
27422 if test "x$OPENSSL" = "xnone" ; then
27423 key=`autoconf/randpass 37`
27425 key=`openssl rand -base64 33`
27432 # Check whether --with-sd-password was given.
27433 if test "${with_sd_password+set}" = set; then
27434 withval=$with_sd_password;
27435 if test "x$withval" != "xno" ; then
27436 sd_password=$withval
27443 if test "x$sd_password" = "x" ; then
27444 if test "x$OPENSSL" = "xnone" ; then
27445 key=`autoconf/randpass 41`
27447 key=`openssl rand -base64 33`
27454 # Check whether --with-mon-dir-password was given.
27455 if test "${with_mon_dir_password+set}" = set; then
27456 withval=$with_mon_dir_password;
27457 if test "x$withval" != "xno" ; then
27458 mon_dir_password=$withval
27465 if test "x$mon_dir_password" = "x" ; then
27466 if test "x$OPENSSL" = "xnone" ; then
27467 key=`autoconf/randpass 33`
27469 key=`openssl rand -base64 33`
27471 mon_dir_password=$key
27476 # Check whether --with-mon-fd-password was given.
27477 if test "${with_mon_fd_password+set}" = set; then
27478 withval=$with_mon_fd_password;
27479 if test "x$withval" != "xno" ; then
27480 mon_fd_password=$withval
27487 if test "x$mon_fd_password" = "x" ; then
27488 if test "x$OPENSSL" = "xnone" ; then
27489 key=`autoconf/randpass 37`
27491 key=`openssl rand -base64 33`
27493 mon_fd_password=$key
27498 # Check whether --with-mon-sd-password was given.
27499 if test "${with_mon_sd_password+set}" = set; then
27500 withval=$with_mon_sd_password;
27501 if test "x$withval" != "xno" ; then
27502 mon_sd_password=$withval
27509 if test "x$mon_sd_password" = "x" ; then
27510 if test "x$OPENSSL" = "xnone" ; then
27511 key=`autoconf/randpass 41`
27513 key=`openssl rand -base64 33`
27515 mon_sd_password=$key
27527 # Check whether --with-db_name was given.
27528 if test "${with_db_name+set}" = set; then
27529 withval=$with_db_name;
27530 if test "x$withval" != "x" ; then
27541 # Check whether --with-db_user was given.
27542 if test "${with_db_user+set}" = set; then
27543 withval=$with_db_user;
27544 if test "x$withval" != "x" ; then
27555 # Check whether --with-db_password was given.
27556 if test "${with_db_password+set}" = set; then
27557 withval=$with_db_password;
27558 if test "x$withval" != "x" ; then
27559 db_password=$withval
27569 # Check whether --with-db_port was given.
27570 if test "${with_db_port+set}" = set; then
27571 withval=$with_db_port;
27572 if test "x$withval" != "x" ; then
27582 # Handle users and groups for each daemon
27586 # Check whether --with-dir_user was given.
27587 if test "${with_dir_user+set}" = set; then
27588 withval=$with_dir_user;
27589 if test "x$withval" != "x" ; then
27599 # Check whether --with-dir_group was given.
27600 if test "${with_dir_group+set}" = set; then
27601 withval=$with_dir_group;
27602 if test "x$withval" != "x" ; then
27612 # Check whether --with-sd_user was given.
27613 if test "${with_sd_user+set}" = set; then
27614 withval=$with_sd_user;
27615 if test "x$withval" != "x" ; then
27625 # Check whether --with-sd_group was given.
27626 if test "${with_sd_group+set}" = set; then
27627 withval=$with_sd_group;
27628 if test "x$withval" != "x" ; then
27638 # Check whether --with-fd_user was given.
27639 if test "${with_fd_user+set}" = set; then
27640 withval=$with_fd_user;
27641 if test "x$withval" != "x" ; then
27651 # Check whether --with-fd_group was given.
27652 if test "${with_fd_group+set}" = set; then
27653 withval=$with_fd_group;
27654 if test "x$withval" != "x" ; then
27671 # Check whether --with-sbin-perm was given.
27672 if test "${with_sbin_perm+set}" = set; then
27673 withval=$with_sbin_perm;
27674 if test "x$withval" != "x" ; then
27687 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27688 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27690 # Check whether --with-postgresql was given.
27691 if test "${with_postgresql+set}" = set; then
27692 withval=$with_postgresql;
27693 if test "$withval" != "no"; then
27694 if test "$db_found" = "yes"; then
27695 { echo "$as_me:$LINENO: result: error" >&5
27696 echo "${ECHO_T}error" >&6; }
27697 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27698 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27699 { (exit 1); exit 1; }; };
27701 if test "$withval" = "yes"; then
27702 PG_CONFIG=`which pg_config`
27703 if test -n "$PG_CONFIG";then
27704 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27705 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27706 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27707 elif test -f /usr/local/include/libpq-fe.h; then
27708 POSTGRESQL_INCDIR=/usr/local/include
27709 if test -d /usr/local/lib64; then
27710 POSTGRESQL_LIBDIR=/usr/local/lib64
27712 POSTGRESQL_LIBDIR=/usr/local/lib
27714 POSTGRESQL_BINDIR=/usr/local/bin
27715 elif test -f /usr/include/libpq-fe.h; then
27716 POSTGRESQL_INCDIR=/usr/include
27717 if test -d /usr/lib64; then
27718 POSTGRESQL_LIBDIR=/usr/lib64
27720 POSTGRESQL_LIBDIR=/usr/lib
27722 POSTGRESQL_BINDIR=/usr/bin
27723 elif test -f /usr/include/pgsql/libpq-fe.h; then
27724 POSTGRESQL_INCDIR=/usr/include/pgsql
27725 if test -d /usr/lib64/pgsql; then
27726 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27728 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27730 POSTGRESQL_BINDIR=/usr/bin
27731 elif test -f /usr/include/postgresql/libpq-fe.h; then
27732 POSTGRESQL_INCDIR=/usr/include/postgresql
27733 if test -d /usr/lib64/postgresql; then
27734 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27736 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27738 POSTGRESQL_BINDIR=/usr/bin
27740 { echo "$as_me:$LINENO: result: no" >&5
27741 echo "${ECHO_T}no" >&6; }
27742 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27743 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27744 { (exit 1); exit 1; }; }
27746 elif test -f $withval/include/libpq-fe.h; then
27747 POSTGRESQL_INCDIR=$withval/include
27748 POSTGRESQL_LIBDIR=$withval/lib
27749 POSTGRESQL_BINDIR=$withval/bin
27750 elif test -f $withval/include/postgresql/libpq-fe.h; then
27751 POSTGRESQL_INCDIR=$withval/include/postgresql
27752 if test -d $withval/lib64; then
27753 POSTGRESQL_LIBDIR=$withval/lib64
27755 POSTGRESQL_LIBDIR=$withval/lib
27757 POSTGRESQL_BINDIR=$withval/bin
27759 { echo "$as_me:$LINENO: result: no" >&5
27760 echo "${ECHO_T}no" >&6; }
27761 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27762 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27763 { (exit 1); exit 1; }; }
27765 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27766 { echo "$as_me:$LINENO: checking for crypt" >&5
27767 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27768 if test "${ac_cv_func_crypt+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27771 cat >conftest.$ac_ext <<_ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27777 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27779 #define crypt innocuous_crypt
27781 /* System header to define __stub macros and hopefully few prototypes,
27782 which can conflict with char crypt (); below.
27783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27784 <limits.h> exists even on freestanding compilers. */
27787 # include <limits.h>
27789 # include <assert.h>
27794 /* Override any GCC internal prototype to avoid an error.
27795 Use char because int might match the return type of a GCC
27796 builtin and then its argument prototype would still apply. */
27801 /* The GNU C library defines this for functions which it implements
27802 to always fail with ENOSYS. Some functions are actually named
27803 something starting with __ and the normal name is an alias. */
27804 #if defined __stub_crypt || defined __stub___crypt
27816 rm -f conftest.$ac_objext conftest$ac_exeext
27817 if { (ac_try="$ac_link"
27818 case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_link") 2>conftest.er1
27825 grep -v '^ *+' conftest.er1 >conftest.err
27827 cat conftest.err >&5
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); } && {
27830 test -z "$ac_c_werror_flag" ||
27831 test ! -s conftest.err
27832 } && test -s conftest$ac_exeext &&
27833 $as_test_x conftest$ac_exeext; then
27834 ac_cv_func_crypt=yes
27836 echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27839 ac_cv_func_crypt=no
27842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27843 conftest$ac_exeext conftest.$ac_ext
27845 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27846 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27847 if test $ac_cv_func_crypt = yes; then
27850 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27851 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27852 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27853 echo $ECHO_N "(cached) $ECHO_C" >&6
27855 ac_check_lib_save_LIBS=$LIBS
27856 LIBS="-lcrypt $LIBS"
27857 cat >conftest.$ac_ext <<_ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h. */
27864 /* Override any GCC internal prototype to avoid an error.
27865 Use char because int might match the return type of a GCC
27866 builtin and then its argument prototype would still apply. */
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (ac_try="$ac_link"
27881 case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_link") 2>conftest.er1
27888 grep -v '^ *+' conftest.er1 >conftest.err
27890 cat conftest.err >&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); } && {
27893 test -z "$ac_c_werror_flag" ||
27894 test ! -s conftest.err
27895 } && test -s conftest$ac_exeext &&
27896 $as_test_x conftest$ac_exeext; then
27897 ac_cv_lib_crypt_crypt=yes
27899 echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27902 ac_cv_lib_crypt_crypt=no
27905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27906 conftest$ac_exeext conftest.$ac_ext
27907 LIBS=$ac_check_lib_save_LIBS
27909 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27910 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27911 if test $ac_cv_lib_crypt_crypt = yes; then
27912 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27917 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27918 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27919 SQL_BINDIR=$POSTGRESQL_BINDIR
27920 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27922 cat >>confdefs.h <<\_ACEOF
27923 #define HAVE_POSTGRESQL 1
27926 { echo "$as_me:$LINENO: result: yes" >&5
27927 echo "${ECHO_T}yes" >&6; }
27929 support_postgresql=yes
27933 { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27939 { echo "$as_me:$LINENO: result: no" >&5
27940 echo "${ECHO_T}no" >&6; }
27952 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27953 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27955 # Check whether --with-mysql was given.
27956 if test "${with_mysql+set}" = set; then
27957 withval=$with_mysql;
27958 if test "$withval" != "no"; then
27959 if test "$withval" = "yes"; then
27960 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27961 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27962 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27963 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27964 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27966 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27968 MYSQL_BINDIR=/usr/local/mysql/bin
27969 elif test -f /usr/include/mysql/mysql.h; then
27970 MYSQL_INCDIR=/usr/include/mysql
27971 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27972 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27973 MYSQL_LIBDIR=/usr/lib64/mysql
27974 elif test -f /usr/lib64/libmysqlclient_r.a \
27975 -o -f /usr/lib64/libmysqlclient_r.so; then
27976 MYSQL_LIBDIR=/usr/lib64
27977 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27978 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27979 MYSQL_LIBDIR=/usr/lib/mysql
27981 MYSQL_LIBDIR=/usr/lib
27983 MYSQL_BINDIR=/usr/bin
27984 elif test -f /usr/include/mysql.h; then
27985 MYSQL_INCDIR=/usr/include
27986 if test -f /usr/lib64/libmysqlclient_r.a \
27987 -o -f /usr/lib64/libmysqlclient_r.so; then
27988 MYSQL_LIBDIR=/usr/lib64
27990 MYSQL_LIBDIR=/usr/lib
27992 MYSQL_BINDIR=/usr/bin
27993 elif test -f /usr/local/include/mysql/mysql.h; then
27994 MYSQL_INCDIR=/usr/local/include/mysql
27995 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
27996 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
27997 MYSQL_LIBDIR=/usr/local/lib64/mysql
27999 MYSQL_LIBDIR=/usr/local/lib/mysql
28001 MYSQL_BINDIR=/usr/local/bin
28002 elif test -f /usr/local/include/mysql.h; then
28003 MYSQL_INCDIR=/usr/local/include
28004 if test -f /usr/local/lib64/libmysqlclient_r.a \
28005 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28006 MYSQL_LIBDIR=/usr/local/lib64
28008 MYSQL_LIBDIR=/usr/local/lib
28010 MYSQL_BINDIR=/usr/local/bin
28012 { echo "$as_me:$LINENO: result: no" >&5
28013 echo "${ECHO_T}no" >&6; }
28014 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28015 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28016 { (exit 1); exit 1; }; }
28019 if test -f $withval/include/mysql/mysql.h; then
28020 MYSQL_INCDIR=$withval/include/mysql
28021 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28022 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28023 MYSQL_LIBDIR=$withval/lib64/mysql
28024 elif test -f $withval/lib64/libmysqlclient_r.a \
28025 -o -f $withval/lib64/libmysqlclient_r.so; then
28026 MYSQL_LIBDIR=$withval/lib64
28027 elif test -f $withval/lib/libmysqlclient_r.a \
28028 -o -f $withval/lib/libmysqlclient_r.so; then
28029 MYSQL_LIBDIR=$withval/lib
28031 MYSQL_LIBDIR=$withval/lib/mysql
28033 MYSQL_BINDIR=$withval/bin
28034 elif test -f $withval/include/mysql.h; then
28035 MYSQL_INCDIR=$withval/include
28036 if test -f $withval/lib64/libmysqlclient_r.a \
28037 -o -f $withval/lib64/libmysqlclient_r.so; then
28038 MYSQL_LIBDIR=$withval/lib64
28040 MYSQL_LIBDIR=$withval/lib
28042 MYSQL_BINDIR=$withval/bin
28044 { echo "$as_me:$LINENO: result: no" >&5
28045 echo "${ECHO_T}no" >&6; }
28046 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28047 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28048 { (exit 1); exit 1; }; }
28051 SQL_INCLUDE=-I$MYSQL_INCDIR
28052 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28053 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28054 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28055 cat >>confdefs.h <<\_ACEOF
28056 #define HAVE_THREAD_SAFE_MYSQL 1
28060 SQL_BINDIR=$MYSQL_BINDIR
28061 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28063 cat >>confdefs.h <<\_ACEOF
28064 #define HAVE_MYSQL 1
28067 { echo "$as_me:$LINENO: result: yes" >&5
28068 echo "${ECHO_T}yes" >&6; }
28075 { echo "$as_me:$LINENO: result: no" >&5
28076 echo "${ECHO_T}no" >&6; }
28084 # Check whether --with-embedded-mysql was given.
28085 if test "${with_embedded_mysql+set}" = set; then
28086 withval=$with_embedded_mysql;
28087 if test "$withval" != "no"; then
28088 if test "$withval" = "yes"; then
28089 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28090 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28091 if test -d /usr/local/mysql/lib64/mysql; then
28092 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28094 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28096 MYSQL_BINDIR=/usr/local/mysql/bin
28097 elif test -f /usr/include/mysql/mysql.h; then
28098 MYSQL_INCDIR=/usr/include/mysql
28099 if test -d /usr/lib64/mysql; then
28100 MYSQL_LIBDIR=/usr/lib64/mysql
28102 MYSQL_LIBDIR=/usr/lib/mysql
28104 MYSQL_BINDIR=/usr/bin
28105 elif test -f /usr/include/mysql.h; then
28106 MYSQL_INCDIR=/usr/include
28107 if test -d /usr/lib64; then
28108 MYSQL_LIBDIR=/usr/lib64
28110 MYSQL_LIBDIR=/usr/lib
28112 MYSQL_BINDIR=/usr/bin
28113 elif test -f /usr/local/include/mysql/mysql.h; then
28114 MYSQL_INCDIR=/usr/local/include/mysql
28115 if test -d /usr/local/lib64/mysql; then
28116 MYSQL_LIBDIR=/usr/local/lib64/mysql
28118 MYSQL_LIBDIR=/usr/local/lib/mysql
28120 MYSQL_BINDIR=/usr/local/bin
28121 elif test -f /usr/local/include/mysql.h; then
28122 MYSQL_INCDIR=/usr/local/include
28123 if test -d /usr/local/lib64; then
28124 MYSQL_LIBDIR=/usr/local/lib64
28126 MYSQL_LIBDIR=/usr/local/lib
28128 MYSQL_BINDIR=/usr/local/bin
28130 { echo "$as_me:$LINENO: result: no" >&5
28131 echo "${ECHO_T}no" >&6; }
28132 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28133 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28134 { (exit 1); exit 1; }; }
28137 if test -f $withval/include/mysql/mysql.h; then
28138 MYSQL_INCDIR=$withval/include/mysql
28139 if test -d $withval/lib64/mysql; then
28140 MYSQL_LIBDIR=$withval/lib64/mysql
28142 MYSQL_LIBDIR=$withval/lib/mysql
28144 MYSQL_BINDIR=$withval/bin
28145 elif test -f $withval/include/mysql.h; then
28146 MYSQL_INCDIR=$withval/include
28147 if test -d $withval/lib64; then
28148 MYSQL_LIBDIR=$withval/lib64
28150 MYSQL_LIBDIR=$withval/lib
28152 MYSQL_BINDIR=$withval/bin
28154 { echo "$as_me:$LINENO: result: no" >&5
28155 echo "${ECHO_T}no" >&6; }
28156 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28157 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28158 { (exit 1); exit 1; }; }
28161 SQL_INCLUDE=-I$MYSQL_INCDIR
28162 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28163 SQL_BINDIR=$MYSQL_BINDIR
28164 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28166 cat >>confdefs.h <<\_ACEOF
28167 #define HAVE_MYSQL 1
28170 cat >>confdefs.h <<\_ACEOF
28171 #define HAVE_EMBEDDED_MYSQL 1
28174 { echo "$as_me:$LINENO: result: yes" >&5
28175 echo "${ECHO_T}yes" >&6; }
28182 { echo "$as_me:$LINENO: result: no" >&5
28183 echo "${ECHO_T}no" >&6; }
28199 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28200 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28202 # Check whether --with-sqlite3 was given.
28203 if test "${with_sqlite3+set}" = set; then
28204 withval=$with_sqlite3;
28205 if test "$withval" != "no"; then
28206 if test "$withval" = "yes"; then
28207 if test -f /usr/local/include/sqlite3.h; then
28208 SQLITE_INCDIR=/usr/local/include
28209 if test -d /usr/local/lib64; then
28210 SQLITE_LIBDIR=/usr/local/lib64
28212 SQLITE_LIBDIR=/usr/local/lib
28214 SQLITE_BINDIR=/usr/local/bin
28215 elif test -f /usr/include/sqlite3.h; then
28216 SQLITE_INCDIR=/usr/include
28217 if test -d /usr/lib64; then
28218 SQLITE_LIBDIR=/usr/lib64
28220 SQLITE_LIBDIR=/usr/lib
28222 SQLITE_BINDIR=/usr/bin
28223 elif test -f $prefix/include/sqlite3.h; then
28224 SQLITE_INCDIR=$prefix/include
28225 if test -d $prefix/lib64; then
28226 SQLITE_LIBDIR=$prefix/lib64
28228 SQLITE_LIBDIR=$prefix/lib
28230 SQLITE_BINDIR=$prefix/bin
28232 { echo "$as_me:$LINENO: result: no" >&5
28233 echo "${ECHO_T}no" >&6; }
28234 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28235 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28236 { (exit 1); exit 1; }; }
28239 if test -f $withval/sqlite3.h; then
28240 SQLITE_INCDIR=$withval
28241 SQLITE_LIBDIR=$withval
28242 SQLITE_BINDIR=$withval
28243 elif test -f $withval/include/sqlite3.h; then
28244 SQLITE_INCDIR=$withval/include
28245 if test -d $withval/lib64; then
28246 SQLITE_LIBDIR=$withval/lib64
28248 SQLITE_LIBDIR=$withval/lib
28250 SQLITE_BINDIR=$withval/bin
28252 { echo "$as_me:$LINENO: result: no" >&5
28253 echo "${ECHO_T}no" >&6; }
28254 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28255 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28256 { (exit 1); exit 1; }; }
28259 SQL_INCLUDE=-I$SQLITE_INCDIR
28260 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28261 SQL_BINDIR=$SQLITE_BINDIR
28262 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28264 cat >>confdefs.h <<\_ACEOF
28265 #define HAVE_SQLITE3 1
28268 { echo "$as_me:$LINENO: result: yes" >&5
28269 echo "${ECHO_T}yes" >&6; }
28271 support_sqlite3=yes
28276 { echo "$as_me:$LINENO: result: no" >&5
28277 echo "${ECHO_T}no" >&6; }
28282 { echo "$as_me:$LINENO: result: no" >&5
28283 echo "${ECHO_T}no" >&6; }
28295 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28296 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28298 # Check whether --with-sqlite was given.
28299 if test "${with_sqlite+set}" = set; then
28300 withval=$with_sqlite;
28301 if test "$withval" != "no"; then
28302 if test "$withval" = "yes"; then
28303 if test -f /usr/local/include/sqlite.h; then
28304 SQLITE_INCDIR=/usr/local/include
28305 if test -d /usr/local/lib64; then
28306 SQLITE_LIBDIR=/usr/local/lib64
28308 SQLITE_LIBDIR=/usr/local/lib
28310 SQLITE_BINDIR=/usr/local/bin
28311 elif test -f /usr/include/sqlite.h; then
28312 SQLITE_INCDIR=/usr/include
28313 if test -d /usr/lib64; then
28314 SQLITE_LIBDIR=/usr/lib64
28316 SQLITE_LIBDIR=/usr/lib
28318 SQLITE_BINDIR=/usr/bin
28319 elif test -f $prefix/include/sqlite.h; then
28320 SQLITE_INCDIR=$prefix/include
28321 if test -d $prefix/lib64; then
28322 SQLITE_LIBDIR=$prefix/lib64
28324 SQLITE_LIBDIR=$prefix/lib
28326 SQLITE_BINDIR=$prefix/bin
28328 { echo "$as_me:$LINENO: result: no" >&5
28329 echo "${ECHO_T}no" >&6; }
28330 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28331 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28332 { (exit 1); exit 1; }; }
28335 if test -f $withval/sqlite.h; then
28336 SQLITE_INCDIR=$withval
28337 SQLITE_LIBDIR=$withval
28338 SQLITE_BINDIR=$withval
28339 elif test -f $withval/include/sqlite.h; then
28340 SQLITE_INCDIR=$withval/include
28341 if test -d $withval/lib64; then
28342 SQLITE_LIBDIR=$withval/lib64
28344 SQLITE_LIBDIR=$withval/lib
28346 SQLITE_BINDIR=$withval/bin
28348 { echo "$as_me:$LINENO: result: no" >&5
28349 echo "${ECHO_T}no" >&6; }
28350 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28351 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28352 { (exit 1); exit 1; }; }
28355 SQL_INCLUDE=-I$SQLITE_INCDIR
28356 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28357 SQL_BINDIR=$SQLITE_BINDIR
28358 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28360 cat >>confdefs.h <<\_ACEOF
28361 #define HAVE_SQLITE 1
28364 { echo "$as_me:$LINENO: result: yes" >&5
28365 echo "${ECHO_T}yes" >&6; }
28372 { echo "$as_me:$LINENO: result: no" >&5
28373 echo "${ECHO_T}no" >&6; }
28378 { echo "$as_me:$LINENO: result: no" >&5
28379 echo "${ECHO_T}no" >&6; }
28391 { echo "$as_me:$LINENO: checking for DBI support" >&5
28392 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28394 # Check whether --with-dbi was given.
28395 if test "${with_dbi+set}" = set; then
28397 if test "$withval" != "no"; then
28398 if test "$withval" = "yes"; then
28399 if test -f /usr/local/include/dbi/dbi.h; then
28400 DBI_INCDIR=/usr/local/dbi/include
28401 if test -d /usr/local/lib64; then
28402 DBI_LIBDIR=/usr/local/lib64
28404 DBI_LIBDIR=/usr/local/lib
28406 DBI_BINDIR=/usr/local/bin
28407 elif test -f /usr/include/dbi/dbi.h; then
28408 DBI_INCDIR=/usr/include
28409 if test -d /usr/lib64; then
28410 DBI_LIBDIR=/usr/lib64
28412 DBI_LIBDIR=/usr/lib
28414 DBI_BINDIR=/usr/bin
28415 elif test -f $prefix/include/dbi/dbi.h; then
28416 DBI_INCDIR=$prefix/include
28417 if test -d $prefix/lib64; then
28418 DBI_LIBDIR=$prefix/lib64
28420 DBI_LIBDIR=$prefix/lib
28422 DBI_BINDIR=$prefix/bin
28424 { echo "$as_me:$LINENO: result: no" >&5
28425 echo "${ECHO_T}no" >&6; }
28426 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28427 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28428 { (exit 1); exit 1; }; }
28430 if test -d /usr/local/lib/dbd; then
28431 DRIVERDIR=/usr/local/lib/dbd
28432 if test -d /usr/local/lib64/dbd; then
28433 DRIVERDIR=/usr/local/lib64/dbd
28435 DRIVERDIR=/usr/local/lib/dbd
28437 elif test -d /usr/lib/dbd; then
28438 DRIVERDIR=/usr/lib/dbd
28439 if test -d /usr/lib64/dbd; then
28440 DRIVERDIR=/usr/lib64/dbd
28442 DRIVERDIR=/usr/lib/dbd
28444 elif test -d $prefix/lib/dbd; then
28445 if test -d $prefix/lib64/dbd; then
28446 DRIVERDIR=$prefix/lib64/dbd
28448 DRIVERDIR=$prefix/lib/dbd
28451 { echo "$as_me:$LINENO: result: no" >&5
28452 echo "${ECHO_T}no" >&6; }
28453 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28454 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28455 { (exit 1); exit 1; }; }
28458 if test -f $withval/dbi.h; then
28459 DBI_INCDIR=$withval
28460 DBI_LIBDIR=$withval
28461 DBI_BINDIR=$withval
28462 elif test -f $withval/include/dbi/dbi.h; then
28463 DBI_INCDIR=$withval/include
28464 if test -d $withval/lib64; then
28465 DBI_LIBDIR=$withval/lib64
28467 DBI_LIBDIR=$withval/lib
28469 DBI_BINDIR=$withval/bin
28471 { echo "$as_me:$LINENO: result: no" >&5
28472 echo "${ECHO_T}no" >&6; }
28473 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28474 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28475 { (exit 1); exit 1; }; }
28477 if test -d $withval/dbd; then
28478 DRIVERDIR=$withval/dbd
28479 elif test -d $withval/lib/; then
28480 if test -d $withval/lib64/dbd; then
28481 DRIVERDIR=$withval/lib64/dbd
28483 DRIVERDIR=$withval/lib/dbd
28486 { echo "$as_me:$LINENO: result: no" >&5
28487 echo "${ECHO_T}no" >&6; }
28488 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28489 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28490 { (exit 1); exit 1; }; }
28493 SQL_INCLUDE=-I$DBI_INCDIR
28494 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28495 SQL_BINDIR=$DBI_BINDIR
28496 SQL_LIB=$DBI_LIBDIR/libdbi.a
28497 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28500 cat >>confdefs.h <<\_ACEOF
28504 { echo "$as_me:$LINENO: result: yes" >&5
28505 echo "${ECHO_T}yes" >&6; }
28513 { echo "$as_me:$LINENO: result: no" >&5
28514 echo "${ECHO_T}no" >&6; }
28519 { echo "$as_me:$LINENO: result: no" >&5
28520 echo "${ECHO_T}no" >&6; }
28535 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28536 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28538 # Check whether --with-dbi-driver was given.
28539 if test "${with_dbi_driver+set}" = set; then
28540 withval=$with_dbi_driver;
28541 if test "$withval" != "no"; then
28545 if test -f /usr/local/mysql/bin/mysql; then
28546 SQL_BINDIR=/usr/local/mysql/bin
28547 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28548 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28549 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28551 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28553 elif test -f /usr/bin/mysql; then
28554 SQL_BINDIR=/usr/bin
28555 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28556 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28557 SQL_LIBDIR=/usr/lib64/mysql
28558 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28559 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28560 SQL_LIBDIR=/usr/lib/mysql
28562 SQL_LIBDIR=/usr/lib
28564 elif test -f /usr/local/bin/mysql; then
28565 SQL_BINDIR=/usr/local/bin
28566 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28567 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28568 SQL_LIBDIR=/usr/local/lib64/mysql
28569 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28570 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28571 SQL_LIBDIR=/usr/local/lib/mysql
28573 SQL_LIBDIR=/usr/local/lib
28575 elif test -f $withval/bin/mysql; then
28576 SQL_BINDIR=$withval/bin
28577 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28578 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28579 SQL_LIBDIR=$withval/lib64/mysql
28580 elif test -f $withval/lib64/libmysqlclient_r.a \
28581 -o -f $withval/lib64/libmysqlclient_r.so; then
28582 SQL_LIBDIR=$withval/lib64
28583 elif test -f $withval/lib/libmysqlclient_r.a \
28584 -o -f $withval/lib/libmysqlclient_r.so; then
28585 SQL_LIBDIR=$withval/lib/
28587 SQL_LIBDIR=$withval/lib/mysql
28590 { echo "$as_me:$LINENO: result: no" >&5
28591 echo "${ECHO_T}no" >&6; }
28592 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28593 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28594 { (exit 1); exit 1; }; }
28596 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28599 db_prog="postgresql"
28600 PG_CONFIG=`which pg_config`
28601 if test -n "$PG_CONFIG"; then
28602 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28603 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28604 elif test -f /usr/local/bin/psql; then
28605 SQL_BINDIR=/usr/local/bin
28606 if test -d /usr/local/lib64; then
28607 SQL_LIBDIR=/usr/local/lib64
28609 SQL_LIBDIR=/usr/local/lib
28611 elif test -f /usr/bin/psql; then
28612 SQL_BINDIR=/usr/local/bin
28613 if test -d /usr/lib64/postgresql; then
28614 SQL_LIBDIR=/usr/lib64/postgresql
28615 elif test -d /usr/lib/postgresql; then
28616 SQL_LIBDIR=/usr/lib/postgresql
28617 elif test -d /usr/lib64; then
28618 SQL_LIBDIR=/usr/lib64
28620 SQL_LIBDIR=/usr/lib
28622 elif test -f $withval/bin/psql; then
28623 SQL_BINDIR=$withval/bin
28624 if test -d $withval/lib64; then
28625 SQL_LIBDIR=$withval/lib64
28627 SQL_LIBDIR=$withval/lib
28630 { echo "$as_me:$LINENO: result: no" >&5
28631 echo "${ECHO_T}no" >&6; }
28632 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28633 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28634 { (exit 1); exit 1; }; }
28636 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28640 if test -f /usr/local/bin/sqlite; then
28641 SQL_BINDIR=/usr/local/bin
28642 if test -d /usr/local/lib64; then
28643 SQL_LIBDIR=/usr/local/lib64
28645 SQL_LIBDIR=/usr/local/lib
28647 elif test -f /usr/bin/sqlite; then
28648 SQL_BINDIR=/usr/bin
28649 if test -d /usr/lib64; then
28650 SQL_LIBDIR=/usr/lib64
28652 SQL_LIBDIR=/usr/lib
28654 elif test -f $withval/bin/sqlite; then
28655 SQL_BINDIR=$withval/bin
28656 if test -d $withval/lib64; then
28657 SQL_LIBDIR=$withval/lib64
28659 SQL_LIBDIR=$withval/lib
28662 { echo "$as_me:$LINENO: result: no" >&5
28663 echo "${ECHO_T}no" >&6; }
28664 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28665 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28666 { (exit 1); exit 1; }; }
28668 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28672 if test -f /usr/local/bin/sqlite3; then
28673 SQL_BINDIR=/usr/local/bin
28674 if test -d /usr/local/lib64; then
28675 SQL_LIBDIR=/usr/local/lib64
28677 SQL_LIBDIR=/usr/local/lib
28679 elif test -f /usr/bin/sqlite3; then
28680 SQL_BINDIR=/usr/bin
28681 if test -d /usr/lib64; then
28682 SQL_LIBDIR=/usr/lib64
28684 SQL_LIBDIR=/usr/lib
28686 elif test -f $withval/bin/sqlite3; then
28687 SQL_BINDIR=$withval/bin
28688 if test -d $withval/lib64; then
28689 SQL_LIBDIR=$withval/lib64
28691 SQL_LIBDIR=$withval/lib
28694 { echo "$as_me:$LINENO: result: no" >&5
28695 echo "${ECHO_T}no" >&6; }
28696 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28697 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28698 { (exit 1); exit 1; }; }
28700 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28703 { echo "$as_me:$LINENO: result: no" >&5
28704 echo "${ECHO_T}no" >&6; }
28705 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28706 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28707 { (exit 1); exit 1; }; }
28711 { echo "$as_me:$LINENO: result: yes" >&5
28712 echo "${ECHO_T}yes" >&6; }
28715 { echo "$as_me:$LINENO: result: no" >&5
28716 echo "${ECHO_T}no" >&6; }
28721 { echo "$as_me:$LINENO: result: no" >&5
28722 echo "${ECHO_T}no" >&6; }
28735 support_batch_insert=no
28736 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28738 if test $pkg = 0; then
28739 support_batch_insert=yes
28740 # Check whether --enable-batch-insert was given.
28741 if test "${enable_batch_insert+set}" = set; then
28742 enableval=$enable_batch_insert;
28743 if test x$enableval = xno; then
28744 support_batch_insert=no
28746 support_batch_insert=yes
28754 if test x$DB_TYPE = xpostgresql; then
28755 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28757 if test $pkg != 0; then
28758 support_batch_insert=no
28762 if test x$DB_TYPE = xdbi; then
28766 if test $DB_PROG = postgresql; then
28767 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28771 if test $DB_PROG = mysql; then
28772 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28776 if test $DB_PROG = sqlite3; then
28777 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28781 if test $pkg = 0; then
28782 # Check whether --enable-batch-insert was given.
28783 if test "${enable_batch_insert+set}" = set; then
28784 enableval=$enable_batch_insert;
28785 if test x$enableval = xno; then
28786 support_batch_insert=no
28788 support_batch_insert=yes
28801 if test $support_batch_insert = yes ; then
28803 cat >>confdefs.h <<\_ACEOF
28804 #define HAVE_BATCH_FILE_INSERT 1
28809 cat >>confdefs.h <<\_ACEOF
28810 #define PROTOTYPES 1
28814 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28815 if test -z "$CCOPTS"; then
28816 CCOPTS='-g -O2 -Wall'
28823 largefile_support="no"
28825 # Check whether --enable-largefile was given.
28826 if test "${enable_largefile+set}" = set; then
28827 enableval=$enable_largefile;
28830 if test "$enable_largefile" != no; then
28831 if test -n "$ac_tool_prefix"; then
28832 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28833 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28836 if test "${ac_cv_prog_GETCONF+set}" = set; then
28837 echo $ECHO_N "(cached) $ECHO_C" >&6
28839 if test -n "$GETCONF"; then
28840 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28843 for as_dir in $PATH
28846 test -z "$as_dir" && as_dir=.
28847 for ac_exec_ext in '' $ac_executable_extensions; do
28848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28849 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28859 GETCONF=$ac_cv_prog_GETCONF
28860 if test -n "$GETCONF"; then
28861 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28862 echo "${ECHO_T}$GETCONF" >&6; }
28864 { echo "$as_me:$LINENO: result: no" >&5
28865 echo "${ECHO_T}no" >&6; }
28870 if test -z "$ac_cv_prog_GETCONF"; then
28871 ac_ct_GETCONF=$GETCONF
28872 # Extract the first word of "getconf", so it can be a program name with args.
28873 set dummy getconf; ac_word=$2
28874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28876 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28877 echo $ECHO_N "(cached) $ECHO_C" >&6
28879 if test -n "$ac_ct_GETCONF"; then
28880 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28883 for as_dir in $PATH
28886 test -z "$as_dir" && as_dir=.
28887 for ac_exec_ext in '' $ac_executable_extensions; do
28888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28889 ac_cv_prog_ac_ct_GETCONF="getconf"
28890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28899 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28900 if test -n "$ac_ct_GETCONF"; then
28901 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28902 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28904 { echo "$as_me:$LINENO: result: no" >&5
28905 echo "${ECHO_T}no" >&6; }
28908 if test "x$ac_ct_GETCONF" = x; then
28911 case $cross_compiling:$ac_tool_warned in
28913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28914 whose name does not start with the host triplet. If you think this
28915 configuration is useful to you, please write to autoconf@gnu.org." >&5
28916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28917 whose name does not start with the host triplet. If you think this
28918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28919 ac_tool_warned=yes ;;
28921 GETCONF=$ac_ct_GETCONF
28924 GETCONF="$ac_cv_prog_GETCONF"
28927 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28928 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28929 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28932 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28933 ac_cv_sys_largefile_CFLAGS=no
28935 # IRIX 6.2 and later require cc -n32.
28936 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28937 if test "$GCC" != yes; then
28938 ac_cv_sys_largefile_CFLAGS=-n32
28941 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28942 cat >conftest.$ac_ext <<_ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h. */
28957 rm -f conftest.$ac_objext conftest$ac_exeext
28958 if { (ac_try="$ac_link"
28959 case "(($ac_try" in
28960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28961 *) ac_try_echo=$ac_try;;
28963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28964 (eval "$ac_link") 2>conftest.er1
28966 grep -v '^ *+' conftest.er1 >conftest.err
28968 cat conftest.err >&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); } && {
28971 test -z "$ac_c_werror_flag" ||
28972 test ! -s conftest.err
28973 } && test -s conftest$ac_exeext &&
28974 $as_test_x conftest$ac_exeext; then
28977 echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.$ac_ext >&5
28980 ac_cv_sys_largefile_CFLAGS=no
28983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28984 conftest$ac_exeext conftest.$ac_ext
28989 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
28990 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
28991 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
28992 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
28993 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
28994 echo $ECHO_N "(cached) $ECHO_C" >&6
28996 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
28997 ac_cv_sys_largefile_LDFLAGS=no
29001 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29002 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29003 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29004 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29005 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29006 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29009 ac_cv_sys_largefile_LIBS=no
29013 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29014 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29016 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29019 -D_FILE_OFFSET_BITS=*) ;;
29020 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29021 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29026 case "$CPPFLAGS" in
29027 '') CPPFLAGS="$ac_flag" ;;
29028 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29036 '') CFLAGS="$ac_flag" ;;
29037 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29042 case "$ac_cv_sys_largefile_LDFLAGS" in
29046 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29047 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29050 case "$ac_cv_sys_largefile_LIBS" in
29054 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29055 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29058 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29059 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29060 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29063 ac_cv_sys_file_offset_bits=no
29064 ac_cv_sys_file_offset_bits=64
29065 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29067 -D_FILE_OFFSET_BITS)
29068 ac_cv_sys_file_offset_bits=1 ;;
29069 -D_FILE_OFFSET_BITS=*)
29070 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29075 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29076 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29077 if test "$ac_cv_sys_file_offset_bits" != no; then
29079 cat >>confdefs.h <<_ACEOF
29080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29084 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29085 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29086 if test "${ac_cv_sys_largefile_source+set}" = set; then
29087 echo $ECHO_N "(cached) $ECHO_C" >&6
29089 ac_cv_sys_largefile_source=no
29090 ac_cv_sys_largefile_source=1
29091 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29093 -D_LARGEFILE_SOURCE)
29094 ac_cv_sys_largefile_source=1 ;;
29095 -D_LARGEFILE_SOURCE=*)
29096 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29101 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29102 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29103 if test "$ac_cv_sys_largefile_source" != no; then
29105 cat >>confdefs.h <<_ACEOF
29106 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29110 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29111 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29112 if test "${ac_cv_sys_large_files+set}" = set; then
29113 echo $ECHO_N "(cached) $ECHO_C" >&6
29115 ac_cv_sys_large_files=no
29116 ac_cv_sys_large_files=1
29117 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29120 ac_cv_sys_large_files=1 ;;
29122 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29127 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29128 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29129 if test "$ac_cv_sys_large_files" != no; then
29131 cat >>confdefs.h <<_ACEOF
29132 #define _LARGE_FILES $ac_cv_sys_large_files
29139 { echo "$as_me:$LINENO: checking for X" >&5
29140 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29143 # Check whether --with-x was given.
29144 if test "${with_x+set}" = set; then
29148 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29149 if test "x$with_x" = xno; then
29150 # The user explicitly disabled X.
29153 case $x_includes,$x_libraries in #(
29154 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29155 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29156 { (exit 1); exit 1; }; };; #(
29157 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29160 # One or both of the vars are not set, and there is no cached value.
29161 ac_x_includes=no ac_x_libraries=no
29162 rm -f -r conftest.dir
29163 if mkdir conftest.dir; then
29165 cat >Imakefile <<'_ACEOF'
29167 @echo incroot='${INCROOT}'
29169 @echo usrlibdir='${USRLIBDIR}'
29171 @echo libdir='${LIBDIR}'
29173 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29175 for ac_var in incroot usrlibdir libdir; do
29176 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29178 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29179 for ac_extension in a so sl; do
29180 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29181 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29182 ac_im_usrlibdir=$ac_im_libdir; break
29185 # Screen out bogus values from the imake configuration. They are
29186 # bogus both because they are the default anyway, and because
29187 # using them would break gcc on systems where it needs fixed includes.
29188 case $ac_im_incroot in
29189 /usr/include) ac_x_includes= ;;
29190 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29192 case $ac_im_usrlibdir in
29193 /usr/lib | /lib) ;;
29194 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29198 rm -f -r conftest.dir
29201 # Standard set of common directories for X headers.
29202 # Check X11 before X11Rn because it is often a symlink to the current release.
29214 /usr/local/X11/include
29215 /usr/local/X11R6/include
29216 /usr/local/X11R5/include
29217 /usr/local/X11R4/include
29219 /usr/local/include/X11
29220 /usr/local/include/X11R6
29221 /usr/local/include/X11R5
29222 /usr/local/include/X11R4
29226 /usr/XFree86/include/X11
29230 /usr/unsupported/include
29231 /usr/athena/include
29232 /usr/local/x11r5/include
29233 /usr/lpp/Xamples/include
29235 /usr/openwin/include
29236 /usr/openwin/share/include'
29238 if test "$ac_x_includes" = no; then
29239 # Guess where to find include files, by looking for Xlib.h.
29240 # First, try using that file with no special directory specified.
29241 cat >conftest.$ac_ext <<_ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h. */
29247 #include <X11/Xlib.h>
29249 if { (ac_try="$ac_cpp conftest.$ac_ext"
29250 case "(($ac_try" in
29251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29252 *) ac_try_echo=$ac_try;;
29254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29257 grep -v '^ *+' conftest.er1 >conftest.err
29259 cat conftest.err >&5
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); } >/dev/null && {
29262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29263 test ! -s conftest.err
29265 # We can compile using X headers with no special include directory.
29268 echo "$as_me: failed program was:" >&5
29269 sed 's/^/| /' conftest.$ac_ext >&5
29271 for ac_dir in $ac_x_header_dirs; do
29272 if test -r "$ac_dir/X11/Xlib.h"; then
29273 ac_x_includes=$ac_dir
29279 rm -f conftest.err conftest.$ac_ext
29280 fi # $ac_x_includes = no
29282 if test "$ac_x_libraries" = no; then
29283 # Check for the libraries.
29284 # See if we find them without any special options.
29285 # Don't add to $LIBS permanently.
29288 cat >conftest.$ac_ext <<_ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h. */
29294 #include <X11/Xlib.h>
29303 rm -f conftest.$ac_objext conftest$ac_exeext
29304 if { (ac_try="$ac_link"
29305 case "(($ac_try" in
29306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29307 *) ac_try_echo=$ac_try;;
29309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29310 (eval "$ac_link") 2>conftest.er1
29312 grep -v '^ *+' conftest.er1 >conftest.err
29314 cat conftest.err >&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); } && {
29317 test -z "$ac_c_werror_flag" ||
29318 test ! -s conftest.err
29319 } && test -s conftest$ac_exeext &&
29320 $as_test_x conftest$ac_exeext; then
29322 # We can link X programs with no special library path.
29325 echo "$as_me: failed program was:" >&5
29326 sed 's/^/| /' conftest.$ac_ext >&5
29329 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29331 # Don't even attempt the hair of trying to link an X program!
29332 for ac_extension in a so sl; do
29333 if test -r "$ac_dir/libX11.$ac_extension"; then
29334 ac_x_libraries=$ac_dir
29341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29342 conftest$ac_exeext conftest.$ac_ext
29343 fi # $ac_x_libraries = no
29345 case $ac_x_includes,$ac_x_libraries in #(
29346 no,* | *,no | *\'*)
29347 # Didn't find X, or a directory has "'" in its name.
29348 ac_cv_have_x="have_x=no";; #(
29350 # Record where we found X for the cache.
29351 ac_cv_have_x="have_x=yes\
29352 ac_x_includes='$ac_x_includes'\
29353 ac_x_libraries='$ac_x_libraries'"
29359 eval "$ac_cv_have_x"
29362 if test "$have_x" != yes; then
29363 { echo "$as_me:$LINENO: result: $have_x" >&5
29364 echo "${ECHO_T}$have_x" >&6; }
29367 # If each of the values was on the command line, it overrides each guess.
29368 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29369 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29370 # Update the cache value to reflect the command line values.
29371 ac_cv_have_x="have_x=yes\
29372 ac_x_includes='$x_includes'\
29373 ac_x_libraries='$x_libraries'"
29374 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29375 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29378 if test "$no_x" = yes; then
29379 # Not all programs may use this symbol, but it does not hurt to define it.
29381 cat >>confdefs.h <<\_ACEOF
29382 #define X_DISPLAY_MISSING 1
29385 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29387 if test -n "$x_includes"; then
29388 X_CFLAGS="$X_CFLAGS -I$x_includes"
29391 # It would also be nice to do this for all -L options, not just this one.
29392 if test -n "$x_libraries"; then
29393 X_LIBS="$X_LIBS -L$x_libraries"
29394 # For Solaris; some versions of Sun CC require a space after -R and
29395 # others require no space. Words are not sufficient . . . .
29396 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29397 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29398 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29399 ac_xsave_c_werror_flag=$ac_c_werror_flag
29400 ac_c_werror_flag=yes
29401 cat >conftest.$ac_ext <<_ACEOF
29404 cat confdefs.h >>conftest.$ac_ext
29405 cat >>conftest.$ac_ext <<_ACEOF
29406 /* end confdefs.h. */
29416 rm -f conftest.$ac_objext conftest$ac_exeext
29417 if { (ac_try="$ac_link"
29418 case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_link") 2>conftest.er1
29425 grep -v '^ *+' conftest.er1 >conftest.err
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } && {
29430 test -z "$ac_c_werror_flag" ||
29431 test ! -s conftest.err
29432 } && test -s conftest$ac_exeext &&
29433 $as_test_x conftest$ac_exeext; then
29434 { echo "$as_me:$LINENO: result: no" >&5
29435 echo "${ECHO_T}no" >&6; }
29436 X_LIBS="$X_LIBS -R$x_libraries"
29438 echo "$as_me: failed program was:" >&5
29439 sed 's/^/| /' conftest.$ac_ext >&5
29441 LIBS="$ac_xsave_LIBS -R $x_libraries"
29442 cat >conftest.$ac_ext <<_ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h. */
29457 rm -f conftest.$ac_objext conftest$ac_exeext
29458 if { (ac_try="$ac_link"
29459 case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464 (eval "$ac_link") 2>conftest.er1
29466 grep -v '^ *+' conftest.er1 >conftest.err
29468 cat conftest.err >&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } && {
29471 test -z "$ac_c_werror_flag" ||
29472 test ! -s conftest.err
29473 } && test -s conftest$ac_exeext &&
29474 $as_test_x conftest$ac_exeext; then
29475 { echo "$as_me:$LINENO: result: yes" >&5
29476 echo "${ECHO_T}yes" >&6; }
29477 X_LIBS="$X_LIBS -R $x_libraries"
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29482 { echo "$as_me:$LINENO: result: neither works" >&5
29483 echo "${ECHO_T}neither works" >&6; }
29486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29487 conftest$ac_exeext conftest.$ac_ext
29490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29491 conftest$ac_exeext conftest.$ac_ext
29492 ac_c_werror_flag=$ac_xsave_c_werror_flag
29493 LIBS=$ac_xsave_LIBS
29496 # Check for system-dependent libraries X programs must link with.
29497 # Do this before checking for the system-independent R6 libraries
29498 # (-lICE), since we may need -lsocket or whatever for X linking.
29500 if test "$ISC" = yes; then
29501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29503 # Martyn Johnson says this is needed for Ultrix, if the X
29504 # libraries were built with DECnet support. And Karl Berry says
29505 # the Alpha needs dnet_stub (dnet does not exist).
29506 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29507 cat >conftest.$ac_ext <<_ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29514 /* Override any GCC internal prototype to avoid an error.
29515 Use char because int might match the return type of a GCC
29516 builtin and then its argument prototype would still apply. */
29520 char XOpenDisplay ();
29524 return XOpenDisplay ();
29529 rm -f conftest.$ac_objext conftest$ac_exeext
29530 if { (ac_try="$ac_link"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_link") 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } && {
29543 test -z "$ac_c_werror_flag" ||
29544 test ! -s conftest.err
29545 } && test -s conftest$ac_exeext &&
29546 $as_test_x conftest$ac_exeext; then
29549 echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29553 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29554 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29555 echo $ECHO_N "(cached) $ECHO_C" >&6
29557 ac_check_lib_save_LIBS=$LIBS
29558 LIBS="-ldnet $LIBS"
29559 cat >conftest.$ac_ext <<_ACEOF
29562 cat confdefs.h >>conftest.$ac_ext
29563 cat >>conftest.$ac_ext <<_ACEOF
29564 /* end confdefs.h. */
29566 /* Override any GCC internal prototype to avoid an error.
29567 Use char because int might match the return type of a GCC
29568 builtin and then its argument prototype would still apply. */
29576 return dnet_ntoa ();
29581 rm -f conftest.$ac_objext conftest$ac_exeext
29582 if { (ac_try="$ac_link"
29583 case "(($ac_try" in
29584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585 *) ac_try_echo=$ac_try;;
29587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588 (eval "$ac_link") 2>conftest.er1
29590 grep -v '^ *+' conftest.er1 >conftest.err
29592 cat conftest.err >&5
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } && {
29595 test -z "$ac_c_werror_flag" ||
29596 test ! -s conftest.err
29597 } && test -s conftest$ac_exeext &&
29598 $as_test_x conftest$ac_exeext; then
29599 ac_cv_lib_dnet_dnet_ntoa=yes
29601 echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29604 ac_cv_lib_dnet_dnet_ntoa=no
29607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29608 conftest$ac_exeext conftest.$ac_ext
29609 LIBS=$ac_check_lib_save_LIBS
29611 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29612 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29613 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29614 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29617 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29618 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29619 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29620 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29621 echo $ECHO_N "(cached) $ECHO_C" >&6
29623 ac_check_lib_save_LIBS=$LIBS
29624 LIBS="-ldnet_stub $LIBS"
29625 cat >conftest.$ac_ext <<_ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h. */
29632 /* Override any GCC internal prototype to avoid an error.
29633 Use char because int might match the return type of a GCC
29634 builtin and then its argument prototype would still apply. */
29642 return dnet_ntoa ();
29647 rm -f conftest.$ac_objext conftest$ac_exeext
29648 if { (ac_try="$ac_link"
29649 case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654 (eval "$ac_link") 2>conftest.er1
29656 grep -v '^ *+' conftest.er1 >conftest.err
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } && {
29661 test -z "$ac_c_werror_flag" ||
29662 test ! -s conftest.err
29663 } && test -s conftest$ac_exeext &&
29664 $as_test_x conftest$ac_exeext; then
29665 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29667 echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29670 ac_cv_lib_dnet_stub_dnet_ntoa=no
29673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29674 conftest$ac_exeext conftest.$ac_ext
29675 LIBS=$ac_check_lib_save_LIBS
29677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29678 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29679 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29680 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29687 conftest$ac_exeext conftest.$ac_ext
29688 LIBS="$ac_xsave_LIBS"
29690 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29691 # to get the SysV transport functions.
29692 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29694 # The nsl library prevents programs from opening the X display
29695 # on Irix 5.2, according to T.E. Dickey.
29696 # The functions gethostbyname, getservbyname, and inet_addr are
29697 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29698 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29699 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29700 if test "${ac_cv_func_gethostbyname+set}" = set; then
29701 echo $ECHO_N "(cached) $ECHO_C" >&6
29703 cat >conftest.$ac_ext <<_ACEOF
29706 cat confdefs.h >>conftest.$ac_ext
29707 cat >>conftest.$ac_ext <<_ACEOF
29708 /* end confdefs.h. */
29709 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29711 #define gethostbyname innocuous_gethostbyname
29713 /* System header to define __stub macros and hopefully few prototypes,
29714 which can conflict with char gethostbyname (); below.
29715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29716 <limits.h> exists even on freestanding compilers. */
29719 # include <limits.h>
29721 # include <assert.h>
29724 #undef gethostbyname
29726 /* Override any GCC internal prototype to avoid an error.
29727 Use char because int might match the return type of a GCC
29728 builtin and then its argument prototype would still apply. */
29732 char gethostbyname ();
29733 /* The GNU C library defines this for functions which it implements
29734 to always fail with ENOSYS. Some functions are actually named
29735 something starting with __ and the normal name is an alias. */
29736 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29743 return gethostbyname ();
29748 rm -f conftest.$ac_objext conftest$ac_exeext
29749 if { (ac_try="$ac_link"
29750 case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_link") 2>conftest.er1
29757 grep -v '^ *+' conftest.er1 >conftest.err
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } && {
29762 test -z "$ac_c_werror_flag" ||
29763 test ! -s conftest.err
29764 } && test -s conftest$ac_exeext &&
29765 $as_test_x conftest$ac_exeext; then
29766 ac_cv_func_gethostbyname=yes
29768 echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29771 ac_cv_func_gethostbyname=no
29774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29775 conftest$ac_exeext conftest.$ac_ext
29777 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29778 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29780 if test $ac_cv_func_gethostbyname = no; then
29781 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29782 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29783 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29784 echo $ECHO_N "(cached) $ECHO_C" >&6
29786 ac_check_lib_save_LIBS=$LIBS
29788 cat >conftest.$ac_ext <<_ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h. */
29795 /* Override any GCC internal prototype to avoid an error.
29796 Use char because int might match the return type of a GCC
29797 builtin and then its argument prototype would still apply. */
29801 char gethostbyname ();
29805 return gethostbyname ();
29810 rm -f conftest.$ac_objext conftest$ac_exeext
29811 if { (ac_try="$ac_link"
29812 case "(($ac_try" in
29813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29814 *) ac_try_echo=$ac_try;;
29816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29817 (eval "$ac_link") 2>conftest.er1
29819 grep -v '^ *+' conftest.er1 >conftest.err
29821 cat conftest.err >&5
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); } && {
29824 test -z "$ac_c_werror_flag" ||
29825 test ! -s conftest.err
29826 } && test -s conftest$ac_exeext &&
29827 $as_test_x conftest$ac_exeext; then
29828 ac_cv_lib_nsl_gethostbyname=yes
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ac_cv_lib_nsl_gethostbyname=no
29836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29837 conftest$ac_exeext conftest.$ac_ext
29838 LIBS=$ac_check_lib_save_LIBS
29840 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29841 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29842 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29846 if test $ac_cv_lib_nsl_gethostbyname = no; then
29847 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29848 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29849 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29850 echo $ECHO_N "(cached) $ECHO_C" >&6
29852 ac_check_lib_save_LIBS=$LIBS
29854 cat >conftest.$ac_ext <<_ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h. */
29861 /* Override any GCC internal prototype to avoid an error.
29862 Use char because int might match the return type of a GCC
29863 builtin and then its argument prototype would still apply. */
29867 char gethostbyname ();
29871 return gethostbyname ();
29876 rm -f conftest.$ac_objext conftest$ac_exeext
29877 if { (ac_try="$ac_link"
29878 case "(($ac_try" in
29879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29880 *) ac_try_echo=$ac_try;;
29882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29883 (eval "$ac_link") 2>conftest.er1
29885 grep -v '^ *+' conftest.er1 >conftest.err
29887 cat conftest.err >&5
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); } && {
29890 test -z "$ac_c_werror_flag" ||
29891 test ! -s conftest.err
29892 } && test -s conftest$ac_exeext &&
29893 $as_test_x conftest$ac_exeext; then
29894 ac_cv_lib_bsd_gethostbyname=yes
29896 echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29899 ac_cv_lib_bsd_gethostbyname=no
29902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29903 conftest$ac_exeext conftest.$ac_ext
29904 LIBS=$ac_check_lib_save_LIBS
29906 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29907 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29908 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29915 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29916 # socket/setsockopt and other routines are undefined under SCO ODT
29917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29918 # on later versions), says Simon Leinen: it contains gethostby*
29919 # variants that don't use the name server (or something). -lsocket
29920 # must be given before -lnsl if both are needed. We assume that
29921 # if connect needs -lnsl, so does gethostbyname.
29922 { echo "$as_me:$LINENO: checking for connect" >&5
29923 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29924 if test "${ac_cv_func_connect+set}" = set; then
29925 echo $ECHO_N "(cached) $ECHO_C" >&6
29927 cat >conftest.$ac_ext <<_ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29933 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29935 #define connect innocuous_connect
29937 /* System header to define __stub macros and hopefully few prototypes,
29938 which can conflict with char connect (); below.
29939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29940 <limits.h> exists even on freestanding compilers. */
29943 # include <limits.h>
29945 # include <assert.h>
29950 /* Override any GCC internal prototype to avoid an error.
29951 Use char because int might match the return type of a GCC
29952 builtin and then its argument prototype would still apply. */
29957 /* The GNU C library defines this for functions which it implements
29958 to always fail with ENOSYS. Some functions are actually named
29959 something starting with __ and the normal name is an alias. */
29960 #if defined __stub_connect || defined __stub___connect
29972 rm -f conftest.$ac_objext conftest$ac_exeext
29973 if { (ac_try="$ac_link"
29974 case "(($ac_try" in
29975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976 *) ac_try_echo=$ac_try;;
29978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29979 (eval "$ac_link") 2>conftest.er1
29981 grep -v '^ *+' conftest.er1 >conftest.err
29983 cat conftest.err >&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } && {
29986 test -z "$ac_c_werror_flag" ||
29987 test ! -s conftest.err
29988 } && test -s conftest$ac_exeext &&
29989 $as_test_x conftest$ac_exeext; then
29990 ac_cv_func_connect=yes
29992 echo "$as_me: failed program was:" >&5
29993 sed 's/^/| /' conftest.$ac_ext >&5
29995 ac_cv_func_connect=no
29998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29999 conftest$ac_exeext conftest.$ac_ext
30001 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30002 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30004 if test $ac_cv_func_connect = no; then
30005 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30006 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30007 if test "${ac_cv_lib_socket_connect+set}" = set; then
30008 echo $ECHO_N "(cached) $ECHO_C" >&6
30010 ac_check_lib_save_LIBS=$LIBS
30011 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30012 cat >conftest.$ac_ext <<_ACEOF
30015 cat confdefs.h >>conftest.$ac_ext
30016 cat >>conftest.$ac_ext <<_ACEOF
30017 /* end confdefs.h. */
30019 /* Override any GCC internal prototype to avoid an error.
30020 Use char because int might match the return type of a GCC
30021 builtin and then its argument prototype would still apply. */
30034 rm -f conftest.$ac_objext conftest$ac_exeext
30035 if { (ac_try="$ac_link"
30036 case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041 (eval "$ac_link") 2>conftest.er1
30043 grep -v '^ *+' conftest.er1 >conftest.err
30045 cat conftest.err >&5
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); } && {
30048 test -z "$ac_c_werror_flag" ||
30049 test ! -s conftest.err
30050 } && test -s conftest$ac_exeext &&
30051 $as_test_x conftest$ac_exeext; then
30052 ac_cv_lib_socket_connect=yes
30054 echo "$as_me: failed program was:" >&5
30055 sed 's/^/| /' conftest.$ac_ext >&5
30057 ac_cv_lib_socket_connect=no
30060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30061 conftest$ac_exeext conftest.$ac_ext
30062 LIBS=$ac_check_lib_save_LIBS
30064 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30065 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30066 if test $ac_cv_lib_socket_connect = yes; then
30067 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30072 # Guillermo Gomez says -lposix is necessary on A/UX.
30073 { echo "$as_me:$LINENO: checking for remove" >&5
30074 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30075 if test "${ac_cv_func_remove+set}" = set; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30078 cat >conftest.$ac_ext <<_ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h. */
30084 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30086 #define remove innocuous_remove
30088 /* System header to define __stub macros and hopefully few prototypes,
30089 which can conflict with char remove (); below.
30090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30091 <limits.h> exists even on freestanding compilers. */
30094 # include <limits.h>
30096 # include <assert.h>
30101 /* Override any GCC internal prototype to avoid an error.
30102 Use char because int might match the return type of a GCC
30103 builtin and then its argument prototype would still apply. */
30108 /* The GNU C library defines this for functions which it implements
30109 to always fail with ENOSYS. Some functions are actually named
30110 something starting with __ and the normal name is an alias. */
30111 #if defined __stub_remove || defined __stub___remove
30123 rm -f conftest.$ac_objext conftest$ac_exeext
30124 if { (ac_try="$ac_link"
30125 case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_link") 2>conftest.er1
30132 grep -v '^ *+' conftest.er1 >conftest.err
30134 cat conftest.err >&5
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); } && {
30137 test -z "$ac_c_werror_flag" ||
30138 test ! -s conftest.err
30139 } && test -s conftest$ac_exeext &&
30140 $as_test_x conftest$ac_exeext; then
30141 ac_cv_func_remove=yes
30143 echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30146 ac_cv_func_remove=no
30149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30150 conftest$ac_exeext conftest.$ac_ext
30152 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30153 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30155 if test $ac_cv_func_remove = no; then
30156 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30157 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30158 if test "${ac_cv_lib_posix_remove+set}" = set; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30161 ac_check_lib_save_LIBS=$LIBS
30162 LIBS="-lposix $LIBS"
30163 cat >conftest.$ac_ext <<_ACEOF
30166 cat confdefs.h >>conftest.$ac_ext
30167 cat >>conftest.$ac_ext <<_ACEOF
30168 /* end confdefs.h. */
30170 /* Override any GCC internal prototype to avoid an error.
30171 Use char because int might match the return type of a GCC
30172 builtin and then its argument prototype would still apply. */
30185 rm -f conftest.$ac_objext conftest$ac_exeext
30186 if { (ac_try="$ac_link"
30187 case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_link") 2>conftest.er1
30194 grep -v '^ *+' conftest.er1 >conftest.err
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } && {
30199 test -z "$ac_c_werror_flag" ||
30200 test ! -s conftest.err
30201 } && test -s conftest$ac_exeext &&
30202 $as_test_x conftest$ac_exeext; then
30203 ac_cv_lib_posix_remove=yes
30205 echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30208 ac_cv_lib_posix_remove=no
30211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30212 conftest$ac_exeext conftest.$ac_ext
30213 LIBS=$ac_check_lib_save_LIBS
30215 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30216 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30217 if test $ac_cv_lib_posix_remove = yes; then
30218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30223 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30224 { echo "$as_me:$LINENO: checking for shmat" >&5
30225 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30226 if test "${ac_cv_func_shmat+set}" = set; then
30227 echo $ECHO_N "(cached) $ECHO_C" >&6
30229 cat >conftest.$ac_ext <<_ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h. */
30235 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30237 #define shmat innocuous_shmat
30239 /* System header to define __stub macros and hopefully few prototypes,
30240 which can conflict with char shmat (); below.
30241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30242 <limits.h> exists even on freestanding compilers. */
30245 # include <limits.h>
30247 # include <assert.h>
30252 /* Override any GCC internal prototype to avoid an error.
30253 Use char because int might match the return type of a GCC
30254 builtin and then its argument prototype would still apply. */
30259 /* The GNU C library defines this for functions which it implements
30260 to always fail with ENOSYS. Some functions are actually named
30261 something starting with __ and the normal name is an alias. */
30262 #if defined __stub_shmat || defined __stub___shmat
30274 rm -f conftest.$ac_objext conftest$ac_exeext
30275 if { (ac_try="$ac_link"
30276 case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_link") 2>conftest.er1
30283 grep -v '^ *+' conftest.er1 >conftest.err
30285 cat conftest.err >&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); } && {
30288 test -z "$ac_c_werror_flag" ||
30289 test ! -s conftest.err
30290 } && test -s conftest$ac_exeext &&
30291 $as_test_x conftest$ac_exeext; then
30292 ac_cv_func_shmat=yes
30294 echo "$as_me: failed program was:" >&5
30295 sed 's/^/| /' conftest.$ac_ext >&5
30297 ac_cv_func_shmat=no
30300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30301 conftest$ac_exeext conftest.$ac_ext
30303 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30304 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30306 if test $ac_cv_func_shmat = no; then
30307 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30308 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30309 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30310 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 ac_check_lib_save_LIBS=$LIBS
30314 cat >conftest.$ac_ext <<_ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30321 /* Override any GCC internal prototype to avoid an error.
30322 Use char because int might match the return type of a GCC
30323 builtin and then its argument prototype would still apply. */
30336 rm -f conftest.$ac_objext conftest$ac_exeext
30337 if { (ac_try="$ac_link"
30338 case "(($ac_try" in
30339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340 *) ac_try_echo=$ac_try;;
30342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343 (eval "$ac_link") 2>conftest.er1
30345 grep -v '^ *+' conftest.er1 >conftest.err
30347 cat conftest.err >&5
30348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30349 (exit $ac_status); } && {
30350 test -z "$ac_c_werror_flag" ||
30351 test ! -s conftest.err
30352 } && test -s conftest$ac_exeext &&
30353 $as_test_x conftest$ac_exeext; then
30354 ac_cv_lib_ipc_shmat=yes
30356 echo "$as_me: failed program was:" >&5
30357 sed 's/^/| /' conftest.$ac_ext >&5
30359 ac_cv_lib_ipc_shmat=no
30362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30363 conftest$ac_exeext conftest.$ac_ext
30364 LIBS=$ac_check_lib_save_LIBS
30366 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30367 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30368 if test $ac_cv_lib_ipc_shmat = yes; then
30369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30375 # Check for libraries that X11R6 Xt/Xaw programs need.
30376 ac_save_LDFLAGS=$LDFLAGS
30377 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30378 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30379 # check for ICE first), but we must link in the order -lSM -lICE or
30380 # we get undefined symbols. So assume we have SM if we have ICE.
30381 # These have to be linked with before -lX11, unlike the other
30382 # libraries we check for below, so use a different variable.
30383 # John Interrante, Karl Berry
30384 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30385 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30386 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30387 echo $ECHO_N "(cached) $ECHO_C" >&6
30389 ac_check_lib_save_LIBS=$LIBS
30390 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30391 cat >conftest.$ac_ext <<_ACEOF
30394 cat confdefs.h >>conftest.$ac_ext
30395 cat >>conftest.$ac_ext <<_ACEOF
30396 /* end confdefs.h. */
30398 /* Override any GCC internal prototype to avoid an error.
30399 Use char because int might match the return type of a GCC
30400 builtin and then its argument prototype would still apply. */
30404 char IceConnectionNumber ();
30408 return IceConnectionNumber ();
30413 rm -f conftest.$ac_objext conftest$ac_exeext
30414 if { (ac_try="$ac_link"
30415 case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_link") 2>conftest.er1
30422 grep -v '^ *+' conftest.er1 >conftest.err
30424 cat conftest.err >&5
30425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426 (exit $ac_status); } && {
30427 test -z "$ac_c_werror_flag" ||
30428 test ! -s conftest.err
30429 } && test -s conftest$ac_exeext &&
30430 $as_test_x conftest$ac_exeext; then
30431 ac_cv_lib_ICE_IceConnectionNumber=yes
30433 echo "$as_me: failed program was:" >&5
30434 sed 's/^/| /' conftest.$ac_ext >&5
30436 ac_cv_lib_ICE_IceConnectionNumber=no
30439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30440 conftest$ac_exeext conftest.$ac_ext
30441 LIBS=$ac_check_lib_save_LIBS
30443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30444 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30445 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30446 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30449 LDFLAGS=$ac_save_LDFLAGS
30517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30522 echo $ECHO_N "(cached) $ECHO_C" >&6
30524 ac_res=`eval echo '${'$as_ac_Header'}'`
30525 { echo "$as_me:$LINENO: result: $ac_res" >&5
30526 echo "${ECHO_T}$ac_res" >&6; }
30528 # Is the header compilable?
30529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30531 cat >conftest.$ac_ext <<_ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h. */
30537 $ac_includes_default
30538 #include <$ac_header>
30540 rm -f conftest.$ac_objext
30541 if { (ac_try="$ac_compile"
30542 case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_compile") 2>conftest.er1
30549 grep -v '^ *+' conftest.er1 >conftest.err
30551 cat conftest.err >&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); } && {
30554 test -z "$ac_c_werror_flag" ||
30555 test ! -s conftest.err
30556 } && test -s conftest.$ac_objext; then
30557 ac_header_compiler=yes
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30562 ac_header_compiler=no
30565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30567 echo "${ECHO_T}$ac_header_compiler" >&6; }
30569 # Is the header present?
30570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30572 cat >conftest.$ac_ext <<_ACEOF
30575 cat confdefs.h >>conftest.$ac_ext
30576 cat >>conftest.$ac_ext <<_ACEOF
30577 /* end confdefs.h. */
30578 #include <$ac_header>
30580 if { (ac_try="$ac_cpp conftest.$ac_ext"
30581 case "(($ac_try" in
30582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30583 *) ac_try_echo=$ac_try;;
30585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30588 grep -v '^ *+' conftest.er1 >conftest.err
30590 cat conftest.err >&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); } >/dev/null && {
30593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30594 test ! -s conftest.err
30596 ac_header_preproc=yes
30598 echo "$as_me: failed program was:" >&5
30599 sed 's/^/| /' conftest.$ac_ext >&5
30601 ac_header_preproc=no
30604 rm -f conftest.err conftest.$ac_ext
30605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30606 echo "${ECHO_T}$ac_header_preproc" >&6; }
30608 # So? What about this header?
30609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30615 ac_header_preproc=yes
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30636 echo $ECHO_N "(cached) $ECHO_C" >&6
30638 eval "$as_ac_Header=\$ac_header_preproc"
30640 ac_res=`eval echo '${'$as_ac_Header'}'`
30641 { echo "$as_me:$LINENO: result: $ac_res" >&5
30642 echo "${ECHO_T}$ac_res" >&6; }
30645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30646 cat >>confdefs.h <<_ACEOF
30647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30654 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30655 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30656 if test "${ac_cv_header_stdc+set}" = set; then
30657 echo $ECHO_N "(cached) $ECHO_C" >&6
30659 cat >conftest.$ac_ext <<_ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h. */
30665 #include <stdlib.h>
30666 #include <stdarg.h>
30667 #include <string.h>
30678 rm -f conftest.$ac_objext
30679 if { (ac_try="$ac_compile"
30680 case "(($ac_try" in
30681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30682 *) ac_try_echo=$ac_try;;
30684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30685 (eval "$ac_compile") 2>conftest.er1
30687 grep -v '^ *+' conftest.er1 >conftest.err
30689 cat conftest.err >&5
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } && {
30692 test -z "$ac_c_werror_flag" ||
30693 test ! -s conftest.err
30694 } && test -s conftest.$ac_objext; then
30695 ac_cv_header_stdc=yes
30697 echo "$as_me: failed program was:" >&5
30698 sed 's/^/| /' conftest.$ac_ext >&5
30700 ac_cv_header_stdc=no
30703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705 if test $ac_cv_header_stdc = yes; then
30706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30707 cat >conftest.$ac_ext <<_ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h. */
30713 #include <string.h>
30716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30717 $EGREP "memchr" >/dev/null 2>&1; then
30720 ac_cv_header_stdc=no
30726 if test $ac_cv_header_stdc = yes; then
30727 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30728 cat >conftest.$ac_ext <<_ACEOF
30731 cat confdefs.h >>conftest.$ac_ext
30732 cat >>conftest.$ac_ext <<_ACEOF
30733 /* end confdefs.h. */
30734 #include <stdlib.h>
30737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30738 $EGREP "free" >/dev/null 2>&1; then
30741 ac_cv_header_stdc=no
30747 if test $ac_cv_header_stdc = yes; then
30748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30749 if test "$cross_compiling" = yes; then
30752 cat >conftest.$ac_ext <<_ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30759 #include <stdlib.h>
30760 #if ((' ' & 0x0FF) == 0x020)
30761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30764 # define ISLOWER(c) \
30765 (('a' <= (c) && (c) <= 'i') \
30766 || ('j' <= (c) && (c) <= 'r') \
30767 || ('s' <= (c) && (c) <= 'z'))
30768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30776 for (i = 0; i < 256; i++)
30777 if (XOR (islower (i), ISLOWER (i))
30778 || toupper (i) != TOUPPER (i))
30783 rm -f conftest$ac_exeext
30784 if { (ac_try="$ac_link"
30785 case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_link") 2>&5
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30794 { (case "(($ac_try" in
30795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30796 *) ac_try_echo=$ac_try;;
30798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30799 (eval "$ac_try") 2>&5
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); }; }; then
30805 echo "$as_me: program exited with status $ac_status" >&5
30806 echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30809 ( exit $ac_status )
30810 ac_cv_header_stdc=no
30812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30818 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30819 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30820 if test $ac_cv_header_stdc = yes; then
30822 cat >>confdefs.h <<\_ACEOF
30823 #define STDC_HEADERS 1
30828 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30829 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30830 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30831 echo $ECHO_N "(cached) $ECHO_C" >&6
30833 cat >conftest.$ac_ext <<_ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h. */
30839 #include <sys/types.h>
30843 return makedev(0, 0);
30848 rm -f conftest.$ac_objext conftest$ac_exeext
30849 if { (ac_try="$ac_link"
30850 case "(($ac_try" in
30851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30852 *) ac_try_echo=$ac_try;;
30854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30855 (eval "$ac_link") 2>conftest.er1
30857 grep -v '^ *+' conftest.er1 >conftest.err
30859 cat conftest.err >&5
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); } && {
30862 test -z "$ac_c_werror_flag" ||
30863 test ! -s conftest.err
30864 } && test -s conftest$ac_exeext &&
30865 $as_test_x conftest$ac_exeext; then
30866 ac_cv_header_sys_types_h_makedev=yes
30868 echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30871 ac_cv_header_sys_types_h_makedev=no
30874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30875 conftest$ac_exeext conftest.$ac_ext
30878 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30879 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30881 if test $ac_cv_header_sys_types_h_makedev = no; then
30882 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30883 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30884 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30885 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30886 echo $ECHO_N "(cached) $ECHO_C" >&6
30888 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30889 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30891 # Is the header compilable?
30892 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30893 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30894 cat >conftest.$ac_ext <<_ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h. */
30900 $ac_includes_default
30901 #include <sys/mkdev.h>
30903 rm -f conftest.$ac_objext
30904 if { (ac_try="$ac_compile"
30905 case "(($ac_try" in
30906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30907 *) ac_try_echo=$ac_try;;
30909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30910 (eval "$ac_compile") 2>conftest.er1
30912 grep -v '^ *+' conftest.er1 >conftest.err
30914 cat conftest.err >&5
30915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916 (exit $ac_status); } && {
30917 test -z "$ac_c_werror_flag" ||
30918 test ! -s conftest.err
30919 } && test -s conftest.$ac_objext; then
30920 ac_header_compiler=yes
30922 echo "$as_me: failed program was:" >&5
30923 sed 's/^/| /' conftest.$ac_ext >&5
30925 ac_header_compiler=no
30928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30930 echo "${ECHO_T}$ac_header_compiler" >&6; }
30932 # Is the header present?
30933 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30934 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30935 cat >conftest.$ac_ext <<_ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h. */
30941 #include <sys/mkdev.h>
30943 if { (ac_try="$ac_cpp conftest.$ac_ext"
30944 case "(($ac_try" in
30945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30946 *) ac_try_echo=$ac_try;;
30948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30951 grep -v '^ *+' conftest.er1 >conftest.err
30953 cat conftest.err >&5
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); } >/dev/null && {
30956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30957 test ! -s conftest.err
30959 ac_header_preproc=yes
30961 echo "$as_me: failed program was:" >&5
30962 sed 's/^/| /' conftest.$ac_ext >&5
30964 ac_header_preproc=no
30967 rm -f conftest.err conftest.$ac_ext
30968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30969 echo "${ECHO_T}$ac_header_preproc" >&6; }
30971 # So? What about this header?
30972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30975 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30977 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30978 ac_header_preproc=yes
30981 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
30982 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
30983 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
30984 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
30985 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
30986 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
30988 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
30989 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
30990 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
30991 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
30992 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
30996 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30997 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30998 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30999 echo $ECHO_N "(cached) $ECHO_C" >&6
31001 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31003 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31004 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31007 if test $ac_cv_header_sys_mkdev_h = yes; then
31009 cat >>confdefs.h <<\_ACEOF
31010 #define MAJOR_IN_MKDEV 1
31017 if test $ac_cv_header_sys_mkdev_h = no; then
31018 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31019 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31020 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31021 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31024 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31025 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31027 # Is the header compilable?
31028 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31029 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31030 cat >conftest.$ac_ext <<_ACEOF
31033 cat confdefs.h >>conftest.$ac_ext
31034 cat >>conftest.$ac_ext <<_ACEOF
31035 /* end confdefs.h. */
31036 $ac_includes_default
31037 #include <sys/sysmacros.h>
31039 rm -f conftest.$ac_objext
31040 if { (ac_try="$ac_compile"
31041 case "(($ac_try" in
31042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31043 *) ac_try_echo=$ac_try;;
31045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31046 (eval "$ac_compile") 2>conftest.er1
31048 grep -v '^ *+' conftest.er1 >conftest.err
31050 cat conftest.err >&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } && {
31053 test -z "$ac_c_werror_flag" ||
31054 test ! -s conftest.err
31055 } && test -s conftest.$ac_objext; then
31056 ac_header_compiler=yes
31058 echo "$as_me: failed program was:" >&5
31059 sed 's/^/| /' conftest.$ac_ext >&5
31061 ac_header_compiler=no
31064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31066 echo "${ECHO_T}$ac_header_compiler" >&6; }
31068 # Is the header present?
31069 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31070 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31071 cat >conftest.$ac_ext <<_ACEOF
31074 cat confdefs.h >>conftest.$ac_ext
31075 cat >>conftest.$ac_ext <<_ACEOF
31076 /* end confdefs.h. */
31077 #include <sys/sysmacros.h>
31079 if { (ac_try="$ac_cpp conftest.$ac_ext"
31080 case "(($ac_try" in
31081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082 *) ac_try_echo=$ac_try;;
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31087 grep -v '^ *+' conftest.er1 >conftest.err
31089 cat conftest.err >&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } >/dev/null && {
31092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31093 test ! -s conftest.err
31095 ac_header_preproc=yes
31097 echo "$as_me: failed program was:" >&5
31098 sed 's/^/| /' conftest.$ac_ext >&5
31100 ac_header_preproc=no
31103 rm -f conftest.err conftest.$ac_ext
31104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31105 echo "${ECHO_T}$ac_header_preproc" >&6; }
31107 # So? What about this header?
31108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31111 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31112 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31113 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31114 ac_header_preproc=yes
31117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31118 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31120 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31122 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31123 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31124 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31126 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31127 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31128 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31132 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31133 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31134 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31135 echo $ECHO_N "(cached) $ECHO_C" >&6
31137 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31139 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31140 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31143 if test $ac_cv_header_sys_sysmacros_h = yes; then
31145 cat >>confdefs.h <<\_ACEOF
31146 #define MAJOR_IN_SYSMACROS 1
31160 ac_header_dirent=no
31161 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31162 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31163 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31164 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31166 echo $ECHO_N "(cached) $ECHO_C" >&6
31168 cat >conftest.$ac_ext <<_ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31174 #include <sys/types.h>
31186 rm -f conftest.$ac_objext
31187 if { (ac_try="$ac_compile"
31188 case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_compile") 2>conftest.er1
31195 grep -v '^ *+' conftest.er1 >conftest.err
31197 cat conftest.err >&5
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } && {
31200 test -z "$ac_c_werror_flag" ||
31201 test ! -s conftest.err
31202 } && test -s conftest.$ac_objext; then
31203 eval "$as_ac_Header=yes"
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 eval "$as_ac_Header=no"
31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31213 ac_res=`eval echo '${'$as_ac_Header'}'`
31214 { echo "$as_me:$LINENO: result: $ac_res" >&5
31215 echo "${ECHO_T}$ac_res" >&6; }
31216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31217 cat >>confdefs.h <<_ACEOF
31218 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31221 ac_header_dirent=$ac_hdr; break
31225 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31226 if test $ac_header_dirent = dirent.h; then
31227 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31228 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31229 if test "${ac_cv_search_opendir+set}" = set; then
31230 echo $ECHO_N "(cached) $ECHO_C" >&6
31232 ac_func_search_save_LIBS=$LIBS
31233 cat >conftest.$ac_ext <<_ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h. */
31240 /* Override any GCC internal prototype to avoid an error.
31241 Use char because int might match the return type of a GCC
31242 builtin and then its argument prototype would still apply. */
31255 for ac_lib in '' dir; do
31256 if test -z "$ac_lib"; then
31257 ac_res="none required"
31260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31262 rm -f conftest.$ac_objext conftest$ac_exeext
31263 if { (ac_try="$ac_link"
31264 case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_link") 2>conftest.er1
31271 grep -v '^ *+' conftest.er1 >conftest.err
31273 cat conftest.err >&5
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); } && {
31276 test -z "$ac_c_werror_flag" ||
31277 test ! -s conftest.err
31278 } && test -s conftest$ac_exeext &&
31279 $as_test_x conftest$ac_exeext; then
31280 ac_cv_search_opendir=$ac_res
31282 echo "$as_me: failed program was:" >&5
31283 sed 's/^/| /' conftest.$ac_ext >&5
31288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31290 if test "${ac_cv_search_opendir+set}" = set; then
31294 if test "${ac_cv_search_opendir+set}" = set; then
31297 ac_cv_search_opendir=no
31299 rm conftest.$ac_ext
31300 LIBS=$ac_func_search_save_LIBS
31302 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31303 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31304 ac_res=$ac_cv_search_opendir
31305 if test "$ac_res" != no; then
31306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31311 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31312 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31313 if test "${ac_cv_search_opendir+set}" = set; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31316 ac_func_search_save_LIBS=$LIBS
31317 cat >conftest.$ac_ext <<_ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31324 /* Override any GCC internal prototype to avoid an error.
31325 Use char because int might match the return type of a GCC
31326 builtin and then its argument prototype would still apply. */
31339 for ac_lib in '' x; do
31340 if test -z "$ac_lib"; then
31341 ac_res="none required"
31344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31346 rm -f conftest.$ac_objext conftest$ac_exeext
31347 if { (ac_try="$ac_link"
31348 case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_link") 2>conftest.er1
31355 grep -v '^ *+' conftest.er1 >conftest.err
31357 cat conftest.err >&5
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); } && {
31360 test -z "$ac_c_werror_flag" ||
31361 test ! -s conftest.err
31362 } && test -s conftest$ac_exeext &&
31363 $as_test_x conftest$ac_exeext; then
31364 ac_cv_search_opendir=$ac_res
31366 echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31374 if test "${ac_cv_search_opendir+set}" = set; then
31378 if test "${ac_cv_search_opendir+set}" = set; then
31381 ac_cv_search_opendir=no
31383 rm conftest.$ac_ext
31384 LIBS=$ac_func_search_save_LIBS
31386 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31387 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31388 ac_res=$ac_cv_search_opendir
31389 if test "$ac_res" != no; then
31390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31396 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31397 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31398 if test "${ac_cv_header_stat_broken+set}" = set; then
31399 echo $ECHO_N "(cached) $ECHO_C" >&6
31401 cat >conftest.$ac_ext <<_ACEOF
31404 cat confdefs.h >>conftest.$ac_ext
31405 cat >>conftest.$ac_ext <<_ACEOF
31406 /* end confdefs.h. */
31407 #include <sys/types.h>
31408 #include <sys/stat.h>
31410 #if defined S_ISBLK && defined S_IFDIR
31411 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31414 #if defined S_ISBLK && defined S_IFCHR
31415 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31418 #if defined S_ISLNK && defined S_IFREG
31419 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31422 #if defined S_ISSOCK && defined S_IFREG
31423 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31427 rm -f conftest.$ac_objext
31428 if { (ac_try="$ac_compile"
31429 case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_compile") 2>conftest.er1
31436 grep -v '^ *+' conftest.er1 >conftest.err
31438 cat conftest.err >&5
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); } && {
31441 test -z "$ac_c_werror_flag" ||
31442 test ! -s conftest.err
31443 } && test -s conftest.$ac_objext; then
31444 ac_cv_header_stat_broken=no
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31449 ac_cv_header_stat_broken=yes
31452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31454 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31455 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31456 if test $ac_cv_header_stat_broken = yes; then
31458 cat >>confdefs.h <<\_ACEOF
31459 #define STAT_MACROS_BROKEN 1
31464 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31465 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31466 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31467 echo $ECHO_N "(cached) $ECHO_C" >&6
31469 cat >conftest.$ac_ext <<_ACEOF
31472 cat confdefs.h >>conftest.$ac_ext
31473 cat >>conftest.$ac_ext <<_ACEOF
31474 /* end confdefs.h. */
31475 #include <sys/types.h>
31476 #include <sys/wait.h>
31477 #ifndef WEXITSTATUS
31478 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31481 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31489 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31494 rm -f conftest.$ac_objext
31495 if { (ac_try="$ac_compile"
31496 case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_compile") 2>conftest.er1
31503 grep -v '^ *+' conftest.er1 >conftest.err
31505 cat conftest.err >&5
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } && {
31508 test -z "$ac_c_werror_flag" ||
31509 test ! -s conftest.err
31510 } && test -s conftest.$ac_objext; then
31511 ac_cv_header_sys_wait_h=yes
31513 echo "$as_me: failed program was:" >&5
31514 sed 's/^/| /' conftest.$ac_ext >&5
31516 ac_cv_header_sys_wait_h=no
31519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31521 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31522 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31523 if test $ac_cv_header_sys_wait_h = yes; then
31525 cat >>confdefs.h <<\_ACEOF
31526 #define HAVE_SYS_WAIT_H 1
31531 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31533 if test "${ac_cv_header_time+set}" = set; then
31534 echo $ECHO_N "(cached) $ECHO_C" >&6
31536 cat >conftest.$ac_ext <<_ACEOF
31539 cat confdefs.h >>conftest.$ac_ext
31540 cat >>conftest.$ac_ext <<_ACEOF
31541 /* end confdefs.h. */
31542 #include <sys/types.h>
31543 #include <sys/time.h>
31549 if ((struct tm *) 0)
31555 rm -f conftest.$ac_objext
31556 if { (ac_try="$ac_compile"
31557 case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_compile") 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } && {
31569 test -z "$ac_c_werror_flag" ||
31570 test ! -s conftest.err
31571 } && test -s conftest.$ac_objext; then
31572 ac_cv_header_time=yes
31574 echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31577 ac_cv_header_time=no
31580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31582 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31583 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31584 if test $ac_cv_header_time = yes; then
31586 cat >>confdefs.h <<\_ACEOF
31587 #define TIME_WITH_SYS_TIME 1
31592 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31593 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31594 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31595 echo $ECHO_N "(cached) $ECHO_C" >&6
31597 cat >conftest.$ac_ext <<_ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h. */
31603 $ac_includes_default
31607 static struct stat ac_aggr;
31608 if (ac_aggr.st_blksize)
31614 rm -f conftest.$ac_objext
31615 if { (ac_try="$ac_compile"
31616 case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_compile") 2>conftest.er1
31623 grep -v '^ *+' conftest.er1 >conftest.err
31625 cat conftest.err >&5
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); } && {
31628 test -z "$ac_c_werror_flag" ||
31629 test ! -s conftest.err
31630 } && test -s conftest.$ac_objext; then
31631 ac_cv_member_struct_stat_st_blksize=yes
31633 echo "$as_me: failed program was:" >&5
31634 sed 's/^/| /' conftest.$ac_ext >&5
31636 cat >conftest.$ac_ext <<_ACEOF
31639 cat confdefs.h >>conftest.$ac_ext
31640 cat >>conftest.$ac_ext <<_ACEOF
31641 /* end confdefs.h. */
31642 $ac_includes_default
31646 static struct stat ac_aggr;
31647 if (sizeof ac_aggr.st_blksize)
31653 rm -f conftest.$ac_objext
31654 if { (ac_try="$ac_compile"
31655 case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_compile") 2>conftest.er1
31662 grep -v '^ *+' conftest.er1 >conftest.err
31664 cat conftest.err >&5
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); } && {
31667 test -z "$ac_c_werror_flag" ||
31668 test ! -s conftest.err
31669 } && test -s conftest.$ac_objext; then
31670 ac_cv_member_struct_stat_st_blksize=yes
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31675 ac_cv_member_struct_stat_st_blksize=no
31678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31684 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31685 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31687 cat >>confdefs.h <<_ACEOF
31688 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31692 cat >>confdefs.h <<\_ACEOF
31693 #define HAVE_ST_BLKSIZE 1
31699 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31700 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31701 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31702 echo $ECHO_N "(cached) $ECHO_C" >&6
31704 cat >conftest.$ac_ext <<_ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h. */
31710 $ac_includes_default
31714 static struct stat ac_aggr;
31715 if (ac_aggr.st_blocks)
31721 rm -f conftest.$ac_objext
31722 if { (ac_try="$ac_compile"
31723 case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_compile") 2>conftest.er1
31730 grep -v '^ *+' conftest.er1 >conftest.err
31732 cat conftest.err >&5
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); } && {
31735 test -z "$ac_c_werror_flag" ||
31736 test ! -s conftest.err
31737 } && test -s conftest.$ac_objext; then
31738 ac_cv_member_struct_stat_st_blocks=yes
31740 echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31743 cat >conftest.$ac_ext <<_ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h. */
31749 $ac_includes_default
31753 static struct stat ac_aggr;
31754 if (sizeof ac_aggr.st_blocks)
31760 rm -f conftest.$ac_objext
31761 if { (ac_try="$ac_compile"
31762 case "(($ac_try" in
31763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31764 *) ac_try_echo=$ac_try;;
31766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31767 (eval "$ac_compile") 2>conftest.er1
31769 grep -v '^ *+' conftest.er1 >conftest.err
31771 cat conftest.err >&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); } && {
31774 test -z "$ac_c_werror_flag" ||
31775 test ! -s conftest.err
31776 } && test -s conftest.$ac_objext; then
31777 ac_cv_member_struct_stat_st_blocks=yes
31779 echo "$as_me: failed program was:" >&5
31780 sed 's/^/| /' conftest.$ac_ext >&5
31782 ac_cv_member_struct_stat_st_blocks=no
31785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31790 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31791 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31792 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31794 cat >>confdefs.h <<_ACEOF
31795 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31799 cat >>confdefs.h <<\_ACEOF
31800 #define HAVE_ST_BLOCKS 1
31804 case " $LIBOBJS " in
31805 *" fileblocks.$ac_objext "* ) ;;
31806 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31813 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31814 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31815 if test "${ac_cv_struct_tm+set}" = set; then
31816 echo $ECHO_N "(cached) $ECHO_C" >&6
31818 cat >conftest.$ac_ext <<_ACEOF
31821 cat confdefs.h >>conftest.$ac_ext
31822 cat >>conftest.$ac_ext <<_ACEOF
31823 /* end confdefs.h. */
31824 #include <sys/types.h>
31831 int *p = &tm.tm_sec;
31837 rm -f conftest.$ac_objext
31838 if { (ac_try="$ac_compile"
31839 case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_compile") 2>conftest.er1
31846 grep -v '^ *+' conftest.er1 >conftest.err
31848 cat conftest.err >&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); } && {
31851 test -z "$ac_c_werror_flag" ||
31852 test ! -s conftest.err
31853 } && test -s conftest.$ac_objext; then
31854 ac_cv_struct_tm=time.h
31856 echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31859 ac_cv_struct_tm=sys/time.h
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31864 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31865 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31866 if test $ac_cv_struct_tm = sys/time.h; then
31868 cat >>confdefs.h <<\_ACEOF
31869 #define TM_IN_SYS_TIME 1
31874 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31875 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31876 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31877 echo $ECHO_N "(cached) $ECHO_C" >&6
31879 cat >conftest.$ac_ext <<_ACEOF
31882 cat confdefs.h >>conftest.$ac_ext
31883 cat >>conftest.$ac_ext <<_ACEOF
31884 /* end confdefs.h. */
31885 #include <sys/types.h>
31886 #include <$ac_cv_struct_tm>
31892 static struct tm ac_aggr;
31893 if (ac_aggr.tm_zone)
31899 rm -f conftest.$ac_objext
31900 if { (ac_try="$ac_compile"
31901 case "(($ac_try" in
31902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903 *) ac_try_echo=$ac_try;;
31905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906 (eval "$ac_compile") 2>conftest.er1
31908 grep -v '^ *+' conftest.er1 >conftest.err
31910 cat conftest.err >&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); } && {
31913 test -z "$ac_c_werror_flag" ||
31914 test ! -s conftest.err
31915 } && test -s conftest.$ac_objext; then
31916 ac_cv_member_struct_tm_tm_zone=yes
31918 echo "$as_me: failed program was:" >&5
31919 sed 's/^/| /' conftest.$ac_ext >&5
31921 cat >conftest.$ac_ext <<_ACEOF
31924 cat confdefs.h >>conftest.$ac_ext
31925 cat >>conftest.$ac_ext <<_ACEOF
31926 /* end confdefs.h. */
31927 #include <sys/types.h>
31928 #include <$ac_cv_struct_tm>
31934 static struct tm ac_aggr;
31935 if (sizeof ac_aggr.tm_zone)
31941 rm -f conftest.$ac_objext
31942 if { (ac_try="$ac_compile"
31943 case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_compile") 2>conftest.er1
31950 grep -v '^ *+' conftest.er1 >conftest.err
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } && {
31955 test -z "$ac_c_werror_flag" ||
31956 test ! -s conftest.err
31957 } && test -s conftest.$ac_objext; then
31958 ac_cv_member_struct_tm_tm_zone=yes
31960 echo "$as_me: failed program was:" >&5
31961 sed 's/^/| /' conftest.$ac_ext >&5
31963 ac_cv_member_struct_tm_tm_zone=no
31966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31971 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31972 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31973 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31975 cat >>confdefs.h <<_ACEOF
31976 #define HAVE_STRUCT_TM_TM_ZONE 1
31982 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31984 cat >>confdefs.h <<\_ACEOF
31985 #define HAVE_TM_ZONE 1
31989 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
31990 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
31991 if test "${ac_cv_have_decl_tzname+set}" = set; then
31992 echo $ECHO_N "(cached) $ECHO_C" >&6
31994 cat >conftest.$ac_ext <<_ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h. */
32013 rm -f conftest.$ac_objext
32014 if { (ac_try="$ac_compile"
32015 case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_compile") 2>conftest.er1
32022 grep -v '^ *+' conftest.er1 >conftest.err
32024 cat conftest.err >&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); } && {
32027 test -z "$ac_c_werror_flag" ||
32028 test ! -s conftest.err
32029 } && test -s conftest.$ac_objext; then
32030 ac_cv_have_decl_tzname=yes
32032 echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32035 ac_cv_have_decl_tzname=no
32038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32041 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32042 if test $ac_cv_have_decl_tzname = yes; then
32044 cat >>confdefs.h <<_ACEOF
32045 #define HAVE_DECL_TZNAME 1
32050 cat >>confdefs.h <<_ACEOF
32051 #define HAVE_DECL_TZNAME 0
32058 { echo "$as_me:$LINENO: checking for tzname" >&5
32059 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32060 if test "${ac_cv_var_tzname+set}" = set; then
32061 echo $ECHO_N "(cached) $ECHO_C" >&6
32063 cat >conftest.$ac_ext <<_ACEOF
32066 cat confdefs.h >>conftest.$ac_ext
32067 cat >>conftest.$ac_ext <<_ACEOF
32068 /* end confdefs.h. */
32070 #if !HAVE_DECL_TZNAME
32071 extern char *tzname[];
32077 return tzname[0][0];
32082 rm -f conftest.$ac_objext conftest$ac_exeext
32083 if { (ac_try="$ac_link"
32084 case "(($ac_try" in
32085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086 *) ac_try_echo=$ac_try;;
32088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089 (eval "$ac_link") 2>conftest.er1
32091 grep -v '^ *+' conftest.er1 >conftest.err
32093 cat conftest.err >&5
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); } && {
32096 test -z "$ac_c_werror_flag" ||
32097 test ! -s conftest.err
32098 } && test -s conftest$ac_exeext &&
32099 $as_test_x conftest$ac_exeext; then
32100 ac_cv_var_tzname=yes
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32105 ac_cv_var_tzname=no
32108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32109 conftest$ac_exeext conftest.$ac_ext
32111 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32112 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32113 if test $ac_cv_var_tzname = yes; then
32115 cat >>confdefs.h <<\_ACEOF
32116 #define HAVE_TZNAME 1
32123 { echo "$as_me:$LINENO: checking for utime.h" >&5
32124 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32125 if test "${ba_cv_header_utime_h+set}" = set; then
32126 echo $ECHO_N "(cached) $ECHO_C" >&6
32129 cat >conftest.$ac_ext <<_ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h. */
32136 #include <sys/types.h>
32149 rm -f conftest.$ac_objext
32150 if { (ac_try="$ac_compile"
32151 case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_compile") 2>conftest.er1
32158 grep -v '^ *+' conftest.er1 >conftest.err
32160 cat conftest.err >&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); } && {
32163 test -z "$ac_c_werror_flag" ||
32164 test ! -s conftest.err
32165 } && test -s conftest.$ac_objext; then
32167 ba_cv_header_utime_h=yes
32170 echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.$ac_ext >&5
32174 ba_cv_header_utime_h=no
32179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32183 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32184 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32185 test $ba_cv_header_utime_h = yes &&
32186 cat >>confdefs.h <<\_ACEOF
32187 #define HAVE_UTIME_H 1
32191 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32192 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32193 if test "${ba_cv_header_socklen_t+set}" = set; then
32194 echo $ECHO_N "(cached) $ECHO_C" >&6
32197 cat >conftest.$ac_ext <<_ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h. */
32204 #include <sys/types.h>
32205 #include <sys/socket.h>
32217 rm -f conftest.$ac_objext
32218 if { (ac_try="$ac_compile"
32219 case "(($ac_try" in
32220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221 *) ac_try_echo=$ac_try;;
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224 (eval "$ac_compile") 2>conftest.er1
32226 grep -v '^ *+' conftest.er1 >conftest.err
32228 cat conftest.err >&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } && {
32231 test -z "$ac_c_werror_flag" ||
32232 test ! -s conftest.err
32233 } && test -s conftest.$ac_objext; then
32235 ba_cv_header_socklen_t=yes
32238 echo "$as_me: failed program was:" >&5
32239 sed 's/^/| /' conftest.$ac_ext >&5
32242 ba_cv_header_socklen_t=no
32247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32251 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32252 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32253 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32254 #define HAVE_SOCKLEN_T 1
32258 { echo "$as_me:$LINENO: checking for bigendian" >&5
32259 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32260 if test "${ba_cv_bigendian+set}" = set; then
32261 echo $ECHO_N "(cached) $ECHO_C" >&6
32264 if test "$cross_compiling" = yes; then
32270 cat >conftest.$ac_ext <<_ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h. */
32277 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32280 rm -f conftest$ac_exeext
32281 if { (ac_try="$ac_link"
32282 case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_link") 2>&5
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32291 { (case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_try") 2>&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
32301 ba_cv_bigendian=yes
32304 echo "$as_me: program exited with status $ac_status" >&5
32305 echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32308 ( exit $ac_status )
32313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32320 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32321 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32322 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_BIGENDIAN 1
32328 ac_cpp='$CXXCPP $CPPFLAGS'
32329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32333 { echo "$as_me:$LINENO: checking for typeof" >&5
32334 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32335 if test "${ba_cv_have_typeof+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32339 if test "$cross_compiling" = yes; then
32341 ba_cv_have_typeof=no
32345 cat >conftest.$ac_ext <<_ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h. */
32352 main(){char *a = 0; a = (typeof a)a;}
32355 rm -f conftest$ac_exeext
32356 if { (ac_try="$ac_link"
32357 case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_link") 2>&5
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32366 { (case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_try") 2>&5
32373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374 (exit $ac_status); }; }; then
32376 ba_cv_have_typeof=yes
32379 echo "$as_me: program exited with status $ac_status" >&5
32380 echo "$as_me: failed program was:" >&5
32381 sed 's/^/| /' conftest.$ac_ext >&5
32383 ( exit $ac_status )
32385 ba_cv_have_typeof=no
32388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32395 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32396 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32397 test $ba_cv_have_typeof = yes &&
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_TYPEOF 1
32403 ac_cpp='$CPP $CPPFLAGS'
32404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32409 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32410 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32411 if test "${ac_cv_c_const+set}" = set; then
32412 echo $ECHO_N "(cached) $ECHO_C" >&6
32414 cat >conftest.$ac_ext <<_ACEOF
32417 cat confdefs.h >>conftest.$ac_ext
32418 cat >>conftest.$ac_ext <<_ACEOF
32419 /* end confdefs.h. */
32424 /* FIXME: Include the comments suggested by Paul. */
32425 #ifndef __cplusplus
32426 /* Ultrix mips cc rejects this. */
32427 typedef int charset[2];
32429 /* SunOS 4.1.1 cc rejects this. */
32430 char const *const *pcpcc;
32432 /* NEC SVR4.0.2 mips cc rejects this. */
32433 struct point {int x, y;};
32434 static struct point const zero = {0,0};
32435 /* AIX XL C 1.02.0.0 rejects this.
32436 It does not let you subtract one const X* pointer from another in
32437 an arm of an if-expression whose if-part is not a constant
32439 const char *g = "string";
32440 pcpcc = &g + (g ? g-g : 0);
32441 /* HPUX 7.0 cc rejects these. */
32443 ppc = (char**) pcpcc;
32444 pcpcc = (char const *const *) ppc;
32445 { /* SCO 3.2v4 cc rejects this. */
32447 char const *s = 0 ? (char *) 0 : (char const *) 0;
32452 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32453 int x[] = {25, 17};
32454 const int *foo = &x[0];
32457 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32458 typedef const int *iptr;
32462 { /* AIX XL C 1.02.0.0 rejects this saying
32463 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32464 struct s { int j; const int *ap[3]; };
32465 struct s *b; b->j = 5;
32467 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32468 const int foo = 10;
32469 if (!foo) return 0;
32471 return !cs[0] && !zero.x;
32478 rm -f conftest.$ac_objext
32479 if { (ac_try="$ac_compile"
32480 case "(($ac_try" in
32481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32482 *) ac_try_echo=$ac_try;;
32484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32485 (eval "$ac_compile") 2>conftest.er1
32487 grep -v '^ *+' conftest.er1 >conftest.err
32489 cat conftest.err >&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); } && {
32492 test -z "$ac_c_werror_flag" ||
32493 test ! -s conftest.err
32494 } && test -s conftest.$ac_objext; then
32497 echo "$as_me: failed program was:" >&5
32498 sed 's/^/| /' conftest.$ac_ext >&5
32503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32505 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32506 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32507 if test $ac_cv_c_const = no; then
32509 cat >>confdefs.h <<\_ACEOF
32516 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32517 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32519 # The order of these tests is important.
32520 cat >conftest.$ac_ext <<_ACEOF
32523 cat confdefs.h >>conftest.$ac_ext
32524 cat >>conftest.$ac_ext <<_ACEOF
32525 /* end confdefs.h. */
32527 #include <sys/statvfs.h>
32528 #include <sys/fstyp.h>
32531 if { (ac_try="$ac_cpp conftest.$ac_ext"
32532 case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32539 grep -v '^ *+' conftest.er1 >conftest.err
32541 cat conftest.err >&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } >/dev/null && {
32544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32545 test ! -s conftest.err
32547 cat >>confdefs.h <<\_ACEOF
32548 #define FSTYPE_STATVFS 1
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32559 rm -f conftest.err conftest.$ac_ext
32560 if test $fstype = no; then
32561 cat >conftest.$ac_ext <<_ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h. */
32568 #include <sys/statfs.h>
32569 #include <sys/fstyp.h>
32572 if { (ac_try="$ac_cpp conftest.$ac_ext"
32573 case "(($ac_try" in
32574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575 *) ac_try_echo=$ac_try;;
32577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32580 grep -v '^ *+' conftest.er1 >conftest.err
32582 cat conftest.err >&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); } >/dev/null && {
32585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32586 test ! -s conftest.err
32588 cat >>confdefs.h <<\_ACEOF
32589 #define FSTYPE_USG_STATFS 1
32594 echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32600 rm -f conftest.err conftest.$ac_ext
32602 if test $fstype = no; then
32603 cat >conftest.$ac_ext <<_ACEOF
32606 cat confdefs.h >>conftest.$ac_ext
32607 cat >>conftest.$ac_ext <<_ACEOF
32608 /* end confdefs.h. */
32610 #include <sys/statfs.h>
32611 #include <sys/vmount.h>
32614 if { (ac_try="$ac_cpp conftest.$ac_ext"
32615 case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32622 grep -v '^ *+' conftest.er1 >conftest.err
32624 cat conftest.err >&5
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); } >/dev/null && {
32627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32628 test ! -s conftest.err
32630 cat >>confdefs.h <<\_ACEOF
32631 #define FSTYPE_AIX_STATFS 1
32636 echo "$as_me: failed program was:" >&5
32637 sed 's/^/| /' conftest.$ac_ext >&5
32642 rm -f conftest.err conftest.$ac_ext
32644 if test $fstype = no; then
32645 cat >conftest.$ac_ext <<_ACEOF
32648 cat confdefs.h >>conftest.$ac_ext
32649 cat >>conftest.$ac_ext <<_ACEOF
32650 /* end confdefs.h. */
32652 #include <mntent.h>
32655 if { (ac_try="$ac_cpp conftest.$ac_ext"
32656 case "(($ac_try" in
32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658 *) ac_try_echo=$ac_try;;
32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32663 grep -v '^ *+' conftest.er1 >conftest.err
32665 cat conftest.err >&5
32666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32667 (exit $ac_status); } >/dev/null && {
32668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32669 test ! -s conftest.err
32671 cat >>confdefs.h <<\_ACEOF
32672 #define FSTYPE_MNTENT 1
32677 echo "$as_me: failed program was:" >&5
32678 sed 's/^/| /' conftest.$ac_ext >&5
32683 rm -f conftest.err conftest.$ac_ext
32685 if test $fstype = no; then
32686 cat >conftest.$ac_ext <<_ACEOF
32689 cat confdefs.h >>conftest.$ac_ext
32690 cat >>conftest.$ac_ext <<_ACEOF
32691 /* end confdefs.h. */
32692 #include <sys/mount.h>
32695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32696 $EGREP "f_type;" >/dev/null 2>&1; then
32697 cat >>confdefs.h <<\_ACEOF
32698 #define FSTYPE_STATFS 1
32705 if test $fstype = no; then
32706 cat >conftest.$ac_ext <<_ACEOF
32709 cat confdefs.h >>conftest.$ac_ext
32710 cat >>conftest.$ac_ext <<_ACEOF
32711 /* end confdefs.h. */
32713 #include <sys/mount.h>
32714 #include <sys/fs_types.h>
32717 if { (ac_try="$ac_cpp conftest.$ac_ext"
32718 case "(($ac_try" in
32719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 *) ac_try_echo=$ac_try;;
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32725 grep -v '^ *+' conftest.er1 >conftest.err
32727 cat conftest.err >&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } >/dev/null && {
32730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32731 test ! -s conftest.err
32733 cat >>confdefs.h <<\_ACEOF
32734 #define FSTYPE_GETMNT 1
32739 echo "$as_me: failed program was:" >&5
32740 sed 's/^/| /' conftest.$ac_ext >&5
32745 rm -f conftest.err conftest.$ac_ext
32747 { echo "$as_me:$LINENO: result: $fstype" >&5
32748 echo "${ECHO_T}$fstype" >&6; }
32750 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32751 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32752 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32753 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32754 echo $ECHO_N "(cached) $ECHO_C" >&6
32756 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32757 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32759 # Is the header compilable?
32760 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32761 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32762 cat >conftest.$ac_ext <<_ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h. */
32768 $ac_includes_default
32769 #include <sys/statvfs.h>
32771 rm -f conftest.$ac_objext
32772 if { (ac_try="$ac_compile"
32773 case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_compile") 2>conftest.er1
32780 grep -v '^ *+' conftest.er1 >conftest.err
32782 cat conftest.err >&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); } && {
32785 test -z "$ac_c_werror_flag" ||
32786 test ! -s conftest.err
32787 } && test -s conftest.$ac_objext; then
32788 ac_header_compiler=yes
32790 echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32793 ac_header_compiler=no
32796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32798 echo "${ECHO_T}$ac_header_compiler" >&6; }
32800 # Is the header present?
32801 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32802 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32803 cat >conftest.$ac_ext <<_ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h. */
32809 #include <sys/statvfs.h>
32811 if { (ac_try="$ac_cpp conftest.$ac_ext"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32819 grep -v '^ *+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } >/dev/null && {
32824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32827 ac_header_preproc=yes
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32832 ac_header_preproc=no
32835 rm -f conftest.err conftest.$ac_ext
32836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32837 echo "${ECHO_T}$ac_header_preproc" >&6; }
32839 # So? What about this header?
32840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32842 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32843 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32844 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32845 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32846 ac_header_preproc=yes
32849 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32850 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32851 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32852 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32853 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32854 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32855 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32856 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32857 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32858 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32859 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32860 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32864 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32865 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32866 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32867 echo $ECHO_N "(cached) $ECHO_C" >&6
32869 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32872 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32875 if test $ac_cv_header_sys_statvfs_h = yes; then
32877 cat >>confdefs.h <<\_ACEOF
32878 #define HAVE_SYS_STATVFS_H 1
32885 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32886 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32887 if test "${ac_cv_type_signal+set}" = set; then
32888 echo $ECHO_N "(cached) $ECHO_C" >&6
32890 cat >conftest.$ac_ext <<_ACEOF
32893 cat confdefs.h >>conftest.$ac_ext
32894 cat >>conftest.$ac_ext <<_ACEOF
32895 /* end confdefs.h. */
32896 #include <sys/types.h>
32897 #include <signal.h>
32902 return *(signal (0, 0)) (0) == 1;
32907 rm -f conftest.$ac_objext
32908 if { (ac_try="$ac_compile"
32909 case "(($ac_try" in
32910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32911 *) ac_try_echo=$ac_try;;
32913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32914 (eval "$ac_compile") 2>conftest.er1
32916 grep -v '^ *+' conftest.er1 >conftest.err
32918 cat conftest.err >&5
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); } && {
32921 test -z "$ac_c_werror_flag" ||
32922 test ! -s conftest.err
32923 } && test -s conftest.$ac_objext; then
32924 ac_cv_type_signal=int
32926 echo "$as_me: failed program was:" >&5
32927 sed 's/^/| /' conftest.$ac_ext >&5
32929 ac_cv_type_signal=void
32932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32934 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32935 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32937 cat >>confdefs.h <<_ACEOF
32938 #define RETSIGTYPE $ac_cv_type_signal
32943 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32944 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32945 if test "${bash_cv_signal_vintage+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32949 cat >conftest.$ac_ext <<_ACEOF
32952 cat confdefs.h >>conftest.$ac_ext
32953 cat >>conftest.$ac_ext <<_ACEOF
32954 /* end confdefs.h. */
32955 #include <signal.h>
32961 struct sigaction sa;
32962 sigemptyset(&ss); sigsuspend(&ss);
32963 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32964 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32970 rm -f conftest.$ac_objext conftest$ac_exeext
32971 if { (ac_try="$ac_link"
32972 case "(($ac_try" in
32973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32974 *) ac_try_echo=$ac_try;;
32976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32977 (eval "$ac_link") 2>conftest.er1
32979 grep -v '^ *+' conftest.er1 >conftest.err
32981 cat conftest.err >&5
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); } && {
32984 test -z "$ac_c_werror_flag" ||
32985 test ! -s conftest.err
32986 } && test -s conftest$ac_exeext &&
32987 $as_test_x conftest$ac_exeext; then
32988 bash_cv_signal_vintage="posix"
32990 echo "$as_me: failed program was:" >&5
32991 sed 's/^/| /' conftest.$ac_ext >&5
32994 cat >conftest.$ac_ext <<_ACEOF
32997 cat confdefs.h >>conftest.$ac_ext
32998 cat >>conftest.$ac_ext <<_ACEOF
32999 /* end confdefs.h. */
33000 #include <signal.h>
33005 int mask = sigmask(SIGINT);
33006 sigsetmask(mask); sigblock(mask); sigpause(mask);
33012 rm -f conftest.$ac_objext conftest$ac_exeext
33013 if { (ac_try="$ac_link"
33014 case "(($ac_try" in
33015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33016 *) ac_try_echo=$ac_try;;
33018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33019 (eval "$ac_link") 2>conftest.er1
33021 grep -v '^ *+' conftest.er1 >conftest.err
33023 cat conftest.err >&5
33024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); } && {
33026 test -z "$ac_c_werror_flag" ||
33027 test ! -s conftest.err
33028 } && test -s conftest$ac_exeext &&
33029 $as_test_x conftest$ac_exeext; then
33030 bash_cv_signal_vintage="4.2bsd"
33032 echo "$as_me: failed program was:" >&5
33033 sed 's/^/| /' conftest.$ac_ext >&5
33036 cat >conftest.$ac_ext <<_ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h. */
33043 #include <signal.h>
33044 RETSIGTYPE foo() { }
33049 int mask = sigmask(SIGINT);
33050 sigset(SIGINT, foo); sigrelse(SIGINT);
33051 sighold(SIGINT); sigpause(SIGINT);
33057 rm -f conftest.$ac_objext conftest$ac_exeext
33058 if { (ac_try="$ac_link"
33059 case "(($ac_try" in
33060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33061 *) ac_try_echo=$ac_try;;
33063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33064 (eval "$ac_link") 2>conftest.er1
33066 grep -v '^ *+' conftest.er1 >conftest.err
33068 cat conftest.err >&5
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); } && {
33071 test -z "$ac_c_werror_flag" ||
33072 test ! -s conftest.err
33073 } && test -s conftest$ac_exeext &&
33074 $as_test_x conftest$ac_exeext; then
33075 bash_cv_signal_vintage="svr3"
33077 echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33080 bash_cv_signal_vintage="v7"
33084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33085 conftest$ac_exeext conftest.$ac_ext
33089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33090 conftest$ac_exeext conftest.$ac_ext
33094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33095 conftest$ac_exeext conftest.$ac_ext
33099 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33100 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33101 if test "$bash_cv_signal_vintage" = "posix"; then
33102 cat >>confdefs.h <<\_ACEOF
33103 #define HAVE_POSIX_SIGNALS 1
33106 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33107 cat >>confdefs.h <<\_ACEOF
33108 #define HAVE_BSD_SIGNALS 1
33111 elif test "$bash_cv_signal_vintage" = "svr3"; then
33112 cat >>confdefs.h <<\_ACEOF
33113 #define HAVE_USG_SIGHOLD 1
33118 { echo "$as_me:$LINENO: checking for mode_t" >&5
33119 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33120 if test "${ac_cv_type_mode_t+set}" = set; then
33121 echo $ECHO_N "(cached) $ECHO_C" >&6
33123 cat >conftest.$ac_ext <<_ACEOF
33126 cat confdefs.h >>conftest.$ac_ext
33127 cat >>conftest.$ac_ext <<_ACEOF
33128 /* end confdefs.h. */
33129 $ac_includes_default
33130 typedef mode_t ac__type_new_;
33134 if ((ac__type_new_ *) 0)
33136 if (sizeof (ac__type_new_))
33142 rm -f conftest.$ac_objext
33143 if { (ac_try="$ac_compile"
33144 case "(($ac_try" in
33145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33146 *) ac_try_echo=$ac_try;;
33148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33149 (eval "$ac_compile") 2>conftest.er1
33151 grep -v '^ *+' conftest.er1 >conftest.err
33153 cat conftest.err >&5
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); } && {
33156 test -z "$ac_c_werror_flag" ||
33157 test ! -s conftest.err
33158 } && test -s conftest.$ac_objext; then
33159 ac_cv_type_mode_t=yes
33161 echo "$as_me: failed program was:" >&5
33162 sed 's/^/| /' conftest.$ac_ext >&5
33164 ac_cv_type_mode_t=no
33167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33169 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33170 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33171 if test $ac_cv_type_mode_t = yes; then
33175 cat >>confdefs.h <<_ACEOF
33181 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33182 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33183 if test "${ac_cv_type_uid_t+set}" = set; then
33184 echo $ECHO_N "(cached) $ECHO_C" >&6
33186 cat >conftest.$ac_ext <<_ACEOF
33189 cat confdefs.h >>conftest.$ac_ext
33190 cat >>conftest.$ac_ext <<_ACEOF
33191 /* end confdefs.h. */
33192 #include <sys/types.h>
33195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33196 $EGREP "uid_t" >/dev/null 2>&1; then
33197 ac_cv_type_uid_t=yes
33199 ac_cv_type_uid_t=no
33204 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33205 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33206 if test $ac_cv_type_uid_t = no; then
33208 cat >>confdefs.h <<\_ACEOF
33213 cat >>confdefs.h <<\_ACEOF
33219 { echo "$as_me:$LINENO: checking for size_t" >&5
33220 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33221 if test "${ac_cv_type_size_t+set}" = set; then
33222 echo $ECHO_N "(cached) $ECHO_C" >&6
33224 cat >conftest.$ac_ext <<_ACEOF
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h. */
33230 $ac_includes_default
33231 typedef size_t ac__type_new_;
33235 if ((ac__type_new_ *) 0)
33237 if (sizeof (ac__type_new_))
33243 rm -f conftest.$ac_objext
33244 if { (ac_try="$ac_compile"
33245 case "(($ac_try" in
33246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33247 *) ac_try_echo=$ac_try;;
33249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33250 (eval "$ac_compile") 2>conftest.er1
33252 grep -v '^ *+' conftest.er1 >conftest.err
33254 cat conftest.err >&5
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); } && {
33257 test -z "$ac_c_werror_flag" ||
33258 test ! -s conftest.err
33259 } && test -s conftest.$ac_objext; then
33260 ac_cv_type_size_t=yes
33262 echo "$as_me: failed program was:" >&5
33263 sed 's/^/| /' conftest.$ac_ext >&5
33265 ac_cv_type_size_t=no
33268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33270 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33271 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33272 if test $ac_cv_type_size_t = yes; then
33276 cat >>confdefs.h <<_ACEOF
33277 #define size_t unsigned int
33282 { echo "$as_me:$LINENO: checking for pid_t" >&5
33283 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33284 if test "${ac_cv_type_pid_t+set}" = set; then
33285 echo $ECHO_N "(cached) $ECHO_C" >&6
33287 cat >conftest.$ac_ext <<_ACEOF
33290 cat confdefs.h >>conftest.$ac_ext
33291 cat >>conftest.$ac_ext <<_ACEOF
33292 /* end confdefs.h. */
33293 $ac_includes_default
33294 typedef pid_t ac__type_new_;
33298 if ((ac__type_new_ *) 0)
33300 if (sizeof (ac__type_new_))
33306 rm -f conftest.$ac_objext
33307 if { (ac_try="$ac_compile"
33308 case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_compile") 2>conftest.er1
33315 grep -v '^ *+' conftest.er1 >conftest.err
33317 cat conftest.err >&5
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); } && {
33320 test -z "$ac_c_werror_flag" ||
33321 test ! -s conftest.err
33322 } && test -s conftest.$ac_objext; then
33323 ac_cv_type_pid_t=yes
33325 echo "$as_me: failed program was:" >&5
33326 sed 's/^/| /' conftest.$ac_ext >&5
33328 ac_cv_type_pid_t=no
33331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33334 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33335 if test $ac_cv_type_pid_t = yes; then
33339 cat >>confdefs.h <<_ACEOF
33345 { echo "$as_me:$LINENO: checking for off_t" >&5
33346 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33347 if test "${ac_cv_type_off_t+set}" = set; then
33348 echo $ECHO_N "(cached) $ECHO_C" >&6
33350 cat >conftest.$ac_ext <<_ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h. */
33356 $ac_includes_default
33357 typedef off_t ac__type_new_;
33361 if ((ac__type_new_ *) 0)
33363 if (sizeof (ac__type_new_))
33369 rm -f conftest.$ac_objext
33370 if { (ac_try="$ac_compile"
33371 case "(($ac_try" in
33372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373 *) ac_try_echo=$ac_try;;
33375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376 (eval "$ac_compile") 2>conftest.er1
33378 grep -v '^ *+' conftest.er1 >conftest.err
33380 cat conftest.err >&5
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); } && {
33383 test -z "$ac_c_werror_flag" ||
33384 test ! -s conftest.err
33385 } && test -s conftest.$ac_objext; then
33386 ac_cv_type_off_t=yes
33388 echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.$ac_ext >&5
33391 ac_cv_type_off_t=no
33394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33396 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33397 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33398 if test $ac_cv_type_off_t = yes; then
33402 cat >>confdefs.h <<_ACEOF
33403 #define off_t long int
33408 { echo "$as_me:$LINENO: checking for ino_t" >&5
33409 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33410 if test "${ac_cv_type_ino_t+set}" = set; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33413 cat >conftest.$ac_ext <<_ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h. */
33419 $ac_includes_default
33420 typedef ino_t ac__type_new_;
33424 if ((ac__type_new_ *) 0)
33426 if (sizeof (ac__type_new_))
33432 rm -f conftest.$ac_objext
33433 if { (ac_try="$ac_compile"
33434 case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_compile") 2>conftest.er1
33441 grep -v '^ *+' conftest.er1 >conftest.err
33443 cat conftest.err >&5
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); } && {
33446 test -z "$ac_c_werror_flag" ||
33447 test ! -s conftest.err
33448 } && test -s conftest.$ac_objext; then
33449 ac_cv_type_ino_t=yes
33451 echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33454 ac_cv_type_ino_t=no
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33459 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33460 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33461 if test $ac_cv_type_ino_t = yes; then
33465 cat >>confdefs.h <<_ACEOF
33466 #define ino_t unsigned long
33471 { echo "$as_me:$LINENO: checking for dev_t" >&5
33472 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33473 if test "${ac_cv_type_dev_t+set}" = set; then
33474 echo $ECHO_N "(cached) $ECHO_C" >&6
33476 cat >conftest.$ac_ext <<_ACEOF
33479 cat confdefs.h >>conftest.$ac_ext
33480 cat >>conftest.$ac_ext <<_ACEOF
33481 /* end confdefs.h. */
33482 $ac_includes_default
33483 typedef dev_t ac__type_new_;
33487 if ((ac__type_new_ *) 0)
33489 if (sizeof (ac__type_new_))
33495 rm -f conftest.$ac_objext
33496 if { (ac_try="$ac_compile"
33497 case "(($ac_try" in
33498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33499 *) ac_try_echo=$ac_try;;
33501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33502 (eval "$ac_compile") 2>conftest.er1
33504 grep -v '^ *+' conftest.er1 >conftest.err
33506 cat conftest.err >&5
33507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33508 (exit $ac_status); } && {
33509 test -z "$ac_c_werror_flag" ||
33510 test ! -s conftest.err
33511 } && test -s conftest.$ac_objext; then
33512 ac_cv_type_dev_t=yes
33514 echo "$as_me: failed program was:" >&5
33515 sed 's/^/| /' conftest.$ac_ext >&5
33517 ac_cv_type_dev_t=no
33520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33522 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33523 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33524 if test $ac_cv_type_dev_t = yes; then
33528 cat >>confdefs.h <<_ACEOF
33529 #define dev_t unsigned long
33534 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33535 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33536 if test "${ac_cv_type_daddr_t+set}" = set; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33539 cat >conftest.$ac_ext <<_ACEOF
33542 cat confdefs.h >>conftest.$ac_ext
33543 cat >>conftest.$ac_ext <<_ACEOF
33544 /* end confdefs.h. */
33545 $ac_includes_default
33546 typedef daddr_t ac__type_new_;
33550 if ((ac__type_new_ *) 0)
33552 if (sizeof (ac__type_new_))
33558 rm -f conftest.$ac_objext
33559 if { (ac_try="$ac_compile"
33560 case "(($ac_try" in
33561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33562 *) ac_try_echo=$ac_try;;
33564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33565 (eval "$ac_compile") 2>conftest.er1
33567 grep -v '^ *+' conftest.er1 >conftest.err
33569 cat conftest.err >&5
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); } && {
33572 test -z "$ac_c_werror_flag" ||
33573 test ! -s conftest.err
33574 } && test -s conftest.$ac_objext; then
33575 ac_cv_type_daddr_t=yes
33577 echo "$as_me: failed program was:" >&5
33578 sed 's/^/| /' conftest.$ac_ext >&5
33580 ac_cv_type_daddr_t=no
33583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33585 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33586 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33587 if test $ac_cv_type_daddr_t = yes; then
33591 cat >>confdefs.h <<_ACEOF
33592 #define daddr_t long
33597 { echo "$as_me:$LINENO: checking for major_t" >&5
33598 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33599 if test "${ac_cv_type_major_t+set}" = set; then
33600 echo $ECHO_N "(cached) $ECHO_C" >&6
33602 cat >conftest.$ac_ext <<_ACEOF
33605 cat confdefs.h >>conftest.$ac_ext
33606 cat >>conftest.$ac_ext <<_ACEOF
33607 /* end confdefs.h. */
33608 $ac_includes_default
33609 typedef major_t ac__type_new_;
33613 if ((ac__type_new_ *) 0)
33615 if (sizeof (ac__type_new_))
33621 rm -f conftest.$ac_objext
33622 if { (ac_try="$ac_compile"
33623 case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_compile") 2>conftest.er1
33630 grep -v '^ *+' conftest.er1 >conftest.err
33632 cat conftest.err >&5
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); } && {
33635 test -z "$ac_c_werror_flag" ||
33636 test ! -s conftest.err
33637 } && test -s conftest.$ac_objext; then
33638 ac_cv_type_major_t=yes
33640 echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33643 ac_cv_type_major_t=no
33646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33648 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33649 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33650 if test $ac_cv_type_major_t = yes; then
33654 cat >>confdefs.h <<_ACEOF
33655 #define major_t int
33660 { echo "$as_me:$LINENO: checking for minor_t" >&5
33661 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33662 if test "${ac_cv_type_minor_t+set}" = set; then
33663 echo $ECHO_N "(cached) $ECHO_C" >&6
33665 cat >conftest.$ac_ext <<_ACEOF
33668 cat confdefs.h >>conftest.$ac_ext
33669 cat >>conftest.$ac_ext <<_ACEOF
33670 /* end confdefs.h. */
33671 $ac_includes_default
33672 typedef minor_t ac__type_new_;
33676 if ((ac__type_new_ *) 0)
33678 if (sizeof (ac__type_new_))
33684 rm -f conftest.$ac_objext
33685 if { (ac_try="$ac_compile"
33686 case "(($ac_try" in
33687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33688 *) ac_try_echo=$ac_try;;
33690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33691 (eval "$ac_compile") 2>conftest.er1
33693 grep -v '^ *+' conftest.er1 >conftest.err
33695 cat conftest.err >&5
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); } && {
33698 test -z "$ac_c_werror_flag" ||
33699 test ! -s conftest.err
33700 } && test -s conftest.$ac_objext; then
33701 ac_cv_type_minor_t=yes
33703 echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33706 ac_cv_type_minor_t=no
33709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33711 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33712 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33713 if test $ac_cv_type_minor_t = yes; then
33717 cat >>confdefs.h <<_ACEOF
33718 #define minor_t int
33723 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33724 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33725 if test "${ac_cv_type_ssize_t+set}" = set; then
33726 echo $ECHO_N "(cached) $ECHO_C" >&6
33728 cat >conftest.$ac_ext <<_ACEOF
33731 cat confdefs.h >>conftest.$ac_ext
33732 cat >>conftest.$ac_ext <<_ACEOF
33733 /* end confdefs.h. */
33734 $ac_includes_default
33735 typedef ssize_t ac__type_new_;
33739 if ((ac__type_new_ *) 0)
33741 if (sizeof (ac__type_new_))
33747 rm -f conftest.$ac_objext
33748 if { (ac_try="$ac_compile"
33749 case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_compile") 2>conftest.er1
33756 grep -v '^ *+' conftest.er1 >conftest.err
33758 cat conftest.err >&5
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); } && {
33761 test -z "$ac_c_werror_flag" ||
33762 test ! -s conftest.err
33763 } && test -s conftest.$ac_objext; then
33764 ac_cv_type_ssize_t=yes
33766 echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33769 ac_cv_type_ssize_t=no
33772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33774 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33775 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33776 if test $ac_cv_type_ssize_t = yes; then
33780 cat >>confdefs.h <<_ACEOF
33781 #define ssize_t int
33786 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33787 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33788 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33789 echo $ECHO_N "(cached) $ECHO_C" >&6
33791 cat >conftest.$ac_ext <<_ACEOF
33794 cat confdefs.h >>conftest.$ac_ext
33795 cat >>conftest.$ac_ext <<_ACEOF
33796 /* end confdefs.h. */
33797 $ac_includes_default
33801 static struct stat ac_aggr;
33802 if (ac_aggr.st_blocks)
33808 rm -f conftest.$ac_objext
33809 if { (ac_try="$ac_compile"
33810 case "(($ac_try" in
33811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33812 *) ac_try_echo=$ac_try;;
33814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33815 (eval "$ac_compile") 2>conftest.er1
33817 grep -v '^ *+' conftest.er1 >conftest.err
33819 cat conftest.err >&5
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); } && {
33822 test -z "$ac_c_werror_flag" ||
33823 test ! -s conftest.err
33824 } && test -s conftest.$ac_objext; then
33825 ac_cv_member_struct_stat_st_blocks=yes
33827 echo "$as_me: failed program was:" >&5
33828 sed 's/^/| /' conftest.$ac_ext >&5
33830 cat >conftest.$ac_ext <<_ACEOF
33833 cat confdefs.h >>conftest.$ac_ext
33834 cat >>conftest.$ac_ext <<_ACEOF
33835 /* end confdefs.h. */
33836 $ac_includes_default
33840 static struct stat ac_aggr;
33841 if (sizeof ac_aggr.st_blocks)
33847 rm -f conftest.$ac_objext
33848 if { (ac_try="$ac_compile"
33849 case "(($ac_try" in
33850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851 *) ac_try_echo=$ac_try;;
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854 (eval "$ac_compile") 2>conftest.er1
33856 grep -v '^ *+' conftest.er1 >conftest.err
33858 cat conftest.err >&5
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); } && {
33861 test -z "$ac_c_werror_flag" ||
33862 test ! -s conftest.err
33863 } && test -s conftest.$ac_objext; then
33864 ac_cv_member_struct_stat_st_blocks=yes
33866 echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33869 ac_cv_member_struct_stat_st_blocks=no
33872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33877 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33878 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33879 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33881 cat >>confdefs.h <<_ACEOF
33882 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33886 cat >>confdefs.h <<\_ACEOF
33887 #define HAVE_ST_BLOCKS 1
33891 case " $LIBOBJS " in
33892 *" fileblocks.$ac_objext "* ) ;;
33893 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33900 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33901 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33902 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33905 cat >conftest.$ac_ext <<_ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h. */
33911 $ac_includes_default
33915 static struct stat ac_aggr;
33916 if (ac_aggr.st_rdev)
33922 rm -f conftest.$ac_objext
33923 if { (ac_try="$ac_compile"
33924 case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_compile") 2>conftest.er1
33931 grep -v '^ *+' conftest.er1 >conftest.err
33933 cat conftest.err >&5
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); } && {
33936 test -z "$ac_c_werror_flag" ||
33937 test ! -s conftest.err
33938 } && test -s conftest.$ac_objext; then
33939 ac_cv_member_struct_stat_st_rdev=yes
33941 echo "$as_me: failed program was:" >&5
33942 sed 's/^/| /' conftest.$ac_ext >&5
33944 cat >conftest.$ac_ext <<_ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h. */
33950 $ac_includes_default
33954 static struct stat ac_aggr;
33955 if (sizeof ac_aggr.st_rdev)
33961 rm -f conftest.$ac_objext
33962 if { (ac_try="$ac_compile"
33963 case "(($ac_try" in
33964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33965 *) ac_try_echo=$ac_try;;
33967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33968 (eval "$ac_compile") 2>conftest.er1
33970 grep -v '^ *+' conftest.er1 >conftest.err
33972 cat conftest.err >&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); } && {
33975 test -z "$ac_c_werror_flag" ||
33976 test ! -s conftest.err
33977 } && test -s conftest.$ac_objext; then
33978 ac_cv_member_struct_stat_st_rdev=yes
33980 echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33983 ac_cv_member_struct_stat_st_rdev=no
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33991 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
33992 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
33993 if test $ac_cv_member_struct_stat_st_rdev = yes; then
33995 cat >>confdefs.h <<_ACEOF
33996 #define HAVE_STRUCT_STAT_ST_RDEV 1
34000 cat >>confdefs.h <<\_ACEOF
34001 #define HAVE_ST_RDEV 1
34007 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34008 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34009 if test "${ac_cv_struct_tm+set}" = set; then
34010 echo $ECHO_N "(cached) $ECHO_C" >&6
34012 cat >conftest.$ac_ext <<_ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h. */
34018 #include <sys/types.h>
34025 int *p = &tm.tm_sec;
34031 rm -f conftest.$ac_objext
34032 if { (ac_try="$ac_compile"
34033 case "(($ac_try" in
34034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34035 *) ac_try_echo=$ac_try;;
34037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34038 (eval "$ac_compile") 2>conftest.er1
34040 grep -v '^ *+' conftest.er1 >conftest.err
34042 cat conftest.err >&5
34043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34044 (exit $ac_status); } && {
34045 test -z "$ac_c_werror_flag" ||
34046 test ! -s conftest.err
34047 } && test -s conftest.$ac_objext; then
34048 ac_cv_struct_tm=time.h
34050 echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.$ac_ext >&5
34053 ac_cv_struct_tm=sys/time.h
34056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34058 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34059 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34060 if test $ac_cv_struct_tm = sys/time.h; then
34062 cat >>confdefs.h <<\_ACEOF
34063 #define TM_IN_SYS_TIME 1
34068 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34069 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34070 if test "${ac_cv_c_const+set}" = set; then
34071 echo $ECHO_N "(cached) $ECHO_C" >&6
34073 cat >conftest.$ac_ext <<_ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h. */
34083 /* FIXME: Include the comments suggested by Paul. */
34084 #ifndef __cplusplus
34085 /* Ultrix mips cc rejects this. */
34086 typedef int charset[2];
34088 /* SunOS 4.1.1 cc rejects this. */
34089 char const *const *pcpcc;
34091 /* NEC SVR4.0.2 mips cc rejects this. */
34092 struct point {int x, y;};
34093 static struct point const zero = {0,0};
34094 /* AIX XL C 1.02.0.0 rejects this.
34095 It does not let you subtract one const X* pointer from another in
34096 an arm of an if-expression whose if-part is not a constant
34098 const char *g = "string";
34099 pcpcc = &g + (g ? g-g : 0);
34100 /* HPUX 7.0 cc rejects these. */
34102 ppc = (char**) pcpcc;
34103 pcpcc = (char const *const *) ppc;
34104 { /* SCO 3.2v4 cc rejects this. */
34106 char const *s = 0 ? (char *) 0 : (char const *) 0;
34111 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34112 int x[] = {25, 17};
34113 const int *foo = &x[0];
34116 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34117 typedef const int *iptr;
34121 { /* AIX XL C 1.02.0.0 rejects this saying
34122 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34123 struct s { int j; const int *ap[3]; };
34124 struct s *b; b->j = 5;
34126 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34127 const int foo = 10;
34128 if (!foo) return 0;
34130 return !cs[0] && !zero.x;
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141 *) ac_try_echo=$ac_try;;
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144 (eval "$ac_compile") 2>conftest.er1
34146 grep -v '^ *+' conftest.er1 >conftest.err
34148 cat conftest.err >&5
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } && {
34151 test -z "$ac_c_werror_flag" ||
34152 test ! -s conftest.err
34153 } && test -s conftest.$ac_objext; then
34156 echo "$as_me: failed program was:" >&5
34157 sed 's/^/| /' conftest.$ac_ext >&5
34162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34164 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34165 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34166 if test $ac_cv_c_const = no; then
34168 cat >>confdefs.h <<\_ACEOF
34175 { echo "$as_me:$LINENO: checking for char" >&5
34176 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34177 if test "${ac_cv_type_char+set}" = set; then
34178 echo $ECHO_N "(cached) $ECHO_C" >&6
34180 cat >conftest.$ac_ext <<_ACEOF
34183 cat confdefs.h >>conftest.$ac_ext
34184 cat >>conftest.$ac_ext <<_ACEOF
34185 /* end confdefs.h. */
34186 $ac_includes_default
34187 typedef char ac__type_new_;
34191 if ((ac__type_new_ *) 0)
34193 if (sizeof (ac__type_new_))
34199 rm -f conftest.$ac_objext
34200 if { (ac_try="$ac_compile"
34201 case "(($ac_try" in
34202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34203 *) ac_try_echo=$ac_try;;
34205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34206 (eval "$ac_compile") 2>conftest.er1
34208 grep -v '^ *+' conftest.er1 >conftest.err
34210 cat conftest.err >&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } && {
34213 test -z "$ac_c_werror_flag" ||
34214 test ! -s conftest.err
34215 } && test -s conftest.$ac_objext; then
34216 ac_cv_type_char=yes
34218 echo "$as_me: failed program was:" >&5
34219 sed 's/^/| /' conftest.$ac_ext >&5
34224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34226 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34227 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34229 # The cast to long int works around a bug in the HP C Compiler
34230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34232 # This bug is HP SR number 8606223364.
34233 { echo "$as_me:$LINENO: checking size of char" >&5
34234 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34235 if test "${ac_cv_sizeof_char+set}" = set; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34238 if test "$cross_compiling" = yes; then
34239 # Depending upon the size, compute the lo and hi bounds.
34240 cat >conftest.$ac_ext <<_ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h. */
34246 $ac_includes_default
34247 typedef char ac__type_sizeof_;
34251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34258 rm -f conftest.$ac_objext
34259 if { (ac_try="$ac_compile"
34260 case "(($ac_try" in
34261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34262 *) ac_try_echo=$ac_try;;
34264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34265 (eval "$ac_compile") 2>conftest.er1
34267 grep -v '^ *+' conftest.er1 >conftest.err
34269 cat conftest.err >&5
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); } && {
34272 test -z "$ac_c_werror_flag" ||
34273 test ! -s conftest.err
34274 } && test -s conftest.$ac_objext; then
34277 cat >conftest.$ac_ext <<_ACEOF
34280 cat confdefs.h >>conftest.$ac_ext
34281 cat >>conftest.$ac_ext <<_ACEOF
34282 /* end confdefs.h. */
34283 $ac_includes_default
34284 typedef char ac__type_sizeof_;
34288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34295 rm -f conftest.$ac_objext
34296 if { (ac_try="$ac_compile"
34297 case "(($ac_try" in
34298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34299 *) ac_try_echo=$ac_try;;
34301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34302 (eval "$ac_compile") 2>conftest.er1
34304 grep -v '^ *+' conftest.er1 >conftest.err
34306 cat conftest.err >&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } && {
34309 test -z "$ac_c_werror_flag" ||
34310 test ! -s conftest.err
34311 } && test -s conftest.$ac_objext; then
34312 ac_hi=$ac_mid; break
34314 echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34317 ac_lo=`expr $ac_mid + 1`
34318 if test $ac_lo -le $ac_mid; then
34322 ac_mid=`expr 2 '*' $ac_mid + 1`
34325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34328 echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34331 cat >conftest.$ac_ext <<_ACEOF
34334 cat confdefs.h >>conftest.$ac_ext
34335 cat >>conftest.$ac_ext <<_ACEOF
34336 /* end confdefs.h. */
34337 $ac_includes_default
34338 typedef char ac__type_sizeof_;
34342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34349 rm -f conftest.$ac_objext
34350 if { (ac_try="$ac_compile"
34351 case "(($ac_try" in
34352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34353 *) ac_try_echo=$ac_try;;
34355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34356 (eval "$ac_compile") 2>conftest.er1
34358 grep -v '^ *+' conftest.er1 >conftest.err
34360 cat conftest.err >&5
34361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362 (exit $ac_status); } && {
34363 test -z "$ac_c_werror_flag" ||
34364 test ! -s conftest.err
34365 } && test -s conftest.$ac_objext; then
34368 cat >conftest.$ac_ext <<_ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h. */
34374 $ac_includes_default
34375 typedef char ac__type_sizeof_;
34379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34386 rm -f conftest.$ac_objext
34387 if { (ac_try="$ac_compile"
34388 case "(($ac_try" in
34389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390 *) ac_try_echo=$ac_try;;
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_compile") 2>conftest.er1
34395 grep -v '^ *+' conftest.er1 >conftest.err
34397 cat conftest.err >&5
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); } && {
34400 test -z "$ac_c_werror_flag" ||
34401 test ! -s conftest.err
34402 } && test -s conftest.$ac_objext; then
34403 ac_lo=$ac_mid; break
34405 echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34408 ac_hi=`expr '(' $ac_mid ')' - 1`
34409 if test $ac_mid -le $ac_hi; then
34413 ac_mid=`expr 2 '*' $ac_mid`
34416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34419 echo "$as_me: failed program was:" >&5
34420 sed 's/^/| /' conftest.$ac_ext >&5
34425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34429 # Binary search between lo and hi bounds.
34430 while test "x$ac_lo" != "x$ac_hi"; do
34431 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34432 cat >conftest.$ac_ext <<_ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h. */
34438 $ac_includes_default
34439 typedef char ac__type_sizeof_;
34443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34450 rm -f conftest.$ac_objext
34451 if { (ac_try="$ac_compile"
34452 case "(($ac_try" in
34453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34454 *) ac_try_echo=$ac_try;;
34456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34457 (eval "$ac_compile") 2>conftest.er1
34459 grep -v '^ *+' conftest.er1 >conftest.err
34461 cat conftest.err >&5
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } && {
34464 test -z "$ac_c_werror_flag" ||
34465 test ! -s conftest.err
34466 } && test -s conftest.$ac_objext; then
34469 echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34472 ac_lo=`expr '(' $ac_mid ')' + 1`
34475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34478 ?*) ac_cv_sizeof_char=$ac_lo;;
34479 '') if test "$ac_cv_type_char" = yes; then
34480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34481 See \`config.log' for more details." >&5
34482 echo "$as_me: error: cannot compute sizeof (char)
34483 See \`config.log' for more details." >&2;}
34484 { (exit 77); exit 77; }; }
34486 ac_cv_sizeof_char=0
34490 cat >conftest.$ac_ext <<_ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h. */
34496 $ac_includes_default
34497 typedef char ac__type_sizeof_;
34498 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34499 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34501 #include <stdlib.h>
34506 FILE *f = fopen ("conftest.val", "w");
34509 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34511 long int i = longval ();
34512 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34514 fprintf (f, "%ld\n", i);
34518 unsigned long int i = ulongval ();
34519 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34521 fprintf (f, "%lu\n", i);
34523 return ferror (f) || fclose (f) != 0;
34529 rm -f conftest$ac_exeext
34530 if { (ac_try="$ac_link"
34531 case "(($ac_try" in
34532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34533 *) ac_try_echo=$ac_try;;
34535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34536 (eval "$ac_link") 2>&5
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34540 { (case "(($ac_try" in
34541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34542 *) ac_try_echo=$ac_try;;
34544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545 (eval "$ac_try") 2>&5
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); }; }; then
34549 ac_cv_sizeof_char=`cat conftest.val`
34551 echo "$as_me: program exited with status $ac_status" >&5
34552 echo "$as_me: failed program was:" >&5
34553 sed 's/^/| /' conftest.$ac_ext >&5
34555 ( exit $ac_status )
34556 if test "$ac_cv_type_char" = yes; then
34557 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34558 See \`config.log' for more details." >&5
34559 echo "$as_me: error: cannot compute sizeof (char)
34560 See \`config.log' for more details." >&2;}
34561 { (exit 77); exit 77; }; }
34563 ac_cv_sizeof_char=0
34566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34570 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34571 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34575 cat >>confdefs.h <<_ACEOF
34576 #define SIZEOF_CHAR $ac_cv_sizeof_char
34580 { echo "$as_me:$LINENO: checking for short int" >&5
34581 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34582 if test "${ac_cv_type_short_int+set}" = set; then
34583 echo $ECHO_N "(cached) $ECHO_C" >&6
34585 cat >conftest.$ac_ext <<_ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h. */
34591 $ac_includes_default
34592 typedef short int ac__type_new_;
34596 if ((ac__type_new_ *) 0)
34598 if (sizeof (ac__type_new_))
34604 rm -f conftest.$ac_objext
34605 if { (ac_try="$ac_compile"
34606 case "(($ac_try" in
34607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608 *) ac_try_echo=$ac_try;;
34610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611 (eval "$ac_compile") 2>conftest.er1
34613 grep -v '^ *+' conftest.er1 >conftest.err
34615 cat conftest.err >&5
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); } && {
34618 test -z "$ac_c_werror_flag" ||
34619 test ! -s conftest.err
34620 } && test -s conftest.$ac_objext; then
34621 ac_cv_type_short_int=yes
34623 echo "$as_me: failed program was:" >&5
34624 sed 's/^/| /' conftest.$ac_ext >&5
34626 ac_cv_type_short_int=no
34629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34631 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34632 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34634 # The cast to long int works around a bug in the HP C Compiler
34635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34637 # This bug is HP SR number 8606223364.
34638 { echo "$as_me:$LINENO: checking size of short int" >&5
34639 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34640 if test "${ac_cv_sizeof_short_int+set}" = set; then
34641 echo $ECHO_N "(cached) $ECHO_C" >&6
34643 if test "$cross_compiling" = yes; then
34644 # Depending upon the size, compute the lo and hi bounds.
34645 cat >conftest.$ac_ext <<_ACEOF
34648 cat confdefs.h >>conftest.$ac_ext
34649 cat >>conftest.$ac_ext <<_ACEOF
34650 /* end confdefs.h. */
34651 $ac_includes_default
34652 typedef short int ac__type_sizeof_;
34656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34663 rm -f conftest.$ac_objext
34664 if { (ac_try="$ac_compile"
34665 case "(($ac_try" in
34666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34667 *) ac_try_echo=$ac_try;;
34669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34670 (eval "$ac_compile") 2>conftest.er1
34672 grep -v '^ *+' conftest.er1 >conftest.err
34674 cat conftest.err >&5
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); } && {
34677 test -z "$ac_c_werror_flag" ||
34678 test ! -s conftest.err
34679 } && test -s conftest.$ac_objext; then
34682 cat >conftest.$ac_ext <<_ACEOF
34685 cat confdefs.h >>conftest.$ac_ext
34686 cat >>conftest.$ac_ext <<_ACEOF
34687 /* end confdefs.h. */
34688 $ac_includes_default
34689 typedef short int ac__type_sizeof_;
34693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34700 rm -f conftest.$ac_objext
34701 if { (ac_try="$ac_compile"
34702 case "(($ac_try" in
34703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34704 *) ac_try_echo=$ac_try;;
34706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34707 (eval "$ac_compile") 2>conftest.er1
34709 grep -v '^ *+' conftest.er1 >conftest.err
34711 cat conftest.err >&5
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } && {
34714 test -z "$ac_c_werror_flag" ||
34715 test ! -s conftest.err
34716 } && test -s conftest.$ac_objext; then
34717 ac_hi=$ac_mid; break
34719 echo "$as_me: failed program was:" >&5
34720 sed 's/^/| /' conftest.$ac_ext >&5
34722 ac_lo=`expr $ac_mid + 1`
34723 if test $ac_lo -le $ac_mid; then
34727 ac_mid=`expr 2 '*' $ac_mid + 1`
34730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34733 echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34736 cat >conftest.$ac_ext <<_ACEOF
34739 cat confdefs.h >>conftest.$ac_ext
34740 cat >>conftest.$ac_ext <<_ACEOF
34741 /* end confdefs.h. */
34742 $ac_includes_default
34743 typedef short int ac__type_sizeof_;
34747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34754 rm -f conftest.$ac_objext
34755 if { (ac_try="$ac_compile"
34756 case "(($ac_try" in
34757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34758 *) ac_try_echo=$ac_try;;
34760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34761 (eval "$ac_compile") 2>conftest.er1
34763 grep -v '^ *+' conftest.er1 >conftest.err
34765 cat conftest.err >&5
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); } && {
34768 test -z "$ac_c_werror_flag" ||
34769 test ! -s conftest.err
34770 } && test -s conftest.$ac_objext; then
34773 cat >conftest.$ac_ext <<_ACEOF
34776 cat confdefs.h >>conftest.$ac_ext
34777 cat >>conftest.$ac_ext <<_ACEOF
34778 /* end confdefs.h. */
34779 $ac_includes_default
34780 typedef short int ac__type_sizeof_;
34784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34791 rm -f conftest.$ac_objext
34792 if { (ac_try="$ac_compile"
34793 case "(($ac_try" in
34794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795 *) ac_try_echo=$ac_try;;
34797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34798 (eval "$ac_compile") 2>conftest.er1
34800 grep -v '^ *+' conftest.er1 >conftest.err
34802 cat conftest.err >&5
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); } && {
34805 test -z "$ac_c_werror_flag" ||
34806 test ! -s conftest.err
34807 } && test -s conftest.$ac_objext; then
34808 ac_lo=$ac_mid; break
34810 echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34813 ac_hi=`expr '(' $ac_mid ')' - 1`
34814 if test $ac_mid -le $ac_hi; then
34818 ac_mid=`expr 2 '*' $ac_mid`
34821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34824 echo "$as_me: failed program was:" >&5
34825 sed 's/^/| /' conftest.$ac_ext >&5
34830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34834 # Binary search between lo and hi bounds.
34835 while test "x$ac_lo" != "x$ac_hi"; do
34836 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34837 cat >conftest.$ac_ext <<_ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h. */
34843 $ac_includes_default
34844 typedef short int ac__type_sizeof_;
34848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34855 rm -f conftest.$ac_objext
34856 if { (ac_try="$ac_compile"
34857 case "(($ac_try" in
34858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34859 *) ac_try_echo=$ac_try;;
34861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34862 (eval "$ac_compile") 2>conftest.er1
34864 grep -v '^ *+' conftest.er1 >conftest.err
34866 cat conftest.err >&5
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); } && {
34869 test -z "$ac_c_werror_flag" ||
34870 test ! -s conftest.err
34871 } && test -s conftest.$ac_objext; then
34874 echo "$as_me: failed program was:" >&5
34875 sed 's/^/| /' conftest.$ac_ext >&5
34877 ac_lo=`expr '(' $ac_mid ')' + 1`
34880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34884 '') if test "$ac_cv_type_short_int" = yes; then
34885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34886 See \`config.log' for more details." >&5
34887 echo "$as_me: error: cannot compute sizeof (short int)
34888 See \`config.log' for more details." >&2;}
34889 { (exit 77); exit 77; }; }
34891 ac_cv_sizeof_short_int=0
34895 cat >conftest.$ac_ext <<_ACEOF
34898 cat confdefs.h >>conftest.$ac_ext
34899 cat >>conftest.$ac_ext <<_ACEOF
34900 /* end confdefs.h. */
34901 $ac_includes_default
34902 typedef short int ac__type_sizeof_;
34903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34906 #include <stdlib.h>
34911 FILE *f = fopen ("conftest.val", "w");
34914 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34916 long int i = longval ();
34917 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34919 fprintf (f, "%ld\n", i);
34923 unsigned long int i = ulongval ();
34924 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34926 fprintf (f, "%lu\n", i);
34928 return ferror (f) || fclose (f) != 0;
34934 rm -f conftest$ac_exeext
34935 if { (ac_try="$ac_link"
34936 case "(($ac_try" in
34937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34938 *) ac_try_echo=$ac_try;;
34940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34941 (eval "$ac_link") 2>&5
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34945 { (case "(($ac_try" in
34946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34947 *) ac_try_echo=$ac_try;;
34949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34950 (eval "$ac_try") 2>&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); }; }; then
34954 ac_cv_sizeof_short_int=`cat conftest.val`
34956 echo "$as_me: program exited with status $ac_status" >&5
34957 echo "$as_me: failed program was:" >&5
34958 sed 's/^/| /' conftest.$ac_ext >&5
34960 ( exit $ac_status )
34961 if test "$ac_cv_type_short_int" = yes; then
34962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34963 See \`config.log' for more details." >&5
34964 echo "$as_me: error: cannot compute sizeof (short int)
34965 See \`config.log' for more details." >&2;}
34966 { (exit 77); exit 77; }; }
34968 ac_cv_sizeof_short_int=0
34971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34976 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34980 cat >>confdefs.h <<_ACEOF
34981 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
34985 { echo "$as_me:$LINENO: checking for int" >&5
34986 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34987 if test "${ac_cv_type_int+set}" = set; then
34988 echo $ECHO_N "(cached) $ECHO_C" >&6
34990 cat >conftest.$ac_ext <<_ACEOF
34993 cat confdefs.h >>conftest.$ac_ext
34994 cat >>conftest.$ac_ext <<_ACEOF
34995 /* end confdefs.h. */
34996 $ac_includes_default
34997 typedef int ac__type_new_;
35001 if ((ac__type_new_ *) 0)
35003 if (sizeof (ac__type_new_))
35009 rm -f conftest.$ac_objext
35010 if { (ac_try="$ac_compile"
35011 case "(($ac_try" in
35012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35013 *) ac_try_echo=$ac_try;;
35015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35016 (eval "$ac_compile") 2>conftest.er1
35018 grep -v '^ *+' conftest.er1 >conftest.err
35020 cat conftest.err >&5
35021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022 (exit $ac_status); } && {
35023 test -z "$ac_c_werror_flag" ||
35024 test ! -s conftest.err
35025 } && test -s conftest.$ac_objext; then
35028 echo "$as_me: failed program was:" >&5
35029 sed 's/^/| /' conftest.$ac_ext >&5
35034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35036 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35037 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35039 # The cast to long int works around a bug in the HP C Compiler
35040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35042 # This bug is HP SR number 8606223364.
35043 { echo "$as_me:$LINENO: checking size of int" >&5
35044 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35045 if test "${ac_cv_sizeof_int+set}" = set; then
35046 echo $ECHO_N "(cached) $ECHO_C" >&6
35048 if test "$cross_compiling" = yes; then
35049 # Depending upon the size, compute the lo and hi bounds.
35050 cat >conftest.$ac_ext <<_ACEOF
35053 cat confdefs.h >>conftest.$ac_ext
35054 cat >>conftest.$ac_ext <<_ACEOF
35055 /* end confdefs.h. */
35056 $ac_includes_default
35057 typedef int ac__type_sizeof_;
35061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35068 rm -f conftest.$ac_objext
35069 if { (ac_try="$ac_compile"
35070 case "(($ac_try" in
35071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35072 *) ac_try_echo=$ac_try;;
35074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35075 (eval "$ac_compile") 2>conftest.er1
35077 grep -v '^ *+' conftest.er1 >conftest.err
35079 cat conftest.err >&5
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); } && {
35082 test -z "$ac_c_werror_flag" ||
35083 test ! -s conftest.err
35084 } && test -s conftest.$ac_objext; then
35087 cat >conftest.$ac_ext <<_ACEOF
35090 cat confdefs.h >>conftest.$ac_ext
35091 cat >>conftest.$ac_ext <<_ACEOF
35092 /* end confdefs.h. */
35093 $ac_includes_default
35094 typedef int ac__type_sizeof_;
35098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35105 rm -f conftest.$ac_objext
35106 if { (ac_try="$ac_compile"
35107 case "(($ac_try" in
35108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35109 *) ac_try_echo=$ac_try;;
35111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35112 (eval "$ac_compile") 2>conftest.er1
35114 grep -v '^ *+' conftest.er1 >conftest.err
35116 cat conftest.err >&5
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } && {
35119 test -z "$ac_c_werror_flag" ||
35120 test ! -s conftest.err
35121 } && test -s conftest.$ac_objext; then
35122 ac_hi=$ac_mid; break
35124 echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35127 ac_lo=`expr $ac_mid + 1`
35128 if test $ac_lo -le $ac_mid; then
35132 ac_mid=`expr 2 '*' $ac_mid + 1`
35135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35138 echo "$as_me: failed program was:" >&5
35139 sed 's/^/| /' conftest.$ac_ext >&5
35141 cat >conftest.$ac_ext <<_ACEOF
35144 cat confdefs.h >>conftest.$ac_ext
35145 cat >>conftest.$ac_ext <<_ACEOF
35146 /* end confdefs.h. */
35147 $ac_includes_default
35148 typedef int ac__type_sizeof_;
35152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35159 rm -f conftest.$ac_objext
35160 if { (ac_try="$ac_compile"
35161 case "(($ac_try" in
35162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35163 *) ac_try_echo=$ac_try;;
35165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35166 (eval "$ac_compile") 2>conftest.er1
35168 grep -v '^ *+' conftest.er1 >conftest.err
35170 cat conftest.err >&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); } && {
35173 test -z "$ac_c_werror_flag" ||
35174 test ! -s conftest.err
35175 } && test -s conftest.$ac_objext; then
35178 cat >conftest.$ac_ext <<_ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h. */
35184 $ac_includes_default
35185 typedef int ac__type_sizeof_;
35189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35196 rm -f conftest.$ac_objext
35197 if { (ac_try="$ac_compile"
35198 case "(($ac_try" in
35199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35200 *) ac_try_echo=$ac_try;;
35202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35203 (eval "$ac_compile") 2>conftest.er1
35205 grep -v '^ *+' conftest.er1 >conftest.err
35207 cat conftest.err >&5
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); } && {
35210 test -z "$ac_c_werror_flag" ||
35211 test ! -s conftest.err
35212 } && test -s conftest.$ac_objext; then
35213 ac_lo=$ac_mid; break
35215 echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35218 ac_hi=`expr '(' $ac_mid ')' - 1`
35219 if test $ac_mid -le $ac_hi; then
35223 ac_mid=`expr 2 '*' $ac_mid`
35226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35229 echo "$as_me: failed program was:" >&5
35230 sed 's/^/| /' conftest.$ac_ext >&5
35235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35239 # Binary search between lo and hi bounds.
35240 while test "x$ac_lo" != "x$ac_hi"; do
35241 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35242 cat >conftest.$ac_ext <<_ACEOF
35245 cat confdefs.h >>conftest.$ac_ext
35246 cat >>conftest.$ac_ext <<_ACEOF
35247 /* end confdefs.h. */
35248 $ac_includes_default
35249 typedef int ac__type_sizeof_;
35253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35260 rm -f conftest.$ac_objext
35261 if { (ac_try="$ac_compile"
35262 case "(($ac_try" in
35263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264 *) ac_try_echo=$ac_try;;
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267 (eval "$ac_compile") 2>conftest.er1
35269 grep -v '^ *+' conftest.er1 >conftest.err
35271 cat conftest.err >&5
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); } && {
35274 test -z "$ac_c_werror_flag" ||
35275 test ! -s conftest.err
35276 } && test -s conftest.$ac_objext; then
35279 echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35282 ac_lo=`expr '(' $ac_mid ')' + 1`
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 ?*) ac_cv_sizeof_int=$ac_lo;;
35289 '') if test "$ac_cv_type_int" = yes; then
35290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35291 See \`config.log' for more details." >&5
35292 echo "$as_me: error: cannot compute sizeof (int)
35293 See \`config.log' for more details." >&2;}
35294 { (exit 77); exit 77; }; }
35300 cat >conftest.$ac_ext <<_ACEOF
35303 cat confdefs.h >>conftest.$ac_ext
35304 cat >>conftest.$ac_ext <<_ACEOF
35305 /* end confdefs.h. */
35306 $ac_includes_default
35307 typedef int ac__type_sizeof_;
35308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35311 #include <stdlib.h>
35316 FILE *f = fopen ("conftest.val", "w");
35319 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35321 long int i = longval ();
35322 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35324 fprintf (f, "%ld\n", i);
35328 unsigned long int i = ulongval ();
35329 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35331 fprintf (f, "%lu\n", i);
35333 return ferror (f) || fclose (f) != 0;
35339 rm -f conftest$ac_exeext
35340 if { (ac_try="$ac_link"
35341 case "(($ac_try" in
35342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35343 *) ac_try_echo=$ac_try;;
35345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35346 (eval "$ac_link") 2>&5
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35350 { (case "(($ac_try" in
35351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35352 *) ac_try_echo=$ac_try;;
35354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35355 (eval "$ac_try") 2>&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; }; then
35359 ac_cv_sizeof_int=`cat conftest.val`
35361 echo "$as_me: program exited with status $ac_status" >&5
35362 echo "$as_me: failed program was:" >&5
35363 sed 's/^/| /' conftest.$ac_ext >&5
35365 ( exit $ac_status )
35366 if test "$ac_cv_type_int" = yes; then
35367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35368 See \`config.log' for more details." >&5
35369 echo "$as_me: error: cannot compute sizeof (int)
35370 See \`config.log' for more details." >&2;}
35371 { (exit 77); exit 77; }; }
35376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35381 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35385 cat >>confdefs.h <<_ACEOF
35386 #define SIZEOF_INT $ac_cv_sizeof_int
35390 { echo "$as_me:$LINENO: checking for long int" >&5
35391 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35392 if test "${ac_cv_type_long_int+set}" = set; then
35393 echo $ECHO_N "(cached) $ECHO_C" >&6
35395 cat >conftest.$ac_ext <<_ACEOF
35398 cat confdefs.h >>conftest.$ac_ext
35399 cat >>conftest.$ac_ext <<_ACEOF
35400 /* end confdefs.h. */
35401 $ac_includes_default
35402 typedef long int ac__type_new_;
35406 if ((ac__type_new_ *) 0)
35408 if (sizeof (ac__type_new_))
35414 rm -f conftest.$ac_objext
35415 if { (ac_try="$ac_compile"
35416 case "(($ac_try" in
35417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35418 *) ac_try_echo=$ac_try;;
35420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35421 (eval "$ac_compile") 2>conftest.er1
35423 grep -v '^ *+' conftest.er1 >conftest.err
35425 cat conftest.err >&5
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); } && {
35428 test -z "$ac_c_werror_flag" ||
35429 test ! -s conftest.err
35430 } && test -s conftest.$ac_objext; then
35431 ac_cv_type_long_int=yes
35433 echo "$as_me: failed program was:" >&5
35434 sed 's/^/| /' conftest.$ac_ext >&5
35436 ac_cv_type_long_int=no
35439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35441 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35442 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35444 # The cast to long int works around a bug in the HP C Compiler
35445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35447 # This bug is HP SR number 8606223364.
35448 { echo "$as_me:$LINENO: checking size of long int" >&5
35449 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35450 if test "${ac_cv_sizeof_long_int+set}" = set; then
35451 echo $ECHO_N "(cached) $ECHO_C" >&6
35453 if test "$cross_compiling" = yes; then
35454 # Depending upon the size, compute the lo and hi bounds.
35455 cat >conftest.$ac_ext <<_ACEOF
35458 cat confdefs.h >>conftest.$ac_ext
35459 cat >>conftest.$ac_ext <<_ACEOF
35460 /* end confdefs.h. */
35461 $ac_includes_default
35462 typedef long int ac__type_sizeof_;
35466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35473 rm -f conftest.$ac_objext
35474 if { (ac_try="$ac_compile"
35475 case "(($ac_try" in
35476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477 *) ac_try_echo=$ac_try;;
35479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35480 (eval "$ac_compile") 2>conftest.er1
35482 grep -v '^ *+' conftest.er1 >conftest.err
35484 cat conftest.err >&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); } && {
35487 test -z "$ac_c_werror_flag" ||
35488 test ! -s conftest.err
35489 } && test -s conftest.$ac_objext; then
35492 cat >conftest.$ac_ext <<_ACEOF
35495 cat confdefs.h >>conftest.$ac_ext
35496 cat >>conftest.$ac_ext <<_ACEOF
35497 /* end confdefs.h. */
35498 $ac_includes_default
35499 typedef long int ac__type_sizeof_;
35503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35510 rm -f conftest.$ac_objext
35511 if { (ac_try="$ac_compile"
35512 case "(($ac_try" in
35513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35514 *) ac_try_echo=$ac_try;;
35516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35517 (eval "$ac_compile") 2>conftest.er1
35519 grep -v '^ *+' conftest.er1 >conftest.err
35521 cat conftest.err >&5
35522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35523 (exit $ac_status); } && {
35524 test -z "$ac_c_werror_flag" ||
35525 test ! -s conftest.err
35526 } && test -s conftest.$ac_objext; then
35527 ac_hi=$ac_mid; break
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35532 ac_lo=`expr $ac_mid + 1`
35533 if test $ac_lo -le $ac_mid; then
35537 ac_mid=`expr 2 '*' $ac_mid + 1`
35540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35543 echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35546 cat >conftest.$ac_ext <<_ACEOF
35549 cat confdefs.h >>conftest.$ac_ext
35550 cat >>conftest.$ac_ext <<_ACEOF
35551 /* end confdefs.h. */
35552 $ac_includes_default
35553 typedef long int ac__type_sizeof_;
35557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35564 rm -f conftest.$ac_objext
35565 if { (ac_try="$ac_compile"
35566 case "(($ac_try" in
35567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35568 *) ac_try_echo=$ac_try;;
35570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35571 (eval "$ac_compile") 2>conftest.er1
35573 grep -v '^ *+' conftest.er1 >conftest.err
35575 cat conftest.err >&5
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); } && {
35578 test -z "$ac_c_werror_flag" ||
35579 test ! -s conftest.err
35580 } && test -s conftest.$ac_objext; then
35583 cat >conftest.$ac_ext <<_ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h. */
35589 $ac_includes_default
35590 typedef long int ac__type_sizeof_;
35594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35601 rm -f conftest.$ac_objext
35602 if { (ac_try="$ac_compile"
35603 case "(($ac_try" in
35604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35605 *) ac_try_echo=$ac_try;;
35607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35608 (eval "$ac_compile") 2>conftest.er1
35610 grep -v '^ *+' conftest.er1 >conftest.err
35612 cat conftest.err >&5
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); } && {
35615 test -z "$ac_c_werror_flag" ||
35616 test ! -s conftest.err
35617 } && test -s conftest.$ac_objext; then
35618 ac_lo=$ac_mid; break
35620 echo "$as_me: failed program was:" >&5
35621 sed 's/^/| /' conftest.$ac_ext >&5
35623 ac_hi=`expr '(' $ac_mid ')' - 1`
35624 if test $ac_mid -le $ac_hi; then
35628 ac_mid=`expr 2 '*' $ac_mid`
35631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35634 echo "$as_me: failed program was:" >&5
35635 sed 's/^/| /' conftest.$ac_ext >&5
35640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35644 # Binary search between lo and hi bounds.
35645 while test "x$ac_lo" != "x$ac_hi"; do
35646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35647 cat >conftest.$ac_ext <<_ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h. */
35653 $ac_includes_default
35654 typedef long int ac__type_sizeof_;
35658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35665 rm -f conftest.$ac_objext
35666 if { (ac_try="$ac_compile"
35667 case "(($ac_try" in
35668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35669 *) ac_try_echo=$ac_try;;
35671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35672 (eval "$ac_compile") 2>conftest.er1
35674 grep -v '^ *+' conftest.er1 >conftest.err
35676 cat conftest.err >&5
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); } && {
35679 test -z "$ac_c_werror_flag" ||
35680 test ! -s conftest.err
35681 } && test -s conftest.$ac_objext; then
35684 echo "$as_me: failed program was:" >&5
35685 sed 's/^/| /' conftest.$ac_ext >&5
35687 ac_lo=`expr '(' $ac_mid ')' + 1`
35690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35693 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35694 '') if test "$ac_cv_type_long_int" = yes; then
35695 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35696 See \`config.log' for more details." >&5
35697 echo "$as_me: error: cannot compute sizeof (long int)
35698 See \`config.log' for more details." >&2;}
35699 { (exit 77); exit 77; }; }
35701 ac_cv_sizeof_long_int=0
35705 cat >conftest.$ac_ext <<_ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h. */
35711 $ac_includes_default
35712 typedef long int ac__type_sizeof_;
35713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35716 #include <stdlib.h>
35721 FILE *f = fopen ("conftest.val", "w");
35724 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35726 long int i = longval ();
35727 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35729 fprintf (f, "%ld\n", i);
35733 unsigned long int i = ulongval ();
35734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35736 fprintf (f, "%lu\n", i);
35738 return ferror (f) || fclose (f) != 0;
35744 rm -f conftest$ac_exeext
35745 if { (ac_try="$ac_link"
35746 case "(($ac_try" in
35747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35748 *) ac_try_echo=$ac_try;;
35750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35751 (eval "$ac_link") 2>&5
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35755 { (case "(($ac_try" in
35756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35757 *) ac_try_echo=$ac_try;;
35759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35760 (eval "$ac_try") 2>&5
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; }; then
35764 ac_cv_sizeof_long_int=`cat conftest.val`
35766 echo "$as_me: program exited with status $ac_status" >&5
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35770 ( exit $ac_status )
35771 if test "$ac_cv_type_long_int" = yes; then
35772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35773 See \`config.log' for more details." >&5
35774 echo "$as_me: error: cannot compute sizeof (long int)
35775 See \`config.log' for more details." >&2;}
35776 { (exit 77); exit 77; }; }
35778 ac_cv_sizeof_long_int=0
35781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35786 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35790 cat >>confdefs.h <<_ACEOF
35791 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35795 { echo "$as_me:$LINENO: checking for long long int" >&5
35796 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35797 if test "${ac_cv_type_long_long_int+set}" = set; then
35798 echo $ECHO_N "(cached) $ECHO_C" >&6
35800 cat >conftest.$ac_ext <<_ACEOF
35803 cat confdefs.h >>conftest.$ac_ext
35804 cat >>conftest.$ac_ext <<_ACEOF
35805 /* end confdefs.h. */
35806 $ac_includes_default
35807 typedef long long int ac__type_new_;
35811 if ((ac__type_new_ *) 0)
35813 if (sizeof (ac__type_new_))
35819 rm -f conftest.$ac_objext
35820 if { (ac_try="$ac_compile"
35821 case "(($ac_try" in
35822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35823 *) ac_try_echo=$ac_try;;
35825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35826 (eval "$ac_compile") 2>conftest.er1
35828 grep -v '^ *+' conftest.er1 >conftest.err
35830 cat conftest.err >&5
35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832 (exit $ac_status); } && {
35833 test -z "$ac_c_werror_flag" ||
35834 test ! -s conftest.err
35835 } && test -s conftest.$ac_objext; then
35836 ac_cv_type_long_long_int=yes
35838 echo "$as_me: failed program was:" >&5
35839 sed 's/^/| /' conftest.$ac_ext >&5
35841 ac_cv_type_long_long_int=no
35844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35846 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35847 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35849 # The cast to long int works around a bug in the HP C Compiler
35850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35852 # This bug is HP SR number 8606223364.
35853 { echo "$as_me:$LINENO: checking size of long long int" >&5
35854 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35855 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35856 echo $ECHO_N "(cached) $ECHO_C" >&6
35858 if test "$cross_compiling" = yes; then
35859 # Depending upon the size, compute the lo and hi bounds.
35860 cat >conftest.$ac_ext <<_ACEOF
35863 cat confdefs.h >>conftest.$ac_ext
35864 cat >>conftest.$ac_ext <<_ACEOF
35865 /* end confdefs.h. */
35866 $ac_includes_default
35867 typedef long long int ac__type_sizeof_;
35871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35878 rm -f conftest.$ac_objext
35879 if { (ac_try="$ac_compile"
35880 case "(($ac_try" in
35881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35882 *) ac_try_echo=$ac_try;;
35884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35885 (eval "$ac_compile") 2>conftest.er1
35887 grep -v '^ *+' conftest.er1 >conftest.err
35889 cat conftest.err >&5
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); } && {
35892 test -z "$ac_c_werror_flag" ||
35893 test ! -s conftest.err
35894 } && test -s conftest.$ac_objext; then
35897 cat >conftest.$ac_ext <<_ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h. */
35903 $ac_includes_default
35904 typedef long long int ac__type_sizeof_;
35908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35915 rm -f conftest.$ac_objext
35916 if { (ac_try="$ac_compile"
35917 case "(($ac_try" in
35918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35919 *) ac_try_echo=$ac_try;;
35921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35922 (eval "$ac_compile") 2>conftest.er1
35924 grep -v '^ *+' conftest.er1 >conftest.err
35926 cat conftest.err >&5
35927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928 (exit $ac_status); } && {
35929 test -z "$ac_c_werror_flag" ||
35930 test ! -s conftest.err
35931 } && test -s conftest.$ac_objext; then
35932 ac_hi=$ac_mid; break
35934 echo "$as_me: failed program was:" >&5
35935 sed 's/^/| /' conftest.$ac_ext >&5
35937 ac_lo=`expr $ac_mid + 1`
35938 if test $ac_lo -le $ac_mid; then
35942 ac_mid=`expr 2 '*' $ac_mid + 1`
35945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35948 echo "$as_me: failed program was:" >&5
35949 sed 's/^/| /' conftest.$ac_ext >&5
35951 cat >conftest.$ac_ext <<_ACEOF
35954 cat confdefs.h >>conftest.$ac_ext
35955 cat >>conftest.$ac_ext <<_ACEOF
35956 /* end confdefs.h. */
35957 $ac_includes_default
35958 typedef long long int ac__type_sizeof_;
35962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35969 rm -f conftest.$ac_objext
35970 if { (ac_try="$ac_compile"
35971 case "(($ac_try" in
35972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35973 *) ac_try_echo=$ac_try;;
35975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35976 (eval "$ac_compile") 2>conftest.er1
35978 grep -v '^ *+' conftest.er1 >conftest.err
35980 cat conftest.err >&5
35981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982 (exit $ac_status); } && {
35983 test -z "$ac_c_werror_flag" ||
35984 test ! -s conftest.err
35985 } && test -s conftest.$ac_objext; then
35988 cat >conftest.$ac_ext <<_ACEOF
35991 cat confdefs.h >>conftest.$ac_ext
35992 cat >>conftest.$ac_ext <<_ACEOF
35993 /* end confdefs.h. */
35994 $ac_includes_default
35995 typedef long long int ac__type_sizeof_;
35999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36006 rm -f conftest.$ac_objext
36007 if { (ac_try="$ac_compile"
36008 case "(($ac_try" in
36009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36010 *) ac_try_echo=$ac_try;;
36012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36013 (eval "$ac_compile") 2>conftest.er1
36015 grep -v '^ *+' conftest.er1 >conftest.err
36017 cat conftest.err >&5
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } && {
36020 test -z "$ac_c_werror_flag" ||
36021 test ! -s conftest.err
36022 } && test -s conftest.$ac_objext; then
36023 ac_lo=$ac_mid; break
36025 echo "$as_me: failed program was:" >&5
36026 sed 's/^/| /' conftest.$ac_ext >&5
36028 ac_hi=`expr '(' $ac_mid ')' - 1`
36029 if test $ac_mid -le $ac_hi; then
36033 ac_mid=`expr 2 '*' $ac_mid`
36036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36039 echo "$as_me: failed program was:" >&5
36040 sed 's/^/| /' conftest.$ac_ext >&5
36045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36049 # Binary search between lo and hi bounds.
36050 while test "x$ac_lo" != "x$ac_hi"; do
36051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36052 cat >conftest.$ac_ext <<_ACEOF
36055 cat confdefs.h >>conftest.$ac_ext
36056 cat >>conftest.$ac_ext <<_ACEOF
36057 /* end confdefs.h. */
36058 $ac_includes_default
36059 typedef long long int ac__type_sizeof_;
36063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36070 rm -f conftest.$ac_objext
36071 if { (ac_try="$ac_compile"
36072 case "(($ac_try" in
36073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36074 *) ac_try_echo=$ac_try;;
36076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36077 (eval "$ac_compile") 2>conftest.er1
36079 grep -v '^ *+' conftest.er1 >conftest.err
36081 cat conftest.err >&5
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); } && {
36084 test -z "$ac_c_werror_flag" ||
36085 test ! -s conftest.err
36086 } && test -s conftest.$ac_objext; then
36089 echo "$as_me: failed program was:" >&5
36090 sed 's/^/| /' conftest.$ac_ext >&5
36092 ac_lo=`expr '(' $ac_mid ')' + 1`
36095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36098 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36099 '') if test "$ac_cv_type_long_long_int" = yes; then
36100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36101 See \`config.log' for more details." >&5
36102 echo "$as_me: error: cannot compute sizeof (long long int)
36103 See \`config.log' for more details." >&2;}
36104 { (exit 77); exit 77; }; }
36106 ac_cv_sizeof_long_long_int=0
36110 cat >conftest.$ac_ext <<_ACEOF
36113 cat confdefs.h >>conftest.$ac_ext
36114 cat >>conftest.$ac_ext <<_ACEOF
36115 /* end confdefs.h. */
36116 $ac_includes_default
36117 typedef long long int ac__type_sizeof_;
36118 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36119 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36121 #include <stdlib.h>
36126 FILE *f = fopen ("conftest.val", "w");
36129 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36131 long int i = longval ();
36132 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36134 fprintf (f, "%ld\n", i);
36138 unsigned long int i = ulongval ();
36139 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36141 fprintf (f, "%lu\n", i);
36143 return ferror (f) || fclose (f) != 0;
36149 rm -f conftest$ac_exeext
36150 if { (ac_try="$ac_link"
36151 case "(($ac_try" in
36152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36153 *) ac_try_echo=$ac_try;;
36155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36156 (eval "$ac_link") 2>&5
36158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36160 { (case "(($ac_try" in
36161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36162 *) ac_try_echo=$ac_try;;
36164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36165 (eval "$ac_try") 2>&5
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); }; }; then
36169 ac_cv_sizeof_long_long_int=`cat conftest.val`
36171 echo "$as_me: program exited with status $ac_status" >&5
36172 echo "$as_me: failed program was:" >&5
36173 sed 's/^/| /' conftest.$ac_ext >&5
36175 ( exit $ac_status )
36176 if test "$ac_cv_type_long_long_int" = yes; then
36177 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36178 See \`config.log' for more details." >&5
36179 echo "$as_me: error: cannot compute sizeof (long long int)
36180 See \`config.log' for more details." >&2;}
36181 { (exit 77); exit 77; }; }
36183 ac_cv_sizeof_long_long_int=0
36186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36191 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36195 cat >>confdefs.h <<_ACEOF
36196 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36200 { echo "$as_me:$LINENO: checking for int *" >&5
36201 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36202 if test "${ac_cv_type_int_p+set}" = set; then
36203 echo $ECHO_N "(cached) $ECHO_C" >&6
36205 cat >conftest.$ac_ext <<_ACEOF
36208 cat confdefs.h >>conftest.$ac_ext
36209 cat >>conftest.$ac_ext <<_ACEOF
36210 /* end confdefs.h. */
36211 $ac_includes_default
36212 typedef int * ac__type_new_;
36216 if ((ac__type_new_ *) 0)
36218 if (sizeof (ac__type_new_))
36224 rm -f conftest.$ac_objext
36225 if { (ac_try="$ac_compile"
36226 case "(($ac_try" in
36227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36228 *) ac_try_echo=$ac_try;;
36230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36231 (eval "$ac_compile") 2>conftest.er1
36233 grep -v '^ *+' conftest.er1 >conftest.err
36235 cat conftest.err >&5
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } && {
36238 test -z "$ac_c_werror_flag" ||
36239 test ! -s conftest.err
36240 } && test -s conftest.$ac_objext; then
36241 ac_cv_type_int_p=yes
36243 echo "$as_me: failed program was:" >&5
36244 sed 's/^/| /' conftest.$ac_ext >&5
36246 ac_cv_type_int_p=no
36249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36251 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36252 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36254 # The cast to long int works around a bug in the HP C Compiler
36255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36257 # This bug is HP SR number 8606223364.
36258 { echo "$as_me:$LINENO: checking size of int *" >&5
36259 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36260 if test "${ac_cv_sizeof_int_p+set}" = set; then
36261 echo $ECHO_N "(cached) $ECHO_C" >&6
36263 if test "$cross_compiling" = yes; then
36264 # Depending upon the size, compute the lo and hi bounds.
36265 cat >conftest.$ac_ext <<_ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h. */
36271 $ac_includes_default
36272 typedef int * ac__type_sizeof_;
36276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36283 rm -f conftest.$ac_objext
36284 if { (ac_try="$ac_compile"
36285 case "(($ac_try" in
36286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287 *) ac_try_echo=$ac_try;;
36289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36290 (eval "$ac_compile") 2>conftest.er1
36292 grep -v '^ *+' conftest.er1 >conftest.err
36294 cat conftest.err >&5
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); } && {
36297 test -z "$ac_c_werror_flag" ||
36298 test ! -s conftest.err
36299 } && test -s conftest.$ac_objext; then
36302 cat >conftest.$ac_ext <<_ACEOF
36305 cat confdefs.h >>conftest.$ac_ext
36306 cat >>conftest.$ac_ext <<_ACEOF
36307 /* end confdefs.h. */
36308 $ac_includes_default
36309 typedef int * ac__type_sizeof_;
36313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36320 rm -f conftest.$ac_objext
36321 if { (ac_try="$ac_compile"
36322 case "(($ac_try" in
36323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36324 *) ac_try_echo=$ac_try;;
36326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36327 (eval "$ac_compile") 2>conftest.er1
36329 grep -v '^ *+' conftest.er1 >conftest.err
36331 cat conftest.err >&5
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); } && {
36334 test -z "$ac_c_werror_flag" ||
36335 test ! -s conftest.err
36336 } && test -s conftest.$ac_objext; then
36337 ac_hi=$ac_mid; break
36339 echo "$as_me: failed program was:" >&5
36340 sed 's/^/| /' conftest.$ac_ext >&5
36342 ac_lo=`expr $ac_mid + 1`
36343 if test $ac_lo -le $ac_mid; then
36347 ac_mid=`expr 2 '*' $ac_mid + 1`
36350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36353 echo "$as_me: failed program was:" >&5
36354 sed 's/^/| /' conftest.$ac_ext >&5
36356 cat >conftest.$ac_ext <<_ACEOF
36359 cat confdefs.h >>conftest.$ac_ext
36360 cat >>conftest.$ac_ext <<_ACEOF
36361 /* end confdefs.h. */
36362 $ac_includes_default
36363 typedef int * ac__type_sizeof_;
36367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36374 rm -f conftest.$ac_objext
36375 if { (ac_try="$ac_compile"
36376 case "(($ac_try" in
36377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378 *) ac_try_echo=$ac_try;;
36380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36381 (eval "$ac_compile") 2>conftest.er1
36383 grep -v '^ *+' conftest.er1 >conftest.err
36385 cat conftest.err >&5
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); } && {
36388 test -z "$ac_c_werror_flag" ||
36389 test ! -s conftest.err
36390 } && test -s conftest.$ac_objext; then
36393 cat >conftest.$ac_ext <<_ACEOF
36396 cat confdefs.h >>conftest.$ac_ext
36397 cat >>conftest.$ac_ext <<_ACEOF
36398 /* end confdefs.h. */
36399 $ac_includes_default
36400 typedef int * ac__type_sizeof_;
36404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36411 rm -f conftest.$ac_objext
36412 if { (ac_try="$ac_compile"
36413 case "(($ac_try" in
36414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36415 *) ac_try_echo=$ac_try;;
36417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36418 (eval "$ac_compile") 2>conftest.er1
36420 grep -v '^ *+' conftest.er1 >conftest.err
36422 cat conftest.err >&5
36423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424 (exit $ac_status); } && {
36425 test -z "$ac_c_werror_flag" ||
36426 test ! -s conftest.err
36427 } && test -s conftest.$ac_objext; then
36428 ac_lo=$ac_mid; break
36430 echo "$as_me: failed program was:" >&5
36431 sed 's/^/| /' conftest.$ac_ext >&5
36433 ac_hi=`expr '(' $ac_mid ')' - 1`
36434 if test $ac_mid -le $ac_hi; then
36438 ac_mid=`expr 2 '*' $ac_mid`
36441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36444 echo "$as_me: failed program was:" >&5
36445 sed 's/^/| /' conftest.$ac_ext >&5
36450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36454 # Binary search between lo and hi bounds.
36455 while test "x$ac_lo" != "x$ac_hi"; do
36456 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36457 cat >conftest.$ac_ext <<_ACEOF
36460 cat confdefs.h >>conftest.$ac_ext
36461 cat >>conftest.$ac_ext <<_ACEOF
36462 /* end confdefs.h. */
36463 $ac_includes_default
36464 typedef int * ac__type_sizeof_;
36468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36475 rm -f conftest.$ac_objext
36476 if { (ac_try="$ac_compile"
36477 case "(($ac_try" in
36478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36479 *) ac_try_echo=$ac_try;;
36481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36482 (eval "$ac_compile") 2>conftest.er1
36484 grep -v '^ *+' conftest.er1 >conftest.err
36486 cat conftest.err >&5
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); } && {
36489 test -z "$ac_c_werror_flag" ||
36490 test ! -s conftest.err
36491 } && test -s conftest.$ac_objext; then
36494 echo "$as_me: failed program was:" >&5
36495 sed 's/^/| /' conftest.$ac_ext >&5
36497 ac_lo=`expr '(' $ac_mid ')' + 1`
36500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36503 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36504 '') if test "$ac_cv_type_int_p" = yes; then
36505 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36506 See \`config.log' for more details." >&5
36507 echo "$as_me: error: cannot compute sizeof (int *)
36508 See \`config.log' for more details." >&2;}
36509 { (exit 77); exit 77; }; }
36511 ac_cv_sizeof_int_p=0
36515 cat >conftest.$ac_ext <<_ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h. */
36521 $ac_includes_default
36522 typedef int * ac__type_sizeof_;
36523 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36524 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36526 #include <stdlib.h>
36531 FILE *f = fopen ("conftest.val", "w");
36534 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36536 long int i = longval ();
36537 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36539 fprintf (f, "%ld\n", i);
36543 unsigned long int i = ulongval ();
36544 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36546 fprintf (f, "%lu\n", i);
36548 return ferror (f) || fclose (f) != 0;
36554 rm -f conftest$ac_exeext
36555 if { (ac_try="$ac_link"
36556 case "(($ac_try" in
36557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558 *) ac_try_echo=$ac_try;;
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561 (eval "$ac_link") 2>&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36565 { (case "(($ac_try" in
36566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36567 *) ac_try_echo=$ac_try;;
36569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36570 (eval "$ac_try") 2>&5
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); }; }; then
36574 ac_cv_sizeof_int_p=`cat conftest.val`
36576 echo "$as_me: program exited with status $ac_status" >&5
36577 echo "$as_me: failed program was:" >&5
36578 sed 's/^/| /' conftest.$ac_ext >&5
36580 ( exit $ac_status )
36581 if test "$ac_cv_type_int_p" = yes; then
36582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36583 See \`config.log' for more details." >&5
36584 echo "$as_me: error: cannot compute sizeof (int *)
36585 See \`config.log' for more details." >&2;}
36586 { (exit 77); exit 77; }; }
36588 ac_cv_sizeof_int_p=0
36591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36595 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36596 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36600 cat >>confdefs.h <<_ACEOF
36601 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36606 { echo "$as_me:$LINENO: checking for u_int type" >&5
36607 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36608 if test "${ac_cv_have_u_int+set}" = set; then
36609 echo $ECHO_N "(cached) $ECHO_C" >&6
36612 cat >conftest.$ac_ext <<_ACEOF
36615 cat confdefs.h >>conftest.$ac_ext
36616 cat >>conftest.$ac_ext <<_ACEOF
36617 /* end confdefs.h. */
36619 #include <sys/types.h>
36631 rm -f conftest.$ac_objext
36632 if { (ac_try="$ac_compile"
36633 case "(($ac_try" in
36634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36635 *) ac_try_echo=$ac_try;;
36637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36638 (eval "$ac_compile") 2>conftest.er1
36640 grep -v '^ *+' conftest.er1 >conftest.err
36642 cat conftest.err >&5
36643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644 (exit $ac_status); } && {
36645 test -z "$ac_c_werror_flag" ||
36646 test ! -s conftest.err
36647 } && test -s conftest.$ac_objext; then
36649 ac_cv_have_u_int="yes"
36652 echo "$as_me: failed program was:" >&5
36653 sed 's/^/| /' conftest.$ac_ext >&5
36656 ac_cv_have_u_int="no"
36661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36665 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36666 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36667 if test "x$ac_cv_have_u_int" = "xyes" ; then
36668 cat >>confdefs.h <<\_ACEOF
36669 #define HAVE_U_INT 1
36675 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36676 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36677 if test "${ac_cv_have_intmax_t+set}" = set; then
36678 echo $ECHO_N "(cached) $ECHO_C" >&6
36681 cat >conftest.$ac_ext <<_ACEOF
36684 cat confdefs.h >>conftest.$ac_ext
36685 cat >>conftest.$ac_ext <<_ACEOF
36686 /* end confdefs.h. */
36688 #include <sys/types.h>
36700 rm -f conftest.$ac_objext
36701 if { (ac_try="$ac_compile"
36702 case "(($ac_try" in
36703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704 *) ac_try_echo=$ac_try;;
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707 (eval "$ac_compile") 2>conftest.er1
36709 grep -v '^ *+' conftest.er1 >conftest.err
36711 cat conftest.err >&5
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); } && {
36714 test -z "$ac_c_werror_flag" ||
36715 test ! -s conftest.err
36716 } && test -s conftest.$ac_objext; then
36718 ac_cv_have_intmax_t="yes"
36721 echo "$as_me: failed program was:" >&5
36722 sed 's/^/| /' conftest.$ac_ext >&5
36725 cat >conftest.$ac_ext <<_ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h. */
36732 #include <stdint.h>
36744 rm -f conftest.$ac_objext
36745 if { (ac_try="$ac_compile"
36746 case "(($ac_try" in
36747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36748 *) ac_try_echo=$ac_try;;
36750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36751 (eval "$ac_compile") 2>conftest.er1
36753 grep -v '^ *+' conftest.er1 >conftest.err
36755 cat conftest.err >&5
36756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36757 (exit $ac_status); } && {
36758 test -z "$ac_c_werror_flag" ||
36759 test ! -s conftest.err
36760 } && test -s conftest.$ac_objext; then
36762 ac_cv_have_intmax_t="yes"
36765 echo "$as_me: failed program was:" >&5
36766 sed 's/^/| /' conftest.$ac_ext >&5
36769 ac_cv_have_intmax_t="no"
36774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36783 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36784 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36785 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36786 cat >>confdefs.h <<\_ACEOF
36787 #define HAVE_INTMAX_T 1
36793 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36794 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36795 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36796 echo $ECHO_N "(cached) $ECHO_C" >&6
36799 cat >conftest.$ac_ext <<_ACEOF
36802 cat confdefs.h >>conftest.$ac_ext
36803 cat >>conftest.$ac_ext <<_ACEOF
36804 /* end confdefs.h. */
36806 #include <sys/types.h>
36812 u_intmax_t a; a = 1;
36818 rm -f conftest.$ac_objext
36819 if { (ac_try="$ac_compile"
36820 case "(($ac_try" in
36821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36822 *) ac_try_echo=$ac_try;;
36824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36825 (eval "$ac_compile") 2>conftest.er1
36827 grep -v '^ *+' conftest.er1 >conftest.err
36829 cat conftest.err >&5
36830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36831 (exit $ac_status); } && {
36832 test -z "$ac_c_werror_flag" ||
36833 test ! -s conftest.err
36834 } && test -s conftest.$ac_objext; then
36836 ac_cv_have_u_intmax_t="yes"
36839 echo "$as_me: failed program was:" >&5
36840 sed 's/^/| /' conftest.$ac_ext >&5
36843 cat >conftest.$ac_ext <<_ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h. */
36850 #include <stdint.h>
36856 u_intmax_t a; a = 1;
36862 rm -f conftest.$ac_objext
36863 if { (ac_try="$ac_compile"
36864 case "(($ac_try" in
36865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866 *) ac_try_echo=$ac_try;;
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869 (eval "$ac_compile") 2>conftest.er1
36871 grep -v '^ *+' conftest.er1 >conftest.err
36873 cat conftest.err >&5
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); } && {
36876 test -z "$ac_c_werror_flag" ||
36877 test ! -s conftest.err
36878 } && test -s conftest.$ac_objext; then
36880 ac_cv_have_u_intmax_t="yes"
36883 echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36887 ac_cv_have_u_intmax_t="no"
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36901 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36902 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36903 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36904 cat >>confdefs.h <<\_ACEOF
36905 #define HAVE_U_INTMAX_T 1
36911 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36912 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36913 if test "${ac_cv_have_intxx_t+set}" = set; then
36914 echo $ECHO_N "(cached) $ECHO_C" >&6
36917 cat >conftest.$ac_ext <<_ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h. */
36924 #include <sys/types.h>
36930 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36936 rm -f conftest.$ac_objext
36937 if { (ac_try="$ac_compile"
36938 case "(($ac_try" in
36939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36940 *) ac_try_echo=$ac_try;;
36942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36943 (eval "$ac_compile") 2>conftest.er1
36945 grep -v '^ *+' conftest.er1 >conftest.err
36947 cat conftest.err >&5
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); } && {
36950 test -z "$ac_c_werror_flag" ||
36951 test ! -s conftest.err
36952 } && test -s conftest.$ac_objext; then
36954 ac_cv_have_intxx_t="yes"
36957 echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36961 ac_cv_have_intxx_t="no"
36966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36970 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36971 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36972 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36973 cat >>confdefs.h <<\_ACEOF
36974 #define HAVE_INTXX_T 1
36980 { echo "$as_me:$LINENO: checking for int64_t type" >&5
36981 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
36982 if test "${ac_cv_have_int64_t+set}" = set; then
36983 echo $ECHO_N "(cached) $ECHO_C" >&6
36986 cat >conftest.$ac_ext <<_ACEOF
36989 cat confdefs.h >>conftest.$ac_ext
36990 cat >>conftest.$ac_ext <<_ACEOF
36991 /* end confdefs.h. */
36993 #include <sys/types.h>
37005 rm -f conftest.$ac_objext
37006 if { (ac_try="$ac_compile"
37007 case "(($ac_try" in
37008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37009 *) ac_try_echo=$ac_try;;
37011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37012 (eval "$ac_compile") 2>conftest.er1
37014 grep -v '^ *+' conftest.er1 >conftest.err
37016 cat conftest.err >&5
37017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018 (exit $ac_status); } && {
37019 test -z "$ac_c_werror_flag" ||
37020 test ! -s conftest.err
37021 } && test -s conftest.$ac_objext; then
37023 ac_cv_have_int64_t="yes"
37026 echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37030 ac_cv_have_int64_t="no"
37035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37039 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37040 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37041 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37042 cat >>confdefs.h <<\_ACEOF
37043 #define HAVE_INT64_T 1
37049 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37050 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37051 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37052 echo $ECHO_N "(cached) $ECHO_C" >&6
37055 cat >conftest.$ac_ext <<_ACEOF
37058 cat confdefs.h >>conftest.$ac_ext
37059 cat >>conftest.$ac_ext <<_ACEOF
37060 /* end confdefs.h. */
37062 #include <sys/types.h>
37068 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37074 rm -f conftest.$ac_objext
37075 if { (ac_try="$ac_compile"
37076 case "(($ac_try" in
37077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37078 *) ac_try_echo=$ac_try;;
37080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37081 (eval "$ac_compile") 2>conftest.er1
37083 grep -v '^ *+' conftest.er1 >conftest.err
37085 cat conftest.err >&5
37086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087 (exit $ac_status); } && {
37088 test -z "$ac_c_werror_flag" ||
37089 test ! -s conftest.err
37090 } && test -s conftest.$ac_objext; then
37092 ac_cv_have_u_intxx_t="yes"
37095 echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37099 ac_cv_have_u_intxx_t="no"
37104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37108 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37109 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37110 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37111 cat >>confdefs.h <<\_ACEOF
37112 #define HAVE_U_INTXX_T 1
37118 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37119 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37120 if test "${ac_cv_have_u_int64_t+set}" = set; then
37121 echo $ECHO_N "(cached) $ECHO_C" >&6
37124 cat >conftest.$ac_ext <<_ACEOF
37127 cat confdefs.h >>conftest.$ac_ext
37128 cat >>conftest.$ac_ext <<_ACEOF
37129 /* end confdefs.h. */
37131 #include <sys/types.h>
37137 u_int64_t a; a = 1;
37143 rm -f conftest.$ac_objext
37144 if { (ac_try="$ac_compile"
37145 case "(($ac_try" in
37146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37147 *) ac_try_echo=$ac_try;;
37149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37150 (eval "$ac_compile") 2>conftest.er1
37152 grep -v '^ *+' conftest.er1 >conftest.err
37154 cat conftest.err >&5
37155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156 (exit $ac_status); } && {
37157 test -z "$ac_c_werror_flag" ||
37158 test ! -s conftest.err
37159 } && test -s conftest.$ac_objext; then
37161 ac_cv_have_u_int64_t="yes"
37164 echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37168 ac_cv_have_u_int64_t="no"
37173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37177 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37178 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37179 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37180 cat >>confdefs.h <<\_ACEOF
37181 #define HAVE_U_INT64_T 1
37187 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37188 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37190 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37191 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37192 cat >conftest.$ac_ext <<_ACEOF
37195 cat confdefs.h >>conftest.$ac_ext
37196 cat >>conftest.$ac_ext <<_ACEOF
37197 /* end confdefs.h. */
37199 #include <sys/bitypes.h>
37205 int8_t a; int16_t b; int32_t c;
37206 u_int8_t e; u_int16_t f; u_int32_t g;
37207 a = b = c = e = f = g = 1;
37213 rm -f conftest.$ac_objext
37214 if { (ac_try="$ac_compile"
37215 case "(($ac_try" in
37216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37217 *) ac_try_echo=$ac_try;;
37219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37220 (eval "$ac_compile") 2>conftest.er1
37222 grep -v '^ *+' conftest.er1 >conftest.err
37224 cat conftest.err >&5
37225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226 (exit $ac_status); } && {
37227 test -z "$ac_c_werror_flag" ||
37228 test ! -s conftest.err
37229 } && test -s conftest.$ac_objext; then
37231 cat >>confdefs.h <<\_ACEOF
37232 #define HAVE_U_INTXX_T 1
37235 cat >>confdefs.h <<\_ACEOF
37236 #define HAVE_INTXX_T 1
37239 cat >>confdefs.h <<\_ACEOF
37240 #define HAVE_SYS_BITYPES_H 1
37243 { echo "$as_me:$LINENO: result: yes" >&5
37244 echo "${ECHO_T}yes" >&6; }
37247 echo "$as_me: failed program was:" >&5
37248 sed 's/^/| /' conftest.$ac_ext >&5
37251 { echo "$as_me:$LINENO: result: no" >&5
37252 echo "${ECHO_T}no" >&6; }
37257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37260 if test -z "$have_u_intxx_t" ; then
37261 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37262 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37263 if test "${ac_cv_have_uintxx_t+set}" = set; then
37264 echo $ECHO_N "(cached) $ECHO_C" >&6
37267 cat >conftest.$ac_ext <<_ACEOF
37270 cat confdefs.h >>conftest.$ac_ext
37271 cat >>conftest.$ac_ext <<_ACEOF
37272 /* end confdefs.h. */
37274 #include <sys/types.h>
37280 uint8_t a; uint16_t b;
37281 uint32_t c; a = b = c = 1;
37287 rm -f conftest.$ac_objext
37288 if { (ac_try="$ac_compile"
37289 case "(($ac_try" in
37290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37291 *) ac_try_echo=$ac_try;;
37293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37294 (eval "$ac_compile") 2>conftest.er1
37296 grep -v '^ *+' conftest.er1 >conftest.err
37298 cat conftest.err >&5
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); } && {
37301 test -z "$ac_c_werror_flag" ||
37302 test ! -s conftest.err
37303 } && test -s conftest.$ac_objext; then
37305 ac_cv_have_uintxx_t="yes"
37308 echo "$as_me: failed program was:" >&5
37309 sed 's/^/| /' conftest.$ac_ext >&5
37312 ac_cv_have_uintxx_t="no"
37317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37321 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37322 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37323 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37324 cat >>confdefs.h <<\_ACEOF
37325 #define HAVE_UINTXX_T 1
37331 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37332 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37334 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37335 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37336 cat >conftest.$ac_ext <<_ACEOF
37339 cat confdefs.h >>conftest.$ac_ext
37340 cat >>conftest.$ac_ext <<_ACEOF
37341 /* end confdefs.h. */
37343 #include <sys/bitypes.h>
37349 int64_t a; u_int64_t b;
37356 rm -f conftest.$ac_objext
37357 if { (ac_try="$ac_compile"
37358 case "(($ac_try" in
37359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37360 *) ac_try_echo=$ac_try;;
37362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37363 (eval "$ac_compile") 2>conftest.er1
37365 grep -v '^ *+' conftest.er1 >conftest.err
37367 cat conftest.err >&5
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); } && {
37370 test -z "$ac_c_werror_flag" ||
37371 test ! -s conftest.err
37372 } && test -s conftest.$ac_objext; then
37374 cat >>confdefs.h <<\_ACEOF
37375 #define HAVE_U_INT64_T 1
37378 cat >>confdefs.h <<\_ACEOF
37379 #define HAVE_INT64_T 1
37382 { echo "$as_me:$LINENO: result: yes" >&5
37383 echo "${ECHO_T}yes" >&6; }
37386 echo "$as_me: failed program was:" >&5
37387 sed 's/^/| /' conftest.$ac_ext >&5
37390 { echo "$as_me:$LINENO: result: no" >&5
37391 echo "${ECHO_T}no" >&6; }
37396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37399 if (test -z "$have_uintxx_t" && \
37400 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37402 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37403 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37404 cat >conftest.$ac_ext <<_ACEOF
37407 cat confdefs.h >>conftest.$ac_ext
37408 cat >>conftest.$ac_ext <<_ACEOF
37409 /* end confdefs.h. */
37411 #include <sys/bitypes.h>
37417 uint8_t a; uint16_t b;
37418 uint32_t c; a = b = c = 1;
37424 rm -f conftest.$ac_objext
37425 if { (ac_try="$ac_compile"
37426 case "(($ac_try" in
37427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37428 *) ac_try_echo=$ac_try;;
37430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37431 (eval "$ac_compile") 2>conftest.er1
37433 grep -v '^ *+' conftest.er1 >conftest.err
37435 cat conftest.err >&5
37436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); } && {
37438 test -z "$ac_c_werror_flag" ||
37439 test ! -s conftest.err
37440 } && test -s conftest.$ac_objext; then
37442 cat >>confdefs.h <<\_ACEOF
37443 #define HAVE_UINTXX_T 1
37446 { echo "$as_me:$LINENO: result: yes" >&5
37447 echo "${ECHO_T}yes" >&6; }
37450 echo "$as_me: failed program was:" >&5
37451 sed 's/^/| /' conftest.$ac_ext >&5
37454 { echo "$as_me:$LINENO: result: no" >&5
37455 echo "${ECHO_T}no" >&6; }
37460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37496 echo $ECHO_N "(cached) $ECHO_C" >&6
37498 cat >conftest.$ac_ext <<_ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h. */
37504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37506 #define $ac_func innocuous_$ac_func
37508 /* System header to define __stub macros and hopefully few prototypes,
37509 which can conflict with char $ac_func (); below.
37510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37511 <limits.h> exists even on freestanding compilers. */
37514 # include <limits.h>
37516 # include <assert.h>
37521 /* Override any GCC internal prototype to avoid an error.
37522 Use char because int might match the return type of a GCC
37523 builtin and then its argument prototype would still apply. */
37528 /* The GNU C library defines this for functions which it implements
37529 to always fail with ENOSYS. Some functions are actually named
37530 something starting with __ and the normal name is an alias. */
37531 #if defined __stub_$ac_func || defined __stub___$ac_func
37538 return $ac_func ();
37543 rm -f conftest.$ac_objext conftest$ac_exeext
37544 if { (ac_try="$ac_link"
37545 case "(($ac_try" in
37546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547 *) ac_try_echo=$ac_try;;
37549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37550 (eval "$ac_link") 2>conftest.er1
37552 grep -v '^ *+' conftest.er1 >conftest.err
37554 cat conftest.err >&5
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); } && {
37557 test -z "$ac_c_werror_flag" ||
37558 test ! -s conftest.err
37559 } && test -s conftest$ac_exeext &&
37560 $as_test_x conftest$ac_exeext; then
37561 eval "$as_ac_var=yes"
37563 echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37566 eval "$as_ac_var=no"
37569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37570 conftest$ac_exeext conftest.$ac_ext
37572 ac_res=`eval echo '${'$as_ac_var'}'`
37573 { echo "$as_me:$LINENO: result: $ac_res" >&5
37574 echo "${ECHO_T}$ac_res" >&6; }
37575 if test `eval echo '${'$as_ac_var'}'` = yes; then
37576 cat >>confdefs.h <<_ACEOF
37577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37581 echo 'configure: cannot find needed function.'; exit 1
37588 for ac_func in fchdir
37590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37596 cat >conftest.$ac_ext <<_ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h. */
37602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37604 #define $ac_func innocuous_$ac_func
37606 /* System header to define __stub macros and hopefully few prototypes,
37607 which can conflict with char $ac_func (); below.
37608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37609 <limits.h> exists even on freestanding compilers. */
37612 # include <limits.h>
37614 # include <assert.h>
37619 /* Override any GCC internal prototype to avoid an error.
37620 Use char because int might match the return type of a GCC
37621 builtin and then its argument prototype would still apply. */
37626 /* The GNU C library defines this for functions which it implements
37627 to always fail with ENOSYS. Some functions are actually named
37628 something starting with __ and the normal name is an alias. */
37629 #if defined __stub_$ac_func || defined __stub___$ac_func
37636 return $ac_func ();
37641 rm -f conftest.$ac_objext conftest$ac_exeext
37642 if { (ac_try="$ac_link"
37643 case "(($ac_try" in
37644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37645 *) ac_try_echo=$ac_try;;
37647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37648 (eval "$ac_link") 2>conftest.er1
37650 grep -v '^ *+' conftest.er1 >conftest.err
37652 cat conftest.err >&5
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); } && {
37655 test -z "$ac_c_werror_flag" ||
37656 test ! -s conftest.err
37657 } && test -s conftest$ac_exeext &&
37658 $as_test_x conftest$ac_exeext; then
37659 eval "$as_ac_var=yes"
37661 echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37664 eval "$as_ac_var=no"
37667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37668 conftest$ac_exeext conftest.$ac_ext
37670 ac_res=`eval echo '${'$as_ac_var'}'`
37671 { echo "$as_me:$LINENO: result: $ac_res" >&5
37672 echo "${ECHO_T}$ac_res" >&6; }
37673 if test `eval echo '${'$as_ac_var'}'` = yes; then
37674 cat >>confdefs.h <<_ACEOF
37675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37677 cat >>confdefs.h <<\_ACEOF
37678 #define HAVE_FCHDIR 1
37685 for ac_func in strtoll
37687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37691 echo $ECHO_N "(cached) $ECHO_C" >&6
37693 cat >conftest.$ac_ext <<_ACEOF
37696 cat confdefs.h >>conftest.$ac_ext
37697 cat >>conftest.$ac_ext <<_ACEOF
37698 /* end confdefs.h. */
37699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37701 #define $ac_func innocuous_$ac_func
37703 /* System header to define __stub macros and hopefully few prototypes,
37704 which can conflict with char $ac_func (); below.
37705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37706 <limits.h> exists even on freestanding compilers. */
37709 # include <limits.h>
37711 # include <assert.h>
37716 /* Override any GCC internal prototype to avoid an error.
37717 Use char because int might match the return type of a GCC
37718 builtin and then its argument prototype would still apply. */
37723 /* The GNU C library defines this for functions which it implements
37724 to always fail with ENOSYS. Some functions are actually named
37725 something starting with __ and the normal name is an alias. */
37726 #if defined __stub_$ac_func || defined __stub___$ac_func
37733 return $ac_func ();
37738 rm -f conftest.$ac_objext conftest$ac_exeext
37739 if { (ac_try="$ac_link"
37740 case "(($ac_try" in
37741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37742 *) ac_try_echo=$ac_try;;
37744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37745 (eval "$ac_link") 2>conftest.er1
37747 grep -v '^ *+' conftest.er1 >conftest.err
37749 cat conftest.err >&5
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); } && {
37752 test -z "$ac_c_werror_flag" ||
37753 test ! -s conftest.err
37754 } && test -s conftest$ac_exeext &&
37755 $as_test_x conftest$ac_exeext; then
37756 eval "$as_ac_var=yes"
37758 echo "$as_me: failed program was:" >&5
37759 sed 's/^/| /' conftest.$ac_ext >&5
37761 eval "$as_ac_var=no"
37764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37765 conftest$ac_exeext conftest.$ac_ext
37767 ac_res=`eval echo '${'$as_ac_var'}'`
37768 { echo "$as_me:$LINENO: result: $ac_res" >&5
37769 echo "${ECHO_T}$ac_res" >&6; }
37770 if test `eval echo '${'$as_ac_var'}'` = yes; then
37771 cat >>confdefs.h <<_ACEOF
37772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37774 cat >>confdefs.h <<\_ACEOF
37775 #define HAVE_STRTOLL 1
37782 for ac_func in posix_fadvise
37784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37788 echo $ECHO_N "(cached) $ECHO_C" >&6
37790 cat >conftest.$ac_ext <<_ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h. */
37796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37798 #define $ac_func innocuous_$ac_func
37800 /* System header to define __stub macros and hopefully few prototypes,
37801 which can conflict with char $ac_func (); below.
37802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37803 <limits.h> exists even on freestanding compilers. */
37806 # include <limits.h>
37808 # include <assert.h>
37813 /* Override any GCC internal prototype to avoid an error.
37814 Use char because int might match the return type of a GCC
37815 builtin and then its argument prototype would still apply. */
37820 /* The GNU C library defines this for functions which it implements
37821 to always fail with ENOSYS. Some functions are actually named
37822 something starting with __ and the normal name is an alias. */
37823 #if defined __stub_$ac_func || defined __stub___$ac_func
37830 return $ac_func ();
37835 rm -f conftest.$ac_objext conftest$ac_exeext
37836 if { (ac_try="$ac_link"
37837 case "(($ac_try" in
37838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37839 *) ac_try_echo=$ac_try;;
37841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37842 (eval "$ac_link") 2>conftest.er1
37844 grep -v '^ *+' conftest.er1 >conftest.err
37846 cat conftest.err >&5
37847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37848 (exit $ac_status); } && {
37849 test -z "$ac_c_werror_flag" ||
37850 test ! -s conftest.err
37851 } && test -s conftest$ac_exeext &&
37852 $as_test_x conftest$ac_exeext; then
37853 eval "$as_ac_var=yes"
37855 echo "$as_me: failed program was:" >&5
37856 sed 's/^/| /' conftest.$ac_ext >&5
37858 eval "$as_ac_var=no"
37861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37862 conftest$ac_exeext conftest.$ac_ext
37864 ac_res=`eval echo '${'$as_ac_var'}'`
37865 { echo "$as_me:$LINENO: result: $ac_res" >&5
37866 echo "${ECHO_T}$ac_res" >&6; }
37867 if test `eval echo '${'$as_ac_var'}'` = yes; then
37868 cat >>confdefs.h <<_ACEOF
37869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37876 for ac_func in fdatasync
37878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37882 echo $ECHO_N "(cached) $ECHO_C" >&6
37884 cat >conftest.$ac_ext <<_ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h. */
37890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37892 #define $ac_func innocuous_$ac_func
37894 /* System header to define __stub macros and hopefully few prototypes,
37895 which can conflict with char $ac_func (); below.
37896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37897 <limits.h> exists even on freestanding compilers. */
37900 # include <limits.h>
37902 # include <assert.h>
37907 /* Override any GCC internal prototype to avoid an error.
37908 Use char because int might match the return type of a GCC
37909 builtin and then its argument prototype would still apply. */
37914 /* The GNU C library defines this for functions which it implements
37915 to always fail with ENOSYS. Some functions are actually named
37916 something starting with __ and the normal name is an alias. */
37917 #if defined __stub_$ac_func || defined __stub___$ac_func
37924 return $ac_func ();
37929 rm -f conftest.$ac_objext conftest$ac_exeext
37930 if { (ac_try="$ac_link"
37931 case "(($ac_try" in
37932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37933 *) ac_try_echo=$ac_try;;
37935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37936 (eval "$ac_link") 2>conftest.er1
37938 grep -v '^ *+' conftest.er1 >conftest.err
37940 cat conftest.err >&5
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); } && {
37943 test -z "$ac_c_werror_flag" ||
37944 test ! -s conftest.err
37945 } && test -s conftest$ac_exeext &&
37946 $as_test_x conftest$ac_exeext; then
37947 eval "$as_ac_var=yes"
37949 echo "$as_me: failed program was:" >&5
37950 sed 's/^/| /' conftest.$ac_ext >&5
37952 eval "$as_ac_var=no"
37955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37956 conftest$ac_exeext conftest.$ac_ext
37958 ac_res=`eval echo '${'$as_ac_var'}'`
37959 { echo "$as_me:$LINENO: result: $ac_res" >&5
37960 echo "${ECHO_T}$ac_res" >&6; }
37961 if test `eval echo '${'$as_ac_var'}'` = yes; then
37962 cat >>confdefs.h <<_ACEOF
37963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37971 for ac_func in chflags
37973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37977 echo $ECHO_N "(cached) $ECHO_C" >&6
37979 cat >conftest.$ac_ext <<_ACEOF
37982 cat confdefs.h >>conftest.$ac_ext
37983 cat >>conftest.$ac_ext <<_ACEOF
37984 /* end confdefs.h. */
37985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37987 #define $ac_func innocuous_$ac_func
37989 /* System header to define __stub macros and hopefully few prototypes,
37990 which can conflict with char $ac_func (); below.
37991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37992 <limits.h> exists even on freestanding compilers. */
37995 # include <limits.h>
37997 # include <assert.h>
38002 /* Override any GCC internal prototype to avoid an error.
38003 Use char because int might match the return type of a GCC
38004 builtin and then its argument prototype would still apply. */
38009 /* The GNU C library defines this for functions which it implements
38010 to always fail with ENOSYS. Some functions are actually named
38011 something starting with __ and the normal name is an alias. */
38012 #if defined __stub_$ac_func || defined __stub___$ac_func
38019 return $ac_func ();
38024 rm -f conftest.$ac_objext conftest$ac_exeext
38025 if { (ac_try="$ac_link"
38026 case "(($ac_try" in
38027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38028 *) ac_try_echo=$ac_try;;
38030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38031 (eval "$ac_link") 2>conftest.er1
38033 grep -v '^ *+' conftest.er1 >conftest.err
38035 cat conftest.err >&5
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); } && {
38038 test -z "$ac_c_werror_flag" ||
38039 test ! -s conftest.err
38040 } && test -s conftest$ac_exeext &&
38041 $as_test_x conftest$ac_exeext; then
38042 eval "$as_ac_var=yes"
38044 echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38047 eval "$as_ac_var=no"
38050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38051 conftest$ac_exeext conftest.$ac_ext
38053 ac_res=`eval echo '${'$as_ac_var'}'`
38054 { echo "$as_me:$LINENO: result: $ac_res" >&5
38055 echo "${ECHO_T}$ac_res" >&6; }
38056 if test `eval echo '${'$as_ac_var'}'` = yes; then
38057 cat >>confdefs.h <<_ACEOF
38058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38069 for ac_func in snprintf vsnprintf gethostid fseeko
38071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38075 echo $ECHO_N "(cached) $ECHO_C" >&6
38077 cat >conftest.$ac_ext <<_ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h. */
38083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38085 #define $ac_func innocuous_$ac_func
38087 /* System header to define __stub macros and hopefully few prototypes,
38088 which can conflict with char $ac_func (); below.
38089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38090 <limits.h> exists even on freestanding compilers. */
38093 # include <limits.h>
38095 # include <assert.h>
38100 /* Override any GCC internal prototype to avoid an error.
38101 Use char because int might match the return type of a GCC
38102 builtin and then its argument prototype would still apply. */
38107 /* The GNU C library defines this for functions which it implements
38108 to always fail with ENOSYS. Some functions are actually named
38109 something starting with __ and the normal name is an alias. */
38110 #if defined __stub_$ac_func || defined __stub___$ac_func
38117 return $ac_func ();
38122 rm -f conftest.$ac_objext conftest$ac_exeext
38123 if { (ac_try="$ac_link"
38124 case "(($ac_try" in
38125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38126 *) ac_try_echo=$ac_try;;
38128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38129 (eval "$ac_link") 2>conftest.er1
38131 grep -v '^ *+' conftest.er1 >conftest.err
38133 cat conftest.err >&5
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); } && {
38136 test -z "$ac_c_werror_flag" ||
38137 test ! -s conftest.err
38138 } && test -s conftest$ac_exeext &&
38139 $as_test_x conftest$ac_exeext; then
38140 eval "$as_ac_var=yes"
38142 echo "$as_me: failed program was:" >&5
38143 sed 's/^/| /' conftest.$ac_ext >&5
38145 eval "$as_ac_var=no"
38148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38149 conftest$ac_exeext conftest.$ac_ext
38151 ac_res=`eval echo '${'$as_ac_var'}'`
38152 { echo "$as_me:$LINENO: result: $ac_res" >&5
38153 echo "${ECHO_T}$ac_res" >&6; }
38154 if test `eval echo '${'$as_ac_var'}'` = yes; then
38155 cat >>confdefs.h <<_ACEOF
38156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38163 { echo "$as_me:$LINENO: checking for va_copy" >&5
38164 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38165 if test "${ba_cv_va_copy+set}" = set; then
38166 echo $ECHO_N "(cached) $ECHO_C" >&6
38169 cat >conftest.$ac_ext <<_ACEOF
38172 cat confdefs.h >>conftest.$ac_ext
38173 cat >>conftest.$ac_ext <<_ACEOF
38174 /* end confdefs.h. */
38176 #include <stdarg.h>
38177 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38178 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38184 call_use_va_copy(1,2,3)
38190 rm -f conftest.$ac_objext conftest$ac_exeext
38191 if { (ac_try="$ac_link"
38192 case "(($ac_try" in
38193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38194 *) ac_try_echo=$ac_try;;
38196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38197 (eval "$ac_link") 2>conftest.er1
38199 grep -v '^ *+' conftest.er1 >conftest.err
38201 cat conftest.err >&5
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); } && {
38204 test -z "$ac_c_werror_flag" ||
38205 test ! -s conftest.err
38206 } && test -s conftest$ac_exeext &&
38207 $as_test_x conftest$ac_exeext; then
38212 echo "$as_me: failed program was:" >&5
38213 sed 's/^/| /' conftest.$ac_ext >&5
38221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38222 conftest$ac_exeext conftest.$ac_ext
38226 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38227 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38228 test $ba_cv_va_copy = yes &&
38229 cat >>confdefs.h <<\_ACEOF
38230 #define HAVE_VA_COPY 1
38238 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38244 echo $ECHO_N "(cached) $ECHO_C" >&6
38246 cat >conftest.$ac_ext <<_ACEOF
38249 cat confdefs.h >>conftest.$ac_ext
38250 cat >>conftest.$ac_ext <<_ACEOF
38251 /* end confdefs.h. */
38252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38254 #define $ac_func innocuous_$ac_func
38256 /* System header to define __stub macros and hopefully few prototypes,
38257 which can conflict with char $ac_func (); below.
38258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38259 <limits.h> exists even on freestanding compilers. */
38262 # include <limits.h>
38264 # include <assert.h>
38269 /* Override any GCC internal prototype to avoid an error.
38270 Use char because int might match the return type of a GCC
38271 builtin and then its argument prototype would still apply. */
38276 /* The GNU C library defines this for functions which it implements
38277 to always fail with ENOSYS. Some functions are actually named
38278 something starting with __ and the normal name is an alias. */
38279 #if defined __stub_$ac_func || defined __stub___$ac_func
38286 return $ac_func ();
38291 rm -f conftest.$ac_objext conftest$ac_exeext
38292 if { (ac_try="$ac_link"
38293 case "(($ac_try" in
38294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38295 *) ac_try_echo=$ac_try;;
38297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38298 (eval "$ac_link") 2>conftest.er1
38300 grep -v '^ *+' conftest.er1 >conftest.err
38302 cat conftest.err >&5
38303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304 (exit $ac_status); } && {
38305 test -z "$ac_c_werror_flag" ||
38306 test ! -s conftest.err
38307 } && test -s conftest$ac_exeext &&
38308 $as_test_x conftest$ac_exeext; then
38309 eval "$as_ac_var=yes"
38311 echo "$as_me: failed program was:" >&5
38312 sed 's/^/| /' conftest.$ac_ext >&5
38314 eval "$as_ac_var=no"
38317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38318 conftest$ac_exeext conftest.$ac_ext
38320 ac_res=`eval echo '${'$as_ac_var'}'`
38321 { echo "$as_me:$LINENO: result: $ac_res" >&5
38322 echo "${ECHO_T}$ac_res" >&6; }
38323 if test `eval echo '${'$as_ac_var'}'` = yes; then
38324 cat >>confdefs.h <<_ACEOF
38325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38332 # If resolver functions are not in libc check for -lnsl or -lresolv.
38333 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38334 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38335 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38336 echo $ECHO_N "(cached) $ECHO_C" >&6
38338 cat >conftest.$ac_ext <<_ACEOF
38341 cat confdefs.h >>conftest.$ac_ext
38342 cat >>conftest.$ac_ext <<_ACEOF
38343 /* end confdefs.h. */
38344 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38346 #define gethostbyname_r innocuous_gethostbyname_r
38348 /* System header to define __stub macros and hopefully few prototypes,
38349 which can conflict with char gethostbyname_r (); below.
38350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38351 <limits.h> exists even on freestanding compilers. */
38354 # include <limits.h>
38356 # include <assert.h>
38359 #undef gethostbyname_r
38361 /* Override any GCC internal prototype to avoid an error.
38362 Use char because int might match the return type of a GCC
38363 builtin and then its argument prototype would still apply. */
38367 char gethostbyname_r ();
38368 /* The GNU C library defines this for functions which it implements
38369 to always fail with ENOSYS. Some functions are actually named
38370 something starting with __ and the normal name is an alias. */
38371 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38378 return gethostbyname_r ();
38383 rm -f conftest.$ac_objext conftest$ac_exeext
38384 if { (ac_try="$ac_link"
38385 case "(($ac_try" in
38386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38387 *) ac_try_echo=$ac_try;;
38389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38390 (eval "$ac_link") 2>conftest.er1
38392 grep -v '^ *+' conftest.er1 >conftest.err
38394 cat conftest.err >&5
38395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396 (exit $ac_status); } && {
38397 test -z "$ac_c_werror_flag" ||
38398 test ! -s conftest.err
38399 } && test -s conftest$ac_exeext &&
38400 $as_test_x conftest$ac_exeext; then
38401 ac_cv_func_gethostbyname_r=yes
38403 echo "$as_me: failed program was:" >&5
38404 sed 's/^/| /' conftest.$ac_ext >&5
38406 ac_cv_func_gethostbyname_r=no
38409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38410 conftest$ac_exeext conftest.$ac_ext
38412 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38413 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38414 if test $ac_cv_func_gethostbyname_r = yes; then
38415 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38416 echo "${ECHO_T}using libc's resolver" >&6; }
38419 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38420 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38421 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38422 echo $ECHO_N "(cached) $ECHO_C" >&6
38424 ac_check_lib_save_LIBS=$LIBS
38426 cat >conftest.$ac_ext <<_ACEOF
38429 cat confdefs.h >>conftest.$ac_ext
38430 cat >>conftest.$ac_ext <<_ACEOF
38431 /* end confdefs.h. */
38433 /* Override any GCC internal prototype to avoid an error.
38434 Use char because int might match the return type of a GCC
38435 builtin and then its argument prototype would still apply. */
38439 char gethostbyname_r ();
38443 return gethostbyname_r ();
38448 rm -f conftest.$ac_objext conftest$ac_exeext
38449 if { (ac_try="$ac_link"
38450 case "(($ac_try" in
38451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38452 *) ac_try_echo=$ac_try;;
38454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38455 (eval "$ac_link") 2>conftest.er1
38457 grep -v '^ *+' conftest.er1 >conftest.err
38459 cat conftest.err >&5
38460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38461 (exit $ac_status); } && {
38462 test -z "$ac_c_werror_flag" ||
38463 test ! -s conftest.err
38464 } && test -s conftest$ac_exeext &&
38465 $as_test_x conftest$ac_exeext; then
38466 ac_cv_lib_nsl_gethostbyname_r=yes
38468 echo "$as_me: failed program was:" >&5
38469 sed 's/^/| /' conftest.$ac_ext >&5
38471 ac_cv_lib_nsl_gethostbyname_r=no
38474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38475 conftest$ac_exeext conftest.$ac_ext
38476 LIBS=$ac_check_lib_save_LIBS
38478 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38479 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38480 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38481 cat >>confdefs.h <<_ACEOF
38482 #define HAVE_LIBNSL 1
38490 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38491 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38492 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38493 echo $ECHO_N "(cached) $ECHO_C" >&6
38495 ac_check_lib_save_LIBS=$LIBS
38496 LIBS="-lresolv $LIBS"
38497 cat >conftest.$ac_ext <<_ACEOF
38500 cat confdefs.h >>conftest.$ac_ext
38501 cat >>conftest.$ac_ext <<_ACEOF
38502 /* end confdefs.h. */
38504 /* Override any GCC internal prototype to avoid an error.
38505 Use char because int might match the return type of a GCC
38506 builtin and then its argument prototype would still apply. */
38510 char gethostbyname_r ();
38514 return gethostbyname_r ();
38519 rm -f conftest.$ac_objext conftest$ac_exeext
38520 if { (ac_try="$ac_link"
38521 case "(($ac_try" in
38522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38523 *) ac_try_echo=$ac_try;;
38525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38526 (eval "$ac_link") 2>conftest.er1
38528 grep -v '^ *+' conftest.er1 >conftest.err
38530 cat conftest.err >&5
38531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38532 (exit $ac_status); } && {
38533 test -z "$ac_c_werror_flag" ||
38534 test ! -s conftest.err
38535 } && test -s conftest$ac_exeext &&
38536 $as_test_x conftest$ac_exeext; then
38537 ac_cv_lib_resolv_gethostbyname_r=yes
38539 echo "$as_me: failed program was:" >&5
38540 sed 's/^/| /' conftest.$ac_ext >&5
38542 ac_cv_lib_resolv_gethostbyname_r=no
38545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38546 conftest$ac_exeext conftest.$ac_ext
38547 LIBS=$ac_check_lib_save_LIBS
38549 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38550 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38551 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38552 cat >>confdefs.h <<_ACEOF
38553 #define HAVE_LIBRESOLV 1
38556 LIBS="-lresolv $LIBS"
38564 for ac_func in inet_pton
38566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38570 echo $ECHO_N "(cached) $ECHO_C" >&6
38572 cat >conftest.$ac_ext <<_ACEOF
38575 cat confdefs.h >>conftest.$ac_ext
38576 cat >>conftest.$ac_ext <<_ACEOF
38577 /* end confdefs.h. */
38578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38580 #define $ac_func innocuous_$ac_func
38582 /* System header to define __stub macros and hopefully few prototypes,
38583 which can conflict with char $ac_func (); below.
38584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38585 <limits.h> exists even on freestanding compilers. */
38588 # include <limits.h>
38590 # include <assert.h>
38595 /* Override any GCC internal prototype to avoid an error.
38596 Use char because int might match the return type of a GCC
38597 builtin and then its argument prototype would still apply. */
38602 /* The GNU C library defines this for functions which it implements
38603 to always fail with ENOSYS. Some functions are actually named
38604 something starting with __ and the normal name is an alias. */
38605 #if defined __stub_$ac_func || defined __stub___$ac_func
38612 return $ac_func ();
38617 rm -f conftest.$ac_objext conftest$ac_exeext
38618 if { (ac_try="$ac_link"
38619 case "(($ac_try" in
38620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621 *) ac_try_echo=$ac_try;;
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624 (eval "$ac_link") 2>conftest.er1
38626 grep -v '^ *+' conftest.er1 >conftest.err
38628 cat conftest.err >&5
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); } && {
38631 test -z "$ac_c_werror_flag" ||
38632 test ! -s conftest.err
38633 } && test -s conftest$ac_exeext &&
38634 $as_test_x conftest$ac_exeext; then
38635 eval "$as_ac_var=yes"
38637 echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38640 eval "$as_ac_var=no"
38643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38644 conftest$ac_exeext conftest.$ac_ext
38646 ac_res=`eval echo '${'$as_ac_var'}'`
38647 { echo "$as_me:$LINENO: result: $ac_res" >&5
38648 echo "${ECHO_T}$ac_res" >&6; }
38649 if test `eval echo '${'$as_ac_var'}'` = yes; then
38650 cat >>confdefs.h <<_ACEOF
38651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38653 cat >>confdefs.h <<\_ACEOF
38654 #define HAVE_INET_PTON 1
38661 for ac_func in inet_ntop
38663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38667 echo $ECHO_N "(cached) $ECHO_C" >&6
38669 cat >conftest.$ac_ext <<_ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h. */
38675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38677 #define $ac_func innocuous_$ac_func
38679 /* System header to define __stub macros and hopefully few prototypes,
38680 which can conflict with char $ac_func (); below.
38681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38682 <limits.h> exists even on freestanding compilers. */
38685 # include <limits.h>
38687 # include <assert.h>
38692 /* Override any GCC internal prototype to avoid an error.
38693 Use char because int might match the return type of a GCC
38694 builtin and then its argument prototype would still apply. */
38699 /* The GNU C library defines this for functions which it implements
38700 to always fail with ENOSYS. Some functions are actually named
38701 something starting with __ and the normal name is an alias. */
38702 #if defined __stub_$ac_func || defined __stub___$ac_func
38709 return $ac_func ();
38714 rm -f conftest.$ac_objext conftest$ac_exeext
38715 if { (ac_try="$ac_link"
38716 case "(($ac_try" in
38717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38718 *) ac_try_echo=$ac_try;;
38720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38721 (eval "$ac_link") 2>conftest.er1
38723 grep -v '^ *+' conftest.er1 >conftest.err
38725 cat conftest.err >&5
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); } && {
38728 test -z "$ac_c_werror_flag" ||
38729 test ! -s conftest.err
38730 } && test -s conftest$ac_exeext &&
38731 $as_test_x conftest$ac_exeext; then
38732 eval "$as_ac_var=yes"
38734 echo "$as_me: failed program was:" >&5
38735 sed 's/^/| /' conftest.$ac_ext >&5
38737 eval "$as_ac_var=no"
38740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38741 conftest$ac_exeext conftest.$ac_ext
38743 ac_res=`eval echo '${'$as_ac_var'}'`
38744 { echo "$as_me:$LINENO: result: $ac_res" >&5
38745 echo "${ECHO_T}$ac_res" >&6; }
38746 if test `eval echo '${'$as_ac_var'}'` = yes; then
38747 cat >>confdefs.h <<_ACEOF
38748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38750 cat >>confdefs.h <<\_ACEOF
38751 #define HAVE_INET_NTOP 1
38758 for ac_func in gethostbyname2
38760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38764 echo $ECHO_N "(cached) $ECHO_C" >&6
38766 cat >conftest.$ac_ext <<_ACEOF
38769 cat confdefs.h >>conftest.$ac_ext
38770 cat >>conftest.$ac_ext <<_ACEOF
38771 /* end confdefs.h. */
38772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38774 #define $ac_func innocuous_$ac_func
38776 /* System header to define __stub macros and hopefully few prototypes,
38777 which can conflict with char $ac_func (); below.
38778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38779 <limits.h> exists even on freestanding compilers. */
38782 # include <limits.h>
38784 # include <assert.h>
38789 /* Override any GCC internal prototype to avoid an error.
38790 Use char because int might match the return type of a GCC
38791 builtin and then its argument prototype would still apply. */
38796 /* The GNU C library defines this for functions which it implements
38797 to always fail with ENOSYS. Some functions are actually named
38798 something starting with __ and the normal name is an alias. */
38799 #if defined __stub_$ac_func || defined __stub___$ac_func
38806 return $ac_func ();
38811 rm -f conftest.$ac_objext conftest$ac_exeext
38812 if { (ac_try="$ac_link"
38813 case "(($ac_try" in
38814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38815 *) ac_try_echo=$ac_try;;
38817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38818 (eval "$ac_link") 2>conftest.er1
38820 grep -v '^ *+' conftest.er1 >conftest.err
38822 cat conftest.err >&5
38823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38824 (exit $ac_status); } && {
38825 test -z "$ac_c_werror_flag" ||
38826 test ! -s conftest.err
38827 } && test -s conftest$ac_exeext &&
38828 $as_test_x conftest$ac_exeext; then
38829 eval "$as_ac_var=yes"
38831 echo "$as_me: failed program was:" >&5
38832 sed 's/^/| /' conftest.$ac_ext >&5
38834 eval "$as_ac_var=no"
38837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38838 conftest$ac_exeext conftest.$ac_ext
38840 ac_res=`eval echo '${'$as_ac_var'}'`
38841 { echo "$as_me:$LINENO: result: $ac_res" >&5
38842 echo "${ECHO_T}$ac_res" >&6; }
38843 if test `eval echo '${'$as_ac_var'}'` = yes; then
38844 cat >>confdefs.h <<_ACEOF
38845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38847 cat >>confdefs.h <<\_ACEOF
38848 #define HAVE_GETHOSTBYNAME2 1
38855 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38856 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38857 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38858 echo $ECHO_N "(cached) $ECHO_C" >&6
38861 cat >conftest.$ac_ext <<_ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h. */
38868 #include <sys/socket.h>
38874 struct sockaddr s; s.sa_len;
38880 rm -f conftest.$ac_objext
38881 if { (ac_try="$ac_compile"
38882 case "(($ac_try" in
38883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38884 *) ac_try_echo=$ac_try;;
38886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38887 (eval "$ac_compile") 2>conftest.er1
38889 grep -v '^ *+' conftest.er1 >conftest.err
38891 cat conftest.err >&5
38892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893 (exit $ac_status); } && {
38894 test -z "$ac_c_werror_flag" ||
38895 test ! -s conftest.err
38896 } && test -s conftest.$ac_objext; then
38898 ac_cv_struct_sockaddr_sa_len=yes
38901 echo "$as_me: failed program was:" >&5
38902 sed 's/^/| /' conftest.$ac_ext >&5
38904 ac_cv_struct_sockaddr_sa_len=no
38909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38913 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38914 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38916 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38918 cat >>confdefs.h <<\_ACEOF
38919 #define HAVE_SA_LEN 1
38925 for ac_func in strftime
38927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38931 echo $ECHO_N "(cached) $ECHO_C" >&6
38933 cat >conftest.$ac_ext <<_ACEOF
38936 cat confdefs.h >>conftest.$ac_ext
38937 cat >>conftest.$ac_ext <<_ACEOF
38938 /* end confdefs.h. */
38939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38941 #define $ac_func innocuous_$ac_func
38943 /* System header to define __stub macros and hopefully few prototypes,
38944 which can conflict with char $ac_func (); below.
38945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38946 <limits.h> exists even on freestanding compilers. */
38949 # include <limits.h>
38951 # include <assert.h>
38956 /* Override any GCC internal prototype to avoid an error.
38957 Use char because int might match the return type of a GCC
38958 builtin and then its argument prototype would still apply. */
38963 /* The GNU C library defines this for functions which it implements
38964 to always fail with ENOSYS. Some functions are actually named
38965 something starting with __ and the normal name is an alias. */
38966 #if defined __stub_$ac_func || defined __stub___$ac_func
38973 return $ac_func ();
38978 rm -f conftest.$ac_objext conftest$ac_exeext
38979 if { (ac_try="$ac_link"
38980 case "(($ac_try" in
38981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38982 *) ac_try_echo=$ac_try;;
38984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38985 (eval "$ac_link") 2>conftest.er1
38987 grep -v '^ *+' conftest.er1 >conftest.err
38989 cat conftest.err >&5
38990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991 (exit $ac_status); } && {
38992 test -z "$ac_c_werror_flag" ||
38993 test ! -s conftest.err
38994 } && test -s conftest$ac_exeext &&
38995 $as_test_x conftest$ac_exeext; then
38996 eval "$as_ac_var=yes"
38998 echo "$as_me: failed program was:" >&5
38999 sed 's/^/| /' conftest.$ac_ext >&5
39001 eval "$as_ac_var=no"
39004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39005 conftest$ac_exeext conftest.$ac_ext
39007 ac_res=`eval echo '${'$as_ac_var'}'`
39008 { echo "$as_me:$LINENO: result: $ac_res" >&5
39009 echo "${ECHO_T}$ac_res" >&6; }
39010 if test `eval echo '${'$as_ac_var'}'` = yes; then
39011 cat >>confdefs.h <<_ACEOF
39012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39016 # strftime is in -lintl on SCO UNIX.
39017 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39018 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39019 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39020 echo $ECHO_N "(cached) $ECHO_C" >&6
39022 ac_check_lib_save_LIBS=$LIBS
39023 LIBS="-lintl $LIBS"
39024 cat >conftest.$ac_ext <<_ACEOF
39027 cat confdefs.h >>conftest.$ac_ext
39028 cat >>conftest.$ac_ext <<_ACEOF
39029 /* end confdefs.h. */
39031 /* Override any GCC internal prototype to avoid an error.
39032 Use char because int might match the return type of a GCC
39033 builtin and then its argument prototype would still apply. */
39041 return strftime ();
39046 rm -f conftest.$ac_objext conftest$ac_exeext
39047 if { (ac_try="$ac_link"
39048 case "(($ac_try" in
39049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39050 *) ac_try_echo=$ac_try;;
39052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39053 (eval "$ac_link") 2>conftest.er1
39055 grep -v '^ *+' conftest.er1 >conftest.err
39057 cat conftest.err >&5
39058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059 (exit $ac_status); } && {
39060 test -z "$ac_c_werror_flag" ||
39061 test ! -s conftest.err
39062 } && test -s conftest$ac_exeext &&
39063 $as_test_x conftest$ac_exeext; then
39064 ac_cv_lib_intl_strftime=yes
39066 echo "$as_me: failed program was:" >&5
39067 sed 's/^/| /' conftest.$ac_ext >&5
39069 ac_cv_lib_intl_strftime=no
39072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39073 conftest$ac_exeext conftest.$ac_ext
39074 LIBS=$ac_check_lib_save_LIBS
39076 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39077 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39078 if test $ac_cv_lib_intl_strftime = yes; then
39079 cat >>confdefs.h <<\_ACEOF
39080 #define HAVE_STRFTIME 1
39083 LIBS="-lintl $LIBS"
39090 for ac_func in vprintf
39092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39096 echo $ECHO_N "(cached) $ECHO_C" >&6
39098 cat >conftest.$ac_ext <<_ACEOF
39101 cat confdefs.h >>conftest.$ac_ext
39102 cat >>conftest.$ac_ext <<_ACEOF
39103 /* end confdefs.h. */
39104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39106 #define $ac_func innocuous_$ac_func
39108 /* System header to define __stub macros and hopefully few prototypes,
39109 which can conflict with char $ac_func (); below.
39110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39111 <limits.h> exists even on freestanding compilers. */
39114 # include <limits.h>
39116 # include <assert.h>
39121 /* Override any GCC internal prototype to avoid an error.
39122 Use char because int might match the return type of a GCC
39123 builtin and then its argument prototype would still apply. */
39128 /* The GNU C library defines this for functions which it implements
39129 to always fail with ENOSYS. Some functions are actually named
39130 something starting with __ and the normal name is an alias. */
39131 #if defined __stub_$ac_func || defined __stub___$ac_func
39138 return $ac_func ();
39143 rm -f conftest.$ac_objext conftest$ac_exeext
39144 if { (ac_try="$ac_link"
39145 case "(($ac_try" in
39146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39147 *) ac_try_echo=$ac_try;;
39149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39150 (eval "$ac_link") 2>conftest.er1
39152 grep -v '^ *+' conftest.er1 >conftest.err
39154 cat conftest.err >&5
39155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); } && {
39157 test -z "$ac_c_werror_flag" ||
39158 test ! -s conftest.err
39159 } && test -s conftest$ac_exeext &&
39160 $as_test_x conftest$ac_exeext; then
39161 eval "$as_ac_var=yes"
39163 echo "$as_me: failed program was:" >&5
39164 sed 's/^/| /' conftest.$ac_ext >&5
39166 eval "$as_ac_var=no"
39169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39170 conftest$ac_exeext conftest.$ac_ext
39172 ac_res=`eval echo '${'$as_ac_var'}'`
39173 { echo "$as_me:$LINENO: result: $ac_res" >&5
39174 echo "${ECHO_T}$ac_res" >&6; }
39175 if test `eval echo '${'$as_ac_var'}'` = yes; then
39176 cat >>confdefs.h <<_ACEOF
39177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39180 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39181 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39182 if test "${ac_cv_func__doprnt+set}" = set; then
39183 echo $ECHO_N "(cached) $ECHO_C" >&6
39185 cat >conftest.$ac_ext <<_ACEOF
39188 cat confdefs.h >>conftest.$ac_ext
39189 cat >>conftest.$ac_ext <<_ACEOF
39190 /* end confdefs.h. */
39191 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39193 #define _doprnt innocuous__doprnt
39195 /* System header to define __stub macros and hopefully few prototypes,
39196 which can conflict with char _doprnt (); below.
39197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39198 <limits.h> exists even on freestanding compilers. */
39201 # include <limits.h>
39203 # include <assert.h>
39208 /* Override any GCC internal prototype to avoid an error.
39209 Use char because int might match the return type of a GCC
39210 builtin and then its argument prototype would still apply. */
39215 /* The GNU C library defines this for functions which it implements
39216 to always fail with ENOSYS. Some functions are actually named
39217 something starting with __ and the normal name is an alias. */
39218 #if defined __stub__doprnt || defined __stub____doprnt
39230 rm -f conftest.$ac_objext conftest$ac_exeext
39231 if { (ac_try="$ac_link"
39232 case "(($ac_try" in
39233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39234 *) ac_try_echo=$ac_try;;
39236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39237 (eval "$ac_link") 2>conftest.er1
39239 grep -v '^ *+' conftest.er1 >conftest.err
39241 cat conftest.err >&5
39242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243 (exit $ac_status); } && {
39244 test -z "$ac_c_werror_flag" ||
39245 test ! -s conftest.err
39246 } && test -s conftest$ac_exeext &&
39247 $as_test_x conftest$ac_exeext; then
39248 ac_cv_func__doprnt=yes
39250 echo "$as_me: failed program was:" >&5
39251 sed 's/^/| /' conftest.$ac_ext >&5
39253 ac_cv_func__doprnt=no
39256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39257 conftest$ac_exeext conftest.$ac_ext
39259 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39260 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39261 if test $ac_cv_func__doprnt = yes; then
39263 cat >>confdefs.h <<\_ACEOF
39264 #define HAVE_DOPRNT 1
39273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39274 # for constant arguments. Useless!
39275 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39276 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39277 if test "${ac_cv_working_alloca_h+set}" = set; then
39278 echo $ECHO_N "(cached) $ECHO_C" >&6
39280 cat >conftest.$ac_ext <<_ACEOF
39283 cat confdefs.h >>conftest.$ac_ext
39284 cat >>conftest.$ac_ext <<_ACEOF
39285 /* end confdefs.h. */
39286 #include <alloca.h>
39290 char *p = (char *) alloca (2 * sizeof (int));
39296 rm -f conftest.$ac_objext conftest$ac_exeext
39297 if { (ac_try="$ac_link"
39298 case "(($ac_try" in
39299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39300 *) ac_try_echo=$ac_try;;
39302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39303 (eval "$ac_link") 2>conftest.er1
39305 grep -v '^ *+' conftest.er1 >conftest.err
39307 cat conftest.err >&5
39308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39309 (exit $ac_status); } && {
39310 test -z "$ac_c_werror_flag" ||
39311 test ! -s conftest.err
39312 } && test -s conftest$ac_exeext &&
39313 $as_test_x conftest$ac_exeext; then
39314 ac_cv_working_alloca_h=yes
39316 echo "$as_me: failed program was:" >&5
39317 sed 's/^/| /' conftest.$ac_ext >&5
39319 ac_cv_working_alloca_h=no
39322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39323 conftest$ac_exeext conftest.$ac_ext
39325 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39327 if test $ac_cv_working_alloca_h = yes; then
39329 cat >>confdefs.h <<\_ACEOF
39330 #define HAVE_ALLOCA_H 1
39335 { echo "$as_me:$LINENO: checking for alloca" >&5
39336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39337 if test "${ac_cv_func_alloca_works+set}" = set; then
39338 echo $ECHO_N "(cached) $ECHO_C" >&6
39340 cat >conftest.$ac_ext <<_ACEOF
39343 cat confdefs.h >>conftest.$ac_ext
39344 cat >>conftest.$ac_ext <<_ACEOF
39345 /* end confdefs.h. */
39347 # define alloca __builtin_alloca
39350 # include <malloc.h>
39351 # define alloca _alloca
39353 # ifdef HAVE_ALLOCA_H
39354 # include <alloca.h>
39359 # ifndef alloca /* predefined by HP cc +Olibcalls */
39370 char *p = (char *) alloca (1);
39376 rm -f conftest.$ac_objext conftest$ac_exeext
39377 if { (ac_try="$ac_link"
39378 case "(($ac_try" in
39379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39380 *) ac_try_echo=$ac_try;;
39382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39383 (eval "$ac_link") 2>conftest.er1
39385 grep -v '^ *+' conftest.er1 >conftest.err
39387 cat conftest.err >&5
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); } && {
39390 test -z "$ac_c_werror_flag" ||
39391 test ! -s conftest.err
39392 } && test -s conftest$ac_exeext &&
39393 $as_test_x conftest$ac_exeext; then
39394 ac_cv_func_alloca_works=yes
39396 echo "$as_me: failed program was:" >&5
39397 sed 's/^/| /' conftest.$ac_ext >&5
39399 ac_cv_func_alloca_works=no
39402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39403 conftest$ac_exeext conftest.$ac_ext
39405 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39406 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39408 if test $ac_cv_func_alloca_works = yes; then
39410 cat >>confdefs.h <<\_ACEOF
39411 #define HAVE_ALLOCA 1
39415 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39416 # that cause trouble. Some versions do not even contain alloca or
39417 # contain a buggy version. If you still want to use their alloca,
39418 # use ar to extract alloca.o from them instead of compiling alloca.c.
39420 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39422 cat >>confdefs.h <<\_ACEOF
39427 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39428 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39429 if test "${ac_cv_os_cray+set}" = set; then
39430 echo $ECHO_N "(cached) $ECHO_C" >&6
39432 cat >conftest.$ac_ext <<_ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h. */
39438 #if defined CRAY && ! defined CRAY2
39445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39446 $EGREP "webecray" >/dev/null 2>&1; then
39454 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39455 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39456 if test $ac_cv_os_cray = yes; then
39457 for ac_func in _getb67 GETB67 getb67; do
39458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39462 echo $ECHO_N "(cached) $ECHO_C" >&6
39464 cat >conftest.$ac_ext <<_ACEOF
39467 cat confdefs.h >>conftest.$ac_ext
39468 cat >>conftest.$ac_ext <<_ACEOF
39469 /* end confdefs.h. */
39470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39472 #define $ac_func innocuous_$ac_func
39474 /* System header to define __stub macros and hopefully few prototypes,
39475 which can conflict with char $ac_func (); below.
39476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39477 <limits.h> exists even on freestanding compilers. */
39480 # include <limits.h>
39482 # include <assert.h>
39487 /* Override any GCC internal prototype to avoid an error.
39488 Use char because int might match the return type of a GCC
39489 builtin and then its argument prototype would still apply. */
39494 /* The GNU C library defines this for functions which it implements
39495 to always fail with ENOSYS. Some functions are actually named
39496 something starting with __ and the normal name is an alias. */
39497 #if defined __stub_$ac_func || defined __stub___$ac_func
39504 return $ac_func ();
39509 rm -f conftest.$ac_objext conftest$ac_exeext
39510 if { (ac_try="$ac_link"
39511 case "(($ac_try" in
39512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513 *) ac_try_echo=$ac_try;;
39515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39516 (eval "$ac_link") 2>conftest.er1
39518 grep -v '^ *+' conftest.er1 >conftest.err
39520 cat conftest.err >&5
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); } && {
39523 test -z "$ac_c_werror_flag" ||
39524 test ! -s conftest.err
39525 } && test -s conftest$ac_exeext &&
39526 $as_test_x conftest$ac_exeext; then
39527 eval "$as_ac_var=yes"
39529 echo "$as_me: failed program was:" >&5
39530 sed 's/^/| /' conftest.$ac_ext >&5
39532 eval "$as_ac_var=no"
39535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39536 conftest$ac_exeext conftest.$ac_ext
39538 ac_res=`eval echo '${'$as_ac_var'}'`
39539 { echo "$as_me:$LINENO: result: $ac_res" >&5
39540 echo "${ECHO_T}$ac_res" >&6; }
39541 if test `eval echo '${'$as_ac_var'}'` = yes; then
39543 cat >>confdefs.h <<_ACEOF
39544 #define CRAY_STACKSEG_END $ac_func
39553 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39554 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39555 if test "${ac_cv_c_stack_direction+set}" = set; then
39556 echo $ECHO_N "(cached) $ECHO_C" >&6
39558 if test "$cross_compiling" = yes; then
39559 ac_cv_c_stack_direction=0
39561 cat >conftest.$ac_ext <<_ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h. */
39567 $ac_includes_default
39569 find_stack_direction ()
39571 static char *addr = 0;
39576 return find_stack_direction ();
39579 return (&dummy > addr) ? 1 : -1;
39585 return find_stack_direction () < 0;
39588 rm -f conftest$ac_exeext
39589 if { (ac_try="$ac_link"
39590 case "(($ac_try" in
39591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39592 *) ac_try_echo=$ac_try;;
39594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39595 (eval "$ac_link") 2>&5
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39599 { (case "(($ac_try" in
39600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39601 *) ac_try_echo=$ac_try;;
39603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39604 (eval "$ac_try") 2>&5
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; }; then
39608 ac_cv_c_stack_direction=1
39610 echo "$as_me: program exited with status $ac_status" >&5
39611 echo "$as_me: failed program was:" >&5
39612 sed 's/^/| /' conftest.$ac_ext >&5
39614 ( exit $ac_status )
39615 ac_cv_c_stack_direction=-1
39617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39622 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39623 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39625 cat >>confdefs.h <<_ACEOF
39626 #define STACK_DIRECTION $ac_cv_c_stack_direction
39632 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39633 # -lseq on Dynix/PTX, -lgen on Unixware.
39634 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39635 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39636 if test "${ac_cv_search_getmntent+set}" = set; then
39637 echo $ECHO_N "(cached) $ECHO_C" >&6
39639 ac_func_search_save_LIBS=$LIBS
39640 cat >conftest.$ac_ext <<_ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h. */
39647 /* Override any GCC internal prototype to avoid an error.
39648 Use char because int might match the return type of a GCC
39649 builtin and then its argument prototype would still apply. */
39657 return getmntent ();
39662 for ac_lib in '' sun seq gen; do
39663 if test -z "$ac_lib"; then
39664 ac_res="none required"
39667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39669 rm -f conftest.$ac_objext conftest$ac_exeext
39670 if { (ac_try="$ac_link"
39671 case "(($ac_try" in
39672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39673 *) ac_try_echo=$ac_try;;
39675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39676 (eval "$ac_link") 2>conftest.er1
39678 grep -v '^ *+' conftest.er1 >conftest.err
39680 cat conftest.err >&5
39681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682 (exit $ac_status); } && {
39683 test -z "$ac_c_werror_flag" ||
39684 test ! -s conftest.err
39685 } && test -s conftest$ac_exeext &&
39686 $as_test_x conftest$ac_exeext; then
39687 ac_cv_search_getmntent=$ac_res
39689 echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39697 if test "${ac_cv_search_getmntent+set}" = set; then
39701 if test "${ac_cv_search_getmntent+set}" = set; then
39704 ac_cv_search_getmntent=no
39706 rm conftest.$ac_ext
39707 LIBS=$ac_func_search_save_LIBS
39709 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39710 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39711 ac_res=$ac_cv_search_getmntent
39712 if test "$ac_res" != no; then
39713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39714 ac_cv_func_getmntent=yes
39716 cat >>confdefs.h <<\_ACEOF
39717 #define HAVE_GETMNTENT 1
39721 ac_cv_func_getmntent=no
39725 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39726 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39727 if test "${ac_cv_func_closedir_void+set}" = set; then
39728 echo $ECHO_N "(cached) $ECHO_C" >&6
39730 if test "$cross_compiling" = yes; then
39731 ac_cv_func_closedir_void=yes
39733 cat >conftest.$ac_ext <<_ACEOF
39736 cat confdefs.h >>conftest.$ac_ext
39737 cat >>conftest.$ac_ext <<_ACEOF
39738 /* end confdefs.h. */
39739 $ac_includes_default
39740 #include <$ac_header_dirent>
39741 #ifndef __cplusplus
39748 return closedir (opendir (".")) != 0;
39753 rm -f conftest$ac_exeext
39754 if { (ac_try="$ac_link"
39755 case "(($ac_try" in
39756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757 *) ac_try_echo=$ac_try;;
39759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39760 (eval "$ac_link") 2>&5
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39764 { (case "(($ac_try" in
39765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39766 *) ac_try_echo=$ac_try;;
39768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39769 (eval "$ac_try") 2>&5
39771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39772 (exit $ac_status); }; }; then
39773 ac_cv_func_closedir_void=no
39775 echo "$as_me: program exited with status $ac_status" >&5
39776 echo "$as_me: failed program was:" >&5
39777 sed 's/^/| /' conftest.$ac_ext >&5
39779 ( exit $ac_status )
39780 ac_cv_func_closedir_void=yes
39782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39787 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39788 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39789 if test $ac_cv_func_closedir_void = yes; then
39791 cat >>confdefs.h <<\_ACEOF
39792 #define CLOSEDIR_VOID 1
39797 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39798 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39799 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39800 echo $ECHO_N "(cached) $ECHO_C" >&6
39802 if test "$cross_compiling" = yes; then
39803 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39804 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39805 { (exit 1); exit 1; }; }
39807 cat >conftest.$ac_ext <<_ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h. */
39813 $ac_includes_default
39817 /* If this system has a BSD-style setpgrp which takes arguments,
39818 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39819 exit successfully. */
39820 return setpgrp (1,1) != -1;
39825 rm -f conftest$ac_exeext
39826 if { (ac_try="$ac_link"
39827 case "(($ac_try" in
39828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39829 *) ac_try_echo=$ac_try;;
39831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39832 (eval "$ac_link") 2>&5
39834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39836 { (case "(($ac_try" in
39837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39838 *) ac_try_echo=$ac_try;;
39840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39841 (eval "$ac_try") 2>&5
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); }; }; then
39845 ac_cv_func_setpgrp_void=no
39847 echo "$as_me: program exited with status $ac_status" >&5
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39851 ( exit $ac_status )
39852 ac_cv_func_setpgrp_void=yes
39854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39859 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39860 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39861 if test $ac_cv_func_setpgrp_void = yes; then
39863 cat >>confdefs.h <<\_ACEOF
39864 #define SETPGRP_VOID 1
39868 # AC_FUNC_FNMATCH dnl use local version
39870 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39871 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39872 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39873 echo $ECHO_N "(cached) $ECHO_C" >&6
39875 ac_check_lib_save_LIBS=$LIBS
39876 LIBS="-lintl $LIBS"
39877 cat >conftest.$ac_ext <<_ACEOF
39880 cat confdefs.h >>conftest.$ac_ext
39881 cat >>conftest.$ac_ext <<_ACEOF
39882 /* end confdefs.h. */
39884 /* Override any GCC internal prototype to avoid an error.
39885 Use char because int might match the return type of a GCC
39886 builtin and then its argument prototype would still apply. */
39899 rm -f conftest.$ac_objext conftest$ac_exeext
39900 if { (ac_try="$ac_link"
39901 case "(($ac_try" in
39902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39903 *) ac_try_echo=$ac_try;;
39905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39906 (eval "$ac_link") 2>conftest.er1
39908 grep -v '^ *+' conftest.er1 >conftest.err
39910 cat conftest.err >&5
39911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); } && {
39913 test -z "$ac_c_werror_flag" ||
39914 test ! -s conftest.err
39915 } && test -s conftest$ac_exeext &&
39916 $as_test_x conftest$ac_exeext; then
39917 ac_cv_lib_intl_gettext=yes
39919 echo "$as_me: failed program was:" >&5
39920 sed 's/^/| /' conftest.$ac_ext >&5
39922 ac_cv_lib_intl_gettext=no
39925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39926 conftest$ac_exeext conftest.$ac_ext
39927 LIBS=$ac_check_lib_save_LIBS
39929 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39930 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39931 if test $ac_cv_lib_intl_gettext = yes; then
39932 LIBS="$LIBS -lintl"
39937 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39938 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39939 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39940 echo $ECHO_N "(cached) $ECHO_C" >&6
39942 ac_check_lib_save_LIBS=$LIBS
39944 cat >conftest.$ac_ext <<_ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h. */
39951 /* Override any GCC internal prototype to avoid an error.
39952 Use char because int might match the return type of a GCC
39953 builtin and then its argument prototype would still apply. */
39961 return getpwnam ();
39966 rm -f conftest.$ac_objext conftest$ac_exeext
39967 if { (ac_try="$ac_link"
39968 case "(($ac_try" in
39969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39970 *) ac_try_echo=$ac_try;;
39972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39973 (eval "$ac_link") 2>conftest.er1
39975 grep -v '^ *+' conftest.er1 >conftest.err
39977 cat conftest.err >&5
39978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979 (exit $ac_status); } && {
39980 test -z "$ac_c_werror_flag" ||
39981 test ! -s conftest.err
39982 } && test -s conftest$ac_exeext &&
39983 $as_test_x conftest$ac_exeext; then
39984 ac_cv_lib_sun_getpwnam=yes
39986 echo "$as_me: failed program was:" >&5
39987 sed 's/^/| /' conftest.$ac_ext >&5
39989 ac_cv_lib_sun_getpwnam=no
39992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39993 conftest$ac_exeext conftest.$ac_ext
39994 LIBS=$ac_check_lib_save_LIBS
39996 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
39997 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
39998 if test $ac_cv_lib_sun_getpwnam = yes; then
39999 cat >>confdefs.h <<_ACEOF
40000 #define HAVE_LIBSUN 1
40009 for ac_header in zlib.h
40011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40016 echo $ECHO_N "(cached) $ECHO_C" >&6
40018 ac_res=`eval echo '${'$as_ac_Header'}'`
40019 { echo "$as_me:$LINENO: result: $ac_res" >&5
40020 echo "${ECHO_T}$ac_res" >&6; }
40022 # Is the header compilable?
40023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40025 cat >conftest.$ac_ext <<_ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h. */
40031 $ac_includes_default
40032 #include <$ac_header>
40034 rm -f conftest.$ac_objext
40035 if { (ac_try="$ac_compile"
40036 case "(($ac_try" in
40037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038 *) ac_try_echo=$ac_try;;
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041 (eval "$ac_compile") 2>conftest.er1
40043 grep -v '^ *+' conftest.er1 >conftest.err
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } && {
40048 test -z "$ac_c_werror_flag" ||
40049 test ! -s conftest.err
40050 } && test -s conftest.$ac_objext; then
40051 ac_header_compiler=yes
40053 echo "$as_me: failed program was:" >&5
40054 sed 's/^/| /' conftest.$ac_ext >&5
40056 ac_header_compiler=no
40059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40061 echo "${ECHO_T}$ac_header_compiler" >&6; }
40063 # Is the header present?
40064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40066 cat >conftest.$ac_ext <<_ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h. */
40072 #include <$ac_header>
40074 if { (ac_try="$ac_cpp conftest.$ac_ext"
40075 case "(($ac_try" in
40076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077 *) ac_try_echo=$ac_try;;
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40082 grep -v '^ *+' conftest.er1 >conftest.err
40084 cat conftest.err >&5
40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); } >/dev/null && {
40087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40088 test ! -s conftest.err
40090 ac_header_preproc=yes
40092 echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40095 ac_header_preproc=no
40098 rm -f conftest.err conftest.$ac_ext
40099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40100 echo "${ECHO_T}$ac_header_preproc" >&6; }
40102 # So? What about this header?
40103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40109 ac_header_preproc=yes
40112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40130 echo $ECHO_N "(cached) $ECHO_C" >&6
40132 eval "$as_ac_Header=\$ac_header_preproc"
40134 ac_res=`eval echo '${'$as_ac_Header'}'`
40135 { echo "$as_me:$LINENO: result: $ac_res" >&5
40136 echo "${ECHO_T}$ac_res" >&6; }
40139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40140 cat >>confdefs.h <<_ACEOF
40141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40148 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40149 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40150 if test "${ac_cv_lib_z_deflate+set}" = set; then
40151 echo $ECHO_N "(cached) $ECHO_C" >&6
40153 ac_check_lib_save_LIBS=$LIBS
40155 cat >conftest.$ac_ext <<_ACEOF
40158 cat confdefs.h >>conftest.$ac_ext
40159 cat >>conftest.$ac_ext <<_ACEOF
40160 /* end confdefs.h. */
40162 /* Override any GCC internal prototype to avoid an error.
40163 Use char because int might match the return type of a GCC
40164 builtin and then its argument prototype would still apply. */
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (ac_try="$ac_link"
40179 case "(($ac_try" in
40180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40181 *) ac_try_echo=$ac_try;;
40183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40184 (eval "$ac_link") 2>conftest.er1
40186 grep -v '^ *+' conftest.er1 >conftest.err
40188 cat conftest.err >&5
40189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40190 (exit $ac_status); } && {
40191 test -z "$ac_c_werror_flag" ||
40192 test ! -s conftest.err
40193 } && test -s conftest$ac_exeext &&
40194 $as_test_x conftest$ac_exeext; then
40195 ac_cv_lib_z_deflate=yes
40197 echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40200 ac_cv_lib_z_deflate=no
40203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40204 conftest$ac_exeext conftest.$ac_ext
40205 LIBS=$ac_check_lib_save_LIBS
40207 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40208 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40209 if test $ac_cv_lib_z_deflate = yes; then
40214 if test x$FDLIBS = x-lz; then
40215 cat >>confdefs.h <<\_ACEOF
40216 #define HAVE_LIBZ 1
40223 have_extended_acl=no
40224 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40225 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40226 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40227 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40228 echo $ECHO_N "(cached) $ECHO_C" >&6
40230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40231 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40233 # Is the header compilable?
40234 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40235 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40236 cat >conftest.$ac_ext <<_ACEOF
40239 cat confdefs.h >>conftest.$ac_ext
40240 cat >>conftest.$ac_ext <<_ACEOF
40241 /* end confdefs.h. */
40242 $ac_includes_default
40243 #include <sys/acl.h>
40245 rm -f conftest.$ac_objext
40246 if { (ac_try="$ac_compile"
40247 case "(($ac_try" in
40248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40249 *) ac_try_echo=$ac_try;;
40251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40252 (eval "$ac_compile") 2>conftest.er1
40254 grep -v '^ *+' conftest.er1 >conftest.err
40256 cat conftest.err >&5
40257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40258 (exit $ac_status); } && {
40259 test -z "$ac_c_werror_flag" ||
40260 test ! -s conftest.err
40261 } && test -s conftest.$ac_objext; then
40262 ac_header_compiler=yes
40264 echo "$as_me: failed program was:" >&5
40265 sed 's/^/| /' conftest.$ac_ext >&5
40267 ac_header_compiler=no
40270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40271 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40272 echo "${ECHO_T}$ac_header_compiler" >&6; }
40274 # Is the header present?
40275 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40276 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40277 cat >conftest.$ac_ext <<_ACEOF
40280 cat confdefs.h >>conftest.$ac_ext
40281 cat >>conftest.$ac_ext <<_ACEOF
40282 /* end confdefs.h. */
40283 #include <sys/acl.h>
40285 if { (ac_try="$ac_cpp conftest.$ac_ext"
40286 case "(($ac_try" in
40287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40288 *) ac_try_echo=$ac_try;;
40290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40293 grep -v '^ *+' conftest.er1 >conftest.err
40295 cat conftest.err >&5
40296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297 (exit $ac_status); } >/dev/null && {
40298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40299 test ! -s conftest.err
40301 ac_header_preproc=yes
40303 echo "$as_me: failed program was:" >&5
40304 sed 's/^/| /' conftest.$ac_ext >&5
40306 ac_header_preproc=no
40309 rm -f conftest.err conftest.$ac_ext
40310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40311 echo "${ECHO_T}$ac_header_preproc" >&6; }
40313 # So? What about this header?
40314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40316 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40317 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40318 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40319 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40320 ac_header_preproc=yes
40323 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40324 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40325 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40326 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40327 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40328 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40329 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40330 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40331 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40332 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40333 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40334 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40338 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40339 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40340 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40341 echo $ECHO_N "(cached) $ECHO_C" >&6
40343 ac_cv_header_sys_acl_h=$ac_header_preproc
40345 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40346 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40351 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40352 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40353 if test "${ac_cv_func_acl_get_file+set}" = set; then
40354 echo $ECHO_N "(cached) $ECHO_C" >&6
40356 cat >conftest.$ac_ext <<_ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h. */
40362 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40364 #define acl_get_file innocuous_acl_get_file
40366 /* System header to define __stub macros and hopefully few prototypes,
40367 which can conflict with char acl_get_file (); below.
40368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40369 <limits.h> exists even on freestanding compilers. */
40372 # include <limits.h>
40374 # include <assert.h>
40377 #undef acl_get_file
40379 /* Override any GCC internal prototype to avoid an error.
40380 Use char because int might match the return type of a GCC
40381 builtin and then its argument prototype would still apply. */
40385 char acl_get_file ();
40386 /* The GNU C library defines this for functions which it implements
40387 to always fail with ENOSYS. Some functions are actually named
40388 something starting with __ and the normal name is an alias. */
40389 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40396 return acl_get_file ();
40401 rm -f conftest.$ac_objext conftest$ac_exeext
40402 if { (ac_try="$ac_link"
40403 case "(($ac_try" in
40404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40405 *) ac_try_echo=$ac_try;;
40407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40408 (eval "$ac_link") 2>conftest.er1
40410 grep -v '^ *+' conftest.er1 >conftest.err
40412 cat conftest.err >&5
40413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40414 (exit $ac_status); } && {
40415 test -z "$ac_c_werror_flag" ||
40416 test ! -s conftest.err
40417 } && test -s conftest$ac_exeext &&
40418 $as_test_x conftest$ac_exeext; then
40419 ac_cv_func_acl_get_file=yes
40421 echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40424 ac_cv_func_acl_get_file=no
40427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40428 conftest$ac_exeext conftest.$ac_ext
40430 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40431 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40432 if test $ac_cv_func_acl_get_file = yes; then
40436 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40437 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40438 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40439 echo $ECHO_N "(cached) $ECHO_C" >&6
40441 ac_check_lib_save_LIBS=$LIBS
40443 cat >conftest.$ac_ext <<_ACEOF
40446 cat confdefs.h >>conftest.$ac_ext
40447 cat >>conftest.$ac_ext <<_ACEOF
40448 /* end confdefs.h. */
40450 /* Override any GCC internal prototype to avoid an error.
40451 Use char because int might match the return type of a GCC
40452 builtin and then its argument prototype would still apply. */
40456 char acl_get_file ();
40460 return acl_get_file ();
40465 rm -f conftest.$ac_objext conftest$ac_exeext
40466 if { (ac_try="$ac_link"
40467 case "(($ac_try" in
40468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40469 *) ac_try_echo=$ac_try;;
40471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40472 (eval "$ac_link") 2>conftest.er1
40474 grep -v '^ *+' conftest.er1 >conftest.err
40476 cat conftest.err >&5
40477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478 (exit $ac_status); } && {
40479 test -z "$ac_c_werror_flag" ||
40480 test ! -s conftest.err
40481 } && test -s conftest$ac_exeext &&
40482 $as_test_x conftest$ac_exeext; then
40483 ac_cv_lib_acl_acl_get_file=yes
40485 echo "$as_me: failed program was:" >&5
40486 sed 's/^/| /' conftest.$ac_ext >&5
40488 ac_cv_lib_acl_acl_get_file=no
40491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40492 conftest$ac_exeext conftest.$ac_ext
40493 LIBS=$ac_check_lib_save_LIBS
40495 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40496 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40497 if test $ac_cv_lib_acl_acl_get_file = yes; then
40500 FDLIBS="-lacl $FDLIBS"
40504 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40505 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40506 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40507 echo $ECHO_N "(cached) $ECHO_C" >&6
40509 ac_check_lib_save_LIBS=$LIBS
40511 cat >conftest.$ac_ext <<_ACEOF
40514 cat confdefs.h >>conftest.$ac_ext
40515 cat >>conftest.$ac_ext <<_ACEOF
40516 /* end confdefs.h. */
40518 /* Override any GCC internal prototype to avoid an error.
40519 Use char because int might match the return type of a GCC
40520 builtin and then its argument prototype would still apply. */
40528 return acltotext ();
40533 rm -f conftest.$ac_objext conftest$ac_exeext
40534 if { (ac_try="$ac_link"
40535 case "(($ac_try" in
40536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40537 *) ac_try_echo=$ac_try;;
40539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40540 (eval "$ac_link") 2>conftest.er1
40542 grep -v '^ *+' conftest.er1 >conftest.err
40544 cat conftest.err >&5
40545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546 (exit $ac_status); } && {
40547 test -z "$ac_c_werror_flag" ||
40548 test ! -s conftest.err
40549 } && test -s conftest$ac_exeext &&
40550 $as_test_x conftest$ac_exeext; then
40551 ac_cv_lib_sec_acltotext=yes
40553 echo "$as_me: failed program was:" >&5
40554 sed 's/^/| /' conftest.$ac_ext >&5
40556 ac_cv_lib_sec_acltotext=no
40559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40560 conftest$ac_exeext conftest.$ac_ext
40561 LIBS=$ac_check_lib_save_LIBS
40563 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40564 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40565 if test $ac_cv_lib_sec_acltotext = yes; then
40568 FDLIBS="-lsec $FDLIBS"
40570 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40571 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40572 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40573 echo $ECHO_N "(cached) $ECHO_C" >&6
40575 ac_check_lib_save_LIBS=$LIBS
40577 cat >conftest.$ac_ext <<_ACEOF
40580 cat confdefs.h >>conftest.$ac_ext
40581 cat >>conftest.$ac_ext <<_ACEOF
40582 /* end confdefs.h. */
40584 /* Override any GCC internal prototype to avoid an error.
40585 Use char because int might match the return type of a GCC
40586 builtin and then its argument prototype would still apply. */
40590 char acl_totext ();
40594 return acl_totext ();
40599 rm -f conftest.$ac_objext conftest$ac_exeext
40600 if { (ac_try="$ac_link"
40601 case "(($ac_try" in
40602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40603 *) ac_try_echo=$ac_try;;
40605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40606 (eval "$ac_link") 2>conftest.er1
40608 grep -v '^ *+' conftest.er1 >conftest.err
40610 cat conftest.err >&5
40611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612 (exit $ac_status); } && {
40613 test -z "$ac_c_werror_flag" ||
40614 test ! -s conftest.err
40615 } && test -s conftest$ac_exeext &&
40616 $as_test_x conftest$ac_exeext; then
40617 ac_cv_lib_sec_acl_totext=yes
40619 echo "$as_me: failed program was:" >&5
40620 sed 's/^/| /' conftest.$ac_ext >&5
40622 ac_cv_lib_sec_acl_totext=no
40625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40626 conftest$ac_exeext conftest.$ac_ext
40627 LIBS=$ac_check_lib_save_LIBS
40629 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40630 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40631 if test $ac_cv_lib_sec_acl_totext = yes; then
40633 have_extended_acl=yes
40650 if test $have_acl = yes; then
40651 cat >>confdefs.h <<\_ACEOF
40657 if test $have_extended_acl = yes; then
40658 cat >>confdefs.h <<\_ACEOF
40659 #define HAVE_EXTENDED_ACL 1
40665 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
40666 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
40667 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
40668 echo $ECHO_N "(cached) $ECHO_C" >&6
40670 ac_check_lib_save_LIBS=$LIBS
40671 LIBS="-lpthread $LIBS"
40672 cat >conftest.$ac_ext <<_ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h. */
40679 /* Override any GCC internal prototype to avoid an error.
40680 Use char because int might match the return type of a GCC
40681 builtin and then its argument prototype would still apply. */
40685 char pthread_create ();
40689 return pthread_create ();
40694 rm -f conftest.$ac_objext conftest$ac_exeext
40695 if { (ac_try="$ac_link"
40696 case "(($ac_try" in
40697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40698 *) ac_try_echo=$ac_try;;
40700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40701 (eval "$ac_link") 2>conftest.er1
40703 grep -v '^ *+' conftest.er1 >conftest.err
40705 cat conftest.err >&5
40706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707 (exit $ac_status); } && {
40708 test -z "$ac_c_werror_flag" ||
40709 test ! -s conftest.err
40710 } && test -s conftest$ac_exeext &&
40711 $as_test_x conftest$ac_exeext; then
40712 ac_cv_lib_pthread_pthread_create=yes
40714 echo "$as_me: failed program was:" >&5
40715 sed 's/^/| /' conftest.$ac_ext >&5
40717 ac_cv_lib_pthread_pthread_create=no
40720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40721 conftest$ac_exeext conftest.$ac_ext
40722 LIBS=$ac_check_lib_save_LIBS
40724 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
40725 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
40726 if test $ac_cv_lib_pthread_pthread_create = yes; then
40727 PTHREAD_LIB="-lpthread"
40730 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
40731 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
40732 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
40733 echo $ECHO_N "(cached) $ECHO_C" >&6
40735 ac_check_lib_save_LIBS=$LIBS
40736 LIBS="-lpthreads $LIBS"
40737 cat >conftest.$ac_ext <<_ACEOF
40740 cat confdefs.h >>conftest.$ac_ext
40741 cat >>conftest.$ac_ext <<_ACEOF
40742 /* end confdefs.h. */
40744 /* Override any GCC internal prototype to avoid an error.
40745 Use char because int might match the return type of a GCC
40746 builtin and then its argument prototype would still apply. */
40750 char pthread_create ();
40754 return pthread_create ();
40759 rm -f conftest.$ac_objext conftest$ac_exeext
40760 if { (ac_try="$ac_link"
40761 case "(($ac_try" in
40762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40763 *) ac_try_echo=$ac_try;;
40765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40766 (eval "$ac_link") 2>conftest.er1
40768 grep -v '^ *+' conftest.er1 >conftest.err
40770 cat conftest.err >&5
40771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772 (exit $ac_status); } && {
40773 test -z "$ac_c_werror_flag" ||
40774 test ! -s conftest.err
40775 } && test -s conftest$ac_exeext &&
40776 $as_test_x conftest$ac_exeext; then
40777 ac_cv_lib_pthreads_pthread_create=yes
40779 echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40782 ac_cv_lib_pthreads_pthread_create=no
40785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40786 conftest$ac_exeext conftest.$ac_ext
40787 LIBS=$ac_check_lib_save_LIBS
40789 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
40790 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
40791 if test $ac_cv_lib_pthreads_pthread_create = yes; then
40792 PTHREAD_LIB="-lpthreads"
40795 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
40796 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
40797 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
40798 echo $ECHO_N "(cached) $ECHO_C" >&6
40800 ac_check_lib_save_LIBS=$LIBS
40802 cat >conftest.$ac_ext <<_ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h. */
40809 /* Override any GCC internal prototype to avoid an error.
40810 Use char because int might match the return type of a GCC
40811 builtin and then its argument prototype would still apply. */
40815 char pthread_create ();
40819 return pthread_create ();
40824 rm -f conftest.$ac_objext conftest$ac_exeext
40825 if { (ac_try="$ac_link"
40826 case "(($ac_try" in
40827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40828 *) ac_try_echo=$ac_try;;
40830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40831 (eval "$ac_link") 2>conftest.er1
40833 grep -v '^ *+' conftest.er1 >conftest.err
40835 cat conftest.err >&5
40836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837 (exit $ac_status); } && {
40838 test -z "$ac_c_werror_flag" ||
40839 test ! -s conftest.err
40840 } && test -s conftest$ac_exeext &&
40841 $as_test_x conftest$ac_exeext; then
40842 ac_cv_lib_c_r_pthread_create=yes
40844 echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40847 ac_cv_lib_c_r_pthread_create=no
40850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40851 conftest$ac_exeext conftest.$ac_ext
40852 LIBS=$ac_check_lib_save_LIBS
40854 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
40855 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
40856 if test $ac_cv_lib_c_r_pthread_create = yes; then
40857 PTHREAD_LIB="-lc_r"
40860 { echo "$as_me:$LINENO: checking for pthread_create" >&5
40861 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
40862 if test "${ac_cv_func_pthread_create+set}" = set; then
40863 echo $ECHO_N "(cached) $ECHO_C" >&6
40865 cat >conftest.$ac_ext <<_ACEOF
40868 cat confdefs.h >>conftest.$ac_ext
40869 cat >>conftest.$ac_ext <<_ACEOF
40870 /* end confdefs.h. */
40871 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
40872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40873 #define pthread_create innocuous_pthread_create
40875 /* System header to define __stub macros and hopefully few prototypes,
40876 which can conflict with char pthread_create (); below.
40877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40878 <limits.h> exists even on freestanding compilers. */
40881 # include <limits.h>
40883 # include <assert.h>
40886 #undef pthread_create
40888 /* Override any GCC internal prototype to avoid an error.
40889 Use char because int might match the return type of a GCC
40890 builtin and then its argument prototype would still apply. */
40894 char pthread_create ();
40895 /* The GNU C library defines this for functions which it implements
40896 to always fail with ENOSYS. Some functions are actually named
40897 something starting with __ and the normal name is an alias. */
40898 #if defined __stub_pthread_create || defined __stub___pthread_create
40905 return pthread_create ();
40910 rm -f conftest.$ac_objext conftest$ac_exeext
40911 if { (ac_try="$ac_link"
40912 case "(($ac_try" in
40913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40914 *) ac_try_echo=$ac_try;;
40916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40917 (eval "$ac_link") 2>conftest.er1
40919 grep -v '^ *+' conftest.er1 >conftest.err
40921 cat conftest.err >&5
40922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923 (exit $ac_status); } && {
40924 test -z "$ac_c_werror_flag" ||
40925 test ! -s conftest.err
40926 } && test -s conftest$ac_exeext &&
40927 $as_test_x conftest$ac_exeext; then
40928 ac_cv_func_pthread_create=yes
40930 echo "$as_me: failed program was:" >&5
40931 sed 's/^/| /' conftest.$ac_ext >&5
40933 ac_cv_func_pthread_create=no
40936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40937 conftest$ac_exeext conftest.$ac_ext
40939 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
40940 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
40956 cat >>confdefs.h <<\_ACEOF
40961 CFLAGS=${CFLAGS--O}
40963 if test x$have_gcc = xyes ; then
40964 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40965 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
40967 LDFLAGS=${LDFLAGS--O}
40968 DB_LIBS="${SQL_LFLAGS}"
40969 CPPFLAGS="$CPPFLAGS"
40996 PFILES="platforms/Makefile"
41000 hostname=`uname -n | cut -d '.' -f 1`
41001 if test x${hostname} = x ; then
41002 hostname="localhost"
41004 case "$DISTNAME" in
41007 PSCMD="ps -e -o pid,comm"
41008 PFILES="${PFILES} \
41009 platforms/aix/Makefile"
41010 TAPEDRIVE="/dev/rmt0.1"
41014 PTHREAD_LIB="-lpthread -lexc"
41015 if test "${CC}" = "gcc" ; then
41022 TAPEDRIVE="/dev/nrmt0"
41025 DISTVER=`uname -a |awk '{print $3}'`
41026 TAPEDRIVE="/dev/nrmt0"
41027 PTHREAD_LIB="-pthread"
41028 CFLAGS="${CFLAGS} -pthread"
41029 PSCMD="ps -ax -o pid,command"
41032 PFILES="${PFILES} \
41033 platforms/bsdi/Makefile \
41034 platforms/bsdi/bacula-fd \
41035 platforms/bsdi/bacula-sd \
41036 platforms/bsdi/bacula-dir"
41037 largefile_support="yes"
41040 DISTVER=`uname -a |awk '{print $3}'`
41041 TAPEDRIVE="/dev/nrst0"
41043 WCFLAGS="-mwindows"
41044 WLDFLAGS="-mwindows"
41048 TAPEDRIVE="/dev/nst0"
41049 PSCMD="ps -e -o pid,command"
41051 PFILES="${PFILES} \
41052 platforms/darwin/Makefile"
41055 ping -c 1 $hostname 2>&1 1>/dev/null
41056 if test ! $? = 0; then
41057 hostname="localhost"
41059 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41062 DISTVER=`cat /etc/debian_version`
41063 if test -f /etc/lsb-release ; then
41065 if test "x$DISTRIB_ID" != "x" ; then
41066 DISTNAME=$DISTRIB_ID
41068 if test "x$DISTRIB_RELEASE" != "x" ; then
41069 DISTVER=$DISTRIB_RELEASE
41072 if test "$DISTNAME" = "Ubuntu" ; then
41075 TAPEDRIVE="/dev/nst0"
41076 PSCMD="ps -e -o pid,command"
41077 if test "$DISTNAME" = "ubuntu" ; then
41078 PFILES="${PFILES} \
41079 platforms/ubuntu/Makefile \
41080 platforms/ubuntu/bacula-fd \
41081 platforms/ubuntu/bacula-sd \
41082 platforms/ubuntu/bacula-dir"
41084 PFILES="${PFILES} \
41085 platforms/debian/Makefile \
41086 platforms/debian/bacula-fd \
41087 platforms/debian/bacula-sd \
41088 platforms/debian/bacula-dir"
41092 ping -c 1 $hostname 2>&1 1>/dev/null
41093 if test ! $? = 0; then
41094 hostname="localhost"
41096 DISTVER=`uname -a |awk '{print $3}'`
41097 VER=`echo $DISTVER | cut -c 1`
41098 if test x$VER = x4 ; then
41099 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41100 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41104 TAPEDRIVE="/dev/nrsa0"
41105 PSCMD="ps -ax -o pid,command"
41106 PFILES="${PFILES} \
41107 platforms/freebsd/Makefile \
41108 platforms/freebsd/bacula-fd \
41109 platforms/freebsd/bacula-sd \
41110 platforms/freebsd/bacula-dir"
41111 largefile_support="yes"
41114 PSCMD="UNIX95=1; ps -e -o pid,comm"
41115 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41117 TAPEDRIVE="/dev/rmt/0hnb"
41118 PTHREAD_LIB="-lpthread"
41119 cat >>confdefs.h <<\_ACEOF
41120 #define _INCLUDE_LONGLONG 1
41126 TAPEDRIVE="/dev/rmt/0cbn"
41127 PSCMD="ps -e -o pid,comm"
41128 PFILES="${PFILES} \
41129 platforms/irix/Makefile \
41130 platforms/irix/bacula-fd \
41131 platforms/irix/bacula-sd \
41132 platforms/irix/bacula-dir"
41135 DISTVER=`uname -a |awk '{print $3}'`
41138 TAPEDRIVE="/dev/nrst0"
41139 PSCMD="ps -ax -o pid,command"
41140 PTHREAD_LIB="-pthread"
41141 CFLAGS="${CFLAGS} -pthread"
41144 DISTVER=`uname -a |awk '{print $3}'`
41147 TAPEDRIVE="/dev/nrst0"
41148 PSCMD="ps -ax -o pid,command"
41149 PTHREAD_LIB="-pthread"
41150 CFLAGS="${CFLAGS} -pthread"
41151 PFILES="${PFILES} \
41152 platforms/openbsd/Makefile \
41153 platforms/openbsd/bacula-fd \
41154 platforms/openbsd/bacula-sd \
41155 platforms/openbsd/bacula-dir"
41158 ping -c 1 $hostname 2>&1 1>/dev/null
41159 if test ! $? = 0; then
41160 hostname="localhost"
41162 if test -f /etc/whitebox-release ; then
41163 f=/etc/whitebox-release
41165 f=/etc/redhat-release
41167 if test `cat $f | grep release |\
41168 cut -f 3 -d ' '`x = "Enterprise"x ; then
41169 DISTVER="Enterprise "`cat $f | grep release |\
41172 DISTVER=`cat /etc/redhat-release | grep release |\
41175 TAPEDRIVE="/dev/nst0"
41176 PSCMD="ps -e -o pid,command"
41177 PFILES="${PFILES} \
41178 platforms/redhat/Makefile \
41179 platforms/redhat/bacula-fd \
41180 platforms/redhat/bacula-sd \
41181 platforms/redhat/bacula-dir \
41182 platforms/redhat/bacula.spec \
41186 ping -c 1 $hostname 2>&1 1>/dev/null
41187 if test ! $? = 0; then
41188 hostname="localhost"
41190 DISTVER=`cat /etc/mandrake-release | grep release |\
41192 TAPEDRIVE="/dev/nst0"
41193 PSCMD="ps -e -o pid,command"
41194 PFILES="${PFILES} \
41195 platforms/mandrake/Makefile \
41196 platforms/mandrake/bacula-fd \
41197 platforms/mandrake/bacula-sd \
41198 platforms/mandrake/bacula-dir \
41199 platforms/mandrake/bacula.spec \
41203 ping -c 1 $hostname 2>&1 1>/dev/null
41204 if test ! $? = 0; then
41205 hostname="localhost"
41207 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41208 TAPEDRIVE="/dev/nst0"
41209 PSCMD="ps -e -o pid,command"
41210 PFILES="${PFILES} \
41211 platforms/gentoo/Makefile \
41212 platforms/gentoo/bacula-init \
41213 platforms/gentoo/bacula-fd \
41214 platforms/gentoo/bacula-sd \
41215 platforms/gentoo/bacula-dir"
41218 ping -c 1 $hostname 2>&1 1>/dev/null
41219 if test ! $? = 0; then
41220 hostname="localhost"
41222 DISTVER=`cat /etc/slackware-version`
41223 TAPEDRIVE="/dev/nst0"
41224 PSCMD="ps -e -o pid,command"
41225 PFILES="${PFILES} \
41226 platforms/slackware/Makefile \
41227 platforms/slackware/rc.bacula-fd \
41228 platforms/slackware/rc.bacula-sd \
41229 platforms/slackware/rc.bacula-dir\
41230 platforms/slackware/functions.bacula"
41234 TAPEDRIVE="/dev/rmt/0cbn"
41235 PSCMD="ps -e -o pid,comm"
41236 PFILES="${PFILES} \
41237 platforms/solaris/Makefile \
41238 platforms/solaris/bacula-fd \
41239 platforms/solaris/bacula-sd \
41240 platforms/solaris/bacula-dir"
41241 if test x$DISTVER = x5.6 ; then
41242 cat >>confdefs.h <<\_ACEOF
41243 #define HAVE_OLD_SOCKOPT 1
41247 LIBS="$LIBS -lresolv"
41250 ping -c 1 $hostname 2>&1 1>/dev/null
41251 if test ! $? = 0; then
41252 hostname="localhost"
41254 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41256 TAPEDRIVE="/dev/nst0"
41257 PSCMD="ps -e -o pid,command"
41258 PFILES="${PFILES} \
41259 platforms/suse/Makefile \
41260 platforms/suse/bacula-fd \
41261 platforms/suse/bacula-sd \
41262 platforms/suse/bacula-dir \
41263 platforms/suse/bacula \
41264 platforms/suse/bacula.spec"
41267 ping -c 1 $hostname 2>&1 1>/dev/null
41268 if test ! $? = 0; then
41269 hostname="localhost"
41273 TAPEDRIVE="/dev/nst0"
41274 PSCMD="ps -e -o pid,command"
41275 PFILES="${PFILES} \
41276 platforms/suse/Makefile \
41277 platforms/suse/bacula-fd \
41278 platforms/suse/bacula-sd \
41279 platforms/suse/bacula-dir"
41283 TAPEDRIVE="/dev/nst0"
41286 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41292 LIBS="$PTHREAD_LIB $LIBS"
41294 cat >>confdefs.h <<_ACEOF
41298 cat >>confdefs.h <<_ACEOF
41309 MCOMMON=./autoconf/Make.common
41312 if test "x${subsysdir}" = "x${sbindir}" ; then
41315 echo "You have set both --sbindir and --with-subsys-dir"
41316 echo " equal to: ${subsysdir} "
41317 echo "This is not permitted. Please reconfigure."
41319 echo "Aborting configuration ..."
41325 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 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"
41327 ac_config_commands="$ac_config_commands default"
41329 cat >confcache <<\_ACEOF
41330 # This file is a shell script that caches the results of configure
41331 # tests run on this system so they can be shared between configure
41332 # scripts and configure runs, see configure's option --config-cache.
41333 # It is not useful on other systems. If it contains results you don't
41334 # want to keep, you may remove or edit it.
41336 # config.status only pays attention to the cache file if you give it
41337 # the --recheck option to rerun configure.
41339 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41340 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41341 # following values.
41345 # The following way of writing the cache mishandles newlines in values,
41346 # but we know of no workaround that is simple, portable, and efficient.
41347 # So, we kill variables containing newlines.
41348 # Ultrix sh set writes to stderr and can't be redirected directly,
41349 # and sets the high bit in the cache file unless we assign to the vars.
41351 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41352 eval ac_val=\$$ac_var
41356 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41357 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41360 _ | IFS | as_nl) ;; #(
41361 *) $as_unset $ac_var ;;
41367 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41368 *${as_nl}ac_space=\ *)
41369 # `set' does not quote correctly, so add quotes (double-quote
41370 # substitution turns \\\\ into \\, and sed turns \\ into \).
41373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41376 # `set' quotes correctly as required by POSIX, so do not add quotes.
41377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41390 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41391 if test -w "$cache_file"; then
41392 test "x$cache_file" != "x/dev/null" &&
41393 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41394 echo "$as_me: updating cache $cache_file" >&6;}
41395 cat confcache >$cache_file
41397 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41398 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41404 # Let make expand exec_prefix.
41405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41407 DEFS=-DHAVE_CONFIG_H
41411 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41412 # 1. Remove the extension, and $U if already installed.
41413 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41414 ac_i=`echo "$ac_i" | sed "$ac_script"`
41415 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41416 # will be set to the directory where LIBOBJS objects are built.
41417 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41418 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41420 LIBOBJS=$ac_libobjs
41422 LTLIBOBJS=$ac_ltlibobjs
41426 : ${CONFIG_STATUS=./config.status}
41427 ac_clean_files_save=$ac_clean_files
41428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41431 cat >$CONFIG_STATUS <<_ACEOF
41433 # Generated by $as_me.
41434 # Run this file to recreate the current configuration.
41435 # Compiler output produced by configure, useful for debugging
41436 # configure, is in config.log if it exists.
41439 ac_cs_recheck=false
41441 SHELL=\${CONFIG_SHELL-$SHELL}
41444 cat >>$CONFIG_STATUS <<\_ACEOF
41445 ## --------------------- ##
41446 ## M4sh Initialization. ##
41447 ## --------------------- ##
41449 # Be more Bourne compatible
41450 DUALCASE=1; export DUALCASE # for MKS sh
41451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41455 # is contrary to our usage. Disable this feature.
41456 alias -g '${1+"$@"}'='"$@"'
41457 setopt NO_GLOB_SUBST
41459 case `(set -o) 2>/dev/null` in
41460 *posix*) set -o posix ;;
41469 # Avoid depending upon Character Ranges.
41470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41473 as_cr_digits='0123456789'
41474 as_cr_alnum=$as_cr_Letters$as_cr_digits
41476 # The user is always right.
41477 if test "${PATH_SEPARATOR+set}" != set; then
41478 echo "#! /bin/sh" >conf$$.sh
41479 echo "exit 0" >>conf$$.sh
41481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41489 # Support unset when possible.
41490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41498 # We need space, tab and new line, in precisely that order. Quoting is
41499 # there to prevent editors from complaining about space-tab.
41500 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41501 # splitting by setting IFS to empty value.)
41506 # Find who we are. Look in the path if we contain no directory separator.
41508 *[\\/]* ) as_myself=$0 ;;
41509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41510 for as_dir in $PATH
41513 test -z "$as_dir" && as_dir=.
41514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41520 # We did not find ourselves, most probably we were run as `sh COMMAND'
41521 # in which case we are not to be found in the path.
41522 if test "x$as_myself" = x; then
41525 if test ! -f "$as_myself"; then
41526 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41527 { (exit 1); exit 1; }
41530 # Work around bugs in pre-3.0 UWIN ksh.
41531 for as_var in ENV MAIL MAILPATH
41532 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41540 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41541 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41542 LC_TELEPHONE LC_TIME
41544 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41545 eval $as_var=C; export $as_var
41547 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
41551 # Required to use basename.
41552 if expr a : '\(a\)' >/dev/null 2>&1 &&
41553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41560 as_basename=basename
41566 # Name of the executable.
41567 as_me=`$as_basename -- "$0" ||
41568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41569 X"$0" : 'X\(//\)$' \| \
41570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41572 sed '/^.*\/\([^/][^/]*\)\/*$/{
41591 as_lineno_1=$LINENO
41592 as_lineno_2=$LINENO
41593 test "x$as_lineno_1" != "x$as_lineno_2" &&
41594 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
41596 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41597 # uniformly replaced by the line number. The first 'sed' inserts a
41598 # line-number line after each line using $LINENO; the second 'sed'
41599 # does the real work. The second script uses 'N' to pair each
41600 # line-number line with the line containing $LINENO, and appends
41601 # trailing '-' during substitution so that $LINENO is not a special
41602 # case at line end.
41603 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41604 # scripts with optimization help from Paolo Bonzini. Blame Lee
41605 # E. McMahon (1931-1989) for sed's syntax. :-)
41617 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41620 ' >$as_me.lineno &&
41621 chmod +x "$as_me.lineno" ||
41622 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41623 { (exit 1); exit 1; }; }
41625 # Don't try to exec as it changes $[0], causing all sort of problems
41626 # (the dirname of $[0] is not the place where we might find the
41627 # original and so on. Autoconf is especially sensitive to this).
41628 . "./$as_me.lineno"
41629 # Exit status is that of the last command.
41634 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41640 ECHO_C= ECHO_N= ECHO_T=
41641 case `echo -n x` in
41643 case `echo 'x\c'` in
41644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41651 if expr a : '\(a\)' >/dev/null 2>&1 &&
41652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41658 rm -f conf$$ conf$$.exe conf$$.file
41659 if test -d conf$$.dir; then
41660 rm -f conf$$.dir/conf$$.file
41666 if ln -s conf$$.file conf$$ 2>/dev/null; then
41668 # ... but there are two gotchas:
41669 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41670 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41671 # In both cases, we have to default to `cp -p'.
41672 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41674 elif ln conf$$.file conf$$ 2>/dev/null; then
41679 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41680 rmdir conf$$.dir 2>/dev/null
41682 if mkdir -p . 2>/dev/null; then
41685 test -d ./-p && rmdir ./-p
41689 if test -x / >/dev/null 2>&1; then
41690 as_test_x='test -x'
41692 if ls -dL / >/dev/null 2>&1; then
41699 if test -d "$1"; then
41705 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41706 ???[sx]*):;;*)false;;esac;fi
41710 as_executable_p=$as_test_x
41712 # Sed expression to map a string onto a valid CPP name.
41713 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41715 # Sed expression to map a string onto a valid variable name.
41716 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41721 # Save the log message, to keep $[0] and so on meaningful, and to
41722 # report actual input values of CONFIG_FILES etc. instead of their
41723 # values after options handling.
41725 This file was extended by $as_me, which was
41726 generated by GNU Autoconf 2.61. Invocation command line was
41728 CONFIG_FILES = $CONFIG_FILES
41729 CONFIG_HEADERS = $CONFIG_HEADERS
41730 CONFIG_LINKS = $CONFIG_LINKS
41731 CONFIG_COMMANDS = $CONFIG_COMMANDS
41734 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41739 cat >>$CONFIG_STATUS <<_ACEOF
41740 # Files that config.status was made for.
41741 config_files="$ac_config_files"
41742 config_headers="$ac_config_headers"
41743 config_commands="$ac_config_commands"
41747 cat >>$CONFIG_STATUS <<\_ACEOF
41749 \`$as_me' instantiates files from templates according to the
41750 current configuration.
41752 Usage: $0 [OPTIONS] [FILE]...
41754 -h, --help print this help, then exit
41755 -V, --version print version number and configuration settings, then exit
41756 -q, --quiet do not print progress messages
41757 -d, --debug don't remove temporary files
41758 --recheck update $as_me by reconfiguring in the same conditions
41759 --file=FILE[:TEMPLATE]
41760 instantiate the configuration file FILE
41761 --header=FILE[:TEMPLATE]
41762 instantiate the configuration header FILE
41764 Configuration files:
41767 Configuration headers:
41770 Configuration commands:
41773 Report bugs to <bug-autoconf@gnu.org>."
41776 cat >>$CONFIG_STATUS <<_ACEOF
41779 configured by $0, generated by GNU Autoconf 2.61,
41780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41782 Copyright (C) 2006 Free Software Foundation, Inc.
41783 This config.status script is free software; the Free Software Foundation
41784 gives unlimited permission to copy, distribute and modify it."
41791 cat >>$CONFIG_STATUS <<\_ACEOF
41792 # If no file are specified by the user, then we need to provide default
41793 # value. By we need to know if files were specified by the user.
41799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
41800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
41811 # Handling of the options.
41812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
41815 echo "$ac_cs_version"; exit ;;
41816 --debug | --debu | --deb | --de | --d | -d )
41818 --file | --fil | --fi | --f )
41820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41821 ac_need_defaults=false;;
41822 --header | --heade | --head | --hea )
41824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41825 ac_need_defaults=false;;
41827 # Conflict between --help and --header
41828 { echo "$as_me: error: ambiguous option: $1
41829 Try \`$0 --help' for more information." >&2
41830 { (exit 1); exit 1; }; };;
41831 --help | --hel | -h )
41832 echo "$ac_cs_usage"; exit ;;
41833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41837 # This is an error.
41838 -*) { echo "$as_me: error: unrecognized option: $1
41839 Try \`$0 --help' for more information." >&2
41840 { (exit 1); exit 1; }; } ;;
41842 *) ac_config_targets="$ac_config_targets $1"
41843 ac_need_defaults=false ;;
41849 ac_configure_extra_args=
41851 if $ac_cs_silent; then
41853 ac_configure_extra_args="$ac_configure_extra_args --silent"
41857 cat >>$CONFIG_STATUS <<_ACEOF
41858 if \$ac_cs_recheck; then
41859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41860 CONFIG_SHELL=$SHELL
41861 export CONFIG_SHELL
41862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41866 cat >>$CONFIG_STATUS <<\_ACEOF
41870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41871 ## Running $as_me. ##
41877 cat >>$CONFIG_STATUS <<_ACEOF
41883 # The HP-UX ksh and POSIX shell print the target directory to stdout
41884 # if CDPATH is set.
41885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41887 sed_quote_subst='$sed_quote_subst'
41888 double_quote_subst='$double_quote_subst'
41889 delay_variable_subst='$delay_variable_subst'
41890 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41891 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41892 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41893 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41894 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41895 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41896 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41897 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41898 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41899 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41900 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41901 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41902 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41903 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41904 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41905 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41906 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41907 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41908 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41909 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41910 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41911 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41912 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41913 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41914 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41915 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41916 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41917 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41918 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41919 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41920 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41921 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41922 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41923 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41924 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41925 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41926 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41927 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41928 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41929 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41930 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41931 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41932 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41933 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41934 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"`'
41935 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"`'
41936 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41937 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41938 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41939 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41940 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41941 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41942 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41943 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41944 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41945 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41946 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41947 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41948 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41949 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41950 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41951 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41952 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41953 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41954 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41955 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41956 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41957 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41958 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41959 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41960 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41961 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41962 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41963 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41964 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41965 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41966 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41967 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41968 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41969 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41970 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41971 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41972 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41973 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41974 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41975 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41976 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41977 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41978 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41979 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41980 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41981 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41982 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41983 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41984 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41985 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41986 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41987 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41988 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41989 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41990 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41991 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41992 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41993 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41994 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41995 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41996 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41997 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41998 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41999 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42000 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42001 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42002 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42003 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42004 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42005 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42006 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42007 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42008 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42009 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42010 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42011 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42012 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42013 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42014 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42015 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42016 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42017 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42018 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42019 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42020 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42021 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42022 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42023 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42024 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42025 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42026 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42027 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42028 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42029 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42030 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42031 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42032 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42033 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42034 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42035 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42036 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42037 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42038 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42039 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42040 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42041 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42042 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42043 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42044 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42045 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42046 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42047 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42048 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42049 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42050 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42051 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42052 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42053 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42054 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42055 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42056 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42057 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42058 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42059 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42060 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42063 LTCFLAGS='$LTCFLAGS'
42064 compiler='$compiler_DEFAULT'
42066 # Quote evaled strings.
42078 deplibs_check_method \
42087 lt_cv_sys_global_symbol_pipe \
42088 lt_cv_sys_global_symbol_to_cdecl \
42089 lt_cv_sys_global_symbol_to_c_name_address \
42090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42093 lt_prog_compiler_no_builtin_flag \
42094 lt_prog_compiler_wl \
42095 lt_prog_compiler_pic \
42096 lt_prog_compiler_static \
42097 lt_cv_prog_compiler_c_o \
42105 export_dynamic_flag_spec \
42106 whole_archive_flag_spec \
42107 compiler_needs_object \
42109 allow_undefined_flag \
42110 no_undefined_flag \
42111 hardcode_libdir_flag_spec \
42112 hardcode_libdir_flag_spec_ld \
42113 hardcode_libdir_separator \
42118 variables_saved_for_relink \
42120 library_names_spec \
42125 compiler_lib_search_dirs \
42130 compiler_lib_search_path \
42133 lt_prog_compiler_no_builtin_flag_CXX \
42134 lt_prog_compiler_wl_CXX \
42135 lt_prog_compiler_pic_CXX \
42136 lt_prog_compiler_static_CXX \
42137 lt_cv_prog_compiler_c_o_CXX \
42138 export_dynamic_flag_spec_CXX \
42139 whole_archive_flag_spec_CXX \
42140 compiler_needs_object_CXX \
42142 allow_undefined_flag_CXX \
42143 no_undefined_flag_CXX \
42144 hardcode_libdir_flag_spec_CXX \
42145 hardcode_libdir_flag_spec_ld_CXX \
42146 hardcode_libdir_separator_CXX \
42147 fix_srcfile_path_CXX \
42148 exclude_expsyms_CXX \
42149 include_expsyms_CXX \
42150 file_list_spec_CXX \
42151 compiler_lib_search_dirs_CXX \
42152 predep_objects_CXX \
42153 postdep_objects_CXX \
42156 compiler_lib_search_path_CXX; do
42157 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42158 *[\\\\\\\`\\"\\\$]*)
42159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42167 # Double-quote double-evaled strings.
42168 for var in reload_cmds \
42169 old_postinstall_cmds \
42170 old_postuninstall_cmds \
42172 extract_expsyms_cmds \
42173 old_archive_from_new_cmds \
42174 old_archive_from_expsyms_cmds \
42176 archive_expsym_cmds \
42178 module_expsym_cmds \
42179 export_symbols_cmds \
42182 postuninstall_cmds \
42184 sys_lib_search_path_spec \
42185 sys_lib_dlsearch_path_spec \
42186 old_archive_cmds_CXX \
42187 old_archive_from_new_cmds_CXX \
42188 old_archive_from_expsyms_cmds_CXX \
42190 archive_expsym_cmds_CXX \
42192 module_expsym_cmds_CXX \
42193 export_symbols_cmds_CXX \
42194 prelink_cmds_CXX; do
42195 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42196 *[\\\\\\\`\\"\\\$]*)
42197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42205 # Fix-up fallback echo if it was mangled by the above quoting rules.
42207 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42211 ac_aux_dir='$ac_aux_dir'
42212 xsi_shell='$xsi_shell'
42213 lt_shell_append='$lt_shell_append'
42215 # See if we are running on zsh, and set the options which allow our
42216 # commands through without removal of \ escapes INIT.
42217 if test -n "\${ZSH_VERSION+set}" ; then
42218 setopt NO_GLOB_SUBST
42224 TIMESTAMP='$TIMESTAMP'
42232 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42233 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42235 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42236 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42237 LINGUAS="${LINGUAS-%UNSET%}"
42242 cat >>$CONFIG_STATUS <<\_ACEOF
42244 # Handling of arguments.
42245 for ac_config_target in $ac_config_targets
42247 case $ac_config_target in
42248 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42249 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42250 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42251 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42253 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42254 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42255 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42256 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42257 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42258 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42259 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42260 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42261 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42262 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42263 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42264 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42265 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42266 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42267 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42268 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42269 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42270 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42271 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42272 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42273 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42274 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42275 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42276 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42277 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42278 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42279 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42280 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42281 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42282 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42283 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42284 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42285 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42286 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42287 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42288 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42289 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42290 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42291 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42292 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42293 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42294 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42295 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42296 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42297 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42298 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42299 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42300 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42301 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42302 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42303 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42304 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42305 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42306 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42307 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42308 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42309 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42310 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42311 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42312 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42313 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42314 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42315 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42316 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42317 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42318 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42319 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42320 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42321 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42322 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42323 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42324 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42325 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42326 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42327 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42328 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42329 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42330 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42331 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42332 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42333 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42334 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42335 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42336 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42337 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42338 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42339 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42340 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42341 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42342 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42343 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42344 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42345 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42346 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42347 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42348 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42349 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42350 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42351 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42352 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42353 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42354 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42355 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42356 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42357 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42358 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42359 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42360 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42361 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42362 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42364 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42365 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42366 { (exit 1); exit 1; }; };;
42371 # If the user did not use the arguments to specify the items to instantiate,
42372 # then the envvar interface is used. Set only those that are not.
42373 # We use the long form for the default assignment because of an extremely
42374 # bizarre bug on SunOS 4.1.3.
42375 if $ac_need_defaults; then
42376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42381 # Have a temporary directory for convenience. Make it in the build tree
42382 # simply because there is no reason against having it here, and in addition,
42383 # creating and moving files from /tmp can sometimes cause problems.
42384 # Hook for its removal unless debugging.
42385 # Note that there is a small window in which the directory will not be cleaned:
42386 # after its creation but before its name has been assigned to `$tmp'.
42390 trap 'exit_status=$?
42391 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42393 trap '{ (exit 1); exit 1; }' 1 2 13 15
42395 # Create a (secure) tmp directory for tmp files.
42398 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42399 test -n "$tmp" && test -d "$tmp"
42402 tmp=./conf$$-$RANDOM
42403 (umask 077 && mkdir "$tmp")
42406 echo "$me: cannot create a temporary directory in ." >&2
42407 { (exit 1); exit 1; }
42411 # Set up the sed scripts for CONFIG_FILES section.
42414 # No need to generate the scripts if there are no CONFIG_FILES.
42415 # This happens for instance when ./config.status config.h
42416 if test -n "$CONFIG_FILES"; then
42420 # Create sed commands to just substitute file output variables.
42422 # Remaining file output variables are in a fragment that also has non-file
42428 for ac_last_try in false false false false false :; do
42429 cat >conf$$subs.sed <<_ACEOF
42430 SHELL!$SHELL$ac_delim
42431 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42432 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42433 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42434 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42435 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42436 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42437 exec_prefix!$exec_prefix$ac_delim
42438 prefix!$prefix$ac_delim
42439 program_transform_name!$program_transform_name$ac_delim
42440 bindir!$bindir$ac_delim
42441 sbindir!$sbindir$ac_delim
42442 libexecdir!$libexecdir$ac_delim
42443 datarootdir!$datarootdir$ac_delim
42444 datadir!$datadir$ac_delim
42445 sysconfdir!$sysconfdir$ac_delim
42446 sharedstatedir!$sharedstatedir$ac_delim
42447 localstatedir!$localstatedir$ac_delim
42448 includedir!$includedir$ac_delim
42449 oldincludedir!$oldincludedir$ac_delim
42450 docdir!$docdir$ac_delim
42451 infodir!$infodir$ac_delim
42452 htmldir!$htmldir$ac_delim
42453 dvidir!$dvidir$ac_delim
42454 pdfdir!$pdfdir$ac_delim
42455 psdir!$psdir$ac_delim
42456 libdir!$libdir$ac_delim
42457 localedir!$localedir$ac_delim
42458 mandir!$mandir$ac_delim
42459 DEFS!$DEFS$ac_delim
42460 ECHO_C!$ECHO_C$ac_delim
42461 ECHO_N!$ECHO_N$ac_delim
42462 ECHO_T!$ECHO_T$ac_delim
42463 LIBS!$LIBS$ac_delim
42464 build_alias!$build_alias$ac_delim
42465 host_alias!$host_alias$ac_delim
42466 target_alias!$target_alias$ac_delim
42467 BUILD_DIR!$BUILD_DIR$ac_delim
42468 TOP_DIR!$TOP_DIR$ac_delim
42469 TRUEPRG!$TRUEPRG$ac_delim
42470 FALSEPRG!$FALSEPRG$ac_delim
42471 VERSION!$VERSION$ac_delim
42472 DATE!$DATE$ac_delim
42473 LSMDATE!$LSMDATE$ac_delim
42474 BACULA!$BACULA$ac_delim
42475 post_host!$post_host$ac_delim
42477 CFLAGS!$CFLAGS$ac_delim
42478 LDFLAGS!$LDFLAGS$ac_delim
42479 CPPFLAGS!$CPPFLAGS$ac_delim
42480 ac_ct_CC!$ac_ct_CC$ac_delim
42481 EXEEXT!$EXEEXT$ac_delim
42482 OBJEXT!$OBJEXT$ac_delim
42484 CXXFLAGS!$CXXFLAGS$ac_delim
42485 ac_ct_CXX!$ac_ct_CXX$ac_delim
42487 GREP!$GREP$ac_delim
42488 EGREP!$EGREP$ac_delim
42489 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42490 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42491 INSTALL_DATA!$INSTALL_DATA$ac_delim
42493 REMOVE!$REMOVE$ac_delim
42496 ECHO!$ECHO$ac_delim
42500 OPENSSL!$OPENSSL$ac_delim
42503 MKISOFS!$MKISOFS$ac_delim
42504 PYTHON!$PYTHON$ac_delim
42505 GROWISOFS!$GROWISOFS$ac_delim
42506 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
42507 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
42508 PKGCONFIG!$PKGCONFIG$ac_delim
42509 QMAKE!$QMAKE$ac_delim
42510 QMAKEQT4!$QMAKEQT4$ac_delim
42511 WXCONFIG!$WXCONFIG$ac_delim
42512 WXFLAGS!$WXFLAGS$ac_delim
42513 CDRECORD!$CDRECORD$ac_delim
42514 PIDOF!$PIDOF$ac_delim
42516 ARFLAGS!$ARFLAGS$ac_delim
42517 MAKE_SHELL!$MAKE_SHELL$ac_delim
42518 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
42519 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
42520 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
42521 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
42522 LIBTOOL!$LIBTOOL$ac_delim
42523 build!$build$ac_delim
42526 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
42528 elif $ac_last_try; then
42529 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42530 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42531 { (exit 1); exit 1; }; }
42533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42537 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42538 if test -n "$ac_eof"; then
42539 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42540 ac_eof=`expr $ac_eof + 1`
42543 cat >>$CONFIG_STATUS <<_ACEOF
42544 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
42545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42546 /^[ ]*@MCOMMON@[ ]*$/{
42552 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42553 s/^/s,@/; s/!/@,|#_!!_#|/
42556 s/'"$ac_delim"'$/,g/; t
42558 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42559 ' >>$CONFIG_STATUS <conf$$subs.sed
42560 rm -f conf$$subs.sed
42561 cat >>$CONFIG_STATUS <<_ACEOF
42567 for ac_last_try in false false false false false :; do
42568 cat >conf$$subs.sed <<_ACEOF
42569 build_cpu!$build_cpu$ac_delim
42570 build_vendor!$build_vendor$ac_delim
42571 build_os!$build_os$ac_delim
42572 host!$host$ac_delim
42573 host_cpu!$host_cpu$ac_delim
42574 host_vendor!$host_vendor$ac_delim
42575 host_os!$host_os$ac_delim
42576 FGREP!$FGREP$ac_delim
42578 DUMPBIN!$DUMPBIN$ac_delim
42579 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
42581 LN_S!$LN_S$ac_delim
42582 OBJDUMP!$OBJDUMP$ac_delim
42583 STRIP!$STRIP$ac_delim
42584 RANLIB!$RANLIB$ac_delim
42585 lt_ECHO!$lt_ECHO$ac_delim
42586 DSYMUTIL!$DSYMUTIL$ac_delim
42587 NMEDIT!$NMEDIT$ac_delim
42588 LIPO!$LIPO$ac_delim
42589 OTOOL!$OTOOL$ac_delim
42590 OTOOL64!$OTOOL64$ac_delim
42591 CXXCPP!$CXXCPP$ac_delim
42592 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
42593 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
42594 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
42595 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
42596 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
42597 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
42598 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
42599 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
42600 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
42601 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
42602 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
42603 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
42604 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
42605 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
42606 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
42607 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
42608 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
42609 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
42610 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
42611 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
42612 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
42613 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
42614 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
42615 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
42616 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
42617 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
42618 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
42619 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
42620 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
42621 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
42622 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
42623 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
42624 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
42625 SET_MAKE!$SET_MAKE$ac_delim
42626 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
42627 USE_NLS!$USE_NLS$ac_delim
42628 MSGFMT!$MSGFMT$ac_delim
42629 GMSGFMT!$GMSGFMT$ac_delim
42630 XGETTEXT!$XGETTEXT$ac_delim
42631 MSGMERGE!$MSGMERGE$ac_delim
42632 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
42633 LIBICONV!$LIBICONV$ac_delim
42634 LTLIBICONV!$LTLIBICONV$ac_delim
42635 INTLLIBS!$INTLLIBS$ac_delim
42636 LIBINTL!$LIBINTL$ac_delim
42637 LTLIBINTL!$LTLIBINTL$ac_delim
42638 POSUB!$POSUB$ac_delim
42639 GLIBC2!$GLIBC2$ac_delim
42640 ALLOCA!$ALLOCA$ac_delim
42641 GLIBC21!$GLIBC21$ac_delim
42642 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
42643 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
42644 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
42645 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
42646 INTLBISON!$INTLBISON$ac_delim
42647 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
42648 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
42649 CATOBJEXT!$CATOBJEXT$ac_delim
42650 DATADIRNAME!$DATADIRNAME$ac_delim
42651 INSTOBJEXT!$INSTOBJEXT$ac_delim
42652 GENCAT!$GENCAT$ac_delim
42653 INTLOBJS!$INTLOBJS$ac_delim
42654 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
42655 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
42656 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
42657 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
42658 GNOME_LIBS!$GNOME_LIBS$ac_delim
42659 GNOME_DIR!$GNOME_DIR$ac_delim
42660 BAT_DIR!$BAT_DIR$ac_delim
42661 QWT_INC!$QWT_INC$ac_delim
42662 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
42663 QWT_LIB!$QWT_LIB$ac_delim
42665 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
42668 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
42670 elif $ac_last_try; then
42671 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42672 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42673 { (exit 1); exit 1; }; }
42675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42679 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42680 if test -n "$ac_eof"; then
42681 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42682 ac_eof=`expr $ac_eof + 1`
42685 cat >>$CONFIG_STATUS <<_ACEOF
42686 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
42687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42690 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42691 s/^/s,@/; s/!/@,|#_!!_#|/
42694 s/'"$ac_delim"'$/,g/; t
42696 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42697 ' >>$CONFIG_STATUS <conf$$subs.sed
42698 rm -f conf$$subs.sed
42699 cat >>$CONFIG_STATUS <<_ACEOF
42705 for ac_last_try in false false false false false :; do
42706 cat >conf$$subs.sed <<_ACEOF
42707 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
42708 WX_DIR!$WX_DIR$ac_delim
42709 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
42710 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
42711 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
42712 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
42713 STATIC_FD!$STATIC_FD$ac_delim
42714 STATIC_SD!$STATIC_SD$ac_delim
42715 STATIC_DIR!$STATIC_DIR$ac_delim
42716 STATIC_CONS!$STATIC_CONS$ac_delim
42717 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
42718 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
42719 ALL_DIRS!$ALL_DIRS$ac_delim
42720 DIRD_DIR!$DIRD_DIR$ac_delim
42721 DIR_TOOLS!$DIR_TOOLS$ac_delim
42722 STORED_DIR!$STORED_DIR$ac_delim
42723 CONS_INC!$CONS_INC$ac_delim
42724 CONS_OBJ!$CONS_OBJ$ac_delim
42725 CONS_SRC!$CONS_SRC$ac_delim
42726 CONS_LIBS!$CONS_LIBS$ac_delim
42727 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
42728 READLINE_SRC!$READLINE_SRC$ac_delim
42729 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
42730 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
42731 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
42732 OPENSSL_INC!$OPENSSL_INC$ac_delim
42733 working_dir!$working_dir$ac_delim
42734 archivedir!$archivedir$ac_delim
42735 scriptdir!$scriptdir$ac_delim
42736 plugindir!$plugindir$ac_delim
42737 dump_email!$dump_email$ac_delim
42738 job_email!$job_email$ac_delim
42739 smtp_host!$smtp_host$ac_delim
42740 piddir!$piddir$ac_delim
42741 subsysdir!$subsysdir$ac_delim
42742 baseport!$baseport$ac_delim
42743 dir_port!$dir_port$ac_delim
42744 fd_port!$fd_port$ac_delim
42745 sd_port!$sd_port$ac_delim
42746 dir_password!$dir_password$ac_delim
42747 fd_password!$fd_password$ac_delim
42748 sd_password!$sd_password$ac_delim
42749 mon_dir_password!$mon_dir_password$ac_delim
42750 mon_fd_password!$mon_fd_password$ac_delim
42751 mon_sd_password!$mon_sd_password$ac_delim
42752 db_name!$db_name$ac_delim
42753 db_user!$db_user$ac_delim
42754 db_password!$db_password$ac_delim
42755 db_port!$db_port$ac_delim
42756 dir_user!$dir_user$ac_delim
42757 dir_group!$dir_group$ac_delim
42758 sd_user!$sd_user$ac_delim
42759 sd_group!$sd_group$ac_delim
42760 fd_user!$fd_user$ac_delim
42761 fd_group!$fd_group$ac_delim
42762 SBINPERM!$SBINPERM$ac_delim
42763 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
42764 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
42765 SQL_BINDIR!$SQL_BINDIR$ac_delim
42766 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
42767 uncomment_dbi!$uncomment_dbi$ac_delim
42768 DB_PROG!$DB_PROG$ac_delim
42769 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
42770 cats!$cats$ac_delim
42771 DB_TYPE!$DB_TYPE$ac_delim
42772 GETCONF!$GETCONF$ac_delim
42773 XMKMF!$XMKMF$ac_delim
42774 X_CFLAGS!$X_CFLAGS$ac_delim
42775 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
42776 X_LIBS!$X_LIBS$ac_delim
42777 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
42778 LIBOBJS!$LIBOBJS$ac_delim
42779 FDLIBS!$FDLIBS$ac_delim
42780 DEBUG!$DEBUG$ac_delim
42781 DINCLUDE!$DINCLUDE$ac_delim
42782 DLIB!$DLIB$ac_delim
42783 DB_LIBS!$DB_LIBS$ac_delim
42784 WCFLAGS!$WCFLAGS$ac_delim
42785 WLDFLAGS!$WLDFLAGS$ac_delim
42786 WRAPLIBS!$WRAPLIBS$ac_delim
42787 OBJLIST!$OBJLIST$ac_delim
42788 hostname!$hostname$ac_delim
42789 TAPEDRIVE!$TAPEDRIVE$ac_delim
42790 PSCMD!$PSCMD$ac_delim
42791 WIN32!$WIN32$ac_delim
42792 MACOSX!$MACOSX$ac_delim
42793 DISTNAME!$DISTNAME$ac_delim
42794 DISTVER!$DISTVER$ac_delim
42795 LTLIBOBJS!$LTLIBOBJS$ac_delim
42798 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
42800 elif $ac_last_try; then
42801 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
42802 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
42803 { (exit 1); exit 1; }; }
42805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42809 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
42810 if test -n "$ac_eof"; then
42811 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
42812 ac_eof=`expr $ac_eof + 1`
42815 cat >>$CONFIG_STATUS <<_ACEOF
42816 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
42817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
42820 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
42821 s/^/s,@/; s/!/@,|#_!!_#|/
42824 s/'"$ac_delim"'$/,g/; t
42826 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
42827 ' >>$CONFIG_STATUS <conf$$subs.sed
42828 rm -f conf$$subs.sed
42829 cat >>$CONFIG_STATUS <<_ACEOF
42836 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42837 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42838 # trailing colons and then remove the whole line if VPATH becomes empty
42839 # (actually we leave an empty line to preserve line numbers).
42840 if test "x$srcdir" = x.; then
42841 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42842 s/:*\$(srcdir):*/:/
42843 s/:*\${srcdir}:*/:/
42845 s/^\([^=]*=[ ]*\):*/\1/
42851 cat >>$CONFIG_STATUS <<\_ACEOF
42852 fi # test -n "$CONFIG_FILES"
42855 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
42858 :[FHLC]) ac_mode=$ac_tag; continue;;
42860 case $ac_mode$ac_tag in
42862 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
42863 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
42864 { (exit 1); exit 1; }; };;
42865 :[FH]-) ac_tag=-:-;;
42866 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42883 -) ac_f="$tmp/stdin";;
42884 *) # Look for the file first in the build tree, then in the source tree
42885 # (if the path is not absolute). The absolute path cannot be DOS-style,
42886 # because $ac_f cannot contain `:'.
42890 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42892 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42893 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42894 { (exit 1); exit 1; }; };;
42896 ac_file_inputs="$ac_file_inputs $ac_f"
42899 # Let's still pretend it is `configure' which instantiates (i.e., don't
42900 # use $as_me), people would be surprised to read:
42901 # /* config.h. Generated by config.status. */
42902 configure_input="Generated from "`IFS=:
42903 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
42904 if test x"$ac_file" != x-; then
42905 configure_input="$ac_file. $configure_input"
42906 { echo "$as_me:$LINENO: creating $ac_file" >&5
42907 echo "$as_me: creating $ac_file" >&6;}
42911 *:-:* | *:-) cat >"$tmp/stdin";;
42916 ac_dir=`$as_dirname -- "$ac_file" ||
42917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42918 X"$ac_file" : 'X\(//\)[^/]' \| \
42919 X"$ac_file" : 'X\(//\)$' \| \
42920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42926 /^X\(\/\/\)[^/].*/{
42941 -*) as_dir=./$as_dir;;
42943 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
42947 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
42948 *) as_qdir=$as_dir;;
42950 as_dirs="'$as_qdir' $as_dirs"
42951 as_dir=`$as_dirname -- "$as_dir" ||
42952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42953 X"$as_dir" : 'X\(//\)[^/]' \| \
42954 X"$as_dir" : 'X\(//\)$' \| \
42955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42961 /^X\(\/\/\)[^/].*/{
42974 test -d "$as_dir" && break
42976 test -z "$as_dirs" || eval "mkdir $as_dirs"
42977 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42978 echo "$as_me: error: cannot create directory $as_dir" >&2;}
42979 { (exit 1); exit 1; }; }; }
42983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42985 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42986 # A ".." for each directory in $ac_dir_suffix.
42987 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
42988 case $ac_top_builddir_sub in
42989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42993 ac_abs_top_builddir=$ac_pwd
42994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42995 # for backward compatibility:
42996 ac_top_builddir=$ac_top_build_prefix
42999 .) # We are building in place.
43001 ac_top_srcdir=$ac_top_builddir_sub
43002 ac_abs_top_srcdir=$ac_pwd ;;
43003 [\\/]* | ?:[\\/]* ) # Absolute name.
43004 ac_srcdir=$srcdir$ac_dir_suffix;
43005 ac_top_srcdir=$srcdir
43006 ac_abs_top_srcdir=$srcdir ;;
43007 *) # Relative name.
43008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43009 ac_top_srcdir=$ac_top_build_prefix$srcdir
43010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43023 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43027 cat >>$CONFIG_STATUS <<\_ACEOF
43028 # If the template does not know about datarootdir, expand it.
43029 # FIXME: This hack should be removed a few years after 2.60.
43030 ac_datarootdir_hack=; ac_datarootdir_seen=
43032 case `sed -n '/datarootdir/ {
43041 ' $ac_file_inputs` in
43042 *datarootdir*) ac_datarootdir_seen=yes;;
43043 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43044 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43045 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43047 cat >>$CONFIG_STATUS <<_ACEOF
43048 ac_datarootdir_hack='
43049 s&@datadir@&$datadir&g
43050 s&@docdir@&$docdir&g
43051 s&@infodir@&$infodir&g
43052 s&@localedir@&$localedir&g
43053 s&@mandir@&$mandir&g
43054 s&\\\${datarootdir}&$datarootdir&g' ;;
43058 # Neutralize VPATH when `$srcdir' = `.'.
43059 # Shell code in configure.ac might set extrasub.
43060 # FIXME: do we really want to maintain this feature?
43061 cat >>$CONFIG_STATUS <<_ACEOF
43065 cat >>$CONFIG_STATUS <<\_ACEOF
43067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43068 s&@configure_input@&$configure_input&;t t
43069 s&@top_builddir@&$ac_top_builddir_sub&;t t
43070 s&@srcdir@&$ac_srcdir&;t t
43071 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43072 s&@top_srcdir@&$ac_top_srcdir&;t t
43073 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43074 s&@builddir@&$ac_builddir&;t t
43075 s&@abs_builddir@&$ac_abs_builddir&;t t
43076 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43077 s&@INSTALL@&$ac_INSTALL&;t t
43078 $ac_datarootdir_hack
43079 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43084 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43085 which seems to be undefined. Please make sure it is defined." >&5
43086 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43087 which seems to be undefined. Please make sure it is defined." >&2;}
43091 -) cat "$tmp/out"; rm -f "$tmp/out";;
43092 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43101 # Transform confdefs.h into a sed script `conftest.defines', that
43102 # substitutes the proper values into config.h.in to produce config.h.
43103 rm -f conftest.defines conftest.tail
43104 # First, append a space to every undef/define line, to ease matching.
43105 echo 's/$/ /' >conftest.defines
43106 # Then, protect against being on the right side of a sed subst, or in
43107 # an unquoted here document, in config.status. If some macros were
43108 # called several times there might be several #defines for the same
43109 # symbol, which is useless. But do not sort them, since the last
43110 # AC_DEFINE must be honored.
43111 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43112 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43113 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43114 # PARAMS is the parameter list in the macro definition--in most cases, it's
43115 # just an empty string.
43116 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43117 ac_dB='\\)[ (].*,\\1define\\2'
43125 s/^[ ]*#[ ]*define[ ][ ]*//
43130 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43131 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43132 ' >>conftest.defines
43134 # Remove the space that was appended to ease matching.
43135 # Then replace #undef with comments. This is necessary, for
43136 # example, in the case of _POSIX_SOURCE, which is predefined and required
43137 # on some systems where configure will not decide to define it.
43138 # (The regexp can be short, since the line contains either #define or #undef.)
43140 s,^[ #]*u.*,/* & */,' >>conftest.defines
43142 # Break up conftest.defines:
43143 ac_max_sed_lines=50
43145 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43146 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43147 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43149 ac_in='$ac_file_inputs'
43150 ac_out='"$tmp/out1"'
43151 ac_nxt='"$tmp/out2"'
43155 # Write a here document:
43156 cat >>$CONFIG_STATUS <<_ACEOF
43157 # First, check the format of the line:
43158 cat >"\$tmp/defines.sed" <<\\CEOF
43159 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43160 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43164 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43166 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43167 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43168 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43169 grep . conftest.tail >/dev/null || break
43170 rm -f conftest.defines
43171 mv conftest.tail conftest.defines
43173 rm -f conftest.defines conftest.tail
43175 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43176 cat >>$CONFIG_STATUS <<\_ACEOF
43177 if test x"$ac_file" != x-; then
43178 echo "/* $configure_input */" >"$tmp/config.h"
43179 cat "$ac_result" >>"$tmp/config.h"
43180 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43181 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43182 echo "$as_me: $ac_file is unchanged" >&6;}
43185 mv "$tmp/config.h" $ac_file
43188 echo "/* $configure_input */"
43194 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43195 echo "$as_me: executing $ac_file commands" >&6;}
43200 case $ac_file$ac_mode in
43203 # See if we are running on zsh, and set the options which allow our
43204 # commands through without removal of \ escapes.
43205 if test -n "${ZSH_VERSION+set}" ; then
43206 setopt NO_GLOB_SUBST
43209 cfgfile="${ofile}T"
43210 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43213 cat <<_LT_EOF >> "$cfgfile"
43216 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43217 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43218 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43219 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43221 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43222 # 2006, 2007, 2008 Free Software Foundation, Inc.
43223 # Written by Gordon Matzigkeit, 1996
43225 # This file is part of GNU Libtool.
43227 # GNU Libtool is free software; you can redistribute it and/or
43228 # modify it under the terms of the GNU General Public License as
43229 # published by the Free Software Foundation; either version 2 of
43230 # the License, or (at your option) any later version.
43232 # As a special exception to the GNU General Public License,
43233 # if you distribute this file as part of a program or library that
43234 # is built using GNU Libtool, you may include this file under the
43235 # same distribution terms that you use for the rest of that program.
43237 # GNU Libtool is distributed in the hope that it will be useful,
43238 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43239 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43240 # GNU General Public License for more details.
43242 # You should have received a copy of the GNU General Public License
43243 # along with GNU Libtool; see the file COPYING. If not, a copy
43244 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43245 # obtained by writing to the Free Software Foundation, Inc.,
43246 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43249 # The names of the tagged configurations supported by this script.
43250 available_tags="CXX "
43252 # ### BEGIN LIBTOOL CONFIG
43254 # Which release of libtool.m4 was used?
43255 macro_version=$macro_version
43256 macro_revision=$macro_revision
43258 # Whether or not to build shared libraries.
43259 build_libtool_libs=$enable_shared
43261 # Whether or not to build static libraries.
43262 build_old_libs=$enable_static
43264 # What type of objects to build.
43267 # Whether or not to optimize for fast installation.
43268 fast_install=$enable_fast_install
43271 host_alias=$host_alias
43275 # The build system.
43276 build_alias=$build_alias
43280 # A sed program that does not truncate output.
43283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43284 Xsed="\$SED -e 1s/^X//"
43286 # A grep program that handles long lines.
43292 # A literal string matcher.
43295 # A BSD- or MS-compatible name lister.
43298 # Whether we need soft or hard links.
43301 # What is the maximum length of a command?
43302 max_cmd_len=$max_cmd_len
43304 # Object file suffix (normally "o").
43307 # Executable file suffix (normally "").
43310 # whether the shell understands "unset".
43313 # turn spaces into newlines.
43316 # turn newlines into spaces.
43319 # How to create reloadable object files.
43320 reload_flag=$lt_reload_flag
43321 reload_cmds=$lt_reload_cmds
43323 # An object symbol dumper.
43324 OBJDUMP=$lt_OBJDUMP
43326 # Method to check whether dependent libraries are shared objects.
43327 deplibs_check_method=$lt_deplibs_check_method
43329 # Command to use when deplibs_check_method == "file_magic".
43330 file_magic_cmd=$lt_file_magic_cmd
43334 AR_FLAGS=$lt_AR_FLAGS
43336 # A symbol stripping program.
43339 # Commands used to install an old-style archive.
43341 old_postinstall_cmds=$lt_old_postinstall_cmds
43342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43347 # LTCC compiler flags.
43348 LTCFLAGS=$lt_CFLAGS
43350 # Take the output of nm and produce a listing of raw symbols and C names.
43351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43353 # Transform the output of nm in a proper C declaration.
43354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43356 # Transform the output of nm in a C name address pair.
43357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43359 # Transform the output of nm in a C name address pair when lib prefix is needed.
43360 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43362 # The name of the directory that contains temporary libtool files.
43365 # Shell to use when invoking shell scripts.
43368 # An echo program that does not interpret backslashes.
43371 # Used to examine libraries when file_magic_cmd begins with "file".
43372 MAGIC_CMD=$MAGIC_CMD
43374 # Must we lock files when doing compilation?
43375 need_locks=$lt_need_locks
43377 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43378 DSYMUTIL=$lt_DSYMUTIL
43380 # Tool to change global to local symbols on Mac OS X.
43383 # Tool to manipulate fat objects and archives on Mac OS X.
43386 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43389 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43390 OTOOL64=$lt_OTOOL64
43392 # Old archive suffix (normally "a").
43395 # Shared library suffix (normally ".so").
43396 shrext_cmds=$lt_shrext_cmds
43398 # The commands to extract the exported symbol list from a shared archive.
43399 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43401 # Variables whose values should be saved in libtool wrapper scripts and
43402 # restored at link time.
43403 variables_saved_for_relink=$lt_variables_saved_for_relink
43405 # Do we need the "lib" prefix for modules?
43406 need_lib_prefix=$need_lib_prefix
43408 # Do we need a version for libraries?
43409 need_version=$need_version
43411 # Library versioning type.
43412 version_type=$version_type
43414 # Shared library runtime path variable.
43415 runpath_var=$runpath_var
43417 # Shared library path variable.
43418 shlibpath_var=$shlibpath_var
43420 # Is shlibpath searched before the hard-coded library search path?
43421 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43423 # Format of library name prefix.
43424 libname_spec=$lt_libname_spec
43426 # List of archive names. First name is the real one, the rest are links.
43427 # The last name is the one that the linker finds with -lNAME
43428 library_names_spec=$lt_library_names_spec
43430 # The coded name of the library, if different from the real name.
43431 soname_spec=$lt_soname_spec
43433 # Command to use after installation of a shared archive.
43434 postinstall_cmds=$lt_postinstall_cmds
43436 # Command to use after uninstallation of a shared archive.
43437 postuninstall_cmds=$lt_postuninstall_cmds
43439 # Commands used to finish a libtool library installation in a directory.
43440 finish_cmds=$lt_finish_cmds
43442 # As "finish_cmds", except a single script fragment to be evaled but
43444 finish_eval=$lt_finish_eval
43446 # Whether we should hardcode library paths into libraries.
43447 hardcode_into_libs=$hardcode_into_libs
43449 # Compile-time system search path for libraries.
43450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43452 # Run-time system search path for libraries.
43453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43455 # Whether dlopen is supported.
43456 dlopen_support=$enable_dlopen
43458 # Whether dlopen of programs is supported.
43459 dlopen_self=$enable_dlopen_self
43461 # Whether dlopen of statically linked programs is supported.
43462 dlopen_self_static=$enable_dlopen_self_static
43464 # Commands to strip libraries.
43465 old_striplib=$lt_old_striplib
43466 striplib=$lt_striplib
43469 # The linker used to build libraries.
43472 # Commands used to build an old-style archive.
43473 old_archive_cmds=$lt_old_archive_cmds
43475 # A language specific compiler.
43478 # Is the compiler the GNU compiler?
43481 # Compiler flag to turn off builtin functions.
43482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43484 # How to pass a linker flag through the compiler.
43485 wl=$lt_lt_prog_compiler_wl
43487 # Additional compiler flags for building library objects.
43488 pic_flag=$lt_lt_prog_compiler_pic
43490 # Compiler flag to prevent dynamic linking.
43491 link_static_flag=$lt_lt_prog_compiler_static
43493 # Does compiler simultaneously support -c and -o options?
43494 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43496 # Whether or not to add -lc for building shared libraries.
43497 build_libtool_need_lc=$archive_cmds_need_lc
43499 # Whether or not to disallow shared libs when runtime libs are static.
43500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43502 # Compiler flag to allow reflexive dlopens.
43503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43505 # Compiler flag to generate shared objects directly from archives.
43506 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43508 # Whether the compiler copes with passing no objects directly.
43509 compiler_needs_object=$lt_compiler_needs_object
43511 # Create an old-style archive from a shared archive.
43512 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43514 # Create a temporary old-style archive to link instead of a shared archive.
43515 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43517 # Commands used to build a shared archive.
43518 archive_cmds=$lt_archive_cmds
43519 archive_expsym_cmds=$lt_archive_expsym_cmds
43521 # Commands used to build a loadable module if different from building
43522 # a shared archive.
43523 module_cmds=$lt_module_cmds
43524 module_expsym_cmds=$lt_module_expsym_cmds
43526 # Whether we are building with GNU ld or not.
43527 with_gnu_ld=$lt_with_gnu_ld
43529 # Flag that allows shared libraries with undefined symbols to be built.
43530 allow_undefined_flag=$lt_allow_undefined_flag
43532 # Flag that enforces no undefined symbols.
43533 no_undefined_flag=$lt_no_undefined_flag
43535 # Flag to hardcode \$libdir into a binary during linking.
43536 # This must work even if \$libdir does not exist
43537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43539 # If ld is used when linking, flag to hardcode \$libdir into a binary
43540 # during linking. This must work even if \$libdir does not exist.
43541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43543 # Whether we need a single "-rpath" flag with a separated argument.
43544 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43547 # DIR into the resulting binary.
43548 hardcode_direct=$hardcode_direct
43550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43551 # DIR into the resulting binary and the resulting library dependency is
43552 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43553 # library is relocated.
43554 hardcode_direct_absolute=$hardcode_direct_absolute
43556 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43557 # into the resulting binary.
43558 hardcode_minus_L=$hardcode_minus_L
43560 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43561 # into the resulting binary.
43562 hardcode_shlibpath_var=$hardcode_shlibpath_var
43564 # Set to "yes" if building a shared library automatically hardcodes DIR
43565 # into the library and all subsequent libraries and executables linked
43567 hardcode_automatic=$hardcode_automatic
43569 # Set to yes if linker adds runtime paths of dependent libraries
43570 # to runtime path list.
43571 inherit_rpath=$inherit_rpath
43573 # Whether libtool must link a program against all its dependency libraries.
43574 link_all_deplibs=$link_all_deplibs
43576 # Fix the shell variable \$srcfile for the compiler.
43577 fix_srcfile_path=$lt_fix_srcfile_path
43579 # Set to "yes" if exported symbols are required.
43580 always_export_symbols=$always_export_symbols
43582 # The commands to list exported symbols.
43583 export_symbols_cmds=$lt_export_symbols_cmds
43585 # Symbols that should not be listed in the preloaded symbols.
43586 exclude_expsyms=$lt_exclude_expsyms
43588 # Symbols that must always be exported.
43589 include_expsyms=$lt_include_expsyms
43591 # Commands necessary for linking programs (against libraries) with templates.
43592 prelink_cmds=$lt_prelink_cmds
43594 # Specify filename containing input files.
43595 file_list_spec=$lt_file_list_spec
43597 # How to hardcode a shared library path into an executable.
43598 hardcode_action=$hardcode_action
43600 # The directories searched by this compiler when creating a shared library.
43601 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
43603 # Dependencies to place before and after the objects being linked to
43604 # create a shared library.
43605 predep_objects=$lt_predep_objects
43606 postdep_objects=$lt_postdep_objects
43607 predeps=$lt_predeps
43608 postdeps=$lt_postdeps
43610 # The library search path used internally by the compiler when linking
43611 # a shared library.
43612 compiler_lib_search_path=$lt_compiler_lib_search_path
43614 # ### END LIBTOOL CONFIG
43620 cat <<\_LT_EOF >> "$cfgfile"
43621 # AIX sometimes has problems with the GCC collect2 program. For some
43622 # reason, if we set the COLLECT_NAMES environment variable, the problems
43623 # vanish in a puff of smoke.
43624 if test "X${COLLECT_NAMES+set}" != Xset; then
43626 export COLLECT_NAMES
43633 ltmain="$ac_aux_dir/ltmain.sh"
43636 # We use sed instead of cat because bash on DJGPP gets confused if
43637 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43638 # text mode, it properly converts lines to CR/LF. This bash problem
43639 # is reportedly fixed, but why not run on old versions too?
43640 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43641 || (rm -f "$cfgfile"; exit 1)
43645 cat << \_LT_EOF >> "$cfgfile"
43647 # func_dirname file append nondir_replacement
43648 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43649 # otherwise set result to NONDIR_REPLACEMENT.
43653 */*) func_dirname_result="${1%/*}${2}" ;;
43654 * ) func_dirname_result="${3}" ;;
43658 # func_basename file
43661 func_basename_result="${1##*/}"
43664 # func_dirname_and_basename file append nondir_replacement
43665 # perform func_basename and func_dirname in a single function
43667 # dirname: Compute the dirname of FILE. If nonempty,
43668 # add APPEND to the result, otherwise set result
43669 # to NONDIR_REPLACEMENT.
43670 # value returned in "$func_dirname_result"
43671 # basename: Compute filename of FILE.
43672 # value retuned in "$func_basename_result"
43673 # Implementation must be kept synchronized with func_dirname
43674 # and func_basename. For efficiency, we do not delegate to
43675 # those functions but instead duplicate the functionality here.
43676 func_dirname_and_basename ()
43679 */*) func_dirname_result="${1%/*}${2}" ;;
43680 * ) func_dirname_result="${3}" ;;
43682 func_basename_result="${1##*/}"
43685 # func_stripname prefix suffix name
43686 # strip PREFIX and SUFFIX off of NAME.
43687 # PREFIX and SUFFIX must not contain globbing or regex special
43688 # characters, hashes, percent signs, but SUFFIX may contain a leading
43689 # dot (in which case that matches only a dot).
43692 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43693 # positional parameters, so assign one to ordinary parameter first.
43694 func_stripname_result=${3}
43695 func_stripname_result=${func_stripname_result#"${1}"}
43696 func_stripname_result=${func_stripname_result%"${2}"}
43702 func_opt_split_opt=${1%%=*}
43703 func_opt_split_arg=${1#*=}
43710 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
43711 *) func_lo2o_result=${1} ;;
43715 # func_xform libobj-or-source
43718 func_xform_result=${1%.*}.lo
43721 # func_arith arithmetic-term...
43724 func_arith_result=$(( $* ))
43728 # STRING may not start with a hyphen.
43731 func_len_result=${#1}
43736 *) # Bourne compatible functions.
43737 cat << \_LT_EOF >> "$cfgfile"
43739 # func_dirname file append nondir_replacement
43740 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43741 # otherwise set result to NONDIR_REPLACEMENT.
43744 # Extract subdirectory from the argument.
43745 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43746 if test "X$func_dirname_result" = "X${1}"; then
43747 func_dirname_result="${3}"
43749 func_dirname_result="$func_dirname_result${2}"
43753 # func_basename file
43756 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
43760 # func_stripname prefix suffix name
43761 # strip PREFIX and SUFFIX off of NAME.
43762 # PREFIX and SUFFIX must not contain globbing or regex special
43763 # characters, hashes, percent signs, but SUFFIX may contain a leading
43764 # dot (in which case that matches only a dot).
43765 # func_strip_suffix prefix name
43769 .*) func_stripname_result=`$ECHO "X${3}" \
43770 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43771 *) func_stripname_result=`$ECHO "X${3}" \
43772 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43777 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
43778 my_sed_long_arg='1s/^-[^=]*=//'
43783 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43784 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43790 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43793 # func_xform libobj-or-source
43796 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43799 # func_arith arithmetic-term...
43802 func_arith_result=`expr "$@"`
43806 # STRING may not start with a hyphen.
43809 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43815 case $lt_shell_append in
43817 cat << \_LT_EOF >> "$cfgfile"
43819 # func_append var value
43820 # Append VALUE to the end of shell variable VAR.
43828 cat << \_LT_EOF >> "$cfgfile"
43830 # func_append var value
43831 # Append VALUE to the end of shell variable VAR.
43842 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43843 || (rm -f "$cfgfile"; exit 1)
43845 mv -f "$cfgfile" "$ofile" ||
43846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43850 cat <<_LT_EOF >> "$ofile"
43852 # ### BEGIN LIBTOOL TAG CONFIG: CXX
43854 # The linker used to build libraries.
43857 # Commands used to build an old-style archive.
43858 old_archive_cmds=$lt_old_archive_cmds_CXX
43860 # A language specific compiler.
43861 CC=$lt_compiler_CXX
43863 # Is the compiler the GNU compiler?
43866 # Compiler flag to turn off builtin functions.
43867 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
43869 # How to pass a linker flag through the compiler.
43870 wl=$lt_lt_prog_compiler_wl_CXX
43872 # Additional compiler flags for building library objects.
43873 pic_flag=$lt_lt_prog_compiler_pic_CXX
43875 # Compiler flag to prevent dynamic linking.
43876 link_static_flag=$lt_lt_prog_compiler_static_CXX
43878 # Does compiler simultaneously support -c and -o options?
43879 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
43881 # Whether or not to add -lc for building shared libraries.
43882 build_libtool_need_lc=$archive_cmds_need_lc_CXX
43884 # Whether or not to disallow shared libs when runtime libs are static.
43885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
43887 # Compiler flag to allow reflexive dlopens.
43888 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
43890 # Compiler flag to generate shared objects directly from archives.
43891 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
43893 # Whether the compiler copes with passing no objects directly.
43894 compiler_needs_object=$lt_compiler_needs_object_CXX
43896 # Create an old-style archive from a shared archive.
43897 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
43899 # Create a temporary old-style archive to link instead of a shared archive.
43900 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
43902 # Commands used to build a shared archive.
43903 archive_cmds=$lt_archive_cmds_CXX
43904 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
43906 # Commands used to build a loadable module if different from building
43907 # a shared archive.
43908 module_cmds=$lt_module_cmds_CXX
43909 module_expsym_cmds=$lt_module_expsym_cmds_CXX
43911 # Whether we are building with GNU ld or not.
43912 with_gnu_ld=$lt_with_gnu_ld_CXX
43914 # Flag that allows shared libraries with undefined symbols to be built.
43915 allow_undefined_flag=$lt_allow_undefined_flag_CXX
43917 # Flag that enforces no undefined symbols.
43918 no_undefined_flag=$lt_no_undefined_flag_CXX
43920 # Flag to hardcode \$libdir into a binary during linking.
43921 # This must work even if \$libdir does not exist
43922 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
43924 # If ld is used when linking, flag to hardcode \$libdir into a binary
43925 # during linking. This must work even if \$libdir does not exist.
43926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
43928 # Whether we need a single "-rpath" flag with a separated argument.
43929 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
43931 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43932 # DIR into the resulting binary.
43933 hardcode_direct=$hardcode_direct_CXX
43935 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43936 # DIR into the resulting binary and the resulting library dependency is
43937 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43938 # library is relocated.
43939 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
43941 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43942 # into the resulting binary.
43943 hardcode_minus_L=$hardcode_minus_L_CXX
43945 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43946 # into the resulting binary.
43947 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
43949 # Set to "yes" if building a shared library automatically hardcodes DIR
43950 # into the library and all subsequent libraries and executables linked
43952 hardcode_automatic=$hardcode_automatic_CXX
43954 # Set to yes if linker adds runtime paths of dependent libraries
43955 # to runtime path list.
43956 inherit_rpath=$inherit_rpath_CXX
43958 # Whether libtool must link a program against all its dependency libraries.
43959 link_all_deplibs=$link_all_deplibs_CXX
43961 # Fix the shell variable \$srcfile for the compiler.
43962 fix_srcfile_path=$lt_fix_srcfile_path_CXX
43964 # Set to "yes" if exported symbols are required.
43965 always_export_symbols=$always_export_symbols_CXX
43967 # The commands to list exported symbols.
43968 export_symbols_cmds=$lt_export_symbols_cmds_CXX
43970 # Symbols that should not be listed in the preloaded symbols.
43971 exclude_expsyms=$lt_exclude_expsyms_CXX
43973 # Symbols that must always be exported.
43974 include_expsyms=$lt_include_expsyms_CXX
43976 # Commands necessary for linking programs (against libraries) with templates.
43977 prelink_cmds=$lt_prelink_cmds_CXX
43979 # Specify filename containing input files.
43980 file_list_spec=$lt_file_list_spec_CXX
43982 # How to hardcode a shared library path into an executable.
43983 hardcode_action=$hardcode_action_CXX
43985 # The directories searched by this compiler when creating a shared library.
43986 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
43988 # Dependencies to place before and after the objects being linked to
43989 # create a shared library.
43990 predep_objects=$lt_predep_objects_CXX
43991 postdep_objects=$lt_postdep_objects_CXX
43992 predeps=$lt_predeps_CXX
43993 postdeps=$lt_postdeps_CXX
43995 # The library search path used internally by the compiler when linking
43996 # a shared library.
43997 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
43999 # ### END LIBTOOL TAG CONFIG: CXX
44004 for ac_file in $CONFIG_FILES; do
44005 # Support "outfile[:infile[:infile...]]"
44007 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44009 # PO directories have a Makefile.in generated from Makefile.in.in.
44010 case "$ac_file" in */Makefile.in)
44011 # Adjust a relative srcdir.
44012 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44013 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44014 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44015 # In autoconf-2.13 it is called $ac_given_srcdir.
44016 # In autoconf-2.50 it is called $srcdir.
44017 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44018 case "$ac_given_srcdir" in
44019 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44020 /*) top_srcdir="$ac_given_srcdir" ;;
44021 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44023 # Treat a directory as a PO directory if and only if it has a
44024 # POTFILES.in file. This allows packages to have multiple PO
44025 # directories under different names or in different locations.
44026 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44027 rm -f "$ac_dir/POTFILES"
44028 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44029 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44030 POMAKEFILEDEPS="POTFILES.in"
44031 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44032 # on $ac_dir but don't depend on user-specified configuration
44034 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44035 # The LINGUAS file contains the set of available languages.
44036 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44037 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44039 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44040 # Hide the ALL_LINGUAS assigment from automake.
44041 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44042 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44044 # The set of available languages was given in configure.in.
44045 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44048 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44049 # Compute UPDATEPOFILES
44050 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44051 # Compute DUMMYPOFILES
44052 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44054 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44055 case "$ac_given_srcdir" in
44057 *) srcdirpre='$(srcdir)/' ;;
44063 for lang in $ALL_LINGUAS; do
44064 POFILES="$POFILES $srcdirpre$lang.po"
44065 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44066 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44067 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44069 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44070 # environment variable.
44072 if test -n "$ALL_LINGUAS"; then
44073 for presentlang in $ALL_LINGUAS; do
44075 if test "%UNSET%" != "$LINGUAS"; then
44076 desiredlanguages="$LINGUAS"
44078 desiredlanguages="$ALL_LINGUAS"
44080 for desiredlang in $desiredlanguages; do
44081 # Use the presentlang catalog if desiredlang is
44082 # a. equal to presentlang, or
44083 # b. a variant of presentlang (because in this case,
44084 # presentlang can be used as a fallback for messages
44085 # which are not translated in the desiredlang catalog).
44086 case "$desiredlang" in
44087 "$presentlang"*) useit=yes;;
44090 if test $useit = yes; then
44091 INST_LINGUAS="$INST_LINGUAS $presentlang"
44096 if test -n "$INST_LINGUAS"; then
44097 for lang in $INST_LINGUAS; do
44098 CATALOGS="$CATALOGS $lang.gmo"
44101 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44102 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"
44103 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44104 if test -f "$f"; then
44106 *.orig | *.bak | *~) ;;
44107 *) cat "$f" >> "$ac_dir/Makefile" ;;
44122 { (exit 0); exit 0; }
44124 chmod +x $CONFIG_STATUS
44125 ac_clean_files=$ac_clean_files_save
44128 # configure is writing to config.log, and then calls config.status.
44129 # config.status does its own redirection, appending to config.log.
44130 # Unfortunately, on DOS this fails, as config.log is still kept open
44131 # by configure, so config.status won't be able to write to it; its
44132 # output is simply discarded. So we exec the FD to /dev/null,
44133 # effectively closing config.log, so it can be properly (re)opened and
44134 # appended to by config.status. When coming back to configure, we
44135 # need to make the FD available again.
44136 if test "$no_create" != yes; then
44138 ac_config_status_args=
44139 test "$silent" = yes &&
44140 ac_config_status_args="$ac_config_status_args --quiet"
44142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44145 # would make configure fail if this is the last instruction.
44146 $ac_cs_success || { (exit 1); exit 1; }
44150 if test "${support_bat}" = "yes" ; then
44151 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44152 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44158 if test "x$QMAKEQT4" != "xnone"; then
44163 chmod 755 install_conf_file build-depkgs-qt-console
44164 echo "Creating bat Makefile"
44170 if test X"$GCC" = "Xyes" ; then
44171 echo "Doing make of dependencies"
44172 ${MAKE:-make} depend
44176 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44177 chmod 755 dvd-handler dvd-simulator
44178 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44182 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44183 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44187 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44188 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44190 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44191 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44193 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44194 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44196 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44197 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44199 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44200 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44202 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44203 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44205 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44206 chmod 755 $c/sqlite
44209 chmod 755 src/win32/build-depkgs-mingw32
44211 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44212 largefile_support="yes"
44215 if test X"$GCC" = "Xyes" ; then
44216 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44217 if test "x${CCVERSION}" = "x" ; then
44218 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44220 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44221 if test x"${CXXVERSION}" = x ; then
44222 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44226 # clean up any old junk
44232 if test "x${db_type}" = "xInternal" ; then
44235 echo "You have not specified either --enable-client-only or one of the"
44236 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44237 echo " This is not permitted. Please reconfigure."
44239 echo "Aborting the configuration ..."
44246 Configuration on `date`:
44248 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44249 Bacula version: ${BACULA} ${VERSION} (${DATE})
44250 Source code location: ${srcdir}
44251 Install binaries: ${sbindir}
44252 Install libraries: ${libdir}
44253 Install config files: ${sysconfdir}
44254 Scripts directory: ${scriptdir}
44255 Archive directory: ${archivedir}
44256 Working directory: ${working_dir}
44257 PID directory: ${piddir}
44258 Subsys directory: ${subsysdir}
44259 Man directory: ${mandir}
44260 Data directory: ${datarootdir}
44261 C Compiler: ${CC} ${CCVERSION}
44262 C++ Compiler: ${CXX} ${CXXVERSION}
44263 Compiler flags: ${WCFLAGS} ${CFLAGS}
44264 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44266 Statically Linked Tools: ${support_static_tools}
44267 Statically Linked FD: ${support_static_fd}
44268 Statically Linked SD: ${support_static_sd}
44269 Statically Linked DIR: ${support_static_dir}
44270 Statically Linked CONS: ${support_static_cons}
44271 Database type: ${db_type}
44272 Database port: ${db_port}
44273 Database lib: ${DB_LIBS}
44274 Database name: ${db_name}
44275 Database user: ${db_user}
44277 Job Output Email: ${job_email}
44278 Traceback Email: ${dump_email}
44279 SMTP Host Address: ${smtp_host}
44281 Director Port: ${dir_port}
44282 File daemon Port: ${fd_port}
44283 Storage daemon Port: ${sd_port}
44285 Director User: ${dir_user}
44286 Director Group: ${dir_group}
44287 Storage Daemon User: ${sd_user}
44288 Storage DaemonGroup: ${sd_group}
44289 File Daemon User: ${fd_user}
44290 File Daemon Group: ${fd_group}
44292 SQL binaries Directory ${SQL_BINDIR}
44294 Large file support: $largefile_support
44295 Bacula conio support: ${got_conio} ${CONS_LIBS}
44296 readline support: ${got_readline} ${PRTREADLINE_SRC}
44297 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44298 TLS support: ${support_tls}
44299 Encryption support: ${support_crypto}
44300 ZLIB support: ${have_zlib}
44301 enable-smartalloc: ${support_smartalloc}
44302 bat support: ${support_bat} ${QWT_LDFLAGS}
44303 enable-gnome: ${support_gnome} ${gnome_version}
44304 enable-bwx-console: ${support_wx_console} ${wx_version}
44305 enable-tray-monitor: ${support_tray_monitor}
44306 client-only: ${build_client_only}
44307 build-dird: ${build_dird}
44308 build-stored: ${build_stored}
44309 ACL support: ${have_acl}
44310 Python support: ${support_python} ${PYTHON_LIBS}
44311 Batch insert enabled: ${support_batch_insert}