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 --disable-libtool disable building using GNU libtool [default=no]
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
1667 --disable-acl disable acl support [default=auto]
1668 --disable-xattr disable xattr support [default=auto]
1671 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1672 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1673 --with-pic try to use only PIC/non-PIC objects [default=use
1675 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1676 --with-gnu-ld assume the C compiler uses GNU ld default=no
1677 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1678 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1679 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1680 --without-libintl-prefix don't search for libintl in includedir and libdir
1681 --with-included-gettext use the GNU gettext library included here
1682 --with-qwt[=DIR] specify qwt library directory
1683 --with-readline[=DIR] specify readline library directory
1684 --with-python[=DIR] Include Python support. DIR is the Python base
1685 install directory, default is to search through a
1686 number of common places for the Python files.
1687 --with-tcp-wrappers[=DIR]
1688 enable tcpwrappers support
1689 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1690 --with-working-dir=PATH specify path of Bacula working directory
1691 --with-archivedir=PATH specify path of SD archive directory
1692 --with-scriptdir=PATH specify path of Bacula scripts directory
1693 --with-plugindir=PATH specify path of Bacula plugins directory
1694 --with-dump-email=EMAIL dump email address
1695 --with-job-email=EMAIL job output email address
1696 --with-smtp-host=HOST SMTP mail host address
1697 --with-pid-dir=PATH specify location of Bacula pid files
1698 --with-subsys-dir=PATH specify location of Bacula subsys file
1699 --with-baseport=PORT specify base port address for daemons
1700 --with-dir-password=PASSWORD
1701 specify Director's password
1702 --with-fd-password=PASSWORD
1703 specify Client's password
1704 --with-sd-password=PASSWORD
1705 specify Storage daemon's password
1706 --with-mon-dir-password=PASSWORD
1707 specify Director's password used by the monitor
1708 --with-mon-fd-password=PASSWORD
1709 specify Client's password used by the monitor
1710 --with-mon-sd-password=PASSWORD
1711 specify Storage daemon's password used by the
1713 --with-db-name=DBNAME specify database name [default=bacula]
1714 --with-db-user=UNAME specify database user [default=bacula]
1715 --with-db-password=PWD specify database password [default=*none*]
1716 --with-db-port=DBPORT specify a database port [default=null]
1717 --with-dir-user=USER specify user for Director daemon
1718 --with-dir-group=GROUP specify group for Director daemon
1719 --with-sd-user=USER specify user for Storage daemon
1720 --with-sd-group=GROUP specify group for Storage daemon
1721 --with-fd-user=USER specify user for File daemon
1722 --with-fd-group=GROUP specify group for File daemon
1723 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1724 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1725 base install directory, [default=/usr/local/pgsql]
1726 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1727 directory, default is to search through a number of
1728 common places for the MySQL files.
1729 --with-embedded-mysql[=DIR]
1730 Include MySQL support. DIR is the MySQL base install
1731 directory, default is to search through a number of
1732 common places for the MySQL files.
1733 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1734 install directory, default is to search through a
1735 number of common places for the SQLite3 files.
1736 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1737 install directory, default is to search through a
1738 number of common places for the SQLite files.
1739 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1740 directory, default is to search through a number of
1741 common places for the DBI files.
1742 --with-dbi-driver[=DRIVER]
1743 Suport for DBI driver. DRIVER is the one DBI driver
1744 like Mysql, Postgresql, others. Default is to not
1745 configure any driver.
1746 --with-x use the X Window System
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1756 CXX C++ compiler command
1757 CXXFLAGS C++ compiler flags
1759 WXCONFIG wx-config command. On some systems, you must set it to
1760 wx-config-2.6 to use wxWidgets 2.6.
1761 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1762 CXXCPP C++ preprocessor
1763 XMKMF Path to xmkmf, Makefile generator for X Window System
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1772 if test "$ac_init_help" = "recursive"; then
1773 # If there are subdirs, report their specific --help.
1774 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1775 test -d "$ac_dir" || continue
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1782 # A ".." for each directory in $ac_dir_suffix.
1783 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1784 case $ac_top_builddir_sub in
1785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1795 .) # We are building in place.
1797 ac_top_srcdir=$ac_top_builddir_sub
1798 ac_abs_top_srcdir=$ac_pwd ;;
1799 [\\/]* | ?:[\\/]* ) # Absolute name.
1800 ac_srcdir=$srcdir$ac_dir_suffix;
1801 ac_top_srcdir=$srcdir
1802 ac_abs_top_srcdir=$srcdir ;;
1804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805 ac_top_srcdir=$ac_top_build_prefix$srcdir
1806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810 cd "$ac_dir" || { ac_status=$?; continue; }
1811 # Check for guested configure.
1812 if test -f "$ac_srcdir/configure.gnu"; then
1814 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815 elif test -f "$ac_srcdir/configure"; then
1817 $SHELL "$ac_srcdir/configure" --help=recursive
1819 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821 cd "$ac_pwd" || { ac_status=$?; break; }
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1829 generated by GNU Autoconf 2.61
1831 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1832 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1833 This configure script is free software; the Free Software Foundation
1834 gives unlimited permission to copy, distribute and modify it.
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1842 It was created by $as_me, which was
1843 generated by GNU Autoconf 2.61. Invocation command line was
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1865 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1868 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1869 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1870 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 echo "PATH: $as_dir"
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1903 ac_must_keep_next=false
1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911 | -silent | --silent | --silen | --sile | --sil)
1914 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1919 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1920 if test $ac_must_keep_next = true; then
1921 ac_must_keep_next=false # Got value, back to normal.
1924 *=* | --config-cache | -C | -disable-* | --disable-* \
1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927 | -with-* | --with-* | -without-* | --without-* | --x)
1928 case "$ac_configure_args0 " in
1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 -* ) ac_must_keep_next=true ;;
1935 ac_configure_args="$ac_configure_args '$ac_arg'"
1940 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1941 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log. We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949 # Save into config.log some information that might help in debugging.
1954 ## ---------------- ##
1955 ## Cache variables. ##
1956 ## ---------------- ##
1959 # The following way of writing the cache mishandles newlines in values,
1961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962 eval ac_val=\$$ac_var
1966 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1967 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1970 _ | IFS | as_nl) ;; #(
1971 *) $as_unset $ac_var ;;
1976 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1977 *${as_nl}ac_space=\ *)
1979 "s/'\''/'\''\\\\'\'''\''/g;
1980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1991 ## ----------------- ##
1992 ## Output variables. ##
1993 ## ----------------- ##
1996 for ac_var in $ac_subst_vars
1998 eval ac_val=\$$ac_var
2000 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 echo "$ac_var='\''$ac_val'\''"
2006 if test -n "$ac_subst_files"; then
2008 ## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##
2013 for ac_var in $ac_subst_files
2015 eval ac_val=\$$ac_var
2017 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 echo "$ac_var='\''$ac_val'\''"
2024 if test -s confdefs.h; then
2034 test "$ac_signal" != 0 &&
2035 echo "$as_me: caught signal $ac_signal"
2036 echo "$as_me: exit $exit_status"
2038 rm -f core *.core core.conftest.* &&
2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042 for ac_signal in 1 2 13 15; do
2043 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2050 # Predefined preprocessor variables.
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_NAME "$PACKAGE_NAME"
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_STRING "$PACKAGE_STRING"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 set x "$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2084 set x "$ac_default_prefix/share/config.site" \
2085 "$ac_default_prefix/etc/config.site"
2090 if test -r "$ac_site_file"; then
2091 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2092 echo "$as_me: loading site script $ac_site_file" >&6;}
2093 sed 's/^/| /' "$ac_site_file" >&5
2098 if test -r "$cache_file"; then
2099 # Some versions of bash will fail to source /dev/null (special
2100 # files actually), so we avoid doing that.
2101 if test -f "$cache_file"; then
2102 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2103 echo "$as_me: loading cache $cache_file" >&6;}
2105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2106 *) . "./$cache_file";;
2110 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2111 echo "$as_me: creating cache $cache_file" >&6;}
2115 # Check that the precious variables saved in the cache have kept the same
2117 ac_cache_corrupted=false
2118 for ac_var in $ac_precious_vars; do
2119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2120 eval ac_new_set=\$ac_env_${ac_var}_set
2121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2122 eval ac_new_val=\$ac_env_${ac_var}_value
2123 case $ac_old_set,$ac_new_set in
2125 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2126 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2129 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2130 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2134 if test "x$ac_old_val" != "x$ac_new_val"; then
2135 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2136 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2138 echo "$as_me: former value: $ac_old_val" >&2;}
2139 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2140 echo "$as_me: current value: $ac_new_val" >&2;}
2141 ac_cache_corrupted=:
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2147 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2152 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2156 if $ac_cache_corrupted; then
2157 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2158 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2159 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2160 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2161 { (exit 1); exit 1; }; }
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2195 if test -f "$ac_dir/install-sh"; then
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2199 elif test -f "$ac_dir/install.sh"; then
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2203 elif test -f "$ac_dir/shtool"; then
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2209 if test -z "$ac_aux_dir"; then
2210 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2211 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2212 { (exit 1); exit 1; }; }
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2232 # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 TRUEPRG=$ac_cv_path_TRUEPRG
2263 if test -n "$TRUEPRG"; then
2264 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2265 echo "${ECHO_T}$TRUEPRG" >&6; }
2267 { echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6; }
2272 test -n "$TRUEPRG" && break
2274 test -n "$TRUEPRG" || TRUEPRG=":"
2276 for ac_prog in false
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 FALSEPRG=$ac_cv_path_FALSEPRG
2309 if test -n "$FALSEPRG"; then
2310 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2311 echo "${ECHO_T}$FALSEPRG" >&6; }
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2318 test -n "$FALSEPRG" && break
2320 test -n "$FALSEPRG" || FALSEPRG=":"
2325 if test "x$BACULA" != x; then
2326 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2328 BACULA=${BACULA-Bacula}
2329 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2330 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2331 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2332 echo "configuring for ${BACULA} $VERSION ($DATE)"
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 if test -n "$CC"; then
2370 { echo "$as_me:$LINENO: result: $CC" >&5
2371 echo "${ECHO_T}$CC" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2379 if test -z "$ac_cv_prog_CC"; then
2381 # Extract the first word of "gcc", so it can be a program name with args.
2382 set dummy gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="gcc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2417 if test "x$ac_ct_CC" = x; then
2420 case $cross_compiling:$ac_tool_warned in
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2436 if test -z "$CC"; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}cc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="${ac_tool_prefix}cc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2477 if test -z "$CC"; then
2478 # Extract the first word of "cc", so it can be a program name with args.
2479 set dummy cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497 ac_prog_rejected=yes
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 if test $ac_prog_rejected = yes; then
2509 # We found a bogon in the path, so make sure we never use it.
2510 set dummy $ac_cv_prog_CC
2512 if test $# != 0; then
2513 # We chose a different compiler from the bogus one.
2514 # However, it has the same basename, so the bogon will be chosen
2515 # first if we set CC to just the basename; use the full file name.
2517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 for ac_prog in cl.exe
2537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2574 test -n "$CC" && break
2577 if test -z "$CC"; then
2579 for ac_prog in cl.exe
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_ac_ct_CC="$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2618 test -n "$ac_ct_CC" && break
2621 if test "x$ac_ct_CC" = x; then
2624 case $cross_compiling:$ac_tool_warned in
2626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&5
2629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet. If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632 ac_tool_warned=yes ;;
2641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details." >&5
2643 echo "$as_me: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details." >&2;}
2645 { (exit 1); exit 1; }; }
2647 # Provide some information about the compiler.
2648 echo "$as_me:$LINENO: checking for C compiler version" >&5
2649 ac_compiler=`set X $ac_compile; echo $2`
2650 { (ac_try="$ac_compiler --version >&5"
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compiler --version >&5") 2>&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }
2660 { (ac_try="$ac_compiler -v >&5"
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_compiler -v >&5") 2>&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }
2670 { (ac_try="$ac_compiler -V >&5"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compiler -V >&5") 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2701 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2702 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2705 # List of possible output files, starting from the most likely.
2706 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2707 # only as a last resort. b.out is created by i960 compilers.
2708 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2710 # The IRIX 6 linker writes into existing files which may not be
2711 # executable, retaining their permissions. Remove them first so a
2712 # subsequent execution test works.
2714 for ac_file in $ac_files
2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2718 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2723 if { (ac_try="$ac_link_default"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link_default") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2735 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2736 # so that the user can short-circuit this test for compilers unknown to
2738 for ac_file in $ac_files ''
2740 test -f "$ac_file" || continue
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2745 # We found the default executable, but exeext='' is most
2749 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 # We set ac_cv_exeext here because the later test for it is not
2754 # safe: cross compilers may not add the suffix if given an `-o'
2755 # argument, so we may need to know it at that point already.
2756 # Even if this section looks crufty: it has the advantage of
2763 test "$ac_cv_exeext" = no && ac_cv_exeext=
2769 { echo "$as_me:$LINENO: result: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6; }
2771 if test -z "$ac_file"; then
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&2;}
2779 { (exit 77); exit 77; }; }
2782 ac_exeext=$ac_cv_exeext
2784 # Check that the compiler produces executables we can run. If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791 if { ac_try='./$ac_file'
2792 { (case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_try") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 if test "$cross_compiling" = maybe; then
2806 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&2;}
2812 { (exit 1); exit 1; }; }
2816 { echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run. If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2824 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2828 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2829 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link") 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2844 for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compile") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 for ac_file in conftest.o conftest.obj conftest.*; do
2900 test -f "$ac_file" || continue;
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details." >&5
2913 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2914 See \`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS=${CFLAGS+set}
2980 ac_save_CFLAGS=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_c_werror_flag=$ac_c_werror_flag
2987 ac_c_werror_flag=yes
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.$ac_objext; then
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3052 grep -v '^ *+' conftest.er1 >conftest.err
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.$ac_objext; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3065 ac_c_werror_flag=$ac_save_c_werror_flag
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_c_werror_flag=$ac_save_c_werror_flag
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3118 if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3127 if test "$GCC" = yes; then
3133 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3134 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cc_c89+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 ac_cv_prog_cc_c89=no
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3164 s = g (p, va_arg (v,int));
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3170 function prototypes and stuff, but not '\xHH' hex character constants.
3171 These don't provoke an error unfortunately, instead are silently treated
3172 as 'x'. The following induces an error, until -std is added to get
3173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3174 array size at least. It's necessary to write '\x00'==0 to get something
3175 that's true only with -std. */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179 inside strings and character constants. */
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200 CC="$ac_save_CC $ac_arg"
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3218 ac_cv_prog_cc_c89=$ac_arg
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f core conftest.err conftest.$ac_objext
3227 test "x$ac_cv_prog_cc_c89" != "xno" && break
3229 rm -f conftest.$ac_ext
3234 case "x$ac_cv_prog_cc_c89" in
3236 { echo "$as_me:$LINENO: result: none needed" >&5
3237 echo "${ECHO_T}none needed" >&6; } ;;
3239 { echo "$as_me:$LINENO: result: unsupported" >&5
3240 echo "${ECHO_T}unsupported" >&6; } ;;
3242 CC="$CC $ac_cv_prog_cc_c89"
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 ac_cpp='$CXXCPP $CPPFLAGS'
3256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259 if test -z "$CXX"; then
3260 if test -n "$CCC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3270 if test "${ac_cv_prog_CXX+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -n "$CXX"; then
3274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CXX"; then
3295 { echo "$as_me:$LINENO: result: $CXX" >&5
3296 echo "${ECHO_T}$CXX" >&6; }
3298 { echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6; }
3303 test -n "$CXX" && break
3306 if test -z "$CXX"; then
3308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if test -n "$ac_ct_CXX"; then
3318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_ac_ct_CXX="$ac_prog"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3338 if test -n "$ac_ct_CXX"; then
3339 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3347 test -n "$ac_ct_CXX" && break
3350 if test "x$ac_ct_CXX" = x; then
3353 case $cross_compiling:$ac_tool_warned in
3355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet. If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet. If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 ac_tool_warned=yes ;;
3369 # Provide some information about the compiler.
3370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3371 ac_compiler=`set X $ac_compile; echo $2`
3372 { (ac_try="$ac_compiler --version >&5"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_compiler --version >&5") 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3382 { (ac_try="$ac_compiler -v >&5"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compiler -v >&5") 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }
3392 { (ac_try="$ac_compiler -V >&5"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compiler -V >&5") 2>&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }
3403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_cxx_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3457 GXX=`test $ac_compiler_gnu = yes && echo yes`
3458 ac_test_CXXFLAGS=${CXXFLAGS+set}
3459 ac_save_CXXFLAGS=$CXXFLAGS
3460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3462 if test "${ac_cv_prog_cxx_g+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3466 ac_cxx_werror_flag=yes
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_cxx_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3501 ac_cv_prog_cxx_g=yes
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } && {
3536 test -z "$ac_cxx_werror_flag" ||
3537 test ! -s conftest.err
3538 } && test -s conftest.$ac_objext; then
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3546 cat >conftest.$ac_ext <<_ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compile") 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } && {
3575 test -z "$ac_cxx_werror_flag" ||
3576 test ! -s conftest.err
3577 } && test -s conftest.$ac_objext; then
3578 ac_cv_prog_cxx_g=yes
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3597 if test "$ac_test_CXXFLAGS" = set; then
3598 CXXFLAGS=$ac_save_CXXFLAGS
3599 elif test $ac_cv_prog_cxx_g = yes; then
3600 if test "$GXX" = yes; then
3606 if test "$GXX" = yes; then
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618 if test "x$CC" != xcc; then
3619 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3620 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3622 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3623 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3625 set dummy $CC; ac_cc=`echo $2 |
3626 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3627 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3645 # Make sure it works both with $CC and with simple cc.
3646 # We do the test twice because some compilers refuse to overwrite an
3647 # existing .o file with -o, though they will create one.
3648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3650 if { (case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_try") 2>&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_try") 2>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); };
3669 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3670 if test "x$CC" != xcc; then
3671 # Test first that cc exists at all.
3672 if { ac_try='cc -c conftest.$ac_ext >&5'
3673 { (case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_try") 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3684 if { (case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_try") 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } &&
3693 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); };
3706 # cc exists but doesn't like -o.
3707 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3714 rm -f core conftest*
3717 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3721 { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3724 cat >>confdefs.h <<\_ACEOF
3725 #define NO_MINUS_C_MINUS_O 1
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3736 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3737 # On Suns, sometimes $CPP names a directory.
3738 if test -n "$CPP" && test -d "$CPP"; then
3741 if test -z "$CPP"; then
3742 if test "${ac_cv_prog_CPP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 # Double quotes because CPP needs to be expanded
3746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3749 for ac_c_preproc_warn_flag in '' yes
3751 # Use a header file that comes with gcc, so configuring glibc
3752 # with a fresh cross-compiler works.
3753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754 # <limits.h> exists even on freestanding compilers.
3755 # On the NeXT, cc -E runs the code through the compiler's parser,
3756 # not just through cpp. "Syntax error" is here to catch this case.
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3764 # include <limits.h>
3766 # include <assert.h>
3770 if { (ac_try="$ac_cpp conftest.$ac_ext"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3778 grep -v '^ *+' conftest.er1 >conftest.err
3780 cat conftest.err >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } >/dev/null && {
3783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3784 test ! -s conftest.err
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 # Broken: fails on valid input.
3795 rm -f conftest.err conftest.$ac_ext
3797 # OK, works on sane cases. Now check whether nonexistent headers
3798 # can be detected and how.
3799 cat >conftest.$ac_ext <<_ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 #include <ac_nonexistent.h>
3807 if { (ac_try="$ac_cpp conftest.$ac_ext"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 grep -v '^ *+' conftest.er1 >conftest.err
3817 cat conftest.err >&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } >/dev/null && {
3820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3821 test ! -s conftest.err
3823 # Broken: success on invalid input.
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 # Passes both tests.
3834 rm -f conftest.err conftest.$ac_ext
3837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838 rm -f conftest.err conftest.$ac_ext
3839 if $ac_preproc_ok; then
3851 { echo "$as_me:$LINENO: result: $CPP" >&5
3852 echo "${ECHO_T}$CPP" >&6; }
3854 for ac_c_preproc_warn_flag in '' yes
3856 # Use a header file that comes with gcc, so configuring glibc
3857 # with a fresh cross-compiler works.
3858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3859 # <limits.h> exists even on freestanding compilers.
3860 # On the NeXT, cc -E runs the code through the compiler's parser,
3861 # not just through cpp. "Syntax error" is here to catch this case.
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3869 # include <limits.h>
3871 # include <assert.h>
3875 if { (ac_try="$ac_cpp conftest.$ac_ext"
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3883 grep -v '^ *+' conftest.er1 >conftest.err
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } >/dev/null && {
3888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3889 test ! -s conftest.err
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3896 # Broken: fails on valid input.
3900 rm -f conftest.err conftest.$ac_ext
3902 # OK, works on sane cases. Now check whether nonexistent headers
3903 # can be detected and how.
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 #include <ac_nonexistent.h>
3912 if { (ac_try="$ac_cpp conftest.$ac_ext"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } >/dev/null && {
3925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3928 # Broken: success on invalid input.
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 # Passes both tests.
3939 rm -f conftest.err conftest.$ac_ext
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.err conftest.$ac_ext
3944 if $ac_preproc_ok; then
3947 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&5
3949 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3950 See \`config.log' for more details." >&2;}
3951 { (exit 1); exit 1; }; }
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3962 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_GREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 # Extract the first word of "grep ggrep" to use in msg output
3967 if test -z "$GREP"; then
3968 set dummy grep ggrep; ac_prog_name=$2
3969 if test "${ac_cv_path_GREP+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_path_GREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in grep ggrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3983 # Check for GNU ac_path_GREP and select it if it is found.
3984 # Check for GNU $ac_path_GREP
3985 case `"$ac_path_GREP" --version 2>&1` in
3987 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3990 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 echo 'GREP' >> "conftest.nl"
3997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_GREP="$ac_path_GREP"
4003 ac_path_GREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 $ac_path_GREP_found && break 3
4022 GREP="$ac_cv_path_GREP"
4023 if test -z "$GREP"; then
4024 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4030 ac_cv_path_GREP=$GREP
4035 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4036 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4037 GREP="$ac_cv_path_GREP"
4040 { echo "$as_me:$LINENO: checking for egrep" >&5
4041 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046 then ac_cv_path_EGREP="$GREP -E"
4048 # Extract the first word of "egrep" to use in msg output
4049 if test -z "$EGREP"; then
4050 set dummy egrep; ac_prog_name=$2
4051 if test "${ac_cv_path_EGREP+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 ac_path_EGREP_found=false
4055 # Loop through the user's path and test for each of PROGNAME-LIST
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in egrep; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4065 # Check for GNU ac_path_EGREP and select it if it is found.
4066 # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4072 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4075 cat "conftest.in" "conftest.in" >"conftest.tmp"
4076 mv "conftest.tmp" "conftest.in"
4077 cp "conftest.in" "conftest.nl"
4078 echo 'EGREP' >> "conftest.nl"
4079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081 ac_count=`expr $ac_count + 1`
4082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083 # Best one so far, save it but keep looking for a better one
4084 ac_cv_path_EGREP="$ac_path_EGREP"
4085 ac_path_EGREP_max=$ac_count
4087 # 10*(2^10) chars as input seems more than enough
4088 test $ac_count -gt 10 && break
4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 $ac_path_EGREP_found && break 3
4104 EGREP="$ac_cv_path_EGREP"
4105 if test -z "$EGREP"; then
4106 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4107 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4108 { (exit 1); exit 1; }; }
4112 ac_cv_path_EGREP=$EGREP
4118 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4119 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4120 EGREP="$ac_cv_path_EGREP"
4123 if test $ac_cv_c_compiler_gnu = yes; then
4124 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4125 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4126 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_pattern="Autoconf.*'x'"
4130 cat >conftest.$ac_ext <<_ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4140 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4141 ac_cv_prog_gcc_traditional=yes
4143 ac_cv_prog_gcc_traditional=no
4148 if test $ac_cv_prog_gcc_traditional = no; then
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160 ac_cv_prog_gcc_traditional=yes
4166 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4167 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4168 if test $ac_cv_prog_gcc_traditional = yes; then
4169 CC="$CC -traditional"
4173 BASECC=`basename $CC`
4175 if test "x$BASECC" = xgcc; then
4176 cat >>confdefs.h <<\_ACEOF
4182 # Extract the first word of "$CXX", so it can be a program name with args.
4183 set dummy $CXX; ac_word=$2
4184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4186 if test "${ac_cv_path_CXX+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4214 if test -n "$CXX"; then
4215 { echo "$as_me:$LINENO: result: $CXX" >&5
4216 echo "${ECHO_T}$CXX" >&6; }
4218 { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4223 if test ! -e $CXX; then
4224 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4225 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4226 { (exit 1); exit 1; }; }
4229 # Find a good install program. We prefer a C program (faster),
4230 # so one script is as good as another. But avoid the broken or
4231 # incompatible versions:
4232 # SysV /etc/install, /usr/sbin/install
4233 # SunOS /usr/etc/install
4234 # IRIX /sbin/install
4236 # AmigaOS /C/install, which installs bootblocks on floppy discs
4237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4240 # OS/2's system install, which has a completely different semantic
4241 # ./install, which can be erroneously created by make from ./install.sh.
4242 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4243 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4244 if test -z "$INSTALL"; then
4245 if test "${ac_cv_path_install+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir=.
4253 # Account for people who put trailing slashes in PATH elements.
4255 ./ | .// | /cC/* | \
4256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4257 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4260 # OSF1 and SCO ODT 3.0 have their own names for install.
4261 # Don't use installbsd from OSF since it installs stuff as root
4263 for ac_prog in ginstall scoinst install; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4266 if test $ac_prog = install &&
4267 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268 # AIX install. It has an incompatible calling convention.
4270 elif test $ac_prog = install &&
4271 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4272 # program-specific install script used by HP pwplus--don't use.
4275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4288 if test "${ac_cv_path_install+set}" = set; then
4289 INSTALL=$ac_cv_path_install
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for INSTALL within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 INSTALL=$ac_install_sh
4298 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4299 echo "${ECHO_T}$INSTALL" >&6; }
4301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4302 # It thinks the first close brace ends the variable substitution.
4303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4309 # Extract the first word of "mv", so it can be a program name with args.
4310 set dummy mv; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_path_MV+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4341 if test -n "$MV"; then
4342 { echo "$as_me:$LINENO: result: $MV" >&5
4343 echo "${ECHO_T}$MV" >&6; }
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4350 # Extract the first word of "rm", so it can be a program name with args.
4351 set dummy rm; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_path_REMOVE+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4381 REMOVE=$ac_cv_path_REMOVE
4382 if test -n "$REMOVE"; then
4383 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4384 echo "${ECHO_T}$REMOVE" >&6; }
4386 { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4391 # Extract the first word of "cp", so it can be a program name with args.
4392 set dummy cp; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_path_CP+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4423 if test -n "$CP"; then
4424 { echo "$as_me:$LINENO: result: $CP" >&5
4425 echo "${ECHO_T}$CP" >&6; }
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4432 # Extract the first word of "sed", so it can be a program name with args.
4433 set dummy sed; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_SED+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4464 if test -n "$SED"; then
4465 { echo "$as_me:$LINENO: result: $SED" >&5
4466 echo "${ECHO_T}$SED" >&6; }
4468 { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4473 # Extract the first word of "echo", so it can be a program name with args.
4474 set dummy echo; ac_word=$2
4475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_ECHO+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4504 ECHO=$ac_cv_path_ECHO
4505 if test -n "$ECHO"; then
4506 { echo "$as_me:$LINENO: result: $ECHO" >&5
4507 echo "${ECHO_T}$ECHO" >&6; }
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4514 # Extract the first word of "cmp", so it can be a program name with args.
4515 set dummy cmp; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_path_CMP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4546 if test -n "$CMP"; then
4547 { echo "$as_me:$LINENO: result: $CMP" >&5
4548 echo "${ECHO_T}$CMP" >&6; }
4550 { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4555 # Extract the first word of "tbl", so it can be a program name with args.
4556 set dummy tbl; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_path_TBL+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4587 if test -n "$TBL"; then
4588 { echo "$as_me:$LINENO: result: $TBL" >&5
4589 echo "${ECHO_T}$TBL" >&6; }
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4596 # Extract the first word of "ar", so it can be a program name with args.
4597 set dummy ar; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_path_AR+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4628 if test -n "$AR"; then
4629 { echo "$as_me:$LINENO: result: $AR" >&5
4630 echo "${ECHO_T}$AR" >&6; }
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4637 # Extract the first word of "openssl", so it can be a program name with args.
4638 set dummy openssl; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_path_OPENSSL+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4668 OPENSSL=$ac_cv_path_OPENSSL
4669 if test -n "$OPENSSL"; then
4670 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4671 echo "${ECHO_T}$OPENSSL" >&6; }
4673 { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4678 # Extract the first word of "mtx", so it can be a program name with args.
4679 set dummy mtx; ac_word=$2
4680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4682 if test "${ac_cv_path_MTX+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4710 if test -n "$MTX"; then
4711 { echo "$as_me:$LINENO: result: $MTX" >&5
4712 echo "${ECHO_T}$MTX" >&6; }
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4719 # Extract the first word of "dd", so it can be a program name with args.
4720 set dummy dd; ac_word=$2
4721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4723 if test "${ac_cv_path_DD+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4751 if test -n "$DD"; then
4752 { echo "$as_me:$LINENO: result: $DD" >&5
4753 echo "${ECHO_T}$DD" >&6; }
4755 { echo "$as_me:$LINENO: result: no" >&5
4756 echo "${ECHO_T}no" >&6; }
4760 # Extract the first word of "mkisofs", so it can be a program name with args.
4761 set dummy mkisofs; ac_word=$2
4762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4764 if test "${ac_cv_path_MKISOFS+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4791 MKISOFS=$ac_cv_path_MKISOFS
4792 if test -n "$MKISOFS"; then
4793 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4794 echo "${ECHO_T}$MKISOFS" >&6; }
4796 { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4801 # Extract the first word of "python", so it can be a program name with args.
4802 set dummy python; ac_word=$2
4803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4805 if test "${ac_cv_path_PYTHON+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4832 PYTHON=$ac_cv_path_PYTHON
4833 if test -n "$PYTHON"; then
4834 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4835 echo "${ECHO_T}$PYTHON" >&6; }
4837 { echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6; }
4842 # Extract the first word of "growisofs", so it can be a program name with args.
4843 set dummy growisofs; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4873 GROWISOFS=$ac_cv_path_GROWISOFS
4874 if test -n "$GROWISOFS"; then
4875 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4876 echo "${ECHO_T}$GROWISOFS" >&6; }
4878 { echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6; }
4883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4884 set dummy dvd+rw-mediainfo; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 case $DVDRWMEDIAINFO in
4892 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4914 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4915 if test -n "$DVDRWMEDIAINFO"; then
4916 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4924 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4925 set dummy dvd+rw-format; ac_word=$2
4926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4928 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 case $DVDRWFORMAT in
4933 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4955 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4956 if test -n "$DVDRWFORMAT"; then
4957 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4958 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4960 { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4965 # Extract the first word of "pkg-config", so it can be a program name with args.
4966 set dummy pkg-config; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4996 PKGCONFIG=$ac_cv_path_PKGCONFIG
4997 if test -n "$PKGCONFIG"; then
4998 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4999 echo "${ECHO_T}$PKGCONFIG" >&6; }
5001 { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5006 # Extract the first word of "qmake", so it can be a program name with args.
5007 set dummy qmake; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_path_QMAKE+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5037 QMAKE=$ac_cv_path_QMAKE
5038 if test -n "$QMAKE"; then
5039 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5040 echo "${ECHO_T}$QMAKE" >&6; }
5042 { echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6; }
5047 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5048 set dummy qmake-qt4; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5078 QMAKEQT4=$ac_cv_path_QMAKEQT4
5079 if test -n "$QMAKEQT4"; then
5080 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5081 echo "${ECHO_T}$QMAKEQT4" >&6; }
5083 { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5089 if test "x$WXCONFIG" = x; then
5092 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5093 set dummy ${WXCONFIG}; ac_word=$2
5094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5096 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5123 WXCONFIG=$ac_cv_path_WXCONFIG
5124 if test -n "$WXCONFIG"; then
5125 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5126 echo "${ECHO_T}$WXCONFIG" >&6; }
5128 { echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "cdrecord", so it can be a program name with args.
5135 set dummy cdrecord; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_CDRECORD+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5165 CDRECORD=$ac_cv_path_CDRECORD
5166 if test -n "$CDRECORD"; then
5167 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5168 echo "${ECHO_T}$CDRECORD" >&6; }
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5175 # Extract the first word of "pidof", so it can be a program name with args.
5176 set dummy pidof; ac_word=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_PIDOF+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5206 PIDOF=$ac_cv_path_PIDOF
5207 if test -n "$PIDOF"; then
5208 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5209 echo "${ECHO_T}$PIDOF" >&6; }
5211 { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5216 for ac_prog in gawk mawk nawk awk
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_prog_AWK+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test -n "$AWK"; then
5226 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_AWK="$ac_prog"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 if test -n "$AWK"; then
5247 { echo "$as_me:$LINENO: result: $AWK" >&5
5248 echo "${ECHO_T}$AWK" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5255 test -n "$AWK" && break
5258 # Some AWK programs fail, so test it and warn the user
5259 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5260 { if ((prog == $2) || (("(" prog ")") == $2) ||
5261 (("" prog "") == $2) ||
5262 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5264 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5265 The regex engine of $AWK is too broken to be used you
5266 might want to install GNU AWK.
5267 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5268 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5269 The regex engine of $AWK is too broken to be used you
5270 might want to install GNU AWK.
5271 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5272 { (exit 1); exit 1; }; }
5275 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5276 set dummy $THE_AWK; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_path_AWK+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5307 if test -n "$AWK"; then
5308 { echo "$as_me:$LINENO: result: $AWK" >&5
5309 echo "${ECHO_T}$AWK" >&6; }
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5318 test -n "$ARFLAG" || ARFLAGS="cr"
5329 # Check whether --enable-libtool was given.
5330 if test "${enable_libtool+set}" = set; then
5331 enableval=$enable_libtool;
5332 if test x$enableval = xno; then
5341 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5342 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5347 macro_version='2.2.6'
5348 macro_revision='1.3012'
5362 ltmain="$ac_aux_dir/ltmain.sh"
5364 # Make sure we can run config.sub.
5365 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5366 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5367 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5368 { (exit 1); exit 1; }; }
5370 { echo "$as_me:$LINENO: checking build system type" >&5
5371 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5372 if test "${ac_cv_build+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 ac_build_alias=$build_alias
5376 test "x$ac_build_alias" = x &&
5377 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5378 test "x$ac_build_alias" = x &&
5379 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5380 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5381 { (exit 1); exit 1; }; }
5382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5383 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5384 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5385 { (exit 1); exit 1; }; }
5388 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5389 echo "${ECHO_T}$ac_cv_build" >&6; }
5390 case $ac_cv_build in
5392 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5393 echo "$as_me: error: invalid value of canonical build" >&2;}
5394 { (exit 1); exit 1; }; };;
5397 ac_save_IFS=$IFS; IFS='-'
5403 # Remember, the first character of IFS is used to create $*,
5404 # except with old shells:
5407 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5410 { echo "$as_me:$LINENO: checking host system type" >&5
5411 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5412 if test "${ac_cv_host+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 if test "x$host_alias" = x; then
5416 ac_cv_host=$ac_cv_build
5418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5419 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5420 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5421 { (exit 1); exit 1; }; }
5425 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5426 echo "${ECHO_T}$ac_cv_host" >&6; }
5429 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5430 echo "$as_me: error: invalid value of canonical host" >&2;}
5431 { (exit 1); exit 1; }; };;
5434 ac_save_IFS=$IFS; IFS='-'
5440 # Remember, the first character of IFS is used to create $*,
5441 # except with old shells:
5444 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5447 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5448 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5449 if test "${ac_cv_path_SED+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5453 for ac_i in 1 2 3 4 5 6 7; do
5454 ac_script="$ac_script$as_nl$ac_script"
5456 echo "$ac_script" | sed 99q >conftest.sed
5457 $as_unset ac_script || ac_script=
5458 # Extract the first word of "sed gsed" to use in msg output
5459 if test -z "$SED"; then
5460 set dummy sed gsed; ac_prog_name=$2
5461 if test "${ac_cv_path_SED+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_path_SED_found=false
5465 # Loop through the user's path and test for each of PROGNAME-LIST
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_prog in sed gsed; do
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5474 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5475 # Check for GNU ac_path_SED and select it if it is found.
5476 # Check for GNU $ac_path_SED
5477 case `"$ac_path_SED" --version 2>&1` in
5479 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5485 cat "conftest.in" "conftest.in" >"conftest.tmp"
5486 mv "conftest.tmp" "conftest.in"
5487 cp "conftest.in" "conftest.nl"
5488 echo '' >> "conftest.nl"
5489 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491 ac_count=`expr $ac_count + 1`
5492 if test $ac_count -gt ${ac_path_SED_max-0}; then
5493 # Best one so far, save it but keep looking for a better one
5494 ac_cv_path_SED="$ac_path_SED"
5495 ac_path_SED_max=$ac_count
5497 # 10*(2^10) chars as input seems more than enough
5498 test $ac_count -gt 10 && break
5500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504 $ac_path_SED_found && break 3
5514 SED="$ac_cv_path_SED"
5515 if test -z "$SED"; then
5516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5517 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5518 { (exit 1); exit 1; }; }
5526 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5527 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5528 SED="$ac_cv_path_SED"
5531 test -z "$SED" && SED=sed
5532 Xsed="$SED -e 1s/^X//"
5544 { echo "$as_me:$LINENO: checking for fgrep" >&5
5545 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_FGREP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5550 then ac_cv_path_FGREP="$GREP -F"
5552 # Extract the first word of "fgrep" to use in msg output
5553 if test -z "$FGREP"; then
5554 set dummy fgrep; ac_prog_name=$2
5555 if test "${ac_cv_path_FGREP+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 ac_path_FGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in fgrep; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5568 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5569 # Check for GNU ac_path_FGREP and select it if it is found.
5570 # Check for GNU $ac_path_FGREP
5571 case `"$ac_path_FGREP" --version 2>&1` in
5573 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5576 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 echo 'FGREP' >> "conftest.nl"
5583 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 ac_count=`expr $ac_count + 1`
5586 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_FGREP="$ac_path_FGREP"
5589 ac_path_FGREP_max=$ac_count
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5598 $ac_path_FGREP_found && break 3
5608 FGREP="$ac_cv_path_FGREP"
5609 if test -z "$FGREP"; then
5610 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5612 { (exit 1); exit 1; }; }
5616 ac_cv_path_FGREP=$FGREP
5622 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5623 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5624 FGREP="$ac_cv_path_FGREP"
5627 test -z "$GREP" && GREP=grep
5647 # Check whether --with-gnu-ld was given.
5648 if test "${with_gnu_ld+set}" = set; then
5649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5655 if test "$GCC" = yes; then
5656 # Check if gcc -print-prog-name=ld gives a path.
5657 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5658 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5661 # gcc leaves a trailing carriage return which upsets mingw
5662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5667 # Accept absolute paths.
5669 re_direlt='/[^/][^/]*/\.\./'
5670 # Canonicalize the pathname of ld
5671 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5672 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5673 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5675 test -z "$LD" && LD="$ac_prog"
5678 # If it fails, then pretend we aren't using GCC.
5682 # If it is relative, then search for the first ld in PATH.
5686 elif test "$with_gnu_ld" = yes; then
5687 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5688 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5690 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5691 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5693 if test "${lt_cv_path_LD+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if test -z "$LD"; then
5697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5698 for ac_dir in $PATH; do
5700 test -z "$ac_dir" && ac_dir=.
5701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5702 lt_cv_path_LD="$ac_dir/$ac_prog"
5703 # Check to see if the program is GNU ld. I'd rather use --version,
5704 # but apparently some variants of GNU ld only accept -v.
5705 # Break only if it was the GNU/non-GNU ld that we prefer.
5706 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5707 *GNU* | *'with BFD'*)
5708 test "$with_gnu_ld" != no && break
5711 test "$with_gnu_ld" != yes && break
5718 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5723 if test -n "$LD"; then
5724 { echo "$as_me:$LINENO: result: $LD" >&5
5725 echo "${ECHO_T}$LD" >&6; }
5727 { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5730 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5731 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5732 { (exit 1); exit 1; }; }
5733 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5734 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5735 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5739 case `$LD -v 2>&1 </dev/null` in
5740 *GNU* | *'with BFD'*)
5741 lt_cv_prog_gnu_ld=yes
5744 lt_cv_prog_gnu_ld=no
5748 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5749 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5750 with_gnu_ld=$lt_cv_prog_gnu_ld
5760 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5761 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5762 if test "${lt_cv_path_NM+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 if test -n "$NM"; then
5766 # Let the user override the test.
5769 lt_nm_to_check="${ac_tool_prefix}nm"
5770 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771 lt_nm_to_check="$lt_nm_to_check nm"
5773 for lt_tmp_nm in $lt_nm_to_check; do
5774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5777 test -z "$ac_dir" && ac_dir=.
5778 tmp_nm="$ac_dir/$lt_tmp_nm"
5779 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5780 # Check to see if the nm accepts a BSD-compat flag.
5781 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5782 # nm: unknown option "B" ignored
5783 # Tru64's nm complains that /dev/null is an invalid object file
5784 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5785 */dev/null* | *'Invalid file or object type'*)
5786 lt_cv_path_NM="$tmp_nm -B"
5790 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5792 lt_cv_path_NM="$tmp_nm -p"
5796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5797 continue # so that we can try to find one that supports BSD flags
5806 : ${lt_cv_path_NM=no}
5809 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5810 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5811 if test "$lt_cv_path_NM" != "no"; then
5814 # Didn't find any BSD compatible name lister, look for dumpbin.
5815 if test -n "$ac_tool_prefix"; then
5816 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 if test -n "$DUMPBIN"; then
5826 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 DUMPBIN=$ac_cv_prog_DUMPBIN
5846 if test -n "$DUMPBIN"; then
5847 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5848 echo "${ECHO_T}$DUMPBIN" >&6; }
5850 { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5855 test -n "$DUMPBIN" && break
5858 if test -z "$DUMPBIN"; then
5859 ac_ct_DUMPBIN=$DUMPBIN
5860 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test -n "$ac_ct_DUMPBIN"; then
5870 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5890 if test -n "$ac_ct_DUMPBIN"; then
5891 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5892 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5894 { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5899 test -n "$ac_ct_DUMPBIN" && break
5902 if test "x$ac_ct_DUMPBIN" = x; then
5905 case $cross_compiling:$ac_tool_warned in
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet. If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet. If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5915 DUMPBIN=$ac_ct_DUMPBIN
5920 if test "$DUMPBIN" != ":"; then
5924 test -z "$NM" && NM=nm
5931 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5932 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5933 if test "${lt_cv_nm_interface+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 lt_cv_nm_interface="BSD nm"
5937 echo "int some_variable = 0;" > conftest.$ac_ext
5938 (eval echo "\"\$as_me:5938: $ac_compile\"" >&5)
5939 (eval "$ac_compile" 2>conftest.err)
5940 cat conftest.err >&5
5941 (eval echo "\"\$as_me:5941: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5942 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5943 cat conftest.err >&5
5944 (eval echo "\"\$as_me:5944: output\"" >&5)
5945 cat conftest.out >&5
5946 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5947 lt_cv_nm_interface="MS dumpbin"
5951 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5952 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5954 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5957 if test "$LN_S" = "ln -s"; then
5958 { echo "$as_me:$LINENO: result: yes" >&5
5959 echo "${ECHO_T}yes" >&6; }
5961 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5962 echo "${ECHO_T}no, using $LN_S" >&6; }
5965 # find the maximum length of command line arguments
5966 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5967 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5968 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 # On DJGPP, this test can blow up pretty badly due to problems in libc
5977 # (any single argument exceeding 2000 bytes causes a buffer overrun
5978 # during glob expansion). Even if it were fixed, the result of this
5979 # check would be larger than it should be.
5980 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5984 # Under GNU Hurd, this test is not required because there is
5985 # no limit to the length of command line arguments.
5986 # Libtool will interpret -1 as no limit whatsoever
5987 lt_cv_sys_max_cmd_len=-1;
5990 cygwin* | mingw* | cegcc*)
5991 # On Win9x/ME, this test blows up -- it succeeds, but takes
5992 # about 5 minutes as the teststring grows exponentially.
5993 # Worse, since 9x/ME are not pre-emptively multitasking,
5994 # you end up with a "frozen" computer, even though with patience
5995 # the test eventually succeeds (with a max line length of 256k).
5996 # Instead, let's just punt: use the minimum linelength reported by
5997 # all of the supported platforms: 8192 (on NT/2K/XP).
5998 lt_cv_sys_max_cmd_len=8192;
6002 # On AmigaOS with pdksh, this test takes hours, literally.
6003 # So we just punt and use a minimum line length of 8192.
6004 lt_cv_sys_max_cmd_len=8192;
6007 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6008 # This has been around since 386BSD, at least. Likely further.
6009 if test -x /sbin/sysctl; then
6010 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6011 elif test -x /usr/sbin/sysctl; then
6012 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6014 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6016 # And add a safety zone
6017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6022 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6023 lt_cv_sys_max_cmd_len=196608
6027 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6028 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6029 # nice to cause kernel panics so lets avoid the loop below.
6030 # First set a reasonable default.
6031 lt_cv_sys_max_cmd_len=16384
6033 if test -x /sbin/sysconfig; then
6034 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6035 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6040 lt_cv_sys_max_cmd_len=102400
6042 sysv5* | sco5v6* | sysv4.2uw2*)
6043 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6044 if test -n "$kargmax"; then
6045 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6047 lt_cv_sys_max_cmd_len=32768
6051 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6052 if test -n "$lt_cv_sys_max_cmd_len"; then
6053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6056 # Make teststring a little bigger before we do anything with it.
6057 # a 1K string should be a reasonable start.
6058 for i in 1 2 3 4 5 6 7 8 ; do
6059 teststring=$teststring$teststring
6061 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6062 # If test is not a shell built-in, we'll probably end up computing a
6063 # maximum length that is only half of the actual maximum length, but
6065 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6066 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6067 test $i != 17 # 1/2 MB should be enough
6070 teststring=$teststring$teststring
6072 # Only check the string length outside the loop.
6073 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6075 # Add a significant safety factor because C++ compilers can tack on
6076 # massive amounts of additional arguments before passing them to the
6077 # linker. It appears as though 1/2 is a usable value.
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6085 if test -n $lt_cv_sys_max_cmd_len ; then
6086 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6087 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6089 { echo "$as_me:$LINENO: result: none" >&5
6090 echo "${ECHO_T}none" >&6; }
6092 max_cmd_len=$lt_cv_sys_max_cmd_len
6103 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6104 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6105 # Try some XSI features
6108 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6110 && eval 'test $(( 1 + 1 )) -eq 2 \
6111 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6113 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6114 echo "${ECHO_T}$xsi_shell" >&6; }
6117 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6118 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6120 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6122 && lt_shell_append=yes
6123 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6124 echo "${ECHO_T}$lt_shell_append" >&6; }
6127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6137 # test EBCDIC or ASCII
6138 case `echo X|tr X '\101'` in
6139 A) # ASCII based system
6140 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6141 lt_SP2NL='tr \040 \012'
6142 lt_NL2SP='tr \015\012 \040\040'
6144 *) # EBCDIC based system
6145 lt_SP2NL='tr \100 \n'
6146 lt_NL2SP='tr \r\n \100\100'
6158 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6159 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6160 if test "${lt_cv_ld_reload_flag+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 lt_cv_ld_reload_flag='-r'
6165 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6166 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6167 reload_flag=$lt_cv_ld_reload_flag
6168 case $reload_flag in
6170 *) reload_flag=" $reload_flag" ;;
6172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175 if test "$GCC" = yes; then
6176 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 if test -n "$OBJDUMP"; then
6200 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 OBJDUMP=$ac_cv_prog_OBJDUMP
6220 if test -n "$OBJDUMP"; then
6221 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6222 echo "${ECHO_T}$OBJDUMP" >&6; }
6224 { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6230 if test -z "$ac_cv_prog_OBJDUMP"; then
6231 ac_ct_OBJDUMP=$OBJDUMP
6232 # Extract the first word of "objdump", so it can be a program name with args.
6233 set dummy objdump; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 if test -n "$ac_ct_OBJDUMP"; then
6240 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6260 if test -n "$ac_ct_OBJDUMP"; then
6261 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6262 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6268 if test "x$ac_ct_OBJDUMP" = x; then
6271 case $cross_compiling:$ac_tool_warned in
6273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet. If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&5
6276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet. If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6279 ac_tool_warned=yes ;;
6281 OBJDUMP=$ac_ct_OBJDUMP
6284 OBJDUMP="$ac_cv_prog_OBJDUMP"
6287 test -z "$OBJDUMP" && OBJDUMP=objdump
6297 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6298 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6299 if test "${lt_cv_deplibs_check_method+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 lt_cv_file_magic_cmd='$MAGIC_CMD'
6303 lt_cv_file_magic_test_file=
6304 lt_cv_deplibs_check_method='unknown'
6305 # Need to set the preceding variable on all platforms that support
6306 # interlibrary dependencies.
6307 # 'none' -- dependencies not supported.
6308 # `unknown' -- same as none, but documents that we really don't know.
6309 # 'pass_all' -- all dependencies passed with no checks.
6310 # 'test_compile' -- check by making test program.
6311 # 'file_magic [[regex]]' -- check by looking for files in library path
6312 # which responds to the $file_magic_cmd with a given extended regex.
6313 # If you have `file' or equivalent on your system and you're not sure
6314 # whether `pass_all' will *always* work, you probably want this one.
6318 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method=pass_all
6326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6327 lt_cv_file_magic_cmd='/usr/bin/file -L'
6328 lt_cv_file_magic_test_file=/shlib/libc.so
6332 # func_win32_libid is a shell function defined in ltmain.sh
6333 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6334 lt_cv_file_magic_cmd='func_win32_libid'
6338 # Base MSYS/MinGW do not provide the 'file' command needed by
6339 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6340 # unless we find 'file', for example because we are cross-compiling.
6341 if ( file / ) >/dev/null 2>&1; then
6342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343 lt_cv_file_magic_cmd='func_win32_libid'
6345 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6346 lt_cv_file_magic_cmd='$OBJDUMP -f'
6351 # use the weaker test based on 'objdump'. See mingw*.
6352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6353 lt_cv_file_magic_cmd='$OBJDUMP -f'
6356 darwin* | rhapsody*)
6357 lt_cv_deplibs_check_method=pass_all
6360 freebsd* | dragonfly*)
6361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6364 # Not sure whether the presence of OpenBSD here was a mistake.
6365 # Let's accept both of them until this is cleared up.
6366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6367 lt_cv_file_magic_cmd=/usr/bin/file
6368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6372 lt_cv_deplibs_check_method=pass_all
6377 lt_cv_deplibs_check_method=pass_all
6380 hpux10.20* | hpux11*)
6381 lt_cv_file_magic_cmd=/usr/bin/file
6384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6388 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]'
6389 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6393 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6399 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6403 irix5* | irix6* | nonstopux*)
6405 *-32|*"-32 ") libmagic=32-bit;;
6406 *-n32|*"-n32 ") libmagic=N32;;
6407 *-64|*"-64 ") libmagic=64-bit;;
6408 *) libmagic=never-match;;
6410 lt_cv_deplibs_check_method=pass_all
6413 # This must be Linux ELF.
6414 linux* | k*bsd*-gnu)
6415 lt_cv_deplibs_check_method=pass_all
6419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6428 lt_cv_file_magic_cmd=/usr/bin/file
6429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6433 lt_cv_deplibs_check_method=pass_all
6437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6444 osf3* | osf4* | osf5*)
6445 lt_cv_deplibs_check_method=pass_all
6449 lt_cv_deplibs_check_method=pass_all
6453 lt_cv_deplibs_check_method=pass_all
6456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6457 lt_cv_deplibs_check_method=pass_all
6461 case $host_vendor in
6463 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]'
6464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6467 lt_cv_deplibs_check_method=pass_all
6470 lt_cv_file_magic_cmd='/bin/file'
6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6474 lt_cv_file_magic_cmd='/bin/file'
6475 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6476 lt_cv_file_magic_test_file=/lib/libc.so
6479 lt_cv_deplibs_check_method=pass_all
6482 lt_cv_deplibs_check_method=pass_all
6488 lt_cv_deplibs_check_method=pass_all
6493 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6494 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6495 file_magic_cmd=$lt_cv_file_magic_cmd
6496 deplibs_check_method=$lt_cv_deplibs_check_method
6497 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ar; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_AR+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 if test -n "$AR"; then
6519 ac_cv_prog_AR="$AR" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_AR="${ac_tool_prefix}ar"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 if test -n "$AR"; then
6540 { echo "$as_me:$LINENO: result: $AR" >&5
6541 echo "${ECHO_T}$AR" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6549 if test -z "$ac_cv_prog_AR"; then
6551 # Extract the first word of "ar", so it can be a program name with args.
6552 set dummy ar; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 if test -n "$ac_ct_AR"; then
6559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_ac_ct_AR="ar"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6581 echo "${ECHO_T}$ac_ct_AR" >&6; }
6583 { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6587 if test "x$ac_ct_AR" = x; then
6590 case $cross_compiling:$ac_tool_warned in
6592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet. If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&5
6595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet. If you think this
6597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6598 ac_tool_warned=yes ;;
6606 test -z "$AR" && AR=ar
6607 test -z "$AR_FLAGS" && AR_FLAGS=cru
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}strip; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_STRIP+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 if test -n "$STRIP"; then
6628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 STRIP=$ac_cv_prog_STRIP
6648 if test -n "$STRIP"; then
6649 { echo "$as_me:$LINENO: result: $STRIP" >&5
6650 echo "${ECHO_T}$STRIP" >&6; }
6652 { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6658 if test -z "$ac_cv_prog_STRIP"; then
6660 # Extract the first word of "strip", so it can be a program name with args.
6661 set dummy strip; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 if test -n "$ac_ct_STRIP"; then
6668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_ac_ct_STRIP="strip"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6688 if test -n "$ac_ct_STRIP"; then
6689 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6690 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6692 { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6696 if test "x$ac_ct_STRIP" = x; then
6699 case $cross_compiling:$ac_tool_warned in
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet. If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet. If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6712 STRIP="$ac_cv_prog_STRIP"
6715 test -z "$STRIP" && STRIP=:
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_prog_RANLIB+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 if test -n "$RANLIB"; then
6731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6753 echo "${ECHO_T}$RANLIB" >&6; }
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762 ac_ct_RANLIB=$RANLIB
6763 # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 if test -n "$ac_ct_RANLIB"; then
6771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_RANLIB="ranlib"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6793 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6795 { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6799 if test "x$ac_ct_RANLIB" = x; then
6802 case $cross_compiling:$ac_tool_warned in
6804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet. If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&5
6807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6808 whose name does not start with the host triplet. If you think this
6809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6810 ac_tool_warned=yes ;;
6812 RANLIB=$ac_ct_RANLIB
6815 RANLIB="$ac_cv_prog_RANLIB"
6818 test -z "$RANLIB" && RANLIB=:
6825 # Determine commands to create old-style static archives.
6826 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6827 old_postinstall_cmds='chmod 644 $oldlib'
6828 old_postuninstall_cmds=
6830 if test -n "$RANLIB"; then
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6836 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6839 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6875 # If no C compiler was specified, use CC.
6878 # If no C compiler flags were specified, use CFLAGS.
6879 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6881 # Allow CC to be a program name with arguments.
6885 # Check for command to grab the raw symbol name followed by C symbol from nm.
6886 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6887 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6888 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 # These are sane defaults that work on at least a few old systems.
6893 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6895 # Character class describing NM global symbol codes.
6896 symcode='[BCDEGRST]'
6898 # Regexp to match symbols that can be accessed directly from C.
6899 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6901 # Define system-specific variables.
6906 cygwin* | mingw* | pw32* | cegcc*)
6907 symcode='[ABCDGISTW]'
6910 if test "$host_cpu" = ia64; then
6911 symcode='[ABCDEGRST]'
6915 symcode='[BCDEGRST]'
6918 symcode='[BCDEGQRST]'
6929 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6937 # If we're using GNU nm, then use its standard symbol codes.
6938 case `$NM -V 2>&1` in
6939 *GNU* | *'with BFD'*)
6940 symcode='[ABCDGIRSTW]' ;;
6943 # Transform an extracted symbol line into a proper C declaration.
6944 # Some systems (esp. on ia64) link data and code symbols differently,
6945 # so use this general approach.
6946 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6948 # Transform an extracted symbol line into symbol name and symbol address
6949 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6950 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'"
6952 # Handle CRLF in mingw tool chain
6956 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6960 # Try without a prefix underscore, then with it.
6961 for ac_symprfx in "" "_"; do
6963 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6964 symxfrm="\\1 $ac_symprfx\\2 \\2"
6966 # Write the raw and C identifiers.
6967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6968 # Fake it for dumpbin and say T for any non-static function
6969 # and D for any global variable.
6970 # Also find C++ and __fastcall symbols from MSVC++,
6971 # which start with @ or ?.
6972 lt_cv_sys_global_symbol_pipe="$AWK '"\
6973 " {last_section=section; section=\$ 3};"\
6974 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6975 " \$ 0!~/External *\|/{next};"\
6976 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6977 " {if(hide[section]) next};"\
6978 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6979 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6980 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6981 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6982 " ' prfx=^$ac_symprfx"
6984 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6987 # Check to see that the pipe works correctly.
6991 cat > conftest.$ac_ext <<_LT_EOF
6996 void nm_test_func(void);
6997 void nm_test_func(void){}
7001 int main(){nm_test_var='a';nm_test_func();return(0);}
7004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 (eval $ac_compile) 2>&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; then
7009 # Now try to grab the symbols.
7011 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7012 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && test -s "$nlist"; then
7016 # Try sorting and uniquifying the output.
7017 if sort "$nlist" | uniq > "$nlist"T; then
7018 mv -f "$nlist"T "$nlist"
7023 # Make sure that we snagged all the symbols we need.
7024 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7025 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7026 cat <<_LT_EOF > conftest.$ac_ext
7032 # Now generate the symbol file.
7033 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7035 cat <<_LT_EOF >> conftest.$ac_ext
7037 /* The mapping between symbol names and symbols. */
7042 lt__PROGRAM__LTX_preloaded_symbols[] =
7044 { "@PROGRAM@", (void *) 0 },
7046 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7047 cat <<\_LT_EOF >> conftest.$ac_ext
7051 /* This works around a problem in FreeBSD linker */
7052 #ifdef FREEBSD_WORKAROUND
7053 static const void *lt_preloaded_setup() {
7054 return lt__PROGRAM__LTX_preloaded_symbols;
7062 # Now try linking the two files.
7063 mv conftest.$ac_objext conftstm.$ac_objext
7064 lt_save_LIBS="$LIBS"
7065 lt_save_CFLAGS="$CFLAGS"
7066 LIBS="conftstm.$ac_objext"
7067 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069 (eval $ac_link) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7075 LIBS="$lt_save_LIBS"
7076 CFLAGS="$lt_save_CFLAGS"
7078 echo "cannot find nm_test_func in $nlist" >&5
7081 echo "cannot find nm_test_var in $nlist" >&5
7084 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7087 echo "$progname: failed program was:" >&5
7088 cat conftest.$ac_ext >&5
7090 rm -rf conftest* conftst*
7092 # Do not use the global_symbol_pipe unless it works.
7093 if test "$pipe_works" = yes; then
7096 lt_cv_sys_global_symbol_pipe=
7102 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7103 lt_cv_sys_global_symbol_to_cdecl=
7105 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7106 { echo "$as_me:$LINENO: result: failed" >&5
7107 echo "${ECHO_T}failed" >&6; }
7109 { echo "$as_me:$LINENO: result: ok" >&5
7110 echo "${ECHO_T}ok" >&6; }
7134 # Check whether --enable-libtool-lock was given.
7135 if test "${enable_libtool_lock+set}" = set; then
7136 enableval=$enable_libtool_lock;
7139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7141 # Some flags need to be propagated to the compiler or linker for good
7145 # Find out which ABI we are using.
7146 echo 'int i;' > conftest.$ac_ext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148 (eval $ac_compile) 2>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; then
7152 case `/usr/bin/file conftest.$ac_objext` in
7164 # Find out which ABI we are using.
7165 echo '#line 7165 "configure"' > conftest.$ac_ext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167 (eval $ac_compile) 2>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; then
7171 if test "$lt_cv_prog_gnu_ld" = yes; then
7172 case `/usr/bin/file conftest.$ac_objext` in
7174 LD="${LD-ld} -melf32bsmip"
7177 LD="${LD-ld} -melf32bmipn32"
7180 LD="${LD-ld} -melf64bmip"
7184 case `/usr/bin/file conftest.$ac_objext` in
7200 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7201 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205 (eval $ac_compile) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; then
7209 case `/usr/bin/file conftest.o` in
7212 x86_64-*kfreebsd*-gnu)
7213 LD="${LD-ld} -m elf_i386_fbsd"
7216 LD="${LD-ld} -m elf_i386"
7218 ppc64-*linux*|powerpc64-*linux*)
7219 LD="${LD-ld} -m elf32ppclinux"
7222 LD="${LD-ld} -m elf_s390"
7225 LD="${LD-ld} -m elf32_sparc"
7231 x86_64-*kfreebsd*-gnu)
7232 LD="${LD-ld} -m elf_x86_64_fbsd"
7235 LD="${LD-ld} -m elf_x86_64"
7237 ppc*-*linux*|powerpc*-*linux*)
7238 LD="${LD-ld} -m elf64ppc"
7240 s390*-*linux*|s390*-*tpf*)
7241 LD="${LD-ld} -m elf64_s390"
7244 LD="${LD-ld} -m elf64_sparc"
7254 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7255 SAVE_CFLAGS="$CFLAGS"
7256 CFLAGS="$CFLAGS -belf"
7257 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7258 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7259 if test "${lt_cv_cc_needs_belf+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268 cat >conftest.$ac_ext <<_ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (ac_try="$ac_link"
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_link") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest$ac_exeext &&
7300 $as_test_x conftest$ac_exeext; then
7301 lt_cv_cc_needs_belf=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 lt_cv_cc_needs_belf=no
7309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7310 conftest$ac_exeext conftest.$ac_ext
7312 ac_cpp='$CPP $CPPFLAGS'
7313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7318 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7319 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7320 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7321 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7322 CFLAGS="$SAVE_CFLAGS"
7326 # Find out which ABI we are using.
7327 echo 'int i;' > conftest.$ac_ext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; then
7333 case `/usr/bin/file conftest.o` in
7335 case $lt_cv_prog_gnu_ld in
7336 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7338 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7350 need_locks="$enable_libtool_lock"
7354 rhapsody* | darwin*)
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 if test -n "$DSYMUTIL"; then
7364 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7384 if test -n "$DSYMUTIL"; then
7385 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7386 echo "${ECHO_T}$DSYMUTIL" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7394 if test -z "$ac_cv_prog_DSYMUTIL"; then
7395 ac_ct_DSYMUTIL=$DSYMUTIL
7396 # Extract the first word of "dsymutil", so it can be a program name with args.
7397 set dummy dsymutil; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 if test -n "$ac_ct_DSYMUTIL"; then
7404 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir=.
7411 for ac_exec_ext in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7424 if test -n "$ac_ct_DSYMUTIL"; then
7425 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7426 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7432 if test "x$ac_ct_DSYMUTIL" = x; then
7435 case $cross_compiling:$ac_tool_warned in
7437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7438 whose name does not start with the host triplet. If you think this
7439 configuration is useful to you, please write to autoconf@gnu.org." >&5
7440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7441 whose name does not start with the host triplet. If you think this
7442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7443 ac_tool_warned=yes ;;
7445 DSYMUTIL=$ac_ct_DSYMUTIL
7448 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7451 if test -n "$ac_tool_prefix"; then
7452 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 if test -n "$NMEDIT"; then
7460 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 NMEDIT=$ac_cv_prog_NMEDIT
7480 if test -n "$NMEDIT"; then
7481 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7482 echo "${ECHO_T}$NMEDIT" >&6; }
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7490 if test -z "$ac_cv_prog_NMEDIT"; then
7491 ac_ct_NMEDIT=$NMEDIT
7492 # Extract the first word of "nmedit", so it can be a program name with args.
7493 set dummy nmedit; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 if test -n "$ac_ct_NMEDIT"; then
7500 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7520 if test -n "$ac_ct_NMEDIT"; then
7521 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7522 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7528 if test "x$ac_ct_NMEDIT" = x; then
7531 case $cross_compiling:$ac_tool_warned in
7533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7534 whose name does not start with the host triplet. If you think this
7535 configuration is useful to you, please write to autoconf@gnu.org." >&5
7536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7537 whose name does not start with the host triplet. If you think this
7538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7539 ac_tool_warned=yes ;;
7541 NMEDIT=$ac_ct_NMEDIT
7544 NMEDIT="$ac_cv_prog_NMEDIT"
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_LIPO+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 if test -n "$LIPO"; then
7556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 LIPO=$ac_cv_prog_LIPO
7576 if test -n "$LIPO"; then
7577 { echo "$as_me:$LINENO: result: $LIPO" >&5
7578 echo "${ECHO_T}$LIPO" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7586 if test -z "$ac_cv_prog_LIPO"; then
7588 # Extract the first word of "lipo", so it can be a program name with args.
7589 set dummy lipo; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 if test -n "$ac_ct_LIPO"; then
7596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_ac_ct_LIPO="lipo"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7616 if test -n "$ac_ct_LIPO"; then
7617 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7618 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7624 if test "x$ac_ct_LIPO" = x; then
7627 case $cross_compiling:$ac_tool_warned in
7629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7630 whose name does not start with the host triplet. If you think this
7631 configuration is useful to you, please write to autoconf@gnu.org." >&5
7632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7633 whose name does not start with the host triplet. If you think this
7634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7635 ac_tool_warned=yes ;;
7640 LIPO="$ac_cv_prog_LIPO"
7643 if test -n "$ac_tool_prefix"; then
7644 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}otool; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_OTOOL+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 if test -n "$OTOOL"; then
7652 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 OTOOL=$ac_cv_prog_OTOOL
7672 if test -n "$OTOOL"; then
7673 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7674 echo "${ECHO_T}$OTOOL" >&6; }
7676 { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7682 if test -z "$ac_cv_prog_OTOOL"; then
7684 # Extract the first word of "otool", so it can be a program name with args.
7685 set dummy otool; ac_word=$2
7686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7688 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 if test -n "$ac_ct_OTOOL"; then
7692 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701 ac_cv_prog_ac_ct_OTOOL="otool"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712 if test -n "$ac_ct_OTOOL"; then
7713 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7714 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7716 { echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6; }
7720 if test "x$ac_ct_OTOOL" = x; then
7723 case $cross_compiling:$ac_tool_warned in
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet. If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet. If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7736 OTOOL="$ac_cv_prog_OTOOL"
7739 if test -n "$ac_tool_prefix"; then
7740 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 if test -n "$OTOOL64"; then
7748 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 OTOOL64=$ac_cv_prog_OTOOL64
7768 if test -n "$OTOOL64"; then
7769 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7770 echo "${ECHO_T}$OTOOL64" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7778 if test -z "$ac_cv_prog_OTOOL64"; then
7779 ac_ct_OTOOL64=$OTOOL64
7780 # Extract the first word of "otool64", so it can be a program name with args.
7781 set dummy otool64; ac_word=$2
7782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 if test -n "$ac_ct_OTOOL64"; then
7788 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_ac_ct_OTOOL64="otool64"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7808 if test -n "$ac_ct_OTOOL64"; then
7809 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7810 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7812 { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7816 if test "x$ac_ct_OTOOL64" = x; then
7819 case $cross_compiling:$ac_tool_warned in
7821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7822 whose name does not start with the host triplet. If you think this
7823 configuration is useful to you, please write to autoconf@gnu.org." >&5
7824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7825 whose name does not start with the host triplet. If you think this
7826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7827 ac_tool_warned=yes ;;
7829 OTOOL64=$ac_ct_OTOOL64
7832 OTOOL64="$ac_cv_prog_OTOOL64"
7861 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7862 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7863 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 lt_cv_apple_cc_single_mod=no
7867 if test -z "${LT_MULTI_MODULE}"; then
7868 # By default we will add the -single_module flag. You can override
7869 # by either setting the environment variable LT_MULTI_MODULE
7870 # non-empty at configure time, or by adding -multi_module to the
7872 rm -rf libconftest.dylib*
7873 echo "int foo(void){return 1;}" > conftest.c
7874 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7875 -dynamiclib -Wl,-single_module conftest.c" >&5
7876 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7877 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7879 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7880 lt_cv_apple_cc_single_mod=yes
7882 cat conftest.err >&5
7884 rm -rf libconftest.dylib*
7888 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7889 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7890 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7891 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7892 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7895 lt_cv_ld_exported_symbols_list=no
7896 save_LDFLAGS=$LDFLAGS
7897 echo "_main" > conftest.sym
7898 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_link") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest$ac_exeext &&
7931 $as_test_x conftest$ac_exeext; then
7932 lt_cv_ld_exported_symbols_list=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 lt_cv_ld_exported_symbols_list=no
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS="$save_LDFLAGS"
7945 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7946 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7948 rhapsody* | darwin1.[012])
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952 darwin*) # darwin 5.x on
7953 # if running on 10.5 or later, the deployment target defaults
7954 # to the OS version, if on x86, and 10.4, the deployment
7955 # target defaults to 10.4. Don't you love it?
7956 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7957 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7960 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7962 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7966 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7967 _lt_dar_single_mod='$single_module'
7969 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7970 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7972 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7974 if test "$DSYMUTIL" != ":"; then
7975 _lt_dsymutil='~$DSYMUTIL $lib || :'
7982 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7984 if test "${ac_cv_header_stdc+set}" = set; then
7985 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
8023 ac_cv_header_stdc=yes
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 ac_cv_header_stdc=no
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 if test $ac_cv_header_stdc = yes; then
8034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045 $EGREP "memchr" >/dev/null 2>&1; then
8048 ac_cv_header_stdc=no
8054 if test $ac_cv_header_stdc = yes; then
8055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8066 $EGREP "free" >/dev/null 2>&1; then
8069 ac_cv_header_stdc=no
8075 if test $ac_cv_header_stdc = yes; then
8076 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8077 if test "$cross_compiling" = yes; then
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8088 #if ((' ' & 0x0FF) == 0x020)
8089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8092 # define ISLOWER(c) \
8093 (('a' <= (c) && (c) <= 'i') \
8094 || ('j' <= (c) && (c) <= 'r') \
8095 || ('s' <= (c) && (c) <= 'z'))
8096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8104 for (i = 0; i < 256; i++)
8105 if (XOR (islower (i), ISLOWER (i))
8106 || toupper (i) != TOUPPER (i))
8111 rm -f conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8133 echo "$as_me: program exited with status $ac_status" >&5
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_cv_header_stdc=no
8140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8146 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8147 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8148 if test $ac_cv_header_stdc = yes; then
8150 cat >>confdefs.h <<\_ACEOF
8151 #define STDC_HEADERS 1
8156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8166 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8167 inttypes.h stdint.h unistd.h
8169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8183 #include <$ac_header>
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 eval "$as_ac_Header=yes"
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 eval "$as_ac_Header=no"
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 ac_res=`eval echo '${'$as_ac_Header'}'`
8213 { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8216 cat >>confdefs.h <<_ACEOF
8217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8226 for ac_header in dlfcn.h
8228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8242 #include <$ac_header>
8244 rm -f conftest.$ac_objext
8245 if { (ac_try="$ac_compile"
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 eval "$as_ac_Header=yes"
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 eval "$as_ac_Header=no"
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 ac_res=`eval echo '${'$as_ac_Header'}'`
8272 { echo "$as_me:$LINENO: result: $ac_res" >&5
8273 echo "${ECHO_T}$ac_res" >&6; }
8274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8275 cat >>confdefs.h <<_ACEOF
8276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8286 ac_cpp='$CXXCPP $CPPFLAGS'
8287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8290 if test -z "$CXX"; then
8291 if test -n "$CCC"; then
8294 if test -n "$ac_tool_prefix"; then
8295 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301 if test "${ac_cv_prog_CXX+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 if test -n "$CXX"; then
8305 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 if test -n "$CXX"; then
8326 { echo "$as_me:$LINENO: result: $CXX" >&5
8327 echo "${ECHO_T}$CXX" >&6; }
8329 { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8334 test -n "$CXX" && break
8337 if test -z "$CXX"; then
8339 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8341 # Extract the first word of "$ac_prog", so it can be a program name with args.
8342 set dummy $ac_prog; ac_word=$2
8343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8345 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 if test -n "$ac_ct_CXX"; then
8349 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_prog_ac_ct_CXX="$ac_prog"
8359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8369 if test -n "$ac_ct_CXX"; then
8370 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8371 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8373 { echo "$as_me:$LINENO: result: no" >&5
8374 echo "${ECHO_T}no" >&6; }
8378 test -n "$ac_ct_CXX" && break
8381 if test "x$ac_ct_CXX" = x; then
8384 case $cross_compiling:$ac_tool_warned in
8386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8387 whose name does not start with the host triplet. If you think this
8388 configuration is useful to you, please write to autoconf@gnu.org." >&5
8389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8390 whose name does not start with the host triplet. If you think this
8391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8392 ac_tool_warned=yes ;;
8400 # Provide some information about the compiler.
8401 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8402 ac_compiler=`set X $ac_compile; echo $2`
8403 { (ac_try="$ac_compiler --version >&5"
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compiler --version >&5") 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }
8413 { (ac_try="$ac_compiler -v >&5"
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_compiler -v >&5") 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }
8423 { (ac_try="$ac_compiler -V >&5"
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compiler -V >&5") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }
8434 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8435 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8436 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8466 grep -v '^ *+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_cxx_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8486 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8487 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8488 GXX=`test $ac_compiler_gnu = yes && echo yes`
8489 ac_test_CXXFLAGS=${CXXFLAGS+set}
8490 ac_save_CXXFLAGS=$CXXFLAGS
8491 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8492 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8493 if test "${ac_cv_prog_cxx_g+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8497 ac_cxx_werror_flag=yes
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8524 grep -v '^ *+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_cxx_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest.$ac_objext; then
8532 ac_cv_prog_cxx_g=yes
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_cxx_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.$ac_objext; then
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_cxx_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_prog_cxx_g=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8627 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8628 if test "$ac_test_CXXFLAGS" = set; then
8629 CXXFLAGS=$ac_save_CXXFLAGS
8630 elif test $ac_cv_prog_cxx_g = yes; then
8631 if test "$GXX" = yes; then
8637 if test "$GXX" = yes; then
8644 ac_cpp='$CPP $CPPFLAGS'
8645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8649 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8650 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8651 (test "X$CXX" != "Xg++"))) ; then
8653 ac_cpp='$CXXCPP $CPPFLAGS'
8654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8657 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8658 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8659 if test -z "$CXXCPP"; then
8660 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 # Double quotes because CXXCPP needs to be expanded
8664 for CXXCPP in "$CXX -E" "/lib/cpp"
8667 for ac_cxx_preproc_warn_flag in '' yes
8669 # Use a header file that comes with gcc, so configuring glibc
8670 # with a fresh cross-compiler works.
8671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 # <limits.h> exists even on freestanding compilers.
8673 # On the NeXT, cc -E runs the code through the compiler's parser,
8674 # not just through cpp. "Syntax error" is here to catch this case.
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8682 # include <limits.h>
8684 # include <assert.h>
8688 if { (ac_try="$ac_cpp conftest.$ac_ext"
8690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691 *) ac_try_echo=$ac_try;;
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8696 grep -v '^ *+' conftest.er1 >conftest.err
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } >/dev/null && {
8701 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8702 test ! -s conftest.err
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 # Broken: fails on valid input.
8713 rm -f conftest.err conftest.$ac_ext
8715 # OK, works on sane cases. Now check whether nonexistent headers
8716 # can be detected and how.
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 #include <ac_nonexistent.h>
8725 if { (ac_try="$ac_cpp conftest.$ac_ext"
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev/null && {
8738 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8739 test ! -s conftest.err
8741 # Broken: success on invalid input.
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 # Passes both tests.
8752 rm -f conftest.err conftest.$ac_ext
8755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8756 rm -f conftest.err conftest.$ac_ext
8757 if $ac_preproc_ok; then
8762 ac_cv_prog_CXXCPP=$CXXCPP
8765 CXXCPP=$ac_cv_prog_CXXCPP
8767 ac_cv_prog_CXXCPP=$CXXCPP
8769 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8770 echo "${ECHO_T}$CXXCPP" >&6; }
8772 for ac_cxx_preproc_warn_flag in '' yes
8774 # Use a header file that comes with gcc, so configuring glibc
8775 # with a fresh cross-compiler works.
8776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8777 # <limits.h> exists even on freestanding compilers.
8778 # On the NeXT, cc -E runs the code through the compiler's parser,
8779 # not just through cpp. "Syntax error" is here to catch this case.
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8787 # include <limits.h>
8789 # include <assert.h>
8793 if { (ac_try="$ac_cpp conftest.$ac_ext"
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } >/dev/null && {
8806 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8807 test ! -s conftest.err
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 # Broken: fails on valid input.
8818 rm -f conftest.err conftest.$ac_ext
8820 # OK, works on sane cases. Now check whether nonexistent headers
8821 # can be detected and how.
8822 cat >conftest.$ac_ext <<_ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8828 #include <ac_nonexistent.h>
8830 if { (ac_try="$ac_cpp conftest.$ac_ext"
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8838 grep -v '^ *+' conftest.er1 >conftest.err
8840 cat conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } >/dev/null && {
8843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8844 test ! -s conftest.err
8846 # Broken: success on invalid input.
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 # Passes both tests.
8857 rm -f conftest.err conftest.$ac_ext
8860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8861 rm -f conftest.err conftest.$ac_ext
8862 if $ac_preproc_ok; then
8865 _lt_caught_CXX_error=yes
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8875 _lt_caught_CXX_error=yes
8883 # Check whether --enable-shared was given.
8884 if test "${enable_shared+set}" = set; then
8885 enableval=$enable_shared; p=${PACKAGE-default}
8887 yes) enable_shared=yes ;;
8888 no) enable_shared=no ;;
8891 # Look at the argument we got. We use all the common list separators.
8892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8893 for pkg in $enableval; do
8895 if test "X$pkg" = "X$p"; then
8912 # Check whether --enable-static was given.
8913 if test "${enable_static+set}" = set; then
8914 enableval=$enable_static; p=${PACKAGE-default}
8916 yes) enable_static=yes ;;
8917 no) enable_static=no ;;
8920 # Look at the argument we got. We use all the common list separators.
8921 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8922 for pkg in $enableval; do
8924 if test "X$pkg" = "X$p"; then
8953 # Check whether --with-pic was given.
8954 if test "${with_pic+set}" = set; then
8955 withval=$with_pic; pic_mode="$withval"
8961 test -z "$pic_mode" && pic_mode=default
8969 # Check whether --enable-fast-install was given.
8970 if test "${enable_fast_install+set}" = set; then
8971 enableval=$enable_fast_install; p=${PACKAGE-default}
8973 yes) enable_fast_install=yes ;;
8974 no) enable_fast_install=no ;;
8976 enable_fast_install=no
8977 # Look at the argument we got. We use all the common list separators.
8978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8979 for pkg in $enableval; do
8981 if test "X$pkg" = "X$p"; then
8982 enable_fast_install=yes
8989 enable_fast_install=yes
9002 # This can be used to rebuild libtool when needed
9003 LIBTOOL_DEPS="$ltmain"
9005 # Always use our own libtool.
9006 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9032 test -z "$LN_S" && LN_S="ln -s"
9047 if test -n "${ZSH_VERSION+set}" ; then
9048 setopt NO_GLOB_SUBST
9051 { echo "$as_me:$LINENO: checking for objdir" >&5
9052 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9053 if test "${lt_cv_objdir+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 rm -f .libs 2>/dev/null
9057 mkdir .libs 2>/dev/null
9058 if test -d .libs; then
9061 # MS-DOS does not allow filenames that begin with a dot.
9064 rmdir .libs 2>/dev/null
9066 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9067 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9068 objdir=$lt_cv_objdir
9074 cat >>confdefs.h <<_ACEOF
9075 #define LT_OBJDIR "$lt_cv_objdir/"
9096 # AIX sometimes has problems with the GCC collect2 program. For some
9097 # reason, if we set the COLLECT_NAMES environment variable, the problems
9098 # vanish in a puff of smoke.
9099 if test "X${COLLECT_NAMES+set}" != Xset; then
9101 export COLLECT_NAMES
9106 # Sed substitution that helps us do robust quoting. It backslashifies
9107 # metacharacters that are still active within double-quoted strings.
9108 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9110 # Same as above, but do not quote variable references.
9111 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9113 # Sed substitution to delay expansion of an escaped shell variable in a
9114 # double_quote_subst'ed string.
9115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9117 # Sed substitution to delay expansion of an escaped single quote.
9118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9120 # Sed substitution to avoid accidental globbing in evaled expressions
9121 no_glob_subst='s/\*/\\\*/g'
9125 can_build_shared=yes
9127 # All known linkers require a `.a' archive for static linking (except MSVC,
9128 # which needs '.lib').
9131 with_gnu_ld="$lt_cv_prog_gnu_ld"
9134 old_CFLAGS="$CFLAGS"
9136 # Set sane defaults for various variables
9137 test -z "$CC" && CC=cc
9138 test -z "$LTCC" && LTCC=$CC
9139 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9140 test -z "$LD" && LD=ld
9141 test -z "$ac_objext" && ac_objext=o
9143 for cc_temp in $compiler""; do
9145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9151 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9154 # Only perform the check for file, if the check method requires it
9155 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9156 case $deplibs_check_method in
9158 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9159 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9160 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9169 lt_save_MAGIC_CMD="$MAGIC_CMD"
9170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9172 for ac_dir in $ac_dummy; do
9174 test -z "$ac_dir" && ac_dir=.
9175 if test -f $ac_dir/${ac_tool_prefix}file; then
9176 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9177 if test -n "$file_magic_test_file"; then
9178 case $deplibs_check_method in
9180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9183 $EGREP "$file_magic_regex" > /dev/null; then
9188 *** Warning: the command libtool uses to detect shared libraries,
9189 *** $file_magic_cmd, produces output that libtool cannot recognize.
9190 *** The result is that libtool may fail to recognize shared libraries
9191 *** as such. This will affect the creation of libtool libraries that
9192 *** depend on shared libraries, but programs linked with such libtool
9193 *** libraries will work regardless of this problem. Nevertheless, you
9194 *** may want to report the problem to your system manager and/or to
9195 *** bug-libtool@gnu.org
9205 MAGIC_CMD="$lt_save_MAGIC_CMD"
9210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9211 if test -n "$MAGIC_CMD"; then
9212 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9215 { echo "$as_me:$LINENO: result: no" >&5
9216 echo "${ECHO_T}no" >&6; }
9223 if test -z "$lt_cv_path_MAGIC_CMD"; then
9224 if test -n "$ac_tool_prefix"; then
9225 { echo "$as_me:$LINENO: checking for file" >&5
9226 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9228 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9235 lt_save_MAGIC_CMD="$MAGIC_CMD"
9236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9238 for ac_dir in $ac_dummy; do
9240 test -z "$ac_dir" && ac_dir=.
9241 if test -f $ac_dir/file; then
9242 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9243 if test -n "$file_magic_test_file"; then
9244 case $deplibs_check_method in
9246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9249 $EGREP "$file_magic_regex" > /dev/null; then
9254 *** Warning: the command libtool uses to detect shared libraries,
9255 *** $file_magic_cmd, produces output that libtool cannot recognize.
9256 *** The result is that libtool may fail to recognize shared libraries
9257 *** as such. This will affect the creation of libtool libraries that
9258 *** depend on shared libraries, but programs linked with such libtool
9259 *** libraries will work regardless of this problem. Nevertheless, you
9260 *** may want to report the problem to your system manager and/or to
9261 *** bug-libtool@gnu.org
9271 MAGIC_CMD="$lt_save_MAGIC_CMD"
9276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9277 if test -n "$MAGIC_CMD"; then
9278 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9281 { echo "$as_me:$LINENO: result: no" >&5
9282 echo "${ECHO_T}no" >&6; }
9295 # Use C for the default configuration in the libtool script
9299 ac_cpp='$CPP $CPPFLAGS'
9300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305 # Source file extension for C test sources.
9308 # Object file extension for compiled C test sources.
9312 # Code to be used in simple compile tests
9313 lt_simple_compile_test_code="int some_variable = 0;"
9315 # Code to be used in simple link tests
9316 lt_simple_link_test_code='int main(){return(0);}'
9324 # If no C compiler was specified, use CC.
9327 # If no C compiler flags were specified, use CFLAGS.
9328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9330 # Allow CC to be a program name with arguments.
9333 # Save the default compiler, since it gets overwritten when the other
9334 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9335 compiler_DEFAULT=$CC
9337 # save warnings/boilerplate of simple test code
9338 ac_outfile=conftest.$ac_objext
9339 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9340 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9341 _lt_compiler_boilerplate=`cat conftest.err`
9344 ac_outfile=conftest.$ac_objext
9345 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9346 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9347 _lt_linker_boilerplate=`cat conftest.err`
9352 ## There is no encapsulation within the following macros, do not change
9353 ## the running order or otherwise move them around unless you know exactly
9354 ## what you are doing...
9355 if test -n "$compiler"; then
9357 lt_prog_compiler_no_builtin_flag=
9359 if test "$GCC" = yes; then
9360 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9362 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9363 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9364 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 lt_cv_prog_compiler_rtti_exceptions=no
9368 ac_outfile=conftest.$ac_objext
9369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9370 lt_compiler_flag="-fno-rtti -fno-exceptions"
9371 # Insert the option either (1) after the last *FLAGS variable, or
9372 # (2) before a word containing "conftest.", or (3) at the end.
9373 # Note that $ac_compile itself does not contain backslashes and begins
9374 # with a dollar sign (not a hyphen), so the echo should work correctly.
9375 # The option is referenced via a variable to avoid confusing sed.
9376 lt_compile=`echo "$ac_compile" | $SED \
9377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9379 -e 's:$: $lt_compiler_flag:'`
9380 (eval echo "\"\$as_me:9380: $lt_compile\"" >&5)
9381 (eval "$lt_compile" 2>conftest.err)
9383 cat conftest.err >&5
9384 echo "$as_me:9384: \$? = $ac_status" >&5
9385 if (exit $ac_status) && test -s "$ac_outfile"; then
9386 # The compiler can only warn and ignore the option if not recognized
9387 # So say no if there are warnings other than the usual output.
9388 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9391 lt_cv_prog_compiler_rtti_exceptions=yes
9397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9398 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9400 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9401 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9413 lt_prog_compiler_wl=
9414 lt_prog_compiler_pic=
9415 lt_prog_compiler_static=
9417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9420 if test "$GCC" = yes; then
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_static='-static'
9426 # All AIX code is PIC.
9427 if test "$host_cpu" = ia64; then
9428 # AIX 5 now supports IA64 processor
9429 lt_prog_compiler_static='-Bstatic'
9436 # see comment about AmigaOS4 .so support
9437 lt_prog_compiler_pic='-fPIC'
9440 # FIXME: we need at least 68020 code to build shared libraries, but
9441 # adding the `-m68020' flag to GCC prevents building anything better,
9443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9448 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9449 # PIC is the default for these OSes.
9452 mingw* | cygwin* | pw32* | os2* | cegcc*)
9453 # This hack is so that the source file can tell whether it is being
9454 # built for inclusion in a dll (and should export symbols for example).
9455 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9456 # (--disable-auto-import) libraries
9457 lt_prog_compiler_pic='-DDLL_EXPORT'
9460 darwin* | rhapsody*)
9461 # PIC is the default on this platform
9462 # Common symbols not allowed in MH_DYLIB files
9463 lt_prog_compiler_pic='-fno-common'
9467 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9468 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9469 # sets the default TLS model and affects inlining.
9475 lt_prog_compiler_pic='-fPIC'
9481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9482 # Instead, we relocate shared libraries at runtime.
9486 # Just because we use GCC doesn't mean we suddenly get shared libraries
9487 # on systems that don't support them.
9488 lt_prog_compiler_can_build_shared=no
9493 # QNX uses GNU C++, but need to define -shared option too, otherwise
9495 lt_prog_compiler_pic='-fPIC -shared'
9499 if test -d /usr/nec; then
9500 lt_prog_compiler_pic=-Kconform_pic
9505 lt_prog_compiler_pic='-fPIC'
9509 # PORTME Check for flag to pass linker flags through the system compiler.
9512 lt_prog_compiler_wl='-Wl,'
9513 if test "$host_cpu" = ia64; then
9514 # AIX 5 now supports IA64 processor
9515 lt_prog_compiler_static='-Bstatic'
9517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9521 mingw* | cygwin* | pw32* | os2* | cegcc*)
9522 # This hack is so that the source file can tell whether it is being
9523 # built for inclusion in a dll (and should export symbols for example).
9524 lt_prog_compiler_pic='-DDLL_EXPORT'
9527 hpux9* | hpux10* | hpux11*)
9528 lt_prog_compiler_wl='-Wl,'
9529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9536 lt_prog_compiler_pic='+Z'
9539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9540 lt_prog_compiler_static='${wl}-a ${wl}archive'
9543 irix5* | irix6* | nonstopux*)
9544 lt_prog_compiler_wl='-Wl,'
9545 # PIC (with -KPIC) is the default.
9546 lt_prog_compiler_static='-non_shared'
9549 linux* | k*bsd*-gnu)
9550 case $cc_basename in
9551 # old Intel for x86_64 which still supported -KPIC.
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_pic='-KPIC'
9555 lt_prog_compiler_static='-static'
9557 # icc used to be incompatible with GCC.
9558 # ICC 10 doesn't accept -KPIC any more.
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-fPIC'
9562 lt_prog_compiler_static='-static'
9564 # Lahey Fortran 8.1.
9566 lt_prog_compiler_wl='-Wl,'
9567 lt_prog_compiler_pic='--shared'
9568 lt_prog_compiler_static='--static'
9570 pgcc* | pgf77* | pgf90* | pgf95*)
9571 # Portland Group compilers (*not* the Pentium gcc compiler,
9572 # which looks to be a dead project)
9573 lt_prog_compiler_wl='-Wl,'
9574 lt_prog_compiler_pic='-fpic'
9575 lt_prog_compiler_static='-Bstatic'
9578 lt_prog_compiler_wl='-Wl,'
9579 # All Alpha code is PIC.
9580 lt_prog_compiler_static='-non_shared'
9583 # IBM XL C 8.0/Fortran 10.1 on PPC
9584 lt_prog_compiler_wl='-Wl,'
9585 lt_prog_compiler_pic='-qpic'
9586 lt_prog_compiler_static='-qstaticlink'
9589 case `$CC -V 2>&1 | sed 5q` in
9592 lt_prog_compiler_pic='-KPIC'
9593 lt_prog_compiler_static='-Bstatic'
9594 lt_prog_compiler_wl='-Wl,'
9597 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9598 lt_prog_compiler_pic='-KPIC'
9599 lt_prog_compiler_static='-Bstatic'
9600 lt_prog_compiler_wl=''
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-Bstatic'
9613 # QNX uses GNU C++, but need to define -shared option too, otherwise
9615 lt_prog_compiler_pic='-fPIC -shared'
9618 osf3* | osf4* | osf5*)
9619 lt_prog_compiler_wl='-Wl,'
9620 # All OSF/1 code is PIC.
9621 lt_prog_compiler_static='-non_shared'
9625 lt_prog_compiler_static='-non_shared'
9629 lt_prog_compiler_pic='-KPIC'
9630 lt_prog_compiler_static='-Bstatic'
9631 case $cc_basename in
9633 lt_prog_compiler_wl='-Qoption ld ';;
9635 lt_prog_compiler_wl='-Wl,';;
9640 lt_prog_compiler_wl='-Qoption ld '
9641 lt_prog_compiler_pic='-PIC'
9642 lt_prog_compiler_static='-Bstatic'
9645 sysv4 | sysv4.2uw2* | sysv4.3*)
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_pic='-KPIC'
9648 lt_prog_compiler_static='-Bstatic'
9652 if test -d /usr/nec ;then
9653 lt_prog_compiler_pic='-Kconform_pic'
9654 lt_prog_compiler_static='-Bstatic'
9658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9659 lt_prog_compiler_wl='-Wl,'
9660 lt_prog_compiler_pic='-KPIC'
9661 lt_prog_compiler_static='-Bstatic'
9665 lt_prog_compiler_wl='-Wl,'
9666 lt_prog_compiler_can_build_shared=no
9670 lt_prog_compiler_pic='-pic'
9671 lt_prog_compiler_static='-Bstatic'
9675 lt_prog_compiler_can_build_shared=no
9681 # For platforms which do not support PIC, -DPIC is meaningless:
9683 lt_prog_compiler_pic=
9686 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9689 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9690 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9698 # Check to make sure the PIC flag actually works.
9700 if test -n "$lt_prog_compiler_pic"; then
9701 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9703 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 lt_cv_prog_compiler_pic_works=no
9707 ac_outfile=conftest.$ac_objext
9708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9709 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9710 # Insert the option either (1) after the last *FLAGS variable, or
9711 # (2) before a word containing "conftest.", or (3) at the end.
9712 # Note that $ac_compile itself does not contain backslashes and begins
9713 # with a dollar sign (not a hyphen), so the echo should work correctly.
9714 # The option is referenced via a variable to avoid confusing sed.
9715 lt_compile=`echo "$ac_compile" | $SED \
9716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9718 -e 's:$: $lt_compiler_flag:'`
9719 (eval echo "\"\$as_me:9719: $lt_compile\"" >&5)
9720 (eval "$lt_compile" 2>conftest.err)
9722 cat conftest.err >&5
9723 echo "$as_me:9723: \$? = $ac_status" >&5
9724 if (exit $ac_status) && test -s "$ac_outfile"; then
9725 # The compiler can only warn and ignore the option if not recognized
9726 # So say no if there are warnings other than the usual output.
9727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler_pic_works=yes
9736 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9737 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9739 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9740 case $lt_prog_compiler_pic in
9742 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9745 lt_prog_compiler_pic=
9746 lt_prog_compiler_can_build_shared=no
9757 # Check to make sure the static flag actually works.
9759 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9760 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9761 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9762 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 lt_cv_prog_compiler_static_works=no
9766 save_LDFLAGS="$LDFLAGS"
9767 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9770 # The linker can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 if test -s conftest.err; then
9773 # Append any errors to the config.log.
9774 cat conftest.err 1>&5
9775 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777 if diff conftest.exp conftest.er2 >/dev/null; then
9778 lt_cv_prog_compiler_static_works=yes
9781 lt_cv_prog_compiler_static_works=yes
9785 LDFLAGS="$save_LDFLAGS"
9788 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9789 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9791 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9794 lt_prog_compiler_static=
9803 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 lt_cv_prog_compiler_c_o=no
9809 $RM -r conftest 2>/dev/null
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815 lt_compiler_flag="-o out/conftest2.$ac_objext"
9816 # Insert the option either (1) after the last *FLAGS variable, or
9817 # (2) before a word containing "conftest.", or (3) at the end.
9818 # Note that $ac_compile itself does not contain backslashes and begins
9819 # with a dollar sign (not a hyphen), so the echo should work correctly.
9820 lt_compile=`echo "$ac_compile" | $SED \
9821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9823 -e 's:$: $lt_compiler_flag:'`
9824 (eval echo "\"\$as_me:9824: $lt_compile\"" >&5)
9825 (eval "$lt_compile" 2>out/conftest.err)
9827 cat out/conftest.err >&5
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9831 # The compiler can only warn and ignore the option if not recognized
9832 # So say no if there are warnings
9833 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9834 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9835 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9836 lt_cv_prog_compiler_c_o=yes
9841 # SGI C++ compiler will create directory out/ii_files/ for
9842 # template instantiation
9843 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9844 $RM out/* && rmdir out
9850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9858 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9860 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 lt_cv_prog_compiler_c_o=no
9864 $RM -r conftest 2>/dev/null
9868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870 lt_compiler_flag="-o out/conftest2.$ac_objext"
9871 # Insert the option either (1) after the last *FLAGS variable, or
9872 # (2) before a word containing "conftest.", or (3) at the end.
9873 # Note that $ac_compile itself does not contain backslashes and begins
9874 # with a dollar sign (not a hyphen), so the echo should work correctly.
9875 lt_compile=`echo "$ac_compile" | $SED \
9876 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9878 -e 's:$: $lt_compiler_flag:'`
9879 (eval echo "\"\$as_me:9879: $lt_compile\"" >&5)
9880 (eval "$lt_compile" 2>out/conftest.err)
9882 cat out/conftest.err >&5
9883 echo "$as_me:9883: \$? = $ac_status" >&5
9884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9886 # The compiler can only warn and ignore the option if not recognized
9887 # So say no if there are warnings
9888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9889 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9890 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9891 lt_cv_prog_compiler_c_o=yes
9896 # SGI C++ compiler will create directory out/ii_files/ for
9897 # template instantiation
9898 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9899 $RM out/* && rmdir out
9905 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9906 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9911 hard_links="nottested"
9912 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9913 # do not overwrite the value of need_locks provided by the user
9914 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9915 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9918 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9920 ln conftest.a conftest.b 2>&5 || hard_links=no
9921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9922 { echo "$as_me:$LINENO: result: $hard_links" >&5
9923 echo "${ECHO_T}$hard_links" >&6; }
9924 if test "$hard_links" = no; then
9925 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9926 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9938 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9939 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9942 allow_undefined_flag=
9943 always_export_symbols=no
9945 archive_expsym_cmds=
9946 compiler_needs_object=no
9947 enable_shared_with_static_runtimes=no
9948 export_dynamic_flag_spec=
9949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9950 hardcode_automatic=no
9952 hardcode_direct_absolute=no
9953 hardcode_libdir_flag_spec=
9954 hardcode_libdir_flag_spec_ld=
9955 hardcode_libdir_separator=
9957 hardcode_shlibpath_var=unsupported
9959 link_all_deplibs=unknown
9962 old_archive_from_new_cmds=
9963 old_archive_from_expsyms_cmds=
9964 thread_safe_flag_spec=
9965 whole_archive_flag_spec=
9966 # include_expsyms should be a list of space-separated symbols to be *always*
9967 # included in the symbol list
9969 # exclude_expsyms can be an extended regexp of symbols to exclude
9970 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972 # as well as any symbol that contains `d'.
9973 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975 # platforms (ab)use it in PIC code, but their linkers get confused if
9976 # the symbol is explicitly referenced. Since portable code cannot
9977 # rely on this symbol name, it's probably fine to never include it in
9978 # preloaded symbol tables.
9979 # Exclude shared library initialization/finalization symbols.
9980 extract_expsyms_cmds=
9983 cygwin* | mingw* | pw32* | cegcc*)
9984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985 # When not using gcc, we currently assume that we are using
9986 # Microsoft Visual C++.
9987 if test "$GCC" != yes; then
9992 # we just hope/assume this is gcc and not c89 (= MSVC++)
10001 if test "$with_gnu_ld" = yes; then
10002 # If archive_cmds runs LD, not CC, wlarc should be empty
10005 # Set some defaults for GNU ld with shared library support. These
10006 # are reset later if shared libraries are not supported. Putting them
10007 # here allows them to be overridden if necessary.
10008 runpath_var=LD_RUN_PATH
10009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10010 export_dynamic_flag_spec='${wl}--export-dynamic'
10011 # ancient GNU ld didn't support --whole-archive et. al.
10012 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10013 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10015 whole_archive_flag_spec=
10017 supports_anon_versioning=no
10018 case `$LD -v 2>&1` in
10019 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10020 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10021 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10022 *\ 2.11.*) ;; # other 2.11 versions
10023 *) supports_anon_versioning=yes ;;
10026 # See if GNU ld supports shared libraries.
10029 # On AIX/PPC, the GNU linker is very broken
10030 if test "$host_cpu" != ia64; then
10034 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10035 *** to be unable to reliably create shared libraries on AIX.
10036 *** Therefore, libtool is disabling shared libraries support. If you
10037 *** really care for shared libraries, you may want to modify your PATH
10038 *** so that a non-GNU linker is found, and then restart.
10047 # see comment about AmigaOS4 .so support
10048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10049 archive_expsym_cmds=''
10052 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)'
10053 hardcode_libdir_flag_spec='-L$libdir'
10054 hardcode_minus_L=yes
10060 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10061 allow_undefined_flag=unsupported
10062 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10063 # support --undefined. This deserves some investigation. FIXME
10064 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10070 cygwin* | mingw* | pw32* | cegcc*)
10071 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10072 # as there is no search path for DLLs.
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 allow_undefined_flag=unsupported
10075 always_export_symbols=no
10076 enable_shared_with_static_runtimes=yes
10077 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10079 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10081 # If the export-symbols file already is a .def file (1st line
10082 # is EXPORTS), use it as is; otherwise, prepend...
10083 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10084 cp $export_symbols $output_objdir/$soname.def;
10086 echo EXPORTS > $output_objdir/$soname.def;
10087 cat $export_symbols >> $output_objdir/$soname.def;
10089 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10097 hardcode_shlibpath_var=no
10098 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099 export_dynamic_flag_spec='${wl}-E'
10100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10101 # Instead, shared libraries are loaded at an image base (0x10000000 by
10102 # default) and relocated if they conflict, which is a slow very memory
10103 # consuming and fragmenting process. To avoid this, we pick a random,
10104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10107 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'
10110 gnu* | linux* | tpf* | k*bsd*-gnu)
10112 if test "$host_os" = linux-dietlibc; then
10113 case $cc_basename in
10114 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10117 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10118 && test "$tmp_diet" = no
10121 tmp_sharedflag='-shared'
10122 case $cc_basename,$host_cpu in
10123 pgcc*) # Portland Group C compiler
10124 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'
10125 tmp_addflag=' $pic_flag'
10127 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10128 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'
10129 tmp_addflag=' $pic_flag -Mnomain' ;;
10130 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10131 tmp_addflag=' -i_dynamic' ;;
10132 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10133 tmp_addflag=' -i_dynamic -nofor_main' ;;
10134 ifc* | ifort*) # Intel Fortran compiler
10135 tmp_addflag=' -nofor_main' ;;
10136 lf95*) # Lahey Fortran 8.1
10137 whole_archive_flag_spec=
10138 tmp_sharedflag='--shared' ;;
10139 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10140 tmp_sharedflag='-qmkshrobj'
10143 case `$CC -V 2>&1 | sed 5q` in
10144 *Sun\ C*) # Sun C 5.9
10145 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'
10146 compiler_needs_object=yes
10147 tmp_sharedflag='-G' ;;
10148 *Sun\ F*) # Sun Fortran 8.3
10149 tmp_sharedflag='-G' ;;
10151 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153 if test "x$supports_anon_versioning" = xyes; then
10154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156 echo "local: *; };" >> $output_objdir/$libname.ver~
10157 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10160 case $cc_basename in
10162 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10163 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10164 hardcode_libdir_flag_spec=
10165 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10166 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10167 if test "x$supports_anon_versioning" = xyes; then
10168 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170 echo "local: *; };" >> $output_objdir/$libname.ver~
10171 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10191 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10196 *** create shared libraries on Solaris systems. Therefore, libtool
10197 *** is disabling shared libraries support. We urge you to upgrade GNU
10198 *** binutils to release 2.9.1 or newer. Another option is to modify
10199 *** your PATH or compiler configuration so that the native linker is
10200 *** used, and then restart.
10203 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10212 case `$LD -v 2>&1` in
10213 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10218 *** reliably create shared libraries on SCO systems. Therefore, libtool
10219 *** is disabling shared libraries support. We urge you to upgrade GNU
10220 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10227 # For security reasons, it is highly recommended that you always
10228 # use absolute paths for naming shared libraries, and exclude the
10229 # DT_RUNPATH tag from executables and libraries. But doing so
10230 # requires that you compile everything twice, which is a pain.
10231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10243 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_direct=yes
10246 hardcode_shlibpath_var=no
10250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259 if test "$ld_shlibs" = no; then
10261 hardcode_libdir_flag_spec=
10262 export_dynamic_flag_spec=
10263 whole_archive_flag_spec=
10266 # PORTME fill in a description of your system's linker (not GNU ld)
10269 allow_undefined_flag=unsupported
10270 always_export_symbols=yes
10271 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'
10272 # Note: this linker hardcodes the directories in LIBPATH if there
10273 # are no directories specified by -L.
10274 hardcode_minus_L=yes
10275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10276 # Neither direct hardcoding nor static linking is supported with a
10278 hardcode_direct=unsupported
10283 if test "$host_cpu" = ia64; then
10284 # On IA64, the linker does run time linking by default, so we don't
10285 # have to do anything special.
10286 aix_use_runtimelinking=no
10287 exp_sym_flag='-Bexport'
10290 # If we're using GNU nm, then we don't want the "-C" option.
10291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10292 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10293 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'
10295 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'
10297 aix_use_runtimelinking=no
10299 # Test if we are trying to use run time linking or normal
10300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10301 # need to do runtime linking.
10302 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10303 for ld_flag in $LDFLAGS; do
10304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10305 aix_use_runtimelinking=yes
10312 exp_sym_flag='-bexport'
10313 no_entry_flag='-bnoentry'
10316 # When large executables or shared objects are built, AIX ld can
10317 # have problems creating the table of contents. If linking a library
10318 # or program results in "error TOC overflow" add -mminimal-toc to
10319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10323 hardcode_direct=yes
10324 hardcode_direct_absolute=yes
10325 hardcode_libdir_separator=':'
10326 link_all_deplibs=yes
10327 file_list_spec='${wl}-f,'
10329 if test "$GCC" = yes; then
10330 case $host_os in aix4.[012]|aix4.[012].*)
10331 # We only want to do this on AIX 4.2 and lower, the check
10332 # below for broken collect2 doesn't work under 4.3+
10333 collect2name=`${CC} -print-prog-name=collect2`
10334 if test -f "$collect2name" &&
10335 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10337 # We have reworked collect2
10340 # We have old collect2
10341 hardcode_direct=unsupported
10342 # It fails to find uninstalled libraries when the uninstalled
10343 # path is not listed in the libpath. Setting hardcode_minus_L
10344 # to unsupported forces relinking
10345 hardcode_minus_L=yes
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_libdir_separator=
10351 shared_flag='-shared'
10352 if test "$aix_use_runtimelinking" = yes; then
10353 shared_flag="$shared_flag "'${wl}-G'
10357 if test "$host_cpu" = ia64; then
10358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10359 # chokes on -Wl,-G. The following line is correct:
10362 if test "$aix_use_runtimelinking" = yes; then
10363 shared_flag='${wl}-G'
10365 shared_flag='${wl}-bM:SRE'
10370 export_dynamic_flag_spec='${wl}-bexpall'
10371 # It seems that -bexpall does not export symbols beginning with
10372 # underscore (_), so it is better to generate a list of symbols to export.
10373 always_export_symbols=yes
10374 if test "$aix_use_runtimelinking" = yes; then
10375 # Warning - without using the other runtime loading flags (-brtl),
10376 # -berok will link without error, but may produce a broken library.
10377 allow_undefined_flag='-berok'
10378 # Determine the default libpath from the value encoded in an
10379 # empty executable.
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10414 lt_aix_libpath_sed='
10415 /Import File Strings/,/^$/ {
10421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 # Check for a 64-bit object if we didn't find anything.
10423 if test -z "$aix_libpath"; then
10424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434 conftest$ac_exeext conftest.$ac_ext
10435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10438 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"
10440 if test "$host_cpu" = ia64; then
10441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10442 allow_undefined_flag="-z nodefs"
10443 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"
10445 # Determine the default libpath from the value encoded in an
10446 # empty executable.
10447 cat >conftest.$ac_ext <<_ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
10481 lt_aix_libpath_sed='
10482 /Import File Strings/,/^$/ {
10488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10489 # Check for a 64-bit object if we didn't find anything.
10490 if test -z "$aix_libpath"; then
10491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10501 conftest$ac_exeext conftest.$ac_ext
10502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10505 # Warning - without using the other run time loading flags,
10506 # -berok will link without error, but may produce a broken library.
10507 no_undefined_flag=' ${wl}-bernotok'
10508 allow_undefined_flag=' ${wl}-berok'
10509 # Exported symbols can be pulled into shared objects from archives
10510 whole_archive_flag_spec='$convenience'
10511 archive_cmds_need_lc=yes
10512 # This is similar to how AIX traditionally builds its shared libraries.
10513 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'
10521 # see comment about AmigaOS4 .so support
10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10523 archive_expsym_cmds=''
10526 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)'
10527 hardcode_libdir_flag_spec='-L$libdir'
10528 hardcode_minus_L=yes
10534 export_dynamic_flag_spec=-rdynamic
10537 cygwin* | mingw* | pw32* | cegcc*)
10538 # When not using gcc, we currently assume that we are using
10539 # Microsoft Visual C++.
10540 # hardcode_libdir_flag_spec is actually meaningless, as there is
10541 # no search path for DLLs.
10542 hardcode_libdir_flag_spec=' '
10543 allow_undefined_flag=unsupported
10544 # Tell ltmain to make .lib files, not .a files.
10546 # Tell ltmain to make .dll files, not .so files.
10548 # FIXME: Setting linknames here is a bad hack.
10549 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10550 # The linker will automatically build a .lib file if we build a DLL.
10551 old_archive_from_new_cmds='true'
10552 # FIXME: Should let the user specify the lib program.
10553 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10554 fix_srcfile_path='`cygpath -w "$srcfile"`'
10555 enable_shared_with_static_runtimes=yes
10558 darwin* | rhapsody*)
10561 archive_cmds_need_lc=no
10563 hardcode_automatic=yes
10564 hardcode_shlibpath_var=unsupported
10565 whole_archive_flag_spec=''
10566 link_all_deplibs=yes
10567 allow_undefined_flag="$_lt_dar_allow_undefined"
10568 case $cc_basename in
10569 ifort*) _lt_dar_can_shared=yes ;;
10570 *) _lt_dar_can_shared=$GCC ;;
10572 if test "$_lt_dar_can_shared" = "yes"; then
10573 output_verbose_link_cmd=echo
10574 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10575 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10576 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}"
10577 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}"
10586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_shlibpath_var=no
10595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10596 # support. Future versions do this automatically, but an explicit c++rt0.o
10597 # does not break anything, and helps significantly (at the cost of a little
10600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10601 hardcode_libdir_flag_spec='-R$libdir'
10602 hardcode_direct=yes
10603 hardcode_shlibpath_var=no
10606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10609 hardcode_direct=yes
10610 hardcode_minus_L=yes
10611 hardcode_shlibpath_var=no
10614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10615 freebsd* | dragonfly*)
10616 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10617 hardcode_libdir_flag_spec='-R$libdir'
10618 hardcode_direct=yes
10619 hardcode_shlibpath_var=no
10623 if test "$GCC" = yes; then
10624 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'
10626 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'
10628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10629 hardcode_libdir_separator=:
10630 hardcode_direct=yes
10632 # hardcode_minus_L: Not really in the search PATH,
10633 # but as the default location of the library.
10634 hardcode_minus_L=yes
10635 export_dynamic_flag_spec='${wl}-E'
10639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10640 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644 if test "$with_gnu_ld" = no; then
10645 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10646 hardcode_libdir_flag_spec_ld='+b $libdir'
10647 hardcode_libdir_separator=:
10648 hardcode_direct=yes
10649 hardcode_direct_absolute=yes
10650 export_dynamic_flag_spec='${wl}-E'
10651 # hardcode_minus_L: Not really in the search PATH,
10652 # but as the default location of the library.
10653 hardcode_minus_L=yes
10658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10667 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10679 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10683 if test "$with_gnu_ld" = no; then
10684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685 hardcode_libdir_separator=:
10690 hardcode_shlibpath_var=no
10693 hardcode_direct=yes
10694 hardcode_direct_absolute=yes
10695 export_dynamic_flag_spec='${wl}-E'
10697 # hardcode_minus_L: Not really in the search PATH,
10698 # but as the default location of the library.
10699 hardcode_minus_L=yes
10705 irix5* | irix6* | nonstopux*)
10706 if test "$GCC" = yes; then
10707 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'
10708 # Try to use the -exported_symbol ld option, if it does not
10709 # work, assume that -exports_file does not work either and
10710 # implicitly export all symbols.
10711 save_LDFLAGS="$LDFLAGS"
10712 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10713 cat >conftest.$ac_ext <<_ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (ac_try="$ac_link"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_link") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest$ac_exeext &&
10733 $as_test_x conftest$ac_exeext; then
10734 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'
10737 echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LDFLAGS="$save_LDFLAGS"
10747 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'
10748 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'
10750 archive_cmds_need_lc='no'
10751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10752 hardcode_libdir_separator=:
10754 link_all_deplibs=yes
10758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10761 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10763 hardcode_libdir_flag_spec='-R$libdir'
10764 hardcode_direct=yes
10765 hardcode_shlibpath_var=no
10769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770 hardcode_direct=yes
10771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10772 hardcode_libdir_separator=:
10773 hardcode_shlibpath_var=no
10780 if test -f /usr/libexec/ld.so; then
10781 hardcode_direct=yes
10782 hardcode_shlibpath_var=no
10783 hardcode_direct_absolute=yes
10784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10788 export_dynamic_flag_spec='${wl}-E'
10791 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10793 hardcode_libdir_flag_spec='-R$libdir'
10796 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10807 hardcode_libdir_flag_spec='-L$libdir'
10808 hardcode_minus_L=yes
10809 allow_undefined_flag=unsupported
10810 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'
10811 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10815 if test "$GCC" = yes; then
10816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10817 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'
10819 allow_undefined_flag=' -expect_unresolved \*'
10820 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'
10822 archive_cmds_need_lc='no'
10823 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10824 hardcode_libdir_separator=:
10827 osf4* | osf5*) # as osf3* with the addition of -msym flag
10828 if test "$GCC" = yes; then
10829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10830 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'
10831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10833 allow_undefined_flag=' -expect_unresolved \*'
10834 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'
10835 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~
10836 $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'
10838 # Both c and cxx compiler support -rpath directly
10839 hardcode_libdir_flag_spec='-rpath $libdir'
10841 archive_cmds_need_lc='no'
10842 hardcode_libdir_separator=:
10846 no_undefined_flag=' -z defs'
10847 if test "$GCC" = yes; then
10849 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10851 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10853 case `$CC -V 2>&1` in
10856 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10858 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10862 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10868 hardcode_libdir_flag_spec='-R$libdir'
10869 hardcode_shlibpath_var=no
10871 solaris2.[0-5] | solaris2.[0-5].*) ;;
10873 # The compiler driver will combine and reorder linker options,
10874 # but understands `-z linker_flag'. GCC discards it without `$wl',
10875 # but is careful enough not to reorder.
10876 # Supported since Solaris 2.6 (maybe 2.5.1?)
10877 if test "$GCC" = yes; then
10878 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10880 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10884 link_all_deplibs=yes
10888 if test "x$host_vendor" = xsequent; then
10889 # Use $CC to link under sequent, because it throws in some extra .o
10890 # files that make .init and .fini sections work.
10891 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10893 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_libdir_flag_spec='-L$libdir'
10896 hardcode_direct=yes
10897 hardcode_minus_L=yes
10898 hardcode_shlibpath_var=no
10902 case $host_vendor in
10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10905 hardcode_direct=yes # is this really true???
10908 ## LD is ld it makes a PLAMLIB
10909 ## CC just makes a GrossModule.
10910 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10911 reload_cmds='$CC -r -o $output$reload_objs'
10915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10916 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10919 runpath_var='LD_RUN_PATH'
10920 hardcode_shlibpath_var=no
10924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925 hardcode_shlibpath_var=no
10926 export_dynamic_flag_spec='-Bexport'
10930 if test -d /usr/nec; then
10931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932 hardcode_shlibpath_var=no
10933 runpath_var=LD_RUN_PATH
10934 hardcode_runpath_var=yes
10939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10940 no_undefined_flag='${wl}-z,text'
10941 archive_cmds_need_lc=no
10942 hardcode_shlibpath_var=no
10943 runpath_var='LD_RUN_PATH'
10945 if test "$GCC" = yes; then
10946 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10950 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 sysv5* | sco3.2v5* | sco5v6*)
10955 # Note: We can NOT use -z defs as we might desire, because we do not
10956 # link with -lc, and that would cause any symbols used from libc to
10957 # always be unresolved, which means just about no library would
10958 # ever link correctly. If we're not using GNU ld we use -z text
10959 # though, which does catch some bad symbols but isn't as heavy-handed
10961 no_undefined_flag='${wl}-z,text'
10962 allow_undefined_flag='${wl}-z,nodefs'
10963 archive_cmds_need_lc=no
10964 hardcode_shlibpath_var=no
10965 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10966 hardcode_libdir_separator=':'
10967 link_all_deplibs=yes
10968 export_dynamic_flag_spec='${wl}-Bexport'
10969 runpath_var='LD_RUN_PATH'
10971 if test "$GCC" = yes; then
10972 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10975 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10976 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982 hardcode_libdir_flag_spec='-L$libdir'
10983 hardcode_shlibpath_var=no
10991 if test x$host_vendor = xsni; then
10993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10994 export_dynamic_flag_spec='${wl}-Blargedynsym'
11000 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11001 echo "${ECHO_T}$ld_shlibs" >&6; }
11002 test "$ld_shlibs" = no && can_build_shared=no
11004 with_gnu_ld=$with_gnu_ld
11021 # Do we need to explicitly link libc?
11023 case "x$archive_cmds_need_lc" in
11025 # Assume -lc should be added
11026 archive_cmds_need_lc=yes
11028 if test "$enable_shared" = yes && test "$GCC" = yes; then
11029 case $archive_cmds in
11031 # FIXME: we may have to deal with multi-command sequences.
11034 # Test whether the compiler implicitly links with -lc since on some
11035 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11036 # to ld, don't add -lc before -lgcc.
11037 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11038 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } 2>conftest.err; then
11049 libobjs=conftest.$ac_objext
11051 wl=$lt_prog_compiler_wl
11052 pic_flag=$lt_prog_compiler_pic
11058 lt_save_allow_undefined_flag=$allow_undefined_flag
11059 allow_undefined_flag=
11060 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }
11066 archive_cmds_need_lc=no
11068 archive_cmds_need_lc=yes
11070 allow_undefined_flag=$lt_save_allow_undefined_flag
11072 cat conftest.err 1>&5
11075 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11076 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11239 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11240 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11242 if test "$GCC" = yes; then
11244 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11245 *) lt_awk_arg="/^libraries:/" ;;
11247 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11249 # if the path contains ";" then we assume it to be the separator
11250 # otherwise default to the standard path separator (i.e. ":") - it is
11251 # assumed that no part of a normal pathname contains ";" but that should
11252 # okay in the real world where ";" in dirpaths is itself problematic.
11253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11257 # Ok, now we have the path, separated by spaces, we can step through it
11258 # and add multilib dir if necessary.
11259 lt_tmp_lt_search_path_spec=
11260 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11261 for lt_sys_path in $lt_search_path_spec; do
11262 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11263 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11265 test -d "$lt_sys_path" && \
11266 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11269 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11270 BEGIN {RS=" "; FS="/|\n";} {
11273 for (lt_i = NF; lt_i > 0; lt_i--) {
11274 if ($lt_i != "" && $lt_i != ".") {
11275 if ($lt_i == "..") {
11278 if (lt_count == 0) {
11279 lt_foo="/" $lt_i lt_foo;
11286 if (lt_foo != "") { lt_freq[lt_foo]++; }
11287 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11289 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11291 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11293 library_names_spec=
11294 libname_spec='lib$name'
11298 postuninstall_cmds=
11302 shlibpath_overrides_runpath=unknown
11304 dynamic_linker="$host_os ld.so"
11305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11306 need_lib_prefix=unknown
11307 hardcode_into_libs=no
11309 # when you set need_version to no, make sure it does not cause -set_version
11310 # flags to be left without arguments
11311 need_version=unknown
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11317 shlibpath_var=LIBPATH
11319 # AIX 3 has no versioning support, so we append a major version to the name.
11320 soname_spec='${libname}${release}${shared_ext}$major'
11327 hardcode_into_libs=yes
11328 if test "$host_cpu" = ia64; then
11329 # AIX 5 supports IA64
11330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11331 shlibpath_var=LD_LIBRARY_PATH
11333 # With GCC up to 2.95.x, collect2 would create an import file
11334 # for dependence libraries. The import file would start with
11335 # the line `#! .'. This would cause the generated library to
11336 # depend on `.', always an invalid library. This was fixed in
11337 # development snapshots of GCC prior to 3.0.
11339 aix4 | aix4.[01] | aix4.[01].*)
11340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11342 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11345 can_build_shared=no
11349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11350 # soname into executable. Probably we can add versioning support to
11351 # collect2, so additional links can be useful in future.
11352 if test "$aix_use_runtimelinking" = yes; then
11353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11354 # instead of lib<name>.a to let people know that these are not
11355 # typical AIX shared libraries.
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358 # We preserve .a as extension for shared libraries through AIX4.2
11359 # and later when we are not doing run time linking.
11360 library_names_spec='${libname}${release}.a $libname.a'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11363 shlibpath_var=LIBPATH
11370 # Since July 2007 AmigaOS4 officially supports .so libraries.
11371 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 library_names_spec='$libname.ixlibrary $libname.a'
11376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11377 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'
11383 library_names_spec='${libname}${shared_ext}'
11384 dynamic_linker="$host_os ld.so"
11385 shlibpath_var=LIBRARY_PATH
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11397 # the default ld.so.conf also contains /usr/contrib/lib and
11398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11399 # libtool to hard-code these into programs
11402 cygwin* | mingw* | pw32* | cegcc*)
11403 version_type=windows
11408 case $GCC,$host_os in
11409 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11410 library_names_spec='$libname.dll.a'
11411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11412 postinstall_cmds='base_file=`basename \${file}`~
11413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11414 dldir=$destdir/`dirname \$dlpath`~
11415 test -d \$dldir || mkdir -p \$dldir~
11416 $install_prog $dir/$dlname \$dldir/$dlname~
11417 chmod a+x \$dldir/$dlname~
11418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11422 dlpath=$dir/\$dldll~
11424 shlibpath_overrides_runpath=yes
11428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11430 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11433 # MinGW DLLs use traditional 'lib' prefix
11434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11436 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11437 # It is most probably a Windows format PATH printed by
11438 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11439 # path with ; separators, and with drive letters. We can handle the
11440 # drive letters (cygwin fileutils understands them), so leave them,
11441 # especially as we might pass files found there to a mingw objdump,
11442 # which wouldn't understand a cygwinified path. Ahh.
11443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11445 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11449 # pw32 DLLs use 'pw' prefix rather than 'lib'
11450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11456 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11459 dynamic_linker='Win32 ld.exe'
11460 # FIXME: first we should search . and the directory the executable is in
11464 darwin* | rhapsody*)
11465 dynamic_linker="$host_os dyld"
11466 version_type=darwin
11469 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11470 soname_spec='${libname}${release}${major}$shared_ext'
11471 shlibpath_overrides_runpath=yes
11472 shlibpath_var=DYLD_LIBRARY_PATH
11473 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11475 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11476 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 shlibpath_var=LD_LIBRARY_PATH
11492 freebsd* | dragonfly*)
11493 # DragonFly does not have aout. When/if they implement a new
11494 # versioning mechanism, adjust this.
11495 if test -x /usr/bin/objformat; then
11496 objformat=`/usr/bin/objformat`
11499 freebsd[123]*) objformat=aout ;;
11500 *) objformat=elf ;;
11503 version_type=freebsd-$objformat
11504 case $version_type in
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11515 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11520 freebsd3.[01]* | freebsdelf3.[01]*)
11521 shlibpath_overrides_runpath=yes
11522 hardcode_into_libs=yes
11524 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11525 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11526 shlibpath_overrides_runpath=no
11527 hardcode_into_libs=yes
11529 *) # from 4.6 on, and DragonFly
11530 shlibpath_overrides_runpath=yes
11531 hardcode_into_libs=yes
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 hardcode_into_libs=yes
11546 hpux9* | hpux10* | hpux11*)
11547 # Give a soname corresponding to the major version so that dld.sl refuses to
11548 # link against other versions.
11555 hardcode_into_libs=yes
11556 dynamic_linker="$host_os dld.so"
11557 shlibpath_var=LD_LIBRARY_PATH
11558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 if test "X$HPUX_IA64_MODE" = X32; then
11562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570 hardcode_into_libs=yes
11571 dynamic_linker="$host_os dld.sl"
11572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 soname_spec='${libname}${release}${shared_ext}$major'
11576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11581 dynamic_linker="$host_os dld.sl"
11582 shlibpath_var=SHLIB_PATH
11583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585 soname_spec='${libname}${release}${shared_ext}$major'
11588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11589 postinstall_cmds='chmod 555 $lib'
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=no
11601 hardcode_into_libs=yes
11604 irix5* | irix6* | nonstopux*)
11606 nonstopux*) version_type=nonstopux ;;
11608 if test "$lt_cv_prog_gnu_ld" = yes; then
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11619 irix5* | nonstopux*)
11620 libsuff= shlibsuff=
11623 case $LD in # libtool.m4 will add one of these switches to LD
11624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11625 libsuff= shlibsuff= libmagic=32-bit;;
11626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11627 libsuff=32 shlibsuff=N32 libmagic=N32;;
11628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11630 *) libsuff= shlibsuff= libmagic=never-match;;
11634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11635 shlibpath_overrides_runpath=no
11636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11638 hardcode_into_libs=yes
11641 # No shared lib support for Linux oldld, aout, or coff.
11642 linux*oldld* | linux*aout* | linux*coff*)
11646 # This must be Linux ELF.
11647 linux* | k*bsd*-gnu)
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 shlibpath_overrides_runpath=no
11656 # Some binutils ld are patched to set DT_RUNPATH
11657 save_LDFLAGS=$LDFLAGS
11658 save_libdir=$libdir
11659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11676 rm -f conftest.$ac_objext conftest$ac_exeext
11677 if { (ac_try="$ac_link"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_link") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest$ac_exeext &&
11693 $as_test_x conftest$ac_exeext; then
11694 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11695 shlibpath_overrides_runpath=yes
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LDFLAGS=$save_LDFLAGS
11708 libdir=$save_libdir
11710 # This implies no fast_install, which is unacceptable.
11711 # Some rework will be needed to allow for fast_install
11712 # before this can be enabled.
11713 hardcode_into_libs=yes
11715 # Append ld.so.conf contents to the search path
11716 if test -f /etc/ld.so.conf; then
11717 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' ' '`
11718 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11721 # We used to test for /lib/ld.so.1 and disable shared libraries on
11722 # powerpc, because MkLinux only supported shared libraries with the
11723 # GNU dynamic linker. Since this was broken with cross compilers,
11724 # most powerpc-linux boxes support dynamic linking these days and
11725 # people can always --disable-shared, the test was removed, and we
11726 # assume the GNU/Linux dynamic linker is in use.
11727 dynamic_linker='GNU/Linux ld.so'
11734 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737 dynamic_linker='NetBSD (a.out) ld.so'
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 dynamic_linker='NetBSD ld.elf_so'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=yes
11745 hardcode_into_libs=yes
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 shlibpath_overrides_runpath=yes
11759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath=no
11763 hardcode_into_libs=yes
11764 dynamic_linker='ldqnx.so'
11769 sys_lib_dlsearch_path_spec="/usr/lib"
11771 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11773 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11774 *) need_version=no ;;
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11781 openbsd2.[89] | openbsd2.[89].*)
11782 shlibpath_overrides_runpath=no
11785 shlibpath_overrides_runpath=yes
11789 shlibpath_overrides_runpath=yes
11794 libname_spec='$name'
11797 library_names_spec='$libname${shared_ext} $libname.a'
11798 dynamic_linker='OS/2 ld.exe'
11799 shlibpath_var=LIBPATH
11802 osf3* | osf4* | osf5*)
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11810 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 shlibpath_overrides_runpath=yes
11825 hardcode_into_libs=yes
11826 # ldd complains unless libraries are executable
11827 postinstall_cmds='chmod +x $lib'
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 shlibpath_overrides_runpath=yes
11836 if test "$with_gnu_ld" = yes; then
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845 soname_spec='${libname}${release}${shared_ext}$major'
11846 shlibpath_var=LD_LIBRARY_PATH
11847 case $host_vendor in
11849 shlibpath_overrides_runpath=no
11851 runpath_var=LD_RUN_PATH
11859 shlibpath_overrides_runpath=no
11860 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11866 if test -d /usr/nec ;then
11868 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11869 soname_spec='$libname${shared_ext}.$major'
11870 shlibpath_var=LD_LIBRARY_PATH
11874 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11875 version_type=freebsd-elf
11878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11879 soname_spec='${libname}${release}${shared_ext}$major'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 shlibpath_overrides_runpath=yes
11882 hardcode_into_libs=yes
11883 if test "$with_gnu_ld" = yes; then
11884 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11886 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11889 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11893 sys_lib_dlsearch_path_spec='/usr/lib'
11897 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=no
11904 hardcode_into_libs=yes
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11910 soname_spec='${libname}${release}${shared_ext}$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11919 echo "${ECHO_T}$dynamic_linker" >&6; }
11920 test "$dynamic_linker" = no && can_build_shared=no
11922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11923 if test "$GCC" = yes; then
11924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11927 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11928 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11930 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11931 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12020 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12023 if test -n "$hardcode_libdir_flag_spec" ||
12024 test -n "$runpath_var" ||
12025 test "X$hardcode_automatic" = "Xyes" ; then
12027 # We can hardcode non-existent directories.
12028 if test "$hardcode_direct" != no &&
12029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12030 # have to relink, otherwise we might link with an installed library
12031 # when we should be linking with a yet-to-be-installed one
12032 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12033 test "$hardcode_minus_L" != no; then
12034 # Linking always hardcodes the temporary library directory.
12035 hardcode_action=relink
12037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12038 hardcode_action=immediate
12041 # We cannot hardcode anything, or else we can only hardcode existing
12043 hardcode_action=unsupported
12045 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12046 echo "${ECHO_T}$hardcode_action" >&6; }
12048 if test "$hardcode_action" = relink ||
12049 test "$inherit_rpath" = yes; then
12050 # Fast installation is not supported
12051 enable_fast_install=no
12052 elif test "$shlibpath_overrides_runpath" = yes ||
12053 test "$enable_shared" = no; then
12054 # Fast installation is not necessary
12055 enable_fast_install=needless
12063 if test "x$enable_dlopen" != xyes; then
12064 enable_dlopen=unknown
12065 enable_dlopen_self=unknown
12066 enable_dlopen_self_static=unknown
12073 lt_cv_dlopen="load_add_on"
12075 lt_cv_dlopen_self=yes
12078 mingw* | pw32* | cegcc*)
12079 lt_cv_dlopen="LoadLibrary"
12084 lt_cv_dlopen="dlopen"
12089 # if libdl is installed we need to link against it
12090 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12091 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_check_lib_save_LIBS=$LIBS
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest$ac_exeext &&
12136 $as_test_x conftest$ac_exeext; then
12137 ac_cv_lib_dl_dlopen=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_lib_dl_dlopen=no
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12150 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12151 if test $ac_cv_lib_dl_dlopen = yes; then
12152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12155 lt_cv_dlopen="dyld"
12157 lt_cv_dlopen_self=yes
12164 { echo "$as_me:$LINENO: checking for shl_load" >&5
12165 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12166 if test "${ac_cv_func_shl_load+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.$ac_ext <<_ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12177 #define shl_load innocuous_shl_load
12179 /* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char shl_load (); below.
12181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182 <limits.h> exists even on freestanding compilers. */
12185 # include <limits.h>
12187 # include <assert.h>
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined __stub_shl_load || defined __stub___shl_load
12209 return shl_load ();
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest$ac_exeext &&
12231 $as_test_x conftest$ac_exeext; then
12232 ac_cv_func_shl_load=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ac_cv_func_shl_load=no
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241 conftest$ac_exeext conftest.$ac_ext
12243 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12244 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12245 if test $ac_cv_func_shl_load = yes; then
12246 lt_cv_dlopen="shl_load"
12248 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12249 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12250 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_check_lib_save_LIBS=$LIBS
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any GCC internal prototype to avoid an error.
12263 Use char because int might match the return type of a GCC
12264 builtin and then its argument prototype would still apply. */
12272 return shl_load ();
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (ac_try="$ac_link"
12279 case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_link") 2>conftest.er1
12286 grep -v '^ *+' conftest.er1 >conftest.err
12288 cat conftest.err >&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && {
12291 test -z "$ac_c_werror_flag" ||
12292 test ! -s conftest.err
12293 } && test -s conftest$ac_exeext &&
12294 $as_test_x conftest$ac_exeext; then
12295 ac_cv_lib_dld_shl_load=yes
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_cv_lib_dld_shl_load=no
12303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12308 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12309 if test $ac_cv_lib_dld_shl_load = yes; then
12310 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12312 { echo "$as_me:$LINENO: checking for dlopen" >&5
12313 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12314 if test "${ac_cv_func_dlopen+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12325 #define dlopen innocuous_dlopen
12327 /* System header to define __stub macros and hopefully few prototypes,
12328 which can conflict with char dlopen (); below.
12329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330 <limits.h> exists even on freestanding compilers. */
12333 # include <limits.h>
12335 # include <assert.h>
12340 /* Override any GCC internal prototype to avoid an error.
12341 Use char because int might match the return type of a GCC
12342 builtin and then its argument prototype would still apply. */
12347 /* The GNU C library defines this for functions which it implements
12348 to always fail with ENOSYS. Some functions are actually named
12349 something starting with __ and the normal name is an alias. */
12350 #if defined __stub_dlopen || defined __stub___dlopen
12362 rm -f conftest.$ac_objext conftest$ac_exeext
12363 if { (ac_try="$ac_link"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_link") 2>conftest.er1
12371 grep -v '^ *+' conftest.er1 >conftest.err
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest$ac_exeext &&
12379 $as_test_x conftest$ac_exeext; then
12380 ac_cv_func_dlopen=yes
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 ac_cv_func_dlopen=no
12388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12389 conftest$ac_exeext conftest.$ac_ext
12391 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12393 if test $ac_cv_func_dlopen = yes; then
12394 lt_cv_dlopen="dlopen"
12396 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 ac_check_lib_save_LIBS=$LIBS
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 /* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext &&
12442 $as_test_x conftest$ac_exeext; then
12443 ac_cv_lib_dl_dlopen=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_lib_dl_dlopen=no
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12457 if test $ac_cv_lib_dl_dlopen = yes; then
12458 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12460 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12461 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-lsvld $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_link") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } && {
12503 test -z "$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12505 } && test -s conftest$ac_exeext &&
12506 $as_test_x conftest$ac_exeext; then
12507 ac_cv_lib_svld_dlopen=yes
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_cv_lib_svld_dlopen=no
12515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12516 conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12519 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12520 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12521 if test $ac_cv_lib_svld_dlopen = yes; then
12522 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12524 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12525 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12526 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 ac_check_lib_save_LIBS=$LIBS
12531 cat >conftest.$ac_ext <<_ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12548 return dld_link ();
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_link") 2>conftest.er1
12562 grep -v '^ *+' conftest.er1 >conftest.err
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } && {
12567 test -z "$ac_c_werror_flag" ||
12568 test ! -s conftest.err
12569 } && test -s conftest$ac_exeext &&
12570 $as_test_x conftest$ac_exeext; then
12571 ac_cv_lib_dld_dld_link=yes
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_cv_lib_dld_dld_link=no
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12585 if test $ac_cv_lib_dld_dld_link = yes; then
12586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12607 if test "x$lt_cv_dlopen" != xno; then
12613 case $lt_cv_dlopen in
12615 save_CPPFLAGS="$CPPFLAGS"
12616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12618 save_LDFLAGS="$LDFLAGS"
12619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12622 LIBS="$lt_cv_dlopen_libs $LIBS"
12624 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12626 if test "${lt_cv_dlopen_self+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 if test "$cross_compiling" = yes; then :
12630 lt_cv_dlopen_self=cross
12632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12633 lt_status=$lt_dlunknown
12634 cat > conftest.$ac_ext <<_LT_EOF
12635 #line 12635 "configure"
12636 #include "confdefs.h"
12645 # define LT_DLGLOBAL RTLD_GLOBAL
12648 # define LT_DLGLOBAL DL_GLOBAL
12650 # define LT_DLGLOBAL 0
12654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12655 find out it does not work in some platform. */
12656 #ifndef LT_DLLAZY_OR_NOW
12658 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12661 # define LT_DLLAZY_OR_NOW DL_LAZY
12664 # define LT_DLLAZY_OR_NOW RTLD_NOW
12667 # define LT_DLLAZY_OR_NOW DL_NOW
12669 # define LT_DLLAZY_OR_NOW 0
12676 void fnord() { int i=42;}
12679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12680 int status = $lt_dlunknown;
12684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12685 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12686 /* dlclose (self); */
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12699 (./conftest; exit; ) >&5 2>/dev/null
12701 case x$lt_status in
12702 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12703 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12704 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12707 # compilation failed
12708 lt_cv_dlopen_self=no
12715 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12716 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12718 if test "x$lt_cv_dlopen_self" = xyes; then
12719 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12720 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12721 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12722 if test "${lt_cv_dlopen_self_static+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 if test "$cross_compiling" = yes; then :
12726 lt_cv_dlopen_self_static=cross
12728 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12729 lt_status=$lt_dlunknown
12730 cat > conftest.$ac_ext <<_LT_EOF
12731 #line 12731 "configure"
12732 #include "confdefs.h"
12741 # define LT_DLGLOBAL RTLD_GLOBAL
12744 # define LT_DLGLOBAL DL_GLOBAL
12746 # define LT_DLGLOBAL 0
12750 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12751 find out it does not work in some platform. */
12752 #ifndef LT_DLLAZY_OR_NOW
12754 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12757 # define LT_DLLAZY_OR_NOW DL_LAZY
12760 # define LT_DLLAZY_OR_NOW RTLD_NOW
12763 # define LT_DLLAZY_OR_NOW DL_NOW
12765 # define LT_DLLAZY_OR_NOW 0
12772 void fnord() { int i=42;}
12775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12776 int status = $lt_dlunknown;
12780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12781 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12782 /* dlclose (self); */
12790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12791 (eval $ac_link) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12795 (./conftest; exit; ) >&5 2>/dev/null
12797 case x$lt_status in
12798 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12799 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12800 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12803 # compilation failed
12804 lt_cv_dlopen_self_static=no
12811 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12812 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12815 CPPFLAGS="$save_CPPFLAGS"
12816 LDFLAGS="$save_LDFLAGS"
12821 case $lt_cv_dlopen_self in
12822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12823 *) enable_dlopen_self=unknown ;;
12826 case $lt_cv_dlopen_self_static in
12827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12828 *) enable_dlopen_self_static=unknown ;;
12850 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12855 { echo "$as_me:$LINENO: result: yes" >&5
12856 echo "${ECHO_T}yes" >&6; }
12858 # FIXME - insert some real tests, host_os isn't really good enough
12861 if test -n "$STRIP" ; then
12862 striplib="$STRIP -x"
12863 old_striplib="$STRIP -S"
12864 { echo "$as_me:$LINENO: result: yes" >&5
12865 echo "${ECHO_T}yes" >&6; }
12867 { echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6; }
12872 { echo "$as_me:$LINENO: result: no" >&5
12873 echo "${ECHO_T}no" >&6; }
12889 # Report which library types will actually be built
12890 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12891 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12892 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12893 echo "${ECHO_T}$can_build_shared" >&6; }
12895 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12896 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12897 test "$can_build_shared" = "no" && enable_shared=no
12899 # On AIX, shared libraries and static libraries use the same namespace, and
12900 # are all built from PIC.
12903 test "$enable_shared" = yes && enable_static=no
12904 if test -n "$RANLIB"; then
12905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12906 postinstall_cmds='$RANLIB $lib'
12911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12912 test "$enable_shared" = yes && enable_static=no
12916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12917 echo "${ECHO_T}$enable_shared" >&6; }
12919 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12920 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12921 # Make sure either enable_shared or enable_static is yes.
12922 test "$enable_shared" = yes || enable_static=yes
12923 { echo "$as_me:$LINENO: result: $enable_static" >&5
12924 echo "${ECHO_T}$enable_static" >&6; }
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940 ac_cpp='$CXXCPP $CPPFLAGS'
12941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12945 archive_cmds_need_lc_CXX=no
12946 allow_undefined_flag_CXX=
12947 always_export_symbols_CXX=no
12948 archive_expsym_cmds_CXX=
12949 compiler_needs_object_CXX=no
12950 export_dynamic_flag_spec_CXX=
12951 hardcode_direct_CXX=no
12952 hardcode_direct_absolute_CXX=no
12953 hardcode_libdir_flag_spec_CXX=
12954 hardcode_libdir_flag_spec_ld_CXX=
12955 hardcode_libdir_separator_CXX=
12956 hardcode_minus_L_CXX=no
12957 hardcode_shlibpath_var_CXX=unsupported
12958 hardcode_automatic_CXX=no
12959 inherit_rpath_CXX=no
12961 module_expsym_cmds_CXX=
12962 link_all_deplibs_CXX=unknown
12963 old_archive_cmds_CXX=$old_archive_cmds
12964 no_undefined_flag_CXX=
12965 whole_archive_flag_spec_CXX=
12966 enable_shared_with_static_runtimes_CXX=no
12968 # Source file extension for C++ test sources.
12971 # Object file extension for compiled C++ test sources.
12975 # No sense in running all these tests if we already determined that
12976 # the CXX compiler isn't working. Some variables (like enable_shared)
12977 # are currently assumed to apply to all compilers on this platform,
12978 # and will be corrupted by setting them based on a non-working compiler.
12979 if test "$_lt_caught_CXX_error" != yes; then
12980 # Code to be used in simple compile tests
12981 lt_simple_compile_test_code="int some_variable = 0;"
12983 # Code to be used in simple link tests
12984 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12986 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12993 # If no C compiler was specified, use CC.
12996 # If no C compiler flags were specified, use CFLAGS.
12997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12999 # Allow CC to be a program name with arguments.
13003 # save warnings/boilerplate of simple test code
13004 ac_outfile=conftest.$ac_objext
13005 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13006 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13007 _lt_compiler_boilerplate=`cat conftest.err`
13010 ac_outfile=conftest.$ac_objext
13011 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13012 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13013 _lt_linker_boilerplate=`cat conftest.err`
13017 # Allow CC to be a program name with arguments.
13022 lt_save_with_gnu_ld=$with_gnu_ld
13023 lt_save_path_LD=$lt_cv_path_LD
13024 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13025 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13027 $as_unset lt_cv_prog_gnu_ld
13029 if test -n "${lt_cv_path_LDCXX+set}"; then
13030 lt_cv_path_LD=$lt_cv_path_LDCXX
13032 $as_unset lt_cv_path_LD
13034 test -z "${LDCXX+set}" || LD=$LDCXX
13038 for cc_temp in $compiler""; do
13040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13046 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13049 if test -n "$compiler"; then
13050 # We don't want -fno-exception when compiling C++ code, so set the
13051 # no_builtin_flag separately
13052 if test "$GXX" = yes; then
13053 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13055 lt_prog_compiler_no_builtin_flag_CXX=
13058 if test "$GXX" = yes; then
13059 # Set up default GNU C++ configuration
13063 # Check whether --with-gnu-ld was given.
13064 if test "${with_gnu_ld+set}" = set; then
13065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13071 if test "$GCC" = yes; then
13072 # Check if gcc -print-prog-name=ld gives a path.
13073 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13074 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13077 # gcc leaves a trailing carriage return which upsets mingw
13078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13083 # Accept absolute paths.
13085 re_direlt='/[^/][^/]*/\.\./'
13086 # Canonicalize the pathname of ld
13087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13091 test -z "$LD" && LD="$ac_prog"
13094 # If it fails, then pretend we aren't using GCC.
13098 # If it is relative, then search for the first ld in PATH.
13099 with_gnu_ld=unknown
13102 elif test "$with_gnu_ld" = yes; then
13103 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13106 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13109 if test "${lt_cv_path_LD+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 if test -z "$LD"; then
13113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13114 for ac_dir in $PATH; do
13116 test -z "$ac_dir" && ac_dir=.
13117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13118 lt_cv_path_LD="$ac_dir/$ac_prog"
13119 # Check to see if the program is GNU ld. I'd rather use --version,
13120 # but apparently some variants of GNU ld only accept -v.
13121 # Break only if it was the GNU/non-GNU ld that we prefer.
13122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13123 *GNU* | *'with BFD'*)
13124 test "$with_gnu_ld" != no && break
13127 test "$with_gnu_ld" != yes && break
13134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13138 LD="$lt_cv_path_LD"
13139 if test -n "$LD"; then
13140 { echo "$as_me:$LINENO: result: $LD" >&5
13141 echo "${ECHO_T}$LD" >&6; }
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13146 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13147 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13148 { (exit 1); exit 1; }; }
13149 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13150 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13155 case `$LD -v 2>&1 </dev/null` in
13156 *GNU* | *'with BFD'*)
13157 lt_cv_prog_gnu_ld=yes
13160 lt_cv_prog_gnu_ld=no
13164 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13165 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13166 with_gnu_ld=$lt_cv_prog_gnu_ld
13174 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13175 # archiving commands below assume that GNU ld is being used.
13176 if test "$with_gnu_ld" = yes; then
13177 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178 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'
13180 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13181 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13183 # If archive_cmds runs LD, not CC, wlarc should be empty
13184 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13185 # investigate it a little bit more. (MM)
13188 # ancient GNU ld didn't support --whole-archive et. al.
13189 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13190 $GREP 'no-whole-archive' > /dev/null; then
13191 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13193 whole_archive_flag_spec_CXX=
13199 # A generic and very simple default shared library creation
13200 # command for GNU C++ for the case where it uses the native
13201 # linker, instead of GNU ld. If possible, this setting should
13202 # overridden to take advantage of the native linker features on
13203 # the platform it is being used on.
13204 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13207 # Commands to make compiler produce verbose output that lists
13208 # what "hidden" libraries, object files and flags are used when
13209 # linking a shared library.
13210 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13218 # PORTME: fill in a description of your system's C++ link characteristics
13219 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13224 # FIXME: insert proper C++ library support
13228 if test "$host_cpu" = ia64; then
13229 # On IA64, the linker does run time linking by default, so we don't
13230 # have to do anything special.
13231 aix_use_runtimelinking=no
13232 exp_sym_flag='-Bexport'
13235 aix_use_runtimelinking=no
13237 # Test if we are trying to use run time linking or normal
13238 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13239 # need to do runtime linking.
13240 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13241 for ld_flag in $LDFLAGS; do
13244 aix_use_runtimelinking=yes
13252 exp_sym_flag='-bexport'
13253 no_entry_flag='-bnoentry'
13256 # When large executables or shared objects are built, AIX ld can
13257 # have problems creating the table of contents. If linking a library
13258 # or program results in "error TOC overflow" add -mminimal-toc to
13259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13262 archive_cmds_CXX=''
13263 hardcode_direct_CXX=yes
13264 hardcode_direct_absolute_CXX=yes
13265 hardcode_libdir_separator_CXX=':'
13266 link_all_deplibs_CXX=yes
13267 file_list_spec_CXX='${wl}-f,'
13269 if test "$GXX" = yes; then
13270 case $host_os in aix4.[012]|aix4.[012].*)
13271 # We only want to do this on AIX 4.2 and lower, the check
13272 # below for broken collect2 doesn't work under 4.3+
13273 collect2name=`${CC} -print-prog-name=collect2`
13274 if test -f "$collect2name" &&
13275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13277 # We have reworked collect2
13280 # We have old collect2
13281 hardcode_direct_CXX=unsupported
13282 # It fails to find uninstalled libraries when the uninstalled
13283 # path is not listed in the libpath. Setting hardcode_minus_L
13284 # to unsupported forces relinking
13285 hardcode_minus_L_CXX=yes
13286 hardcode_libdir_flag_spec_CXX='-L$libdir'
13287 hardcode_libdir_separator_CXX=
13290 shared_flag='-shared'
13291 if test "$aix_use_runtimelinking" = yes; then
13292 shared_flag="$shared_flag "'${wl}-G'
13296 if test "$host_cpu" = ia64; then
13297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13298 # chokes on -Wl,-G. The following line is correct:
13301 if test "$aix_use_runtimelinking" = yes; then
13302 shared_flag='${wl}-G'
13304 shared_flag='${wl}-bM:SRE'
13309 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13310 # It seems that -bexpall does not export symbols beginning with
13311 # underscore (_), so it is better to generate a list of symbols to
13313 always_export_symbols_CXX=yes
13314 if test "$aix_use_runtimelinking" = yes; then
13315 # Warning - without using the other runtime loading flags (-brtl),
13316 # -berok will link without error, but may produce a broken library.
13317 allow_undefined_flag_CXX='-berok'
13318 # Determine the default libpath from the value encoded in an empty
13320 cat >conftest.$ac_ext <<_ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (ac_try="$ac_link"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_link") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && {
13349 test -z "$ac_cxx_werror_flag" ||
13350 test ! -s conftest.err
13351 } && test -s conftest$ac_exeext &&
13352 $as_test_x conftest$ac_exeext; then
13354 lt_aix_libpath_sed='
13355 /Import File Strings/,/^$/ {
13361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13362 # Check for a 64-bit object if we didn't find anything.
13363 if test -z "$aix_libpath"; then
13364 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374 conftest$ac_exeext conftest.$ac_ext
13375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13377 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13379 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"
13381 if test "$host_cpu" = ia64; then
13382 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13383 allow_undefined_flag_CXX="-z nodefs"
13384 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"
13386 # Determine the default libpath from the value encoded in an
13387 # empty executable.
13388 cat >conftest.$ac_ext <<_ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } && {
13417 test -z "$ac_cxx_werror_flag" ||
13418 test ! -s conftest.err
13419 } && test -s conftest$ac_exeext &&
13420 $as_test_x conftest$ac_exeext; then
13422 lt_aix_libpath_sed='
13423 /Import File Strings/,/^$/ {
13429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 # Check for a 64-bit object if we didn't find anything.
13431 if test -z "$aix_libpath"; then
13432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442 conftest$ac_exeext conftest.$ac_ext
13443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13445 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13446 # Warning - without using the other run time loading flags,
13447 # -berok will link without error, but may produce a broken library.
13448 no_undefined_flag_CXX=' ${wl}-bernotok'
13449 allow_undefined_flag_CXX=' ${wl}-berok'
13450 # Exported symbols can be pulled into shared objects from archives
13451 whole_archive_flag_spec_CXX='$convenience'
13452 archive_cmds_need_lc_CXX=yes
13453 # This is similar to how AIX traditionally builds its shared
13455 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'
13461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13462 allow_undefined_flag_CXX=unsupported
13463 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13464 # support --undefined. This deserves some investigation. FIXME
13465 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13472 case $cc_basename in
13474 # FIXME: insert proper C++ library support
13480 cygwin* | mingw* | pw32* | cegcc*)
13481 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13482 # as there is no search path for DLLs.
13483 hardcode_libdir_flag_spec_CXX='-L$libdir'
13484 allow_undefined_flag_CXX=unsupported
13485 always_export_symbols_CXX=no
13486 enable_shared_with_static_runtimes_CXX=yes
13488 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13489 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'
13490 # If the export-symbols file already is a .def file (1st line
13491 # is EXPORTS), use it as is; otherwise, prepend...
13492 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13493 cp $export_symbols $output_objdir/$soname.def;
13495 echo EXPORTS > $output_objdir/$soname.def;
13496 cat $export_symbols >> $output_objdir/$soname.def;
13498 $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'
13503 darwin* | rhapsody*)
13506 archive_cmds_need_lc_CXX=no
13507 hardcode_direct_CXX=no
13508 hardcode_automatic_CXX=yes
13509 hardcode_shlibpath_var_CXX=unsupported
13510 whole_archive_flag_spec_CXX=''
13511 link_all_deplibs_CXX=yes
13512 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13513 case $cc_basename in
13514 ifort*) _lt_dar_can_shared=yes ;;
13515 *) _lt_dar_can_shared=$GCC ;;
13517 if test "$_lt_dar_can_shared" = "yes"; then
13518 output_verbose_link_cmd=echo
13519 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}"
13520 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13521 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}"
13522 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}"
13523 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13524 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}"
13525 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}"
13535 case $cc_basename in
13537 # FIXME: insert proper C++ library support
13541 # Green Hills C++ Compiler
13542 # FIXME: insert proper C++ library support
13546 # FIXME: insert proper C++ library support
13553 # C++ shared libraries reported to be fairly broken before
13559 archive_cmds_need_lc_CXX=no
13562 freebsd* | dragonfly*)
13563 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13573 hardcode_libdir_separator_CXX=:
13574 export_dynamic_flag_spec_CXX='${wl}-E'
13575 hardcode_direct_CXX=yes
13576 hardcode_minus_L_CXX=yes # Not in the search PATH,
13577 # but as the default
13578 # location of the library.
13580 case $cc_basename in
13582 # FIXME: insert proper C++ library support
13586 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'
13587 # Commands to make compiler produce verbose output that lists
13588 # what "hidden" libraries, object files and flags are used when
13589 # linking a shared library.
13591 # There doesn't appear to be a way to prevent this compiler from
13592 # explicitly linking system object files so we need to strip them
13593 # from the output so that they don't get included in the library
13595 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'
13598 if test "$GXX" = yes; then
13599 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'
13601 # FIXME: insert proper C++ library support
13609 if test $with_gnu_ld = no; then
13610 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13611 hardcode_libdir_separator_CXX=:
13617 export_dynamic_flag_spec_CXX='${wl}-E'
13623 hardcode_direct_CXX=no
13624 hardcode_shlibpath_var_CXX=no
13627 hardcode_direct_CXX=yes
13628 hardcode_direct_absolute_CXX=yes
13629 hardcode_minus_L_CXX=yes # Not in the search PATH,
13630 # but as the default
13631 # location of the library.
13635 case $cc_basename in
13637 # FIXME: insert proper C++ library support
13643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652 # Commands to make compiler produce verbose output that lists
13653 # what "hidden" libraries, object files and flags are used when
13654 # linking a shared library.
13656 # There doesn't appear to be a way to prevent this compiler from
13657 # explicitly linking system object files so we need to strip them
13658 # from the output so that they don't get included in the library
13660 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'
13663 if test "$GXX" = yes; then
13664 if test $with_gnu_ld = no; then
13667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13670 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13673 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'
13678 # FIXME: insert proper C++ library support
13686 hardcode_direct_CXX=no
13687 hardcode_shlibpath_var_CXX=no
13688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13689 export_dynamic_flag_spec_CXX='${wl}-E'
13690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13691 # Instead, shared libraries are loaded at an image base (0x10000000 by
13692 # default) and relocated if they conflict, which is a slow very memory
13693 # consuming and fragmenting process. To avoid this, we pick a random,
13694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13696 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'
13697 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'
13700 case $cc_basename in
13703 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'
13705 # Archives containing C++ object files must be created using
13706 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13707 # necessary to make sure instantiated templates are included
13709 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13712 if test "$GXX" = yes; then
13713 if test "$with_gnu_ld" = no; then
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13716 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'
13719 link_all_deplibs_CXX=yes
13722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13723 hardcode_libdir_separator_CXX=:
13724 inherit_rpath_CXX=yes
13727 linux* | k*bsd*-gnu)
13728 case $cc_basename in
13730 # Kuck and Associates, Inc. (KAI) C++ Compiler
13732 # KCC will only create a shared library if the output file
13733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13734 # to its proper name (with version) after linking.
13735 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'
13736 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'
13737 # Commands to make compiler produce verbose output that lists
13738 # what "hidden" libraries, object files and flags are used when
13739 # linking a shared library.
13741 # There doesn't appear to be a way to prevent this compiler from
13742 # explicitly linking system object files so we need to strip them
13743 # from the output so that they don't get included in the library
13745 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'
13747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13750 # Archives containing C++ object files must be created using
13751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13757 # version 8.0 and above of icpc choke on multiply defined symbols
13758 # if we add $predep_objects and $postdep_objects, however 7.1 and
13759 # earlier do not add the objects themselves.
13760 case `$CC -V 2>&1` in
13762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13763 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'
13765 *) # Version 8.0 or newer
13768 ia64*) tmp_idyn=' -i_dynamic';;
13770 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13771 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'
13774 archive_cmds_need_lc_CXX=no
13775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13777 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13780 # Portland Group C++ compiler
13782 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13783 prelink_cmds_CXX='tpldir=Template.dir~
13785 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13786 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13787 old_archive_cmds_CXX='tpldir=Template.dir~
13789 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13790 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13792 archive_cmds_CXX='tpldir=Template.dir~
13794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13795 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13796 archive_expsym_cmds_CXX='tpldir=Template.dir~
13798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13799 $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'
13801 *) # Version 6 will use weak symbols
13802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13803 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'
13807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809 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'
13813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13816 runpath_var=LD_RUN_PATH
13817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13818 hardcode_libdir_separator_CXX=:
13820 # Commands to make compiler produce verbose output that lists
13821 # what "hidden" libraries, object files and flags are used when
13822 # linking a shared library.
13824 # There doesn't appear to be a way to prevent this compiler from
13825 # explicitly linking system object files so we need to strip them
13826 # from the output so that they don't get included in the library
13828 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'
13831 # IBM XL 8.0 on PPC, with GNU ld
13832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13834 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835 if test "x$supports_anon_versioning" = xyes; then
13836 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13838 echo "local: *; };" >> $output_objdir/$libname.ver~
13839 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13843 case `$CC -V 2>&1 | sed 5q` in
13846 no_undefined_flag_CXX=' -zdefs'
13847 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13848 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'
13849 hardcode_libdir_flag_spec_CXX='-R$libdir'
13850 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'
13851 compiler_needs_object_CXX=yes
13853 # Not sure whether something based on
13854 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13856 output_verbose_link_cmd='echo'
13858 # Archives containing C++ object files must be created using
13859 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13860 # necessary to make sure instantiated templates are included
13862 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13870 # FIXME: insert proper C++ library support
13875 # FIXME: insert proper C++ library support
13880 case $cc_basename in
13882 # FIXME: insert proper C++ library support
13886 # FIXME: insert proper C++ library support
13893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13894 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13896 hardcode_libdir_flag_spec_CXX='-R$libdir'
13897 hardcode_direct_CXX=yes
13898 hardcode_shlibpath_var_CXX=no
13900 # Workaround some broken pre-1.5 toolchains
13901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13909 # C++ shared libraries are fairly broken
13914 if test -f /usr/libexec/ld.so; then
13915 hardcode_direct_CXX=yes
13916 hardcode_shlibpath_var_CXX=no
13917 hardcode_direct_absolute_CXX=yes
13918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13922 export_dynamic_flag_spec_CXX='${wl}-E'
13923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13925 output_verbose_link_cmd=echo
13931 osf3* | osf4* | osf5*)
13932 case $cc_basename in
13934 # Kuck and Associates, Inc. (KAI) C++ Compiler
13936 # KCC will only create a shared library if the output file
13937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13938 # to its proper name (with version) after linking.
13939 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'
13941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13942 hardcode_libdir_separator_CXX=:
13944 # Archives containing C++ object files must be created using
13945 # the KAI C++ compiler.
13947 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13948 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13952 # Rational C++ 2.4.1
13953 # FIXME: insert proper C++ library support
13959 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13960 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'
13961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13964 allow_undefined_flag_CXX=' -expect_unresolved \*'
13965 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'
13966 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13967 echo "-hidden">> $lib.exp~
13968 $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~
13970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13974 hardcode_libdir_separator_CXX=:
13976 # Commands to make compiler produce verbose output that lists
13977 # what "hidden" libraries, object files and flags are used when
13978 # linking a shared library.
13980 # There doesn't appear to be a way to prevent this compiler from
13981 # explicitly linking system object files so we need to strip them
13982 # from the output so that they don't get included in the library
13984 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'
13987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13991 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'
13994 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'
13998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13999 hardcode_libdir_separator_CXX=:
14001 # Commands to make compiler produce verbose output that lists
14002 # what "hidden" libraries, object files and flags are used when
14003 # linking a shared library.
14004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14007 # FIXME: insert proper C++ library support
14015 # FIXME: insert proper C++ library support
14020 case $cc_basename in
14023 # FIXME: insert proper C++ library support
14028 # FIXME: insert proper C++ library support
14032 # FIXME: insert proper C++ library support
14039 case $cc_basename in
14041 # Sun C++ 4.2, 5.x and Centerline C++
14042 archive_cmds_need_lc_CXX=yes
14043 no_undefined_flag_CXX=' -zdefs'
14044 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14046 $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'
14048 hardcode_libdir_flag_spec_CXX='-R$libdir'
14049 hardcode_shlibpath_var_CXX=no
14051 solaris2.[0-5] | solaris2.[0-5].*) ;;
14053 # The compiler driver will combine and reorder linker options,
14054 # but understands `-z linker_flag'.
14055 # Supported since Solaris 2.6 (maybe 2.5.1?)
14056 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14059 link_all_deplibs_CXX=yes
14061 output_verbose_link_cmd='echo'
14063 # Archives containing C++ object files must be created using
14064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14065 # necessary to make sure instantiated templates are included
14067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14070 # Green Hills C++ Compiler
14071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14073 # The C++ compiler must be used to create the archive.
14074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14077 # GNU C++ compiler with Solaris linker
14078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14079 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14080 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14081 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14082 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14083 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14085 # Commands to make compiler produce verbose output that lists
14086 # what "hidden" libraries, object files and flags are used when
14087 # linking a shared library.
14088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14090 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14092 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14094 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14096 # Commands to make compiler produce verbose output that lists
14097 # what "hidden" libraries, object files and flags are used when
14098 # linking a shared library.
14099 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14102 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14104 solaris2.[0-5] | solaris2.[0-5].*) ;;
14106 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14115 no_undefined_flag_CXX='${wl}-z,text'
14116 archive_cmds_need_lc_CXX=no
14117 hardcode_shlibpath_var_CXX=no
14118 runpath_var='LD_RUN_PATH'
14120 case $cc_basename in
14122 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14123 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14126 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14132 sysv5* | sco3.2v5* | sco5v6*)
14133 # Note: We can NOT use -z defs as we might desire, because we do not
14134 # link with -lc, and that would cause any symbols used from libc to
14135 # always be unresolved, which means just about no library would
14136 # ever link correctly. If we're not using GNU ld we use -z text
14137 # though, which does catch some bad symbols but isn't as heavy-handed
14139 no_undefined_flag_CXX='${wl}-z,text'
14140 allow_undefined_flag_CXX='${wl}-z,nodefs'
14141 archive_cmds_need_lc_CXX=no
14142 hardcode_shlibpath_var_CXX=no
14143 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14144 hardcode_libdir_separator_CXX=':'
14145 link_all_deplibs_CXX=yes
14146 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14147 runpath_var='LD_RUN_PATH'
14149 case $cc_basename in
14151 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14152 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14162 case $cc_basename in
14164 # NonStop-UX NCC 3.20
14165 # FIXME: insert proper C++ library support
14169 # FIXME: insert proper C++ library support
14176 # FIXME: insert proper C++ library support
14181 # FIXME: insert proper C++ library support
14186 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14187 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14188 test "$ld_shlibs_CXX" = no && can_build_shared=no
14194 ## There is no encapsulation within the following macros, do not change
14195 ## the running order or otherwise move them around unless you know exactly
14196 ## what you are doing...
14197 # Dependencies to place before and after the object being linked:
14198 predep_objects_CXX=
14199 postdep_objects_CXX=
14202 compiler_lib_search_path_CXX=
14204 cat > conftest.$ac_ext <<_LT_EOF
14208 Foo (void) { a = 0; }
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215 (eval $ac_compile) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; then
14219 # Parse the compiler output and extract the necessary
14220 # objects, libraries and library flags.
14222 # Sentinel used to keep track of whether or not we are before
14223 # the conftest object file.
14224 pre_test_object_deps_done=no
14226 for p in `eval "$output_verbose_link_cmd"`; do
14230 # Some compilers place space between "-{L,R}" and the path.
14231 # Remove the space.
14232 if test $p = "-L" ||
14233 test $p = "-R"; then
14240 if test "$pre_test_object_deps_done" = no; then
14243 # Internal compiler library paths should come after those
14244 # provided the user. The postdeps already come after the
14245 # user supplied libs so there is no need to process them.
14246 if test -z "$compiler_lib_search_path_CXX"; then
14247 compiler_lib_search_path_CXX="${prev}${p}"
14249 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14252 # The "-l" case would never come before the object being
14253 # linked, so don't bother handling this case.
14256 if test -z "$postdeps_CXX"; then
14257 postdeps_CXX="${prev}${p}"
14259 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14265 # This assumes that the test object file only shows up
14266 # once in the compiler output.
14267 if test "$p" = "conftest.$objext"; then
14268 pre_test_object_deps_done=yes
14272 if test "$pre_test_object_deps_done" = no; then
14273 if test -z "$predep_objects_CXX"; then
14274 predep_objects_CXX="$p"
14276 predep_objects_CXX="$predep_objects_CXX $p"
14279 if test -z "$postdep_objects_CXX"; then
14280 postdep_objects_CXX="$p"
14282 postdep_objects_CXX="$postdep_objects_CXX $p"
14287 *) ;; # Ignore the rest.
14295 echo "libtool.m4: error: problem compiling CXX test program"
14298 $RM -f confest.$objext
14300 # PORTME: override above test on systems where it is broken
14303 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14304 # hack all around it, let's just trust "g++" to DTRT.
14305 predep_objects_CXX=
14306 postdep_objects_CXX=
14311 case `$CC -V 2>&1 | sed 5q` in
14315 # The more standards-conforming stlport4 library is
14316 # incompatible with the Cstd library. Avoid specifying
14317 # it if it's in CXXFLAGS. Ignore libCrun as
14318 # -library=stlport4 depends on it.
14319 case " $CXX $CXXFLAGS " in
14320 *" -library=stlport4 "*)
14321 solaris_use_stlport4=yes
14325 if test "$solaris_use_stlport4" != yes; then
14326 postdeps_CXX='-library=Cstd -library=Crun'
14333 case $cc_basename in
14335 # The more standards-conforming stlport4 library is
14336 # incompatible with the Cstd library. Avoid specifying
14337 # it if it's in CXXFLAGS. Ignore libCrun as
14338 # -library=stlport4 depends on it.
14339 case " $CXX $CXXFLAGS " in
14340 *" -library=stlport4 "*)
14341 solaris_use_stlport4=yes
14345 # Adding this requires a known-good setup of shared libraries for
14346 # Sun compiler versions before 5.6, else PIC objects from an old
14347 # archive will be linked into the output, leading to subtle bugs.
14348 if test "$solaris_use_stlport4" != yes; then
14349 postdeps_CXX='-library=Cstd -library=Crun'
14357 case " $postdeps_CXX " in
14358 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14360 compiler_lib_search_dirs_CXX=
14361 if test -n "${compiler_lib_search_path_CXX}"; then
14362 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14395 lt_prog_compiler_wl_CXX=
14396 lt_prog_compiler_pic_CXX=
14397 lt_prog_compiler_static_CXX=
14399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14402 # C++ specific cases for pic, static, wl, etc.
14403 if test "$GXX" = yes; then
14404 lt_prog_compiler_wl_CXX='-Wl,'
14405 lt_prog_compiler_static_CXX='-static'
14409 # All AIX code is PIC.
14410 if test "$host_cpu" = ia64; then
14411 # AIX 5 now supports IA64 processor
14412 lt_prog_compiler_static_CXX='-Bstatic'
14419 # see comment about AmigaOS4 .so support
14420 lt_prog_compiler_pic_CXX='-fPIC'
14423 # FIXME: we need at least 68020 code to build shared libraries, but
14424 # adding the `-m68020' flag to GCC prevents building anything better,
14426 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14432 # PIC is the default for these OSes.
14434 mingw* | cygwin* | os2* | pw32* | cegcc*)
14435 # This hack is so that the source file can tell whether it is being
14436 # built for inclusion in a dll (and should export symbols for example).
14437 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14438 # (--disable-auto-import) libraries
14439 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14441 darwin* | rhapsody*)
14442 # PIC is the default on this platform
14443 # Common symbols not allowed in MH_DYLIB files
14444 lt_prog_compiler_pic_CXX='-fno-common'
14447 # DJGPP does not support shared libraries at all
14448 lt_prog_compiler_pic_CXX=
14451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14452 # Instead, we relocate shared libraries at runtime.
14455 if test -d /usr/nec; then
14456 lt_prog_compiler_pic_CXX=-Kconform_pic
14460 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14461 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14462 # sets the default TLS model and affects inlining.
14467 lt_prog_compiler_pic_CXX='-fPIC'
14472 # QNX uses GNU C++, but need to define -shared option too, otherwise
14473 # it will coredump.
14474 lt_prog_compiler_pic_CXX='-fPIC -shared'
14477 lt_prog_compiler_pic_CXX='-fPIC'
14483 # All AIX code is PIC.
14484 if test "$host_cpu" = ia64; then
14485 # AIX 5 now supports IA64 processor
14486 lt_prog_compiler_static_CXX='-Bstatic'
14488 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14492 case $cc_basename in
14494 # Green Hills C++ Compiler
14495 # _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"
14500 case $cc_basename in
14502 lt_prog_compiler_pic_CXX='-KPIC'
14505 # Green Hills C++ Compiler
14506 lt_prog_compiler_pic_CXX='-pic'
14512 freebsd* | dragonfly*)
14513 # FreeBSD uses GNU C++
14515 hpux9* | hpux10* | hpux11*)
14516 case $cc_basename in
14518 lt_prog_compiler_wl_CXX='-Wl,'
14519 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14520 if test "$host_cpu" != ia64; then
14521 lt_prog_compiler_pic_CXX='+Z'
14525 lt_prog_compiler_wl_CXX='-Wl,'
14526 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14532 lt_prog_compiler_pic_CXX='+Z'
14541 # This is c89, which is MS Visual C++ (no shared libs)
14542 # Anyone wants to do a port?
14544 irix5* | irix6* | nonstopux*)
14545 case $cc_basename in
14547 lt_prog_compiler_wl_CXX='-Wl,'
14548 lt_prog_compiler_static_CXX='-non_shared'
14549 # CC pic flag -KPIC is the default.
14555 linux* | k*bsd*-gnu)
14556 case $cc_basename in
14559 lt_prog_compiler_wl_CXX='--backend -Wl,'
14560 lt_prog_compiler_pic_CXX='-fPIC'
14563 # old Intel C++ for x86_64 which still supported -KPIC.
14564 lt_prog_compiler_wl_CXX='-Wl,'
14565 lt_prog_compiler_pic_CXX='-KPIC'
14566 lt_prog_compiler_static_CXX='-static'
14569 # Intel C++, used to be incompatible with GCC.
14570 # ICC 10 doesn't accept -KPIC any more.
14571 lt_prog_compiler_wl_CXX='-Wl,'
14572 lt_prog_compiler_pic_CXX='-fPIC'
14573 lt_prog_compiler_static_CXX='-static'
14576 # Portland Group C++ compiler
14577 lt_prog_compiler_wl_CXX='-Wl,'
14578 lt_prog_compiler_pic_CXX='-fpic'
14579 lt_prog_compiler_static_CXX='-Bstatic'
14583 # Make sure the PIC flag is empty. It appears that all Alpha
14584 # Linux and Compaq Tru64 Unix objects are PIC.
14585 lt_prog_compiler_pic_CXX=
14586 lt_prog_compiler_static_CXX='-non_shared'
14589 # IBM XL 8.0 on PPC
14590 lt_prog_compiler_wl_CXX='-Wl,'
14591 lt_prog_compiler_pic_CXX='-qpic'
14592 lt_prog_compiler_static_CXX='-qstaticlink'
14595 case `$CC -V 2>&1 | sed 5q` in
14598 lt_prog_compiler_pic_CXX='-KPIC'
14599 lt_prog_compiler_static_CXX='-Bstatic'
14600 lt_prog_compiler_wl_CXX='-Qoption ld '
14611 case $cc_basename in
14613 lt_prog_compiler_pic_CXX='-W c,exportall'
14622 # QNX uses GNU C++, but need to define -shared option too, otherwise
14623 # it will coredump.
14624 lt_prog_compiler_pic_CXX='-fPIC -shared'
14626 osf3* | osf4* | osf5*)
14627 case $cc_basename in
14629 lt_prog_compiler_wl_CXX='--backend -Wl,'
14632 # Rational C++ 2.4.1
14633 lt_prog_compiler_pic_CXX='-pic'
14636 # Digital/Compaq C++
14637 lt_prog_compiler_wl_CXX='-Wl,'
14638 # Make sure the PIC flag is empty. It appears that all Alpha
14639 # Linux and Compaq Tru64 Unix objects are PIC.
14640 lt_prog_compiler_pic_CXX=
14641 lt_prog_compiler_static_CXX='-non_shared'
14650 case $cc_basename in
14652 # Sun C++ 4.2, 5.x and Centerline C++
14653 lt_prog_compiler_pic_CXX='-KPIC'
14654 lt_prog_compiler_static_CXX='-Bstatic'
14655 lt_prog_compiler_wl_CXX='-Qoption ld '
14658 # Green Hills C++ Compiler
14659 lt_prog_compiler_pic_CXX='-PIC'
14666 case $cc_basename in
14669 lt_prog_compiler_pic_CXX='-pic'
14670 lt_prog_compiler_static_CXX='-Bstatic'
14674 lt_prog_compiler_pic_CXX='-pic'
14680 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14681 case $cc_basename in
14683 lt_prog_compiler_wl_CXX='-Wl,'
14684 lt_prog_compiler_pic_CXX='-KPIC'
14685 lt_prog_compiler_static_CXX='-Bstatic'
14690 case $cc_basename in
14692 # NonStop-UX NCC 3.20
14693 lt_prog_compiler_pic_CXX='-KPIC'
14702 lt_prog_compiler_can_build_shared_CXX=no
14708 # For platforms which do not support PIC, -DPIC is meaningless:
14710 lt_prog_compiler_pic_CXX=
14713 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14716 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14717 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14722 # Check to make sure the PIC flag actually works.
14724 if test -n "$lt_prog_compiler_pic_CXX"; then
14725 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14727 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 lt_cv_prog_compiler_pic_works_CXX=no
14731 ac_outfile=conftest.$ac_objext
14732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14733 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14734 # Insert the option either (1) after the last *FLAGS variable, or
14735 # (2) before a word containing "conftest.", or (3) at the end.
14736 # Note that $ac_compile itself does not contain backslashes and begins
14737 # with a dollar sign (not a hyphen), so the echo should work correctly.
14738 # The option is referenced via a variable to avoid confusing sed.
14739 lt_compile=`echo "$ac_compile" | $SED \
14740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14742 -e 's:$: $lt_compiler_flag:'`
14743 (eval echo "\"\$as_me:14743: $lt_compile\"" >&5)
14744 (eval "$lt_compile" 2>conftest.err)
14746 cat conftest.err >&5
14747 echo "$as_me:14747: \$? = $ac_status" >&5
14748 if (exit $ac_status) && test -s "$ac_outfile"; then
14749 # The compiler can only warn and ignore the option if not recognized
14750 # So say no if there are warnings other than the usual output.
14751 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14754 lt_cv_prog_compiler_pic_works_CXX=yes
14760 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14761 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14763 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14764 case $lt_prog_compiler_pic_CXX in
14766 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14769 lt_prog_compiler_pic_CXX=
14770 lt_prog_compiler_can_build_shared_CXX=no
14778 # Check to make sure the static flag actually works.
14780 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 lt_cv_prog_compiler_static_works_CXX=no
14787 save_LDFLAGS="$LDFLAGS"
14788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791 # The linker can only warn and ignore the option if not recognized
14792 # So say no if there are warnings
14793 if test -s conftest.err; then
14794 # Append any errors to the config.log.
14795 cat conftest.err 1>&5
14796 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798 if diff conftest.exp conftest.er2 >/dev/null; then
14799 lt_cv_prog_compiler_static_works_CXX=yes
14802 lt_cv_prog_compiler_static_works_CXX=yes
14806 LDFLAGS="$save_LDFLAGS"
14809 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14810 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14812 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14815 lt_prog_compiler_static_CXX=
14821 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14823 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 lt_cv_prog_compiler_c_o_CXX=no
14827 $RM -r conftest 2>/dev/null
14831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14833 lt_compiler_flag="-o out/conftest2.$ac_objext"
14834 # Insert the option either (1) after the last *FLAGS variable, or
14835 # (2) before a word containing "conftest.", or (3) at the end.
14836 # Note that $ac_compile itself does not contain backslashes and begins
14837 # with a dollar sign (not a hyphen), so the echo should work correctly.
14838 lt_compile=`echo "$ac_compile" | $SED \
14839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14841 -e 's:$: $lt_compiler_flag:'`
14842 (eval echo "\"\$as_me:14842: $lt_compile\"" >&5)
14843 (eval "$lt_compile" 2>out/conftest.err)
14845 cat out/conftest.err >&5
14846 echo "$as_me:14846: \$? = $ac_status" >&5
14847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14849 # The compiler can only warn and ignore the option if not recognized
14850 # So say no if there are warnings
14851 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14854 lt_cv_prog_compiler_c_o_CXX=yes
14859 # SGI C++ compiler will create directory out/ii_files/ for
14860 # template instantiation
14861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14862 $RM out/* && rmdir out
14868 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14873 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14876 echo $ECHO_N "(cached) $ECHO_C" >&6
14878 lt_cv_prog_compiler_c_o_CXX=no
14879 $RM -r conftest 2>/dev/null
14883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885 lt_compiler_flag="-o out/conftest2.$ac_objext"
14886 # Insert the option either (1) after the last *FLAGS variable, or
14887 # (2) before a word containing "conftest.", or (3) at the end.
14888 # Note that $ac_compile itself does not contain backslashes and begins
14889 # with a dollar sign (not a hyphen), so the echo should work correctly.
14890 lt_compile=`echo "$ac_compile" | $SED \
14891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14893 -e 's:$: $lt_compiler_flag:'`
14894 (eval echo "\"\$as_me:14894: $lt_compile\"" >&5)
14895 (eval "$lt_compile" 2>out/conftest.err)
14897 cat out/conftest.err >&5
14898 echo "$as_me:14898: \$? = $ac_status" >&5
14899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14901 # The compiler can only warn and ignore the option if not recognized
14902 # So say no if there are warnings
14903 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14906 lt_cv_prog_compiler_c_o_CXX=yes
14911 # SGI C++ compiler will create directory out/ii_files/ for
14912 # template instantiation
14913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14914 $RM out/* && rmdir out
14920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14926 hard_links="nottested"
14927 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14928 # do not overwrite the value of need_locks provided by the user
14929 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14930 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14935 ln conftest.a conftest.b 2>&5 || hard_links=no
14936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14937 { echo "$as_me:$LINENO: result: $hard_links" >&5
14938 echo "${ECHO_T}$hard_links" >&6; }
14939 if test "$hard_links" = no; then
14940 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14941 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14950 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14951 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14953 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14956 # If we're using GNU nm, then we don't want the "-C" option.
14957 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14958 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14959 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'
14961 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'
14965 export_symbols_cmds_CXX="$ltdll_cmds"
14967 cygwin* | mingw* | cegcc*)
14968 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'
14971 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14974 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14976 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14977 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14978 test "$ld_shlibs_CXX" = no && can_build_shared=no
14980 with_gnu_ld_CXX=$with_gnu_ld
14988 # Do we need to explicitly link libc?
14990 case "x$archive_cmds_need_lc_CXX" in
14992 # Assume -lc should be added
14993 archive_cmds_need_lc_CXX=yes
14995 if test "$enable_shared" = yes && test "$GCC" = yes; then
14996 case $archive_cmds_CXX in
14998 # FIXME: we may have to deal with multi-command sequences.
15001 # Test whether the compiler implicitly links with -lc since on some
15002 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15003 # to ld, don't add -lc before -lgcc.
15004 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } 2>conftest.err; then
15016 libobjs=conftest.$ac_objext
15018 wl=$lt_prog_compiler_wl_CXX
15019 pic_flag=$lt_prog_compiler_pic_CXX
15025 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15026 allow_undefined_flag_CXX=
15027 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15028 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }
15033 archive_cmds_need_lc_CXX=no
15035 archive_cmds_need_lc_CXX=yes
15037 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15039 cat conftest.err 1>&5
15042 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15043 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15113 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15114 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15116 library_names_spec=
15117 libname_spec='lib$name'
15121 postuninstall_cmds=
15125 shlibpath_overrides_runpath=unknown
15127 dynamic_linker="$host_os ld.so"
15128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15129 need_lib_prefix=unknown
15130 hardcode_into_libs=no
15132 # when you set need_version to no, make sure it does not cause -set_version
15133 # flags to be left without arguments
15134 need_version=unknown
15139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15140 shlibpath_var=LIBPATH
15142 # AIX 3 has no versioning support, so we append a major version to the name.
15143 soname_spec='${libname}${release}${shared_ext}$major'
15150 hardcode_into_libs=yes
15151 if test "$host_cpu" = ia64; then
15152 # AIX 5 supports IA64
15153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15154 shlibpath_var=LD_LIBRARY_PATH
15156 # With GCC up to 2.95.x, collect2 would create an import file
15157 # for dependence libraries. The import file would start with
15158 # the line `#! .'. This would cause the generated library to
15159 # depend on `.', always an invalid library. This was fixed in
15160 # development snapshots of GCC prior to 3.0.
15162 aix4 | aix4.[01] | aix4.[01].*)
15163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15165 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15168 can_build_shared=no
15172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15173 # soname into executable. Probably we can add versioning support to
15174 # collect2, so additional links can be useful in future.
15175 if test "$aix_use_runtimelinking" = yes; then
15176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15177 # instead of lib<name>.a to let people know that these are not
15178 # typical AIX shared libraries.
15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 # We preserve .a as extension for shared libraries through AIX4.2
15182 # and later when we are not doing run time linking.
15183 library_names_spec='${libname}${release}.a $libname.a'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15186 shlibpath_var=LIBPATH
15193 # Since July 2007 AmigaOS4 officially supports .so libraries.
15194 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198 library_names_spec='$libname.ixlibrary $libname.a'
15199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15200 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'
15206 library_names_spec='${libname}${shared_ext}'
15207 dynamic_linker="$host_os ld.so"
15208 shlibpath_var=LIBRARY_PATH
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220 # the default ld.so.conf also contains /usr/contrib/lib and
15221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222 # libtool to hard-code these into programs
15225 cygwin* | mingw* | pw32* | cegcc*)
15226 version_type=windows
15231 case $GCC,$host_os in
15232 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15233 library_names_spec='$libname.dll.a'
15234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235 postinstall_cmds='base_file=`basename \${file}`~
15236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15237 dldir=$destdir/`dirname \$dlpath`~
15238 test -d \$dldir || mkdir -p \$dldir~
15239 $install_prog $dir/$dlname \$dldir/$dlname~
15240 chmod a+x \$dldir/$dlname~
15241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15245 dlpath=$dir/\$dldll~
15247 shlibpath_overrides_runpath=yes
15251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15253 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15256 # MinGW DLLs use traditional 'lib' prefix
15257 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15260 # It is most probably a Windows format PATH printed by
15261 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15262 # path with ; separators, and with drive letters. We can handle the
15263 # drive letters (cygwin fileutils understands them), so leave them,
15264 # especially as we might pass files found there to a mingw objdump,
15265 # which wouldn't understand a cygwinified path. Ahh.
15266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15272 # pw32 DLLs use 'pw' prefix rather than 'lib'
15273 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15279 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15282 dynamic_linker='Win32 ld.exe'
15283 # FIXME: first we should search . and the directory the executable is in
15287 darwin* | rhapsody*)
15288 dynamic_linker="$host_os dyld"
15289 version_type=darwin
15292 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15293 soname_spec='${libname}${release}${major}$shared_ext'
15294 shlibpath_overrides_runpath=yes
15295 shlibpath_var=DYLD_LIBRARY_PATH
15296 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15306 soname_spec='${libname}${release}${shared_ext}$major'
15307 shlibpath_var=LD_LIBRARY_PATH
15314 freebsd* | dragonfly*)
15315 # DragonFly does not have aout. When/if they implement a new
15316 # versioning mechanism, adjust this.
15317 if test -x /usr/bin/objformat; then
15318 objformat=`/usr/bin/objformat`
15321 freebsd[123]*) objformat=aout ;;
15322 *) objformat=elf ;;
15325 version_type=freebsd-$objformat
15326 case $version_type in
15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15337 shlibpath_var=LD_LIBRARY_PATH
15340 shlibpath_overrides_runpath=yes
15342 freebsd3.[01]* | freebsdelf3.[01]*)
15343 shlibpath_overrides_runpath=yes
15344 hardcode_into_libs=yes
15346 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15347 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15348 shlibpath_overrides_runpath=no
15349 hardcode_into_libs=yes
15351 *) # from 4.6 on, and DragonFly
15352 shlibpath_overrides_runpath=yes
15353 hardcode_into_libs=yes
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 shlibpath_var=LD_LIBRARY_PATH
15365 hardcode_into_libs=yes
15368 hpux9* | hpux10* | hpux11*)
15369 # Give a soname corresponding to the major version so that dld.sl refuses to
15370 # link against other versions.
15377 hardcode_into_libs=yes
15378 dynamic_linker="$host_os dld.so"
15379 shlibpath_var=LD_LIBRARY_PATH
15380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 if test "X$HPUX_IA64_MODE" = X32; then
15384 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15392 hardcode_into_libs=yes
15393 dynamic_linker="$host_os dld.sl"
15394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15403 dynamic_linker="$host_os dld.sl"
15404 shlibpath_var=SHLIB_PATH
15405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15410 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15411 postinstall_cmds='chmod 555 $lib'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 shlibpath_overrides_runpath=no
15423 hardcode_into_libs=yes
15426 irix5* | irix6* | nonstopux*)
15428 nonstopux*) version_type=nonstopux ;;
15430 if test "$lt_cv_prog_gnu_ld" = yes; then
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15441 irix5* | nonstopux*)
15442 libsuff= shlibsuff=
15445 case $LD in # libtool.m4 will add one of these switches to LD
15446 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15447 libsuff= shlibsuff= libmagic=32-bit;;
15448 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15449 libsuff=32 shlibsuff=N32 libmagic=N32;;
15450 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15451 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15452 *) libsuff= shlibsuff= libmagic=never-match;;
15456 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15457 shlibpath_overrides_runpath=no
15458 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15459 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15460 hardcode_into_libs=yes
15463 # No shared lib support for Linux oldld, aout, or coff.
15464 linux*oldld* | linux*aout* | linux*coff*)
15468 # This must be Linux ELF.
15469 linux* | k*bsd*-gnu)
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=no
15478 # Some binutils ld are patched to set DT_RUNPATH
15479 save_LDFLAGS=$LDFLAGS
15480 save_libdir=$libdir
15481 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15482 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_cxx_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest$ac_exeext &&
15515 $as_test_x conftest$ac_exeext; then
15516 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15517 shlibpath_overrides_runpath=yes
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LDFLAGS=$save_LDFLAGS
15530 libdir=$save_libdir
15532 # This implies no fast_install, which is unacceptable.
15533 # Some rework will be needed to allow for fast_install
15534 # before this can be enabled.
15535 hardcode_into_libs=yes
15537 # Append ld.so.conf contents to the search path
15538 if test -f /etc/ld.so.conf; then
15539 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' ' '`
15540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15543 # We used to test for /lib/ld.so.1 and disable shared libraries on
15544 # powerpc, because MkLinux only supported shared libraries with the
15545 # GNU dynamic linker. Since this was broken with cross compilers,
15546 # most powerpc-linux boxes support dynamic linking these days and
15547 # people can always --disable-shared, the test was removed, and we
15548 # assume the GNU/Linux dynamic linker is in use.
15549 dynamic_linker='GNU/Linux ld.so'
15556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559 dynamic_linker='NetBSD (a.out) ld.so'
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 dynamic_linker='NetBSD ld.elf_so'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15567 hardcode_into_libs=yes
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 shlibpath_overrides_runpath=yes
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=no
15585 hardcode_into_libs=yes
15586 dynamic_linker='ldqnx.so'
15591 sys_lib_dlsearch_path_spec="/usr/lib"
15593 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15595 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15596 *) need_version=no ;;
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15600 shlibpath_var=LD_LIBRARY_PATH
15601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15603 openbsd2.[89] | openbsd2.[89].*)
15604 shlibpath_overrides_runpath=no
15607 shlibpath_overrides_runpath=yes
15611 shlibpath_overrides_runpath=yes
15616 libname_spec='$name'
15619 library_names_spec='$libname${shared_ext} $libname.a'
15620 dynamic_linker='OS/2 ld.exe'
15621 shlibpath_var=LIBPATH
15624 osf3* | osf4* | osf5*)
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 shlibpath_var=LD_LIBRARY_PATH
15631 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15632 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 shlibpath_overrides_runpath=yes
15647 hardcode_into_libs=yes
15648 # ldd complains unless libraries are executable
15649 postinstall_cmds='chmod +x $lib'
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=yes
15658 if test "$with_gnu_ld" = yes; then
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667 soname_spec='${libname}${release}${shared_ext}$major'
15668 shlibpath_var=LD_LIBRARY_PATH
15669 case $host_vendor in
15671 shlibpath_overrides_runpath=no
15673 runpath_var=LD_RUN_PATH
15681 shlibpath_overrides_runpath=no
15682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15688 if test -d /usr/nec ;then
15690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691 soname_spec='$libname${shared_ext}.$major'
15692 shlibpath_var=LD_LIBRARY_PATH
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697 version_type=freebsd-elf
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=yes
15704 hardcode_into_libs=yes
15705 if test "$with_gnu_ld" = yes; then
15706 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15711 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15715 sys_lib_dlsearch_path_spec='/usr/lib'
15719 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=no
15726 hardcode_into_libs=yes
15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732 soname_spec='${libname}${release}${shared_ext}$major'
15733 shlibpath_var=LD_LIBRARY_PATH
15740 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15741 echo "${ECHO_T}$dynamic_linker" >&6; }
15742 test "$dynamic_linker" = no && can_build_shared=no
15744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15745 if test "$GCC" = yes; then
15746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15749 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15750 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15752 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15753 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15791 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15793 hardcode_action_CXX=
15794 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15795 test -n "$runpath_var_CXX" ||
15796 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15798 # We can hardcode non-existent directories.
15799 if test "$hardcode_direct_CXX" != no &&
15800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15801 # have to relink, otherwise we might link with an installed library
15802 # when we should be linking with a yet-to-be-installed one
15803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15804 test "$hardcode_minus_L_CXX" != no; then
15805 # Linking always hardcodes the temporary library directory.
15806 hardcode_action_CXX=relink
15808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15809 hardcode_action_CXX=immediate
15812 # We cannot hardcode anything, or else we can only hardcode existing
15814 hardcode_action_CXX=unsupported
15816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15819 if test "$hardcode_action_CXX" = relink ||
15820 test "$inherit_rpath_CXX" = yes; then
15821 # Fast installation is not supported
15822 enable_fast_install=no
15823 elif test "$shlibpath_overrides_runpath" = yes ||
15824 test "$enable_shared" = no; then
15825 # Fast installation is not necessary
15826 enable_fast_install=needless
15835 fi # test -n "$compiler"
15841 with_gnu_ld=$lt_save_with_gnu_ld
15842 lt_cv_path_LDCXX=$lt_cv_path_LD
15843 lt_cv_path_LD=$lt_save_path_LD
15844 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15845 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15846 fi # test "$_lt_caught_CXX_error" != yes
15849 ac_cpp='$CPP $CPPFLAGS'
15850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15866 ac_config_commands="$ac_config_commands libtool"
15871 # Only expand once:
15876 if test x$use_libtool != xno; then
15877 DEFAULT_OBJECT_TYPE=".lo"
15878 DEFAULT_ARCHIVE_TYPE=".la"
15879 DEFAULT_SHARED_OBJECT_TYPE=".la"
15880 LIBTOOL="\$(LIBTOOL)"
15881 LIBTOOL_INSTALL_TARGET="libtool-install"
15882 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15883 LIBTOOL_CLEAN_TARGET="libtool-clean"
15884 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15886 DEFAULT_OBJECT_TYPE=".o"
15887 DEFAULT_ARCHIVE_TYPE=".a"
15888 DEFAULT_SHARED_OBJECT_TYPE=".so"
15889 LIBTOOL="# \$(LIBTOOL)"
15890 LIBTOOL_INSTALL_TARGET=""
15891 LIBTOOL_UNINSTALL_TARGET=""
15892 LIBTOOL_CLEAN_TARGET=""
15893 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15905 # Check whether --enable-includes was given.
15906 if test "${enable_includes+set}" = set; then
15907 enableval=$enable_includes;
15908 if test x$enableval = xyes; then
15909 install_includes=yes
15917 if test x$use_libtool != xno -a x$install_includes = xyes; then
15918 INCLUDE_INSTALL_TARGET="install-includes"
15919 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15921 INCLUDE_INSTALL_TARGET=""
15922 INCLUDE_UNINSTALL_TARGET=""
15928 { echo "$as_me:$LINENO: checking host system type" >&5
15929 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15930 if test "${ac_cv_host+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 if test "x$host_alias" = x; then
15934 ac_cv_host=$ac_cv_build
15936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15939 { (exit 1); exit 1; }; }
15943 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15944 echo "${ECHO_T}$ac_cv_host" >&6; }
15945 case $ac_cv_host in
15947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
15948 echo "$as_me: error: invalid value of canonical host" >&2;}
15949 { (exit 1); exit 1; }; };;
15952 ac_save_IFS=$IFS; IFS='-'
15958 # Remember, the first character of IFS is used to create $*,
15959 # except with old shells:
15962 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
15966 *cygwin* ) CYGWIN=yes;;
15970 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15976 HAVE_SUN_OS_FALSE='#'
15978 HAVE_SUN_OS_TRUE='#'
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_SUN_OS 1
15990 HAVE_SUN_OS_FALSE='#'
15992 HAVE_SUN_OS_TRUE='#'
15997 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16003 HAVE_OSF1_OS_FALSE='#'
16005 HAVE_OSF1_OS_TRUE='#'
16006 HAVE_OSF1_OS_FALSE=
16008 cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_OSF1_OS 1
16017 HAVE_OSF1_OS_FALSE='#'
16019 HAVE_OSF1_OS_TRUE='#'
16020 HAVE_OSF1_OS_FALSE=
16024 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16030 HAVE_AIX_OS_FALSE='#'
16032 HAVE_AIX_OS_TRUE='#'
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_AIX_OS 1
16044 HAVE_AIX_OS_FALSE='#'
16046 HAVE_AIX_OS_TRUE='#'
16051 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16057 HAVE_HPUX_OS_FALSE='#'
16059 HAVE_HPUX_OS_TRUE='#'
16060 HAVE_HPUX_OS_FALSE=
16062 cat >>confdefs.h <<\_ACEOF
16063 #define HAVE_HPUX_OS 1
16071 HAVE_HPUX_OS_FALSE='#'
16073 HAVE_HPUX_OS_TRUE='#'
16074 HAVE_HPUX_OS_FALSE=
16078 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16083 HAVE_LINUX_OS_TRUE=
16084 HAVE_LINUX_OS_FALSE='#'
16086 HAVE_LINUX_OS_TRUE='#'
16087 HAVE_LINUX_OS_FALSE=
16089 cat >>confdefs.h <<\_ACEOF
16090 #define HAVE_LINUX_OS 1
16097 HAVE_LINUX_OS_TRUE=
16098 HAVE_LINUX_OS_FALSE='#'
16100 HAVE_LINUX_OS_TRUE='#'
16101 HAVE_LINUX_OS_FALSE=
16105 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16110 HAVE_FREEBSD_OS_TRUE=
16111 HAVE_FREEBSD_OS_FALSE='#'
16113 HAVE_FREEBSD_OS_TRUE='#'
16114 HAVE_FREEBSD_OS_FALSE=
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_FREEBSD_OS 1
16124 HAVE_FREEBSD_OS_TRUE=
16125 HAVE_FREEBSD_OS_FALSE='#'
16127 HAVE_FREEBSD_OS_TRUE='#'
16128 HAVE_FREEBSD_OS_FALSE=
16132 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16137 HAVE_NETBSD_OS_TRUE=
16138 HAVE_NETBSD_OS_FALSE='#'
16140 HAVE_NETBSD_OS_TRUE='#'
16141 HAVE_NETBSD_OS_FALSE=
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_NETBSD_OS 1
16151 HAVE_NETBSD_OS_TRUE=
16152 HAVE_NETBSD_OS_FALSE='#'
16154 HAVE_NETBSD_OS_TRUE='#'
16155 HAVE_NETBSD_OS_FALSE=
16159 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16164 HAVE_OPENBSD_OS_TRUE=
16165 HAVE_OPENBSD_OS_FALSE='#'
16167 HAVE_OPENBSD_OS_TRUE='#'
16168 HAVE_OPENBSD_OS_FALSE=
16170 cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_OPENBSD_OS 1
16178 HAVE_OPENBSD_OS_TRUE=
16179 HAVE_OPENBSD_OS_FALSE='#'
16181 HAVE_OPENBSD_OS_TRUE='#'
16182 HAVE_OPENBSD_OS_FALSE=
16186 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16192 HAVE_BSDI_OS_FALSE='#'
16194 HAVE_BSDI_OS_TRUE='#'
16195 HAVE_BSDI_OS_FALSE=
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_BSDI_OS 1
16206 HAVE_BSDI_OS_FALSE='#'
16208 HAVE_BSDI_OS_TRUE='#'
16209 HAVE_BSDI_OS_FALSE=
16213 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16219 HAVE_SGI_OS_FALSE='#'
16221 HAVE_SGI_OS_TRUE='#'
16224 cat >>confdefs.h <<\_ACEOF
16225 #define HAVE_SGI_OS 1
16233 HAVE_SGI_OS_FALSE='#'
16235 HAVE_SGI_OS_TRUE='#'
16240 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16246 HAVE_IRIX_OS_FALSE='#'
16248 HAVE_IRIX_OS_TRUE='#'
16249 HAVE_IRIX_OS_FALSE=
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_IRIX_OS 1
16260 HAVE_IRIX_OS_FALSE='#'
16262 HAVE_IRIX_OS_TRUE='#'
16263 HAVE_IRIX_OS_FALSE=
16267 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16272 HAVE_DARWIN_OS_TRUE=
16273 HAVE_DARWIN_OS_FALSE='#'
16275 HAVE_DARWIN_OS_TRUE='#'
16276 HAVE_DARWIN_OS_FALSE=
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_DARWIN_OS 1
16286 HAVE_DARWIN_OS_TRUE=
16287 HAVE_DARWIN_OS_FALSE='#'
16289 HAVE_DARWIN_OS_TRUE='#'
16290 HAVE_DARWIN_OS_FALSE=
16295 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16296 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16297 if test "x$DISTNAME" != "x"
16299 echo "distname set to $DISTNAME"
16300 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16303 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16306 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16309 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16312 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16315 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16318 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16321 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16324 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16327 elif test -f /etc/SuSE-release
16330 elif test -d /etc/SuSEconfig
16333 elif test -f /etc/mandrake-release
16336 elif test -f /etc/whitebox-release
16339 elif test -f /etc/redhat-release
16342 elif test -f /etc/gentoo-release
16345 elif test -f /etc/debian_version
16348 elif test -f /etc/slackware-version
16351 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16354 elif test -f /etc/engarde-version
16357 elif test "$CYGWIN" = yes
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_CYGWIN 1
16367 { echo "$as_me:$LINENO: result: done" >&5
16368 echo "${ECHO_T}done" >&6; }
16371 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16372 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16373 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16374 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 cat >conftest.make <<\_ACEOF
16380 @echo '@@@%%%=$(MAKE)=@@@%%%'
16382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16383 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16384 *@@@%%%=?*=@@@%%%*)
16385 eval ac_cv_prog_make_${ac_make}_set=yes;;
16387 eval ac_cv_prog_make_${ac_make}_set=no;;
16389 rm -f conftest.make
16391 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16392 { echo "$as_me:$LINENO: result: yes" >&5
16393 echo "${ECHO_T}yes" >&6; }
16396 { echo "$as_me:$LINENO: result: no" >&5
16397 echo "${ECHO_T}no" >&6; }
16398 SET_MAKE="MAKE=${MAKE-make}"
16404 if test -n "$ac_aux_dir"; then
16405 case "$ac_aux_dir" in
16406 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16407 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16410 if test -z "$MKINSTALLDIRS"; then
16411 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16416 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16417 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16418 # Check whether --enable-nls was given.
16419 if test "${enable_nls+set}" = set; then
16420 enableval=$enable_nls; USE_NLS=$enableval
16425 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16426 echo "${ECHO_T}$USE_NLS" >&6; }
16433 # Prepare PATH_SEPARATOR.
16434 # The user is always right.
16435 if test "${PATH_SEPARATOR+set}" != set; then
16436 echo "#! /bin/sh" >conf$$.sh
16437 echo "exit 0" >>conf$$.sh
16439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16447 # Find out how to test for executable files. Don't use a zero-byte file,
16448 # as systems may use methods other than mode bits to determine executability.
16449 cat >conf$$.file <<_ASEOF
16453 chmod +x conf$$.file
16454 if test -x conf$$.file >/dev/null 2>&1; then
16455 ac_executable_p="test -x"
16457 ac_executable_p="test -f"
16461 # Extract the first word of "msgfmt", so it can be a program name with args.
16462 set dummy msgfmt; ac_word=$2
16463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16465 if test "${ac_cv_path_MSGFMT+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16474 for ac_dir in $PATH; do
16476 test -z "$ac_dir" && ac_dir=.
16477 for ac_exec_ext in '' $ac_executable_extensions; do
16478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16479 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16480 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16481 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16482 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16489 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16493 MSGFMT="$ac_cv_path_MSGFMT"
16494 if test "$MSGFMT" != ":"; then
16495 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16496 echo "${ECHO_T}$MSGFMT" >&6; }
16498 { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16502 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16503 set dummy gmsgfmt; ac_word=$2
16504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16506 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16518 test -z "$as_dir" && as_dir=.
16519 for ac_exec_ext in '' $ac_executable_extensions; do
16520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16521 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16529 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16533 GMSGFMT=$ac_cv_path_GMSGFMT
16534 if test -n "$GMSGFMT"; then
16535 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16536 echo "${ECHO_T}$GMSGFMT" >&6; }
16538 { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16545 # Prepare PATH_SEPARATOR.
16546 # The user is always right.
16547 if test "${PATH_SEPARATOR+set}" != set; then
16548 echo "#! /bin/sh" >conf$$.sh
16549 echo "exit 0" >>conf$$.sh
16551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16559 # Find out how to test for executable files. Don't use a zero-byte file,
16560 # as systems may use methods other than mode bits to determine executability.
16561 cat >conf$$.file <<_ASEOF
16565 chmod +x conf$$.file
16566 if test -x conf$$.file >/dev/null 2>&1; then
16567 ac_executable_p="test -x"
16569 ac_executable_p="test -f"
16573 # Extract the first word of "xgettext", so it can be a program name with args.
16574 set dummy xgettext; ac_word=$2
16575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16577 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 case "$XGETTEXT" in
16582 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16585 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16586 for ac_dir in $PATH; do
16588 test -z "$ac_dir" && ac_dir=.
16589 for ac_exec_ext in '' $ac_executable_extensions; do
16590 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16591 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16592 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16593 (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
16594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16601 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16605 XGETTEXT="$ac_cv_path_XGETTEXT"
16606 if test "$XGETTEXT" != ":"; then
16607 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16608 echo "${ECHO_T}$XGETTEXT" >&6; }
16610 { echo "$as_me:$LINENO: result: no" >&5
16611 echo "${ECHO_T}no" >&6; }
16617 # Prepare PATH_SEPARATOR.
16618 # The user is always right.
16619 if test "${PATH_SEPARATOR+set}" != set; then
16620 echo "#! /bin/sh" >conf$$.sh
16621 echo "exit 0" >>conf$$.sh
16623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16631 # Find out how to test for executable files. Don't use a zero-byte file,
16632 # as systems may use methods other than mode bits to determine executability.
16633 cat >conf$$.file <<_ASEOF
16637 chmod +x conf$$.file
16638 if test -x conf$$.file >/dev/null 2>&1; then
16639 ac_executable_p="test -x"
16641 ac_executable_p="test -f"
16645 # Extract the first word of "msgmerge", so it can be a program name with args.
16646 set dummy msgmerge; ac_word=$2
16647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16649 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16652 case "$MSGMERGE" in
16654 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16657 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16658 for ac_dir in $PATH; do
16660 test -z "$ac_dir" && ac_dir=.
16661 for ac_exec_ext in '' $ac_executable_extensions; do
16662 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16663 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16664 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16665 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16672 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16676 MSGMERGE="$ac_cv_path_MSGMERGE"
16677 if test "$MSGMERGE" != ":"; then
16678 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16679 echo "${ECHO_T}$MSGMERGE" >&6; }
16681 { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16686 if test "$GMSGFMT" != ":"; then
16687 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16688 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16691 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16692 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16693 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16698 if test "$XGETTEXT" != ":"; then
16699 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16700 (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
16703 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16704 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16710 ac_config_commands="$ac_config_commands default-1"
16714 if test "X$prefix" = "XNONE"; then
16715 acl_final_prefix="$ac_default_prefix"
16717 acl_final_prefix="$prefix"
16719 if test "X$exec_prefix" = "XNONE"; then
16720 acl_final_exec_prefix='${prefix}'
16722 acl_final_exec_prefix="$exec_prefix"
16724 acl_save_prefix="$prefix"
16725 prefix="$acl_final_prefix"
16726 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16727 prefix="$acl_save_prefix"
16730 # Check whether --with-gnu-ld was given.
16731 if test "${with_gnu_ld+set}" = set; then
16732 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16737 # Prepare PATH_SEPARATOR.
16738 # The user is always right.
16739 if test "${PATH_SEPARATOR+set}" != set; then
16740 echo "#! /bin/sh" >conf$$.sh
16741 echo "exit 0" >>conf$$.sh
16743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16751 if test "$GCC" = yes; then
16752 # Check if gcc -print-prog-name=ld gives a path.
16753 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16757 # gcc leaves a trailing carriage return which upsets mingw
16758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16763 # Accept absolute paths.
16764 [\\/]* | [A-Za-z]:[\\/]*)
16765 re_direlt='/[^/][^/]*/\.\./'
16766 # Canonicalize the path of ld
16767 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16769 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16771 test -z "$LD" && LD="$ac_prog"
16774 # If it fails, then pretend we aren't using GCC.
16778 # If it is relative, then search for the first ld in PATH.
16779 with_gnu_ld=unknown
16782 elif test "$with_gnu_ld" = yes; then
16783 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16786 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16789 if test "${acl_cv_path_LD+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 if test -z "$LD"; then
16793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16794 for ac_dir in $PATH; do
16795 test -z "$ac_dir" && ac_dir=.
16796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16797 acl_cv_path_LD="$ac_dir/$ac_prog"
16798 # Check to see if the program is GNU ld. I'd rather use --version,
16799 # but apparently some GNU ld's only accept -v.
16800 # Break only if it was the GNU/non-GNU ld that we prefer.
16801 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16802 *GNU* | *'with BFD'*)
16803 test "$with_gnu_ld" != no && break ;;
16805 test "$with_gnu_ld" != yes && break ;;
16811 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16815 LD="$acl_cv_path_LD"
16816 if test -n "$LD"; then
16817 { echo "$as_me:$LINENO: result: $LD" >&5
16818 echo "${ECHO_T}$LD" >&6; }
16820 { echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6; }
16823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16825 { (exit 1); exit 1; }; }
16826 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16828 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16832 case `$LD -v 2>&1 </dev/null` in
16833 *GNU* | *'with BFD'*)
16834 acl_cv_prog_gnu_ld=yes ;;
16836 acl_cv_prog_gnu_ld=no ;;
16839 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16840 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16841 with_gnu_ld=$acl_cv_prog_gnu_ld
16846 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16847 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16848 if test "${acl_cv_rpath+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16853 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16855 rm -f ./conftest.sh
16859 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16860 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16862 libext="$acl_cv_libext"
16863 shlibext="$acl_cv_shlibext"
16864 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16865 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16866 hardcode_direct="$acl_cv_hardcode_direct"
16867 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16868 # Check whether --enable-rpath was given.
16869 if test "${enable_rpath+set}" = set; then
16870 enableval=$enable_rpath; :
16884 acl_save_prefix="$prefix"
16885 prefix="$acl_final_prefix"
16886 acl_save_exec_prefix="$exec_prefix"
16887 exec_prefix="$acl_final_exec_prefix"
16889 eval additional_includedir=\"$includedir\"
16890 eval additional_libdir=\"$libdir\"
16892 exec_prefix="$acl_save_exec_prefix"
16893 prefix="$acl_save_prefix"
16896 # Check whether --with-libiconv-prefix was given.
16897 if test "${with_libiconv_prefix+set}" = set; then
16898 withval=$with_libiconv_prefix;
16899 if test "X$withval" = "Xno"; then
16902 if test "X$withval" = "X"; then
16904 acl_save_prefix="$prefix"
16905 prefix="$acl_final_prefix"
16906 acl_save_exec_prefix="$exec_prefix"
16907 exec_prefix="$acl_final_exec_prefix"
16909 eval additional_includedir=\"$includedir\"
16910 eval additional_libdir=\"$libdir\"
16912 exec_prefix="$acl_save_exec_prefix"
16913 prefix="$acl_save_prefix"
16916 additional_includedir="$withval/include"
16917 additional_libdir="$withval/lib"
16928 names_already_handled=
16929 names_next_round='iconv '
16930 while test -n "$names_next_round"; do
16931 names_this_round="$names_next_round"
16933 for name in $names_this_round; do
16935 for n in $names_already_handled; do
16936 if test "$n" = "$name"; then
16937 already_handled=yes
16941 if test -z "$already_handled"; then
16942 names_already_handled="$names_already_handled $name"
16943 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16944 eval value=\"\$HAVE_LIB$uppername\"
16945 if test -n "$value"; then
16946 if test "$value" = yes; then
16947 eval value=\"\$LIB$uppername\"
16948 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16949 eval value=\"\$LTLIB$uppername\"
16950 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16959 if test $use_additional = yes; then
16960 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16961 found_dir="$additional_libdir"
16962 found_so="$additional_libdir/lib$name.$shlibext"
16963 if test -f "$additional_libdir/lib$name.la"; then
16964 found_la="$additional_libdir/lib$name.la"
16967 if test -f "$additional_libdir/lib$name.$libext"; then
16968 found_dir="$additional_libdir"
16969 found_a="$additional_libdir/lib$name.$libext"
16970 if test -f "$additional_libdir/lib$name.la"; then
16971 found_la="$additional_libdir/lib$name.la"
16976 if test "X$found_dir" = "X"; then
16977 for x in $LDFLAGS $LTLIBICONV; do
16979 acl_save_prefix="$prefix"
16980 prefix="$acl_final_prefix"
16981 acl_save_exec_prefix="$exec_prefix"
16982 exec_prefix="$acl_final_exec_prefix"
16984 exec_prefix="$acl_save_exec_prefix"
16985 prefix="$acl_save_prefix"
16989 dir=`echo "X$x" | sed -e 's/^X-L//'`
16990 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16992 found_so="$dir/lib$name.$shlibext"
16993 if test -f "$dir/lib$name.la"; then
16994 found_la="$dir/lib$name.la"
16997 if test -f "$dir/lib$name.$libext"; then
16999 found_a="$dir/lib$name.$libext"
17000 if test -f "$dir/lib$name.la"; then
17001 found_la="$dir/lib$name.la"
17007 if test "X$found_dir" != "X"; then
17012 if test "X$found_dir" != "X"; then
17013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17014 if test "X$found_so" != "X"; then
17015 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17019 for x in $ltrpathdirs; do
17020 if test "X$x" = "X$found_dir"; then
17025 if test -z "$haveit"; then
17026 ltrpathdirs="$ltrpathdirs $found_dir"
17028 if test "$hardcode_direct" = yes; then
17029 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17031 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17034 for x in $rpathdirs; do
17035 if test "X$x" = "X$found_dir"; then
17040 if test -z "$haveit"; then
17041 rpathdirs="$rpathdirs $found_dir"
17045 for x in $LDFLAGS $LIBICONV; do
17047 acl_save_prefix="$prefix"
17048 prefix="$acl_final_prefix"
17049 acl_save_exec_prefix="$exec_prefix"
17050 exec_prefix="$acl_final_exec_prefix"
17052 exec_prefix="$acl_save_exec_prefix"
17053 prefix="$acl_save_prefix"
17055 if test "X$x" = "X-L$found_dir"; then
17060 if test -z "$haveit"; then
17061 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17063 if test "$hardcode_minus_L" != no; then
17064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17066 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17072 if test "X$found_a" != "X"; then
17073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17078 additional_includedir=
17079 case "$found_dir" in
17081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17082 additional_includedir="$basedir/include"
17085 if test "X$additional_includedir" != "X"; then
17086 if test "X$additional_includedir" != "X/usr/include"; then
17088 if test "X$additional_includedir" = "X/usr/local/include"; then
17089 if test -n "$GCC"; then
17091 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17095 if test -z "$haveit"; then
17096 for x in $CPPFLAGS $INCICONV; do
17098 acl_save_prefix="$prefix"
17099 prefix="$acl_final_prefix"
17100 acl_save_exec_prefix="$exec_prefix"
17101 exec_prefix="$acl_final_exec_prefix"
17103 exec_prefix="$acl_save_exec_prefix"
17104 prefix="$acl_save_prefix"
17106 if test "X$x" = "X-I$additional_includedir"; then
17111 if test -z "$haveit"; then
17112 if test -d "$additional_includedir"; then
17113 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17119 if test -n "$found_la"; then
17120 save_libdir="$libdir"
17121 case "$found_la" in
17122 */* | *\\*) . "$found_la" ;;
17123 *) . "./$found_la" ;;
17125 libdir="$save_libdir"
17126 for dep in $dependency_libs; do
17129 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17130 if test "X$additional_libdir" != "X/usr/lib"; then
17132 if test "X$additional_libdir" = "X/usr/local/lib"; then
17133 if test -n "$GCC"; then
17135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17139 if test -z "$haveit"; then
17141 for x in $LDFLAGS $LIBICONV; do
17143 acl_save_prefix="$prefix"
17144 prefix="$acl_final_prefix"
17145 acl_save_exec_prefix="$exec_prefix"
17146 exec_prefix="$acl_final_exec_prefix"
17148 exec_prefix="$acl_save_exec_prefix"
17149 prefix="$acl_save_prefix"
17151 if test "X$x" = "X-L$additional_libdir"; then
17156 if test -z "$haveit"; then
17157 if test -d "$additional_libdir"; then
17158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17162 for x in $LDFLAGS $LTLIBICONV; do
17164 acl_save_prefix="$prefix"
17165 prefix="$acl_final_prefix"
17166 acl_save_exec_prefix="$exec_prefix"
17167 exec_prefix="$acl_final_exec_prefix"
17169 exec_prefix="$acl_save_exec_prefix"
17170 prefix="$acl_save_prefix"
17172 if test "X$x" = "X-L$additional_libdir"; then
17177 if test -z "$haveit"; then
17178 if test -d "$additional_libdir"; then
17179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17187 if test "$enable_rpath" != no; then
17189 for x in $rpathdirs; do
17190 if test "X$x" = "X$dir"; then
17195 if test -z "$haveit"; then
17196 rpathdirs="$rpathdirs $dir"
17199 for x in $ltrpathdirs; do
17200 if test "X$x" = "X$dir"; then
17205 if test -z "$haveit"; then
17206 ltrpathdirs="$ltrpathdirs $dir"
17211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17231 if test "X$rpathdirs" != "X"; then
17232 if test -n "$hardcode_libdir_separator"; then
17234 for found_dir in $rpathdirs; do
17235 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17237 acl_save_libdir="$libdir"
17239 eval flag=\"$hardcode_libdir_flag_spec\"
17240 libdir="$acl_save_libdir"
17241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17243 for found_dir in $rpathdirs; do
17244 acl_save_libdir="$libdir"
17245 libdir="$found_dir"
17246 eval flag=\"$hardcode_libdir_flag_spec\"
17247 libdir="$acl_save_libdir"
17248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17252 if test "X$ltrpathdirs" != "X"; then
17253 for found_dir in $ltrpathdirs; do
17254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17275 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17276 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17277 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 gt_save_CPPFLAGS="$CPPFLAGS"
17281 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17282 gt_save_LIBS="$LIBS"
17283 LIBS="$LIBS -framework CoreFoundation"
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <CFPreferences.h>
17294 CFPreferencesCopyAppValue(NULL, NULL)
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_link") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest$ac_exeext &&
17316 $as_test_x conftest$ac_exeext; then
17317 gt_cv_func_CFPreferencesCopyAppValue=yes
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 gt_cv_func_CFPreferencesCopyAppValue=no
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326 conftest$ac_exeext conftest.$ac_ext
17327 CPPFLAGS="$gt_save_CPPFLAGS"
17328 LIBS="$gt_save_LIBS"
17330 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17331 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17332 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17334 cat >>confdefs.h <<\_ACEOF
17335 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17339 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17340 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17341 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 gt_save_CPPFLAGS="$CPPFLAGS"
17345 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17346 gt_save_LIBS="$LIBS"
17347 LIBS="$LIBS -framework CoreFoundation"
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 #include <CFLocale.h>
17358 CFLocaleCopyCurrent();
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_c_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
17381 gt_cv_func_CFLocaleCopyCurrent=yes
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 gt_cv_func_CFLocaleCopyCurrent=no
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390 conftest$ac_exeext conftest.$ac_ext
17391 CPPFLAGS="$gt_save_CPPFLAGS"
17392 LIBS="$gt_save_LIBS"
17394 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17395 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17396 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_CFLOCALECOPYCURRENT 1
17404 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17405 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17411 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17412 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17413 # Check whether --enable-nls was given.
17414 if test "${enable_nls+set}" = set; then
17415 enableval=$enable_nls; USE_NLS=$enableval
17420 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17421 echo "${ECHO_T}$USE_NLS" >&6; }
17430 if test "$USE_NLS" = "yes"; then
17431 gt_use_preinstalled_gnugettext=no
17438 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17439 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17440 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 #include <libintl.h>
17450 extern int _nl_msg_cat_cntr;
17451 extern int *_nl_domain_bindings;
17455 bindtextdomain ("", "");
17456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_link") 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } && {
17475 test -z "$ac_c_werror_flag" ||
17476 test ! -s conftest.err
17477 } && test -s conftest$ac_exeext &&
17478 $as_test_x conftest$ac_exeext; then
17479 gt_cv_func_gnugettext1_libc=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 gt_cv_func_gnugettext1_libc=no
17487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17488 conftest$ac_exeext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17491 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17493 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17499 am_save_CPPFLAGS="$CPPFLAGS"
17501 for element in $INCICONV; do
17503 for x in $CPPFLAGS; do
17505 acl_save_prefix="$prefix"
17506 prefix="$acl_final_prefix"
17507 acl_save_exec_prefix="$exec_prefix"
17508 exec_prefix="$acl_final_exec_prefix"
17510 exec_prefix="$acl_save_exec_prefix"
17511 prefix="$acl_save_prefix"
17513 if test "X$x" = "X$element"; then
17518 if test -z "$haveit"; then
17519 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17524 { echo "$as_me:$LINENO: checking for iconv" >&5
17525 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17526 if test "${am_cv_func_iconv+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 am_cv_func_iconv="no, consider installing GNU libiconv"
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 #include <stdlib.h>
17543 iconv_t cd = iconv_open("","");
17544 iconv(cd,NULL,NULL,NULL,NULL);
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (ac_try="$ac_link"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_link") 2>conftest.er1
17559 grep -v '^ *+' conftest.er1 >conftest.err
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } && {
17564 test -z "$ac_c_werror_flag" ||
17565 test ! -s conftest.err
17566 } && test -s conftest$ac_exeext &&
17567 $as_test_x conftest$ac_exeext; then
17568 am_cv_func_iconv=yes
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17577 conftest$ac_exeext conftest.$ac_ext
17578 if test "$am_cv_func_iconv" != yes; then
17579 am_save_LIBS="$LIBS"
17580 LIBS="$LIBS $LIBICONV"
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 #include <stdlib.h>
17592 iconv_t cd = iconv_open("","");
17593 iconv(cd,NULL,NULL,NULL,NULL);
17599 rm -f conftest.$ac_objext conftest$ac_exeext
17600 if { (ac_try="$ac_link"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_link") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest$ac_exeext &&
17616 $as_test_x conftest$ac_exeext; then
17617 am_cv_lib_iconv=yes
17618 am_cv_func_iconv=yes
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17627 conftest$ac_exeext conftest.$ac_ext
17628 LIBS="$am_save_LIBS"
17632 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17633 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17634 if test "$am_cv_func_iconv" = yes; then
17636 cat >>confdefs.h <<\_ACEOF
17637 #define HAVE_ICONV 1
17641 if test "$am_cv_lib_iconv" = yes; then
17642 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17643 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17644 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17645 echo "${ECHO_T}$LIBICONV" >&6; }
17647 CPPFLAGS="$am_save_CPPFLAGS"
17659 acl_save_prefix="$prefix"
17660 prefix="$acl_final_prefix"
17661 acl_save_exec_prefix="$exec_prefix"
17662 exec_prefix="$acl_final_exec_prefix"
17664 eval additional_includedir=\"$includedir\"
17665 eval additional_libdir=\"$libdir\"
17667 exec_prefix="$acl_save_exec_prefix"
17668 prefix="$acl_save_prefix"
17671 # Check whether --with-libintl-prefix was given.
17672 if test "${with_libintl_prefix+set}" = set; then
17673 withval=$with_libintl_prefix;
17674 if test "X$withval" = "Xno"; then
17677 if test "X$withval" = "X"; then
17679 acl_save_prefix="$prefix"
17680 prefix="$acl_final_prefix"
17681 acl_save_exec_prefix="$exec_prefix"
17682 exec_prefix="$acl_final_exec_prefix"
17684 eval additional_includedir=\"$includedir\"
17685 eval additional_libdir=\"$libdir\"
17687 exec_prefix="$acl_save_exec_prefix"
17688 prefix="$acl_save_prefix"
17691 additional_includedir="$withval/include"
17692 additional_libdir="$withval/lib"
17703 names_already_handled=
17704 names_next_round='intl '
17705 while test -n "$names_next_round"; do
17706 names_this_round="$names_next_round"
17708 for name in $names_this_round; do
17710 for n in $names_already_handled; do
17711 if test "$n" = "$name"; then
17712 already_handled=yes
17716 if test -z "$already_handled"; then
17717 names_already_handled="$names_already_handled $name"
17718 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17719 eval value=\"\$HAVE_LIB$uppername\"
17720 if test -n "$value"; then
17721 if test "$value" = yes; then
17722 eval value=\"\$LIB$uppername\"
17723 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17724 eval value=\"\$LTLIB$uppername\"
17725 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17734 if test $use_additional = yes; then
17735 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17736 found_dir="$additional_libdir"
17737 found_so="$additional_libdir/lib$name.$shlibext"
17738 if test -f "$additional_libdir/lib$name.la"; then
17739 found_la="$additional_libdir/lib$name.la"
17742 if test -f "$additional_libdir/lib$name.$libext"; then
17743 found_dir="$additional_libdir"
17744 found_a="$additional_libdir/lib$name.$libext"
17745 if test -f "$additional_libdir/lib$name.la"; then
17746 found_la="$additional_libdir/lib$name.la"
17751 if test "X$found_dir" = "X"; then
17752 for x in $LDFLAGS $LTLIBINTL; do
17754 acl_save_prefix="$prefix"
17755 prefix="$acl_final_prefix"
17756 acl_save_exec_prefix="$exec_prefix"
17757 exec_prefix="$acl_final_exec_prefix"
17759 exec_prefix="$acl_save_exec_prefix"
17760 prefix="$acl_save_prefix"
17764 dir=`echo "X$x" | sed -e 's/^X-L//'`
17765 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17767 found_so="$dir/lib$name.$shlibext"
17768 if test -f "$dir/lib$name.la"; then
17769 found_la="$dir/lib$name.la"
17772 if test -f "$dir/lib$name.$libext"; then
17774 found_a="$dir/lib$name.$libext"
17775 if test -f "$dir/lib$name.la"; then
17776 found_la="$dir/lib$name.la"
17782 if test "X$found_dir" != "X"; then
17787 if test "X$found_dir" != "X"; then
17788 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17789 if test "X$found_so" != "X"; then
17790 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17791 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17794 for x in $ltrpathdirs; do
17795 if test "X$x" = "X$found_dir"; then
17800 if test -z "$haveit"; then
17801 ltrpathdirs="$ltrpathdirs $found_dir"
17803 if test "$hardcode_direct" = yes; then
17804 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17806 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17807 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17809 for x in $rpathdirs; do
17810 if test "X$x" = "X$found_dir"; then
17815 if test -z "$haveit"; then
17816 rpathdirs="$rpathdirs $found_dir"
17820 for x in $LDFLAGS $LIBINTL; do
17822 acl_save_prefix="$prefix"
17823 prefix="$acl_final_prefix"
17824 acl_save_exec_prefix="$exec_prefix"
17825 exec_prefix="$acl_final_exec_prefix"
17827 exec_prefix="$acl_save_exec_prefix"
17828 prefix="$acl_save_prefix"
17830 if test "X$x" = "X-L$found_dir"; then
17835 if test -z "$haveit"; then
17836 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17838 if test "$hardcode_minus_L" != no; then
17839 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17841 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17847 if test "X$found_a" != "X"; then
17848 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17853 additional_includedir=
17854 case "$found_dir" in
17856 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17857 additional_includedir="$basedir/include"
17860 if test "X$additional_includedir" != "X"; then
17861 if test "X$additional_includedir" != "X/usr/include"; then
17863 if test "X$additional_includedir" = "X/usr/local/include"; then
17864 if test -n "$GCC"; then
17866 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17870 if test -z "$haveit"; then
17871 for x in $CPPFLAGS $INCINTL; do
17873 acl_save_prefix="$prefix"
17874 prefix="$acl_final_prefix"
17875 acl_save_exec_prefix="$exec_prefix"
17876 exec_prefix="$acl_final_exec_prefix"
17878 exec_prefix="$acl_save_exec_prefix"
17879 prefix="$acl_save_prefix"
17881 if test "X$x" = "X-I$additional_includedir"; then
17886 if test -z "$haveit"; then
17887 if test -d "$additional_includedir"; then
17888 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17894 if test -n "$found_la"; then
17895 save_libdir="$libdir"
17896 case "$found_la" in
17897 */* | *\\*) . "$found_la" ;;
17898 *) . "./$found_la" ;;
17900 libdir="$save_libdir"
17901 for dep in $dependency_libs; do
17904 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17905 if test "X$additional_libdir" != "X/usr/lib"; then
17907 if test "X$additional_libdir" = "X/usr/local/lib"; then
17908 if test -n "$GCC"; then
17910 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17914 if test -z "$haveit"; then
17916 for x in $LDFLAGS $LIBINTL; do
17918 acl_save_prefix="$prefix"
17919 prefix="$acl_final_prefix"
17920 acl_save_exec_prefix="$exec_prefix"
17921 exec_prefix="$acl_final_exec_prefix"
17923 exec_prefix="$acl_save_exec_prefix"
17924 prefix="$acl_save_prefix"
17926 if test "X$x" = "X-L$additional_libdir"; then
17931 if test -z "$haveit"; then
17932 if test -d "$additional_libdir"; then
17933 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17937 for x in $LDFLAGS $LTLIBINTL; do
17939 acl_save_prefix="$prefix"
17940 prefix="$acl_final_prefix"
17941 acl_save_exec_prefix="$exec_prefix"
17942 exec_prefix="$acl_final_exec_prefix"
17944 exec_prefix="$acl_save_exec_prefix"
17945 prefix="$acl_save_prefix"
17947 if test "X$x" = "X-L$additional_libdir"; then
17952 if test -z "$haveit"; then
17953 if test -d "$additional_libdir"; then
17954 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17961 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17962 if test "$enable_rpath" != no; then
17964 for x in $rpathdirs; do
17965 if test "X$x" = "X$dir"; then
17970 if test -z "$haveit"; then
17971 rpathdirs="$rpathdirs $dir"
17974 for x in $ltrpathdirs; do
17975 if test "X$x" = "X$dir"; then
17980 if test -z "$haveit"; then
17981 ltrpathdirs="$ltrpathdirs $dir"
17986 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17989 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17992 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17993 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17999 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18000 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18006 if test "X$rpathdirs" != "X"; then
18007 if test -n "$hardcode_libdir_separator"; then
18009 for found_dir in $rpathdirs; do
18010 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18012 acl_save_libdir="$libdir"
18014 eval flag=\"$hardcode_libdir_flag_spec\"
18015 libdir="$acl_save_libdir"
18016 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18018 for found_dir in $rpathdirs; do
18019 acl_save_libdir="$libdir"
18020 libdir="$found_dir"
18021 eval flag=\"$hardcode_libdir_flag_spec\"
18022 libdir="$acl_save_libdir"
18023 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18027 if test "X$ltrpathdirs" != "X"; then
18028 for found_dir in $ltrpathdirs; do
18029 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18033 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18034 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18035 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 gt_save_CPPFLAGS="$CPPFLAGS"
18039 CPPFLAGS="$CPPFLAGS $INCINTL"
18040 gt_save_LIBS="$LIBS"
18041 LIBS="$LIBS $LIBINTL"
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <libintl.h>
18049 extern int _nl_msg_cat_cntr;
18054 const char *_nl_expand_alias (const char *);
18058 bindtextdomain ("", "");
18059 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18073 grep -v '^ *+' conftest.er1 >conftest.err
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18082 gt_cv_func_gnugettext1_libintl=yes
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 gt_cv_func_gnugettext1_libintl=no
18090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18091 conftest$ac_exeext conftest.$ac_ext
18092 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18093 LIBS="$LIBS $LIBICONV"
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 #include <libintl.h>
18101 extern int _nl_msg_cat_cntr;
18106 const char *_nl_expand_alias (const char *);
18110 bindtextdomain ("", "");
18111 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (ac_try="$ac_link"
18118 case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18123 (eval "$ac_link") 2>conftest.er1
18125 grep -v '^ *+' conftest.er1 >conftest.err
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } && {
18130 test -z "$ac_c_werror_flag" ||
18131 test ! -s conftest.err
18132 } && test -s conftest$ac_exeext &&
18133 $as_test_x conftest$ac_exeext; then
18134 LIBINTL="$LIBINTL $LIBICONV"
18135 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18136 gt_cv_func_gnugettext1_libintl=yes
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18146 conftest$ac_exeext conftest.$ac_ext
18148 CPPFLAGS="$gt_save_CPPFLAGS"
18149 LIBS="$gt_save_LIBS"
18151 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18152 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18155 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18156 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18157 && test "$PACKAGE" != gettext-runtime \
18158 && test "$PACKAGE" != gettext-tools; }; then
18159 gt_use_preinstalled_gnugettext=yes
18168 if test -n "$INTL_MACOSX_LIBS"; then
18169 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18170 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18171 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18172 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18176 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18177 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18179 cat >>confdefs.h <<\_ACEOF
18180 #define ENABLE_NLS 1
18188 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18189 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18190 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18191 echo "${ECHO_T}$USE_NLS" >&6; }
18192 if test "$USE_NLS" = "yes"; then
18193 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18194 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18195 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18196 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18197 gt_source="external libintl"
18202 gt_source="included intl directory"
18204 { echo "$as_me:$LINENO: result: $gt_source" >&5
18205 echo "${ECHO_T}$gt_source" >&6; }
18208 if test "$USE_NLS" = "yes"; then
18210 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18211 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18212 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18213 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18214 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18215 echo "${ECHO_T}$LIBINTL" >&6; }
18217 for element in $INCINTL; do
18219 for x in $CPPFLAGS; do
18221 acl_save_prefix="$prefix"
18222 prefix="$acl_final_prefix"
18223 acl_save_exec_prefix="$exec_prefix"
18224 exec_prefix="$acl_final_exec_prefix"
18226 exec_prefix="$acl_save_exec_prefix"
18227 prefix="$acl_save_prefix"
18229 if test "X$x" = "X$element"; then
18234 if test -z "$haveit"; then
18235 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18242 cat >>confdefs.h <<\_ACEOF
18243 #define HAVE_GETTEXT 1
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_DCGETTEXT 1
18258 INTLLIBS="$LIBINTL"
18265 if test x${prefix} = xNONE ; then
18266 if test `eval echo ${datarootdir}` = NONE/share ; then
18267 datarootdir=/usr/share
18271 if test x${prefix} = xNONE ; then
18272 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18273 sysconfdir=/etc/bacula
18276 if test `eval echo ${libdir}` = NONE/lib ; then
18278 # Some platforms have other defaults (for 64 bits libs)
18297 if test `eval echo ${includedir}` = NONE/include ; then
18298 includedir=/usr/include
18304 if test x${exec_prefix} = xNONE ; then
18305 exec_prefix=${prefix}
18308 sysconfdir=`eval echo ${sysconfdir}`
18309 datarootdir=`eval echo ${datarootdir}`
18310 libdir=`eval echo ${libdir}`
18311 includedir=`eval echo ${includedir}`
18312 localedir=`eval echo ${datarootdir}/locale`
18313 cat >>confdefs.h <<_ACEOF
18314 #define SYSCONFDIR "$sysconfdir"
18317 cat >>confdefs.h <<_ACEOF
18318 #define LOCALEDIR "$localedir"
18322 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18323 sbindir=${exec_prefix}/sbin
18325 sbindir=`eval echo ${sbindir}`
18327 if test x$mandir = x'${prefix}/man' ; then
18328 mandir=/usr/share/man
18331 for ac_prog in msgfmt
18333 # Extract the first word of "$ac_prog", so it can be a program name with args.
18334 set dummy $ac_prog; ac_word=$2
18335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18337 if test "${ac_cv_path_MSGFMT+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18346 for as_dir in $PATH
18349 test -z "$as_dir" && as_dir=.
18350 for ac_exec_ext in '' $ac_executable_extensions; do
18351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18352 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18363 MSGFMT=$ac_cv_path_MSGFMT
18364 if test -n "$MSGFMT"; then
18365 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18366 echo "${ECHO_T}$MSGFMT" >&6; }
18368 { echo "$as_me:$LINENO: result: no" >&5
18369 echo "${ECHO_T}no" >&6; }
18373 test -n "$MSGFMT" && break
18375 test -n "$MSGFMT" || MSGFMT="no"
18377 if test "$MSGFMT" = "no"
18379 echo 'msgfmt program not found, disabling NLS !'
18381 USE_INCLUDED_LIBINTL=no
18384 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18385 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18386 if test "${ac_cv_gnu_library_2+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18396 #include <features.h>
18397 #ifdef __GNU_LIBRARY__
18398 #if (__GLIBC__ >= 2)
18404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18405 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18406 ac_cv_gnu_library_2=yes
18408 ac_cv_gnu_library_2=no
18415 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18416 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18418 GLIBC2="$ac_cv_gnu_library_2"
18421 if test -n "$ac_tool_prefix"; then
18422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18426 if test "${ac_cv_prog_RANLIB+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 if test -n "$RANLIB"; then
18430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18433 for as_dir in $PATH
18436 test -z "$as_dir" && as_dir=.
18437 for ac_exec_ext in '' $ac_executable_extensions; do
18438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18449 RANLIB=$ac_cv_prog_RANLIB
18450 if test -n "$RANLIB"; then
18451 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18452 echo "${ECHO_T}$RANLIB" >&6; }
18454 { echo "$as_me:$LINENO: result: no" >&5
18455 echo "${ECHO_T}no" >&6; }
18460 if test -z "$ac_cv_prog_RANLIB"; then
18461 ac_ct_RANLIB=$RANLIB
18462 # Extract the first word of "ranlib", so it can be a program name with args.
18463 set dummy ranlib; ac_word=$2
18464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 if test -n "$ac_ct_RANLIB"; then
18470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18473 for as_dir in $PATH
18476 test -z "$as_dir" && as_dir=.
18477 for ac_exec_ext in '' $ac_executable_extensions; do
18478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18479 ac_cv_prog_ac_ct_RANLIB="ranlib"
18480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18490 if test -n "$ac_ct_RANLIB"; then
18491 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18492 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18494 { echo "$as_me:$LINENO: result: no" >&5
18495 echo "${ECHO_T}no" >&6; }
18498 if test "x$ac_ct_RANLIB" = x; then
18501 case $cross_compiling:$ac_tool_warned in
18503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18504 whose name does not start with the host triplet. If you think this
18505 configuration is useful to you, please write to autoconf@gnu.org." >&5
18506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18507 whose name does not start with the host triplet. If you think this
18508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18509 ac_tool_warned=yes ;;
18511 RANLIB=$ac_ct_RANLIB
18514 RANLIB="$ac_cv_prog_RANLIB"
18518 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18519 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_check_lib_save_LIBS=$LIBS
18524 LIBS="-lcposix $LIBS"
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18542 return strerror ();
18547 rm -f conftest.$ac_objext conftest$ac_exeext
18548 if { (ac_try="$ac_link"
18549 case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest$ac_exeext &&
18564 $as_test_x conftest$ac_exeext; then
18565 ac_cv_lib_cposix_strerror=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_cposix_strerror=no
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18578 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18579 if test $ac_cv_lib_cposix_strerror = yes; then
18580 LIBS="$LIBS -lcposix"
18585 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18586 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18587 if test "${ac_cv_c_const+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18600 /* FIXME: Include the comments suggested by Paul. */
18601 #ifndef __cplusplus
18602 /* Ultrix mips cc rejects this. */
18603 typedef int charset[2];
18605 /* SunOS 4.1.1 cc rejects this. */
18606 char const *const *pcpcc;
18608 /* NEC SVR4.0.2 mips cc rejects this. */
18609 struct point {int x, y;};
18610 static struct point const zero = {0,0};
18611 /* AIX XL C 1.02.0.0 rejects this.
18612 It does not let you subtract one const X* pointer from another in
18613 an arm of an if-expression whose if-part is not a constant
18615 const char *g = "string";
18616 pcpcc = &g + (g ? g-g : 0);
18617 /* HPUX 7.0 cc rejects these. */
18619 ppc = (char**) pcpcc;
18620 pcpcc = (char const *const *) ppc;
18621 { /* SCO 3.2v4 cc rejects this. */
18623 char const *s = 0 ? (char *) 0 : (char const *) 0;
18628 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18629 int x[] = {25, 17};
18630 const int *foo = &x[0];
18633 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18634 typedef const int *iptr;
18638 { /* AIX XL C 1.02.0.0 rejects this saying
18639 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18640 struct s { int j; const int *ap[3]; };
18641 struct s *b; b->j = 5;
18643 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18644 const int foo = 10;
18645 if (!foo) return 0;
18647 return !cs[0] && !zero.x;
18654 rm -f conftest.$ac_objext
18655 if { (ac_try="$ac_compile"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_compile") 2>conftest.er1
18663 grep -v '^ *+' conftest.er1 >conftest.err
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } && {
18668 test -z "$ac_c_werror_flag" ||
18669 test ! -s conftest.err
18670 } && test -s conftest.$ac_objext; then
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18682 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18683 if test $ac_cv_c_const = no; then
18685 cat >>confdefs.h <<\_ACEOF
18692 { echo "$as_me:$LINENO: checking for signed" >&5
18693 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18694 if test "${bh_cv_c_signed+set}" = set; then
18695 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 cat >conftest.$ac_ext <<_ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18712 rm -f conftest.$ac_objext
18713 if { (ac_try="$ac_compile"
18714 case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_compile") 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } && {
18726 test -z "$ac_c_werror_flag" ||
18727 test ! -s conftest.err
18728 } && test -s conftest.$ac_objext; then
18731 echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18739 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18740 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18741 if test $bh_cv_c_signed = no; then
18743 cat >>confdefs.h <<\_ACEOF
18749 { echo "$as_me:$LINENO: checking for inline" >&5
18750 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18751 if test "${ac_cv_c_inline+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18755 for ac_kw in inline __inline__ __inline; do
18756 cat >conftest.$ac_ext <<_ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 #ifndef __cplusplus
18764 static $ac_kw foo_t static_foo () {return 0; }
18765 $ac_kw foo_t foo () {return 0; }
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_compile") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest.$ac_objext; then
18786 ac_cv_c_inline=$ac_kw
18788 echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 test "$ac_cv_c_inline" != no && break
18799 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18800 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18803 case $ac_cv_c_inline in
18806 case $ac_cv_c_inline in
18808 *) ac_val=$ac_cv_c_inline;;
18810 cat >>confdefs.h <<_ACEOF
18811 #ifndef __cplusplus
18812 #define inline $ac_val
18818 { echo "$as_me:$LINENO: checking for off_t" >&5
18819 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18820 if test "${ac_cv_type_off_t+set}" = set; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 $ac_includes_default
18830 typedef off_t ac__type_new_;
18834 if ((ac__type_new_ *) 0)
18836 if (sizeof (ac__type_new_))
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest.$ac_objext; then
18859 ac_cv_type_off_t=yes
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_cv_type_off_t=no
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18870 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18871 if test $ac_cv_type_off_t = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define off_t long int
18881 { echo "$as_me:$LINENO: checking for size_t" >&5
18882 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18883 if test "${ac_cv_type_size_t+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 cat >conftest.$ac_ext <<_ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 $ac_includes_default
18893 typedef size_t ac__type_new_;
18897 if ((ac__type_new_ *) 0)
18899 if (sizeof (ac__type_new_))
18905 rm -f conftest.$ac_objext
18906 if { (ac_try="$ac_compile"
18907 case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_compile") 2>conftest.er1
18914 grep -v '^ *+' conftest.er1 >conftest.err
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && {
18919 test -z "$ac_c_werror_flag" ||
18920 test ! -s conftest.err
18921 } && test -s conftest.$ac_objext; then
18922 ac_cv_type_size_t=yes
18924 echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18927 ac_cv_type_size_t=no
18930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18932 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18933 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18934 if test $ac_cv_type_size_t = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define size_t unsigned int
18945 { echo "$as_me:$LINENO: checking for long long" >&5
18946 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18947 if test "${ac_cv_type_long_long+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 long long ll = 1LL; int i = 63;
18960 long long llmax = (long long) -1;
18961 return ll << i | ll >> i | llmax / ll | llmax % ll;
18966 rm -f conftest.$ac_objext conftest$ac_exeext
18967 if { (ac_try="$ac_link"
18968 case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_link") 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } && {
18980 test -z "$ac_c_werror_flag" ||
18981 test ! -s conftest.err
18982 } && test -s conftest$ac_exeext &&
18983 $as_test_x conftest$ac_exeext; then
18984 ac_cv_type_long_long=yes
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 ac_cv_type_long_long=no
18992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18993 conftest$ac_exeext conftest.$ac_ext
18995 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18996 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
18997 if test $ac_cv_type_long_long = yes; then
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_LONG_LONG 1
19006 { echo "$as_me:$LINENO: checking for long double" >&5
19007 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19008 if test "${gt_cv_c_long_double+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19011 if test "$GCC" = yes; then
19012 gt_cv_c_long_double=yes
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19021 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19022 long double foo = 0.0;
19023 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19024 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19034 rm -f conftest.$ac_objext
19035 if { (ac_try="$ac_compile"
19036 case "(($ac_try" in
19037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038 *) ac_try_echo=$ac_try;;
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041 (eval "$ac_compile") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1 >conftest.err
19045 cat conftest.err >&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest.$ac_objext; then
19051 gt_cv_c_long_double=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 gt_cv_c_long_double=no
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19062 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19063 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19064 if test $gt_cv_c_long_double = yes; then
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE_LONG_DOUBLE 1
19073 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19074 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19075 if test "${gt_cv_c_wchar_t+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 cat >conftest.$ac_ext <<_ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <stddef.h>
19085 wchar_t foo = (wchar_t)'\0';
19094 rm -f conftest.$ac_objext
19095 if { (ac_try="$ac_compile"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_compile") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1 >conftest.err
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && {
19108 test -z "$ac_c_werror_flag" ||
19109 test ! -s conftest.err
19110 } && test -s conftest.$ac_objext; then
19111 gt_cv_c_wchar_t=yes
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19121 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19122 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19123 if test $gt_cv_c_wchar_t = yes; then
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE_WCHAR_T 1
19132 { echo "$as_me:$LINENO: checking for wint_t" >&5
19133 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19134 if test "${gt_cv_c_wint_t+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 wint_t foo = (wchar_t)'\0';
19153 rm -f conftest.$ac_objext
19154 if { (ac_try="$ac_compile"
19155 case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_compile") 2>conftest.er1
19162 grep -v '^ *+' conftest.er1 >conftest.err
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } && {
19167 test -z "$ac_c_werror_flag" ||
19168 test ! -s conftest.err
19169 } && test -s conftest.$ac_objext; then
19172 echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19181 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19182 if test $gt_cv_c_wint_t = yes; then
19184 cat >>confdefs.h <<\_ACEOF
19185 #define HAVE_WINT_T 1
19191 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19192 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19193 if test "${gl_cv_header_inttypes_h+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 cat >conftest.$ac_ext <<_ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202 #include <sys/types.h>
19203 #include <inttypes.h>
19207 uintmax_t i = (uintmax_t) -1;
19212 rm -f conftest.$ac_objext
19213 if { (ac_try="$ac_compile"
19214 case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_compile") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } && {
19226 test -z "$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 } && test -s conftest.$ac_objext; then
19229 gl_cv_header_inttypes_h=yes
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 gl_cv_header_inttypes_h=no
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19240 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19241 if test $gl_cv_header_inttypes_h = yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19250 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19251 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19252 if test "${gl_cv_header_stdint_h+set}" = set; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19255 cat >conftest.$ac_ext <<_ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 #include <sys/types.h>
19262 #include <stdint.h>
19266 uintmax_t i = (uintmax_t) -1;
19271 rm -f conftest.$ac_objext
19272 if { (ac_try="$ac_compile"
19273 case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_compile") 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest.$ac_objext; then
19288 gl_cv_header_stdint_h=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 gl_cv_header_stdint_h=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19299 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19300 if test $gl_cv_header_stdint_h = yes; then
19302 cat >>confdefs.h <<_ACEOF
19303 #define HAVE_STDINT_H_WITH_UINTMAX 1
19311 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19312 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19313 if test "${gt_cv_c_intmax_t+set}" = set; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19316 cat >conftest.$ac_ext <<_ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19323 #include <stddef.h>
19324 #include <stdlib.h>
19325 #if HAVE_STDINT_H_WITH_UINTMAX
19326 #include <stdint.h>
19328 #if HAVE_INTTYPES_H_WITH_UINTMAX
19329 #include <inttypes.h>
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest.$ac_objext; then
19357 gt_cv_c_intmax_t=yes
19359 echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 gt_cv_c_intmax_t=no
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19368 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19369 if test $gt_cv_c_intmax_t = yes; then
19371 cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_INTMAX_T 1
19379 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19380 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19381 if test "${gt_cv_func_printf_posix+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 if test "$cross_compiling" = yes; then
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19400 $EGREP "notposix" >/dev/null 2>&1; then
19401 gt_cv_func_printf_posix="guessing no"
19403 gt_cv_func_printf_posix="guessing yes"
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19417 #include <string.h>
19418 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19419 dollar expansion (possibly an autoconf bug). */
19420 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19421 static char buf[100];
19424 sprintf (buf, format, 33, 55);
19425 return (strcmp (buf, "55 33") != 0);
19428 rm -f conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 gt_cv_func_printf_posix=yes
19450 echo "$as_me: program exited with status $ac_status" >&5
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ( exit $ac_status )
19455 gt_cv_func_printf_posix=no
19457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19463 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19464 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19465 case $gt_cv_func_printf_posix in
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_POSIX_PRINTF 1
19475 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19476 # for constant arguments. Useless!
19477 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19478 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19479 if test "${ac_cv_working_alloca_h+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488 #include <alloca.h>
19492 char *p = (char *) alloca (2 * sizeof (int));
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest$ac_exeext &&
19515 $as_test_x conftest$ac_exeext; then
19516 ac_cv_working_alloca_h=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_cv_working_alloca_h=no
19524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19525 conftest$ac_exeext conftest.$ac_ext
19527 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19528 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19529 if test $ac_cv_working_alloca_h = yes; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_ALLOCA_H 1
19537 { echo "$as_me:$LINENO: checking for alloca" >&5
19538 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19539 if test "${ac_cv_func_alloca_works+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19549 # define alloca __builtin_alloca
19552 # include <malloc.h>
19553 # define alloca _alloca
19555 # ifdef HAVE_ALLOCA_H
19556 # include <alloca.h>
19561 # ifndef alloca /* predefined by HP cc +Olibcalls */
19572 char *p = (char *) alloca (1);
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_link") 2>conftest.er1
19587 grep -v '^ *+' conftest.er1 >conftest.err
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } && {
19592 test -z "$ac_c_werror_flag" ||
19593 test ! -s conftest.err
19594 } && test -s conftest$ac_exeext &&
19595 $as_test_x conftest$ac_exeext; then
19596 ac_cv_func_alloca_works=yes
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 ac_cv_func_alloca_works=no
19604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19605 conftest$ac_exeext conftest.$ac_ext
19607 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19608 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19610 if test $ac_cv_func_alloca_works = yes; then
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_ALLOCA 1
19617 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19618 # that cause trouble. Some versions do not even contain alloca or
19619 # contain a buggy version. If you still want to use their alloca,
19620 # use ar to extract alloca.o from them instead of compiling alloca.c.
19622 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19624 cat >>confdefs.h <<\_ACEOF
19629 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19630 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19631 if test "${ac_cv_os_cray+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #if defined CRAY && ! defined CRAY2
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648 $EGREP "webecray" >/dev/null 2>&1; then
19656 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19657 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19658 if test $ac_cv_os_cray = yes; then
19659 for ac_func in _getb67 GETB67 getb67; do
19660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19674 #define $ac_func innocuous_$ac_func
19676 /* System header to define __stub macros and hopefully few prototypes,
19677 which can conflict with char $ac_func (); below.
19678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19679 <limits.h> exists even on freestanding compilers. */
19682 # include <limits.h>
19684 # include <assert.h>
19689 /* Override any GCC internal prototype to avoid an error.
19690 Use char because int might match the return type of a GCC
19691 builtin and then its argument prototype would still apply. */
19696 /* The GNU C library defines this for functions which it implements
19697 to always fail with ENOSYS. Some functions are actually named
19698 something starting with __ and the normal name is an alias. */
19699 #if defined __stub_$ac_func || defined __stub___$ac_func
19706 return $ac_func ();
19711 rm -f conftest.$ac_objext conftest$ac_exeext
19712 if { (ac_try="$ac_link"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_link") 2>conftest.er1
19720 grep -v '^ *+' conftest.er1 >conftest.err
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } && {
19725 test -z "$ac_c_werror_flag" ||
19726 test ! -s conftest.err
19727 } && test -s conftest$ac_exeext &&
19728 $as_test_x conftest$ac_exeext; then
19729 eval "$as_ac_var=yes"
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19734 eval "$as_ac_var=no"
19737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19738 conftest$ac_exeext conftest.$ac_ext
19740 ac_res=`eval echo '${'$as_ac_var'}'`
19741 { echo "$as_me:$LINENO: result: $ac_res" >&5
19742 echo "${ECHO_T}$ac_res" >&6; }
19743 if test `eval echo '${'$as_ac_var'}'` = yes; then
19745 cat >>confdefs.h <<_ACEOF
19746 #define CRAY_STACKSEG_END $ac_func
19755 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19756 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19757 if test "${ac_cv_c_stack_direction+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 if test "$cross_compiling" = yes; then
19761 ac_cv_c_stack_direction=0
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 $ac_includes_default
19771 find_stack_direction ()
19773 static char *addr = 0;
19778 return find_stack_direction ();
19781 return (&dummy > addr) ? 1 : -1;
19787 return find_stack_direction () < 0;
19790 rm -f conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19801 { (case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_try") 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_cv_c_stack_direction=1
19812 echo "$as_me: program exited with status $ac_status" >&5
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ( exit $ac_status )
19817 ac_cv_c_stack_direction=-1
19819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19824 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19825 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19827 cat >>confdefs.h <<_ACEOF
19828 #define STACK_DIRECTION $ac_cv_c_stack_direction
19836 for ac_header in stdlib.h unistd.h
19838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 ac_res=`eval echo '${'$as_ac_Header'}'`
19846 { echo "$as_me:$LINENO: result: $ac_res" >&5
19847 echo "${ECHO_T}$ac_res" >&6; }
19849 # Is the header compilable?
19850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 $ac_includes_default
19859 #include <$ac_header>
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_compile") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest.$ac_objext; then
19878 ac_header_compiler=yes
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ac_header_compiler=no
19886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19888 echo "${ECHO_T}$ac_header_compiler" >&6; }
19890 # Is the header present?
19891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19893 cat >conftest.$ac_ext <<_ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19899 #include <$ac_header>
19901 if { (ac_try="$ac_cpp conftest.$ac_ext"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null && {
19914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19915 test ! -s conftest.err
19917 ac_header_preproc=yes
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ac_header_preproc=no
19925 rm -f conftest.err conftest.$ac_ext
19926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927 echo "${ECHO_T}$ac_header_preproc" >&6; }
19929 # So? What about this header?
19930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19936 ac_header_preproc=yes
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 eval "$as_ac_Header=\$ac_header_preproc"
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962 { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19967 cat >>confdefs.h <<_ACEOF
19968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19976 for ac_func in getpagesize
19978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 cat >conftest.$ac_ext <<_ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19992 #define $ac_func innocuous_$ac_func
19994 /* System header to define __stub macros and hopefully few prototypes,
19995 which can conflict with char $ac_func (); below.
19996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19997 <limits.h> exists even on freestanding compilers. */
20000 # include <limits.h>
20002 # include <assert.h>
20007 /* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20014 /* The GNU C library defines this for functions which it implements
20015 to always fail with ENOSYS. Some functions are actually named
20016 something starting with __ and the normal name is an alias. */
20017 #if defined __stub_$ac_func || defined __stub___$ac_func
20024 return $ac_func ();
20029 rm -f conftest.$ac_objext conftest$ac_exeext
20030 if { (ac_try="$ac_link"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20036 (eval "$ac_link") 2>conftest.er1
20038 grep -v '^ *+' conftest.er1 >conftest.err
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } && {
20043 test -z "$ac_c_werror_flag" ||
20044 test ! -s conftest.err
20045 } && test -s conftest$ac_exeext &&
20046 $as_test_x conftest$ac_exeext; then
20047 eval "$as_ac_var=yes"
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 eval "$as_ac_var=no"
20055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20056 conftest$ac_exeext conftest.$ac_ext
20058 ac_res=`eval echo '${'$as_ac_var'}'`
20059 { echo "$as_me:$LINENO: result: $ac_res" >&5
20060 echo "${ECHO_T}$ac_res" >&6; }
20061 if test `eval echo '${'$as_ac_var'}'` = yes; then
20062 cat >>confdefs.h <<_ACEOF
20063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20069 { echo "$as_me:$LINENO: checking for working mmap" >&5
20070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 if test "$cross_compiling" = yes; then
20075 ac_cv_func_mmap_fixed_mapped=no
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 $ac_includes_default
20084 /* malloc might have been renamed as rpl_malloc. */
20087 /* Thanks to Mike Haertel and Jim Avera for this test.
20088 Here is a matrix of mmap possibilities:
20089 mmap private not fixed
20090 mmap private fixed at somewhere currently unmapped
20091 mmap private fixed at somewhere already mapped
20092 mmap shared not fixed
20093 mmap shared fixed at somewhere currently unmapped
20094 mmap shared fixed at somewhere already mapped
20095 For private mappings, we should verify that changes cannot be read()
20096 back from the file, nor mmap's back from the file at a different
20097 address. (There have been systems where private was not correctly
20098 implemented like the infamous i386 svr4.0, and systems where the
20099 VM page cache was not coherent with the file system buffer cache
20100 like early versions of FreeBSD and possibly contemporary NetBSD.)
20101 For shared mappings, we should conversely verify that changes get
20102 propagated back to all the places they're supposed to be.
20104 Grep wants private fixed already mapped.
20105 The main things grep needs to know about mmap are:
20106 * does it exist and is it safe to write into the mmap'd area
20107 * how to use it (BSD variants) */
20110 #include <sys/mman.h>
20112 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20116 /* This mess was copied from the GNU getpagesize.h. */
20117 #ifndef HAVE_GETPAGESIZE
20118 /* Assume that all systems that can run configure have sys/param.h. */
20119 # ifndef HAVE_SYS_PARAM_H
20120 # define HAVE_SYS_PARAM_H 1
20123 # ifdef _SC_PAGESIZE
20124 # define getpagesize() sysconf(_SC_PAGESIZE)
20125 # else /* no _SC_PAGESIZE */
20126 # ifdef HAVE_SYS_PARAM_H
20127 # include <sys/param.h>
20128 # ifdef EXEC_PAGESIZE
20129 # define getpagesize() EXEC_PAGESIZE
20130 # else /* no EXEC_PAGESIZE */
20132 # define getpagesize() NBPG * CLSIZE
20135 # endif /* no CLSIZE */
20136 # else /* no NBPG */
20138 # define getpagesize() NBPC
20139 # else /* no NBPC */
20141 # define getpagesize() PAGESIZE
20142 # endif /* PAGESIZE */
20143 # endif /* no NBPC */
20144 # endif /* no NBPG */
20145 # endif /* no EXEC_PAGESIZE */
20146 # else /* no HAVE_SYS_PARAM_H */
20147 # define getpagesize() 8192 /* punt totally */
20148 # endif /* no HAVE_SYS_PARAM_H */
20149 # endif /* no _SC_PAGESIZE */
20151 #endif /* no HAVE_GETPAGESIZE */
20156 char *data, *data2, *data3;
20160 pagesize = getpagesize ();
20162 /* First, make a file with some known garbage in it. */
20163 data = (char *) malloc (pagesize);
20166 for (i = 0; i < pagesize; ++i)
20167 *(data + i) = rand ();
20169 fd = creat ("conftest.mmap", 0600);
20172 if (write (fd, data, pagesize) != pagesize)
20176 /* Next, try to mmap the file at a fixed address which already has
20177 something else allocated at it. If we can, also make sure that
20178 we see the same garbage. */
20179 fd = open ("conftest.mmap", O_RDWR);
20182 data2 = (char *) malloc (2 * pagesize);
20185 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20189 for (i = 0; i < pagesize; ++i)
20190 if (*(data + i) != *(data2 + i))
20193 /* Finally, make sure that changes to the mapped area do not
20194 percolate back to the file as seen by read(). (This is a bug on
20195 some variants of i386 svr4.0.) */
20196 for (i = 0; i < pagesize; ++i)
20197 *(data2 + i) = *(data2 + i) + 1;
20198 data3 = (char *) malloc (pagesize);
20201 if (read (fd, data3, pagesize) != pagesize)
20203 for (i = 0; i < pagesize; ++i)
20204 if (*(data + i) != *(data3 + i))
20210 rm -f conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_link") 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_func_mmap_fixed_mapped=yes
20232 echo "$as_me: program exited with status $ac_status" >&5
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ( exit $ac_status )
20237 ac_cv_func_mmap_fixed_mapped=no
20239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20245 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_MMAP 1
20253 rm -f conftest.mmap
20256 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20257 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20258 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 cat >conftest.$ac_ext <<_ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h. */
20268 #include <features.h>
20269 #ifdef __GNU_LIBRARY__
20270 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20277 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20278 ac_cv_gnu_library_2_1=yes
20280 ac_cv_gnu_library_2_1=no
20287 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20288 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20290 GLIBC21="$ac_cv_gnu_library_2_1"
20295 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20296 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20297 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 if test "$cross_compiling" = yes; then
20303 # Guess based on the CPU.
20304 case "$host_cpu" in
20305 alpha* | i3456786 | m68k | s390*)
20306 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20308 gt_cv_int_divbyzero_sigfpe="guessing no";;
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 #include <stdlib.h>
20320 #include <signal.h>
20324 sigfpe_handler (int sig)
20326 sigfpe_handler (sig) int sig;
20329 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20330 exit (sig != SIGFPE);
20340 signal (SIGFPE, sigfpe_handler);
20341 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20342 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20343 signal (SIGTRAP, sigfpe_handler);
20345 /* Linux/SPARC yields signal SIGILL. */
20346 #if defined (__sparc__) && defined (__linux__)
20347 signal (SIGILL, sigfpe_handler);
20356 rm -f conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_link") 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 gt_cv_int_divbyzero_sigfpe=yes
20378 echo "$as_me: program exited with status $ac_status" >&5
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ( exit $ac_status )
20383 gt_cv_int_divbyzero_sigfpe=no
20385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20391 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20392 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20393 case "$gt_cv_int_divbyzero_sigfpe" in
20398 cat >>confdefs.h <<_ACEOF
20399 #define INTDIV0_RAISES_SIGFPE $value
20404 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20405 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20406 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 unsigned long long ull = 1ULL; int i = 63;
20419 unsigned long long ullmax = (unsigned long long) -1;
20420 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20425 rm -f conftest.$ac_objext conftest$ac_exeext
20426 if { (ac_try="$ac_link"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_link") 2>conftest.er1
20434 grep -v '^ *+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest$ac_exeext &&
20442 $as_test_x conftest$ac_exeext; then
20443 ac_cv_type_unsigned_long_long=yes
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20448 ac_cv_type_unsigned_long_long=no
20451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20452 conftest$ac_exeext conftest.$ac_ext
20454 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20455 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20456 if test $ac_cv_type_unsigned_long_long = yes; then
20458 cat >>confdefs.h <<\_ACEOF
20459 #define HAVE_UNSIGNED_LONG_LONG 1
20467 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20469 test $ac_cv_type_unsigned_long_long = yes \
20470 && ac_type='unsigned long long' \
20471 || ac_type='unsigned long'
20473 cat >>confdefs.h <<_ACEOF
20474 #define uintmax_t $ac_type
20479 cat >>confdefs.h <<\_ACEOF
20480 #define HAVE_UINTMAX_T 1
20486 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20487 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20488 if test "${gt_cv_header_inttypes_h+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <sys/types.h>
20499 #include <inttypes.h>
20508 rm -f conftest.$ac_objext
20509 if { (ac_try="$ac_compile"
20510 case "(($ac_try" in
20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512 *) ac_try_echo=$ac_try;;
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515 (eval "$ac_compile") 2>conftest.er1
20517 grep -v '^ *+' conftest.er1 >conftest.err
20519 cat conftest.err >&5
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } && {
20522 test -z "$ac_c_werror_flag" ||
20523 test ! -s conftest.err
20524 } && test -s conftest.$ac_objext; then
20525 gt_cv_header_inttypes_h=yes
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 gt_cv_header_inttypes_h=no
20533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20536 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20537 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20538 if test $gt_cv_header_inttypes_h = yes; then
20540 cat >>confdefs.h <<_ACEOF
20541 #define HAVE_INTTYPES_H 1
20548 if test $gt_cv_header_inttypes_h = yes; then
20549 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20550 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20551 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 cat >conftest.$ac_ext <<_ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 #include <inttypes.h>
20574 rm -f conftest.$ac_objext
20575 if { (ac_try="$ac_compile"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_compile") 2>conftest.er1
20583 grep -v '^ *+' conftest.er1 >conftest.err
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest.$ac_objext; then
20591 gt_cv_inttypes_pri_broken=no
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 gt_cv_inttypes_pri_broken=yes
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20603 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20605 if test "$gt_cv_inttypes_pri_broken" = yes; then
20607 cat >>confdefs.h <<_ACEOF
20608 #define PRI_MACROS_BROKEN 1
20615 for ac_header in stdint.h
20617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 ac_res=`eval echo '${'$as_ac_Header'}'`
20625 { echo "$as_me:$LINENO: result: $ac_res" >&5
20626 echo "${ECHO_T}$ac_res" >&6; }
20628 # Is the header compilable?
20629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20631 cat >conftest.$ac_ext <<_ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20637 $ac_includes_default
20638 #include <$ac_header>
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20649 grep -v '^ *+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest.$ac_objext; then
20657 ac_header_compiler=yes
20659 echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20662 ac_header_compiler=no
20665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20667 echo "${ECHO_T}$ac_header_compiler" >&6; }
20669 # Is the header present?
20670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20672 cat >conftest.$ac_ext <<_ACEOF
20675 cat confdefs.h >>conftest.$ac_ext
20676 cat >>conftest.$ac_ext <<_ACEOF
20677 /* end confdefs.h. */
20678 #include <$ac_header>
20680 if { (ac_try="$ac_cpp conftest.$ac_ext"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } >/dev/null && {
20693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20696 ac_header_preproc=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ac_header_preproc=no
20704 rm -f conftest.err conftest.$ac_ext
20705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20706 echo "${ECHO_T}$ac_header_preproc" >&6; }
20708 # So? What about this header?
20709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20715 ac_header_preproc=yes
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 eval "$as_ac_Header=\$ac_header_preproc"
20740 ac_res=`eval echo '${'$as_ac_Header'}'`
20741 { echo "$as_me:$LINENO: result: $ac_res" >&5
20742 echo "${ECHO_T}$ac_res" >&6; }
20745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20746 cat >>confdefs.h <<_ACEOF
20747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20754 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20755 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20757 cat >conftest.$ac_ext <<_ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20764 #include <limits.h>
20766 #include <stdint.h>
20773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20774 $EGREP "Found it" >/dev/null 2>&1; then
20779 if test -z "$result"; then
20780 if test "$cross_compiling" = yes; then
20781 # Depending upon the size, compute the lo and hi bounds.
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <stddef.h>
20792 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20799 rm -f conftest.$ac_objext
20800 if { (ac_try="$ac_compile"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_compile") 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest.$ac_objext; then
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 #include <stddef.h>
20828 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20852 ac_hi=$ac_mid; break
20854 echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20857 ac_lo=`expr $ac_mid + 1`
20858 if test $ac_lo -le $ac_mid; then
20862 ac_mid=`expr 2 '*' $ac_mid + 1`
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20868 echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <stddef.h>
20881 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20888 rm -f conftest.$ac_objext
20889 if { (ac_try="$ac_compile"
20890 case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_compile") 2>conftest.er1
20897 grep -v '^ *+' conftest.er1 >conftest.err
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest.$ac_objext; then
20907 cat >conftest.$ac_ext <<_ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h. */
20913 #include <stddef.h>
20917 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20933 grep -v '^ *+' conftest.er1 >conftest.err
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && {
20938 test -z "$ac_c_werror_flag" ||
20939 test ! -s conftest.err
20940 } && test -s conftest.$ac_objext; then
20941 ac_lo=$ac_mid; break
20943 echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20946 ac_hi=`expr '(' $ac_mid ')' - 1`
20947 if test $ac_mid -le $ac_hi; then
20951 ac_mid=`expr 2 '*' $ac_mid`
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 # Binary search between lo and hi bounds.
20968 while test "x$ac_lo" != "x$ac_hi"; do
20969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 #include <stddef.h>
20980 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 ac_lo=`expr '(' $ac_mid ')' + 1`
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 ?*) res_hi=$ac_lo;;
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 #include <stddef.h>
21026 static long int longval () { return ~(size_t)0 / 10; }
21027 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21029 #include <stdlib.h>
21034 FILE *f = fopen ("conftest.val", "w");
21037 if ((~(size_t)0 / 10) < 0)
21039 long int i = longval ();
21040 if (i != (~(size_t)0 / 10))
21042 fprintf (f, "%ld\n", i);
21046 unsigned long int i = ulongval ();
21047 if (i != (~(size_t)0 / 10))
21049 fprintf (f, "%lu\n", i);
21051 return ferror (f) || fclose (f) != 0;
21057 rm -f conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_link") 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21068 { (case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_try") 2>&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077 res_hi=`cat conftest.val`
21079 echo "$as_me: program exited with status $ac_status" >&5
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ( exit $ac_status )
21086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21090 if test "$cross_compiling" = yes; then
21091 # Depending upon the size, compute the lo and hi bounds.
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <stddef.h>
21102 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21128 cat >conftest.$ac_ext <<_ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <stddef.h>
21138 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21162 ac_hi=$ac_mid; break
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_lo=`expr $ac_mid + 1`
21168 if test $ac_lo -le $ac_mid; then
21172 ac_mid=`expr 2 '*' $ac_mid + 1`
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21178 echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <stddef.h>
21191 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_compile") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest.$ac_objext; then
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <stddef.h>
21227 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21234 rm -f conftest.$ac_objext
21235 if { (ac_try="$ac_compile"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_compile") 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } && {
21248 test -z "$ac_c_werror_flag" ||
21249 test ! -s conftest.err
21250 } && test -s conftest.$ac_objext; then
21251 ac_lo=$ac_mid; break
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21256 ac_hi=`expr '(' $ac_mid ')' - 1`
21257 if test $ac_mid -le $ac_hi; then
21261 ac_mid=`expr 2 '*' $ac_mid`
21264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 # Binary search between lo and hi bounds.
21278 while test "x$ac_lo" != "x$ac_hi"; do
21279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 #include <stddef.h>
21290 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304 (eval "$ac_compile") 2>conftest.er1
21306 grep -v '^ *+' conftest.er1 >conftest.err
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } && {
21311 test -z "$ac_c_werror_flag" ||
21312 test ! -s conftest.err
21313 } && test -s conftest.$ac_objext; then
21316 echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 ac_lo=`expr '(' $ac_mid ')' + 1`
21322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 ?*) res_lo=$ac_lo;;
21329 cat >conftest.$ac_ext <<_ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 #include <stddef.h>
21336 static long int longval () { return ~(size_t)0 % 10; }
21337 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21339 #include <stdlib.h>
21344 FILE *f = fopen ("conftest.val", "w");
21347 if ((~(size_t)0 % 10) < 0)
21349 long int i = longval ();
21350 if (i != (~(size_t)0 % 10))
21352 fprintf (f, "%ld\n", i);
21356 unsigned long int i = ulongval ();
21357 if (i != (~(size_t)0 % 10))
21359 fprintf (f, "%lu\n", i);
21361 return ferror (f) || fclose (f) != 0;
21367 rm -f conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_link") 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21378 { (case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_try") 2>&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 res_lo=`cat conftest.val`
21389 echo "$as_me: program exited with status $ac_status" >&5
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ( exit $ac_status )
21396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21400 if test "$cross_compiling" = yes; then
21401 # Depending upon the size, compute the lo and hi bounds.
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 #include <stddef.h>
21412 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21428 grep -v '^ *+' conftest.er1 >conftest.err
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest.$ac_objext; then
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <stddef.h>
21448 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest.$ac_objext; then
21472 ac_hi=$ac_mid; break
21474 echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21477 ac_lo=`expr $ac_mid + 1`
21478 if test $ac_lo -le $ac_mid; then
21482 ac_mid=`expr 2 '*' $ac_mid + 1`
21485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21488 echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 cat >conftest.$ac_ext <<_ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h. */
21497 #include <stddef.h>
21501 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21517 grep -v '^ *+' conftest.er1 >conftest.err
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.$ac_objext; then
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 #include <stddef.h>
21537 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21561 ac_lo=$ac_mid; break
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_hi=`expr '(' $ac_mid ')' - 1`
21567 if test $ac_mid -le $ac_hi; then
21571 ac_mid=`expr 2 '*' $ac_mid`
21574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 # Binary search between lo and hi bounds.
21588 while test "x$ac_lo" != "x$ac_hi"; do
21589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 #include <stddef.h>
21600 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_lo=`expr '(' $ac_mid ')' + 1`
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21635 ?*) fits_in_uint=$ac_lo;;
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <stddef.h>
21646 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21647 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21649 #include <stdlib.h>
21654 FILE *f = fopen ("conftest.val", "w");
21657 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21659 long int i = longval ();
21660 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21662 fprintf (f, "%ld\n", i);
21666 unsigned long int i = ulongval ();
21667 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21669 fprintf (f, "%lu\n", i);
21671 return ferror (f) || fclose (f) != 0;
21677 rm -f conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684 (eval "$ac_link") 2>&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697 fits_in_uint=`cat conftest.val`
21699 echo "$as_me: program exited with status $ac_status" >&5
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ( exit $ac_status )
21706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21710 if test "$fits_in_uint" = 1; then
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <stddef.h>
21719 extern unsigned long foo;
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_compile") 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } && {
21743 test -z "$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21745 } && test -s conftest.$ac_objext; then
21748 echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 if test -z "$result"; then
21757 if test "$fits_in_uint" = 1; then
21758 result="$res_hi$res_lo"U
21760 result="$res_hi$res_lo"UL
21763 result='~(size_t)0'
21766 { echo "$as_me:$LINENO: result: $result" >&5
21767 echo "${ECHO_T}$result" >&6; }
21768 if test "$result" != yes; then
21770 cat >>confdefs.h <<_ACEOF
21771 #define SIZE_MAX $result
21780 for ac_header in stdint.h
21782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21789 ac_res=`eval echo '${'$as_ac_Header'}'`
21790 { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21793 # Is the header compilable?
21794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802 $ac_includes_default
21803 #include <$ac_header>
21805 rm -f conftest.$ac_objext
21806 if { (ac_try="$ac_compile"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_compile") 2>conftest.er1
21814 grep -v '^ *+' conftest.er1 >conftest.err
21816 cat conftest.err >&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); } && {
21819 test -z "$ac_c_werror_flag" ||
21820 test ! -s conftest.err
21821 } && test -s conftest.$ac_objext; then
21822 ac_header_compiler=yes
21824 echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21827 ac_header_compiler=no
21830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21832 echo "${ECHO_T}$ac_header_compiler" >&6; }
21834 # Is the header present?
21835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21837 cat >conftest.$ac_ext <<_ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 #include <$ac_header>
21845 if { (ac_try="$ac_cpp conftest.$ac_ext"
21846 case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21853 grep -v '^ *+' conftest.er1 >conftest.err
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } >/dev/null && {
21858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21861 ac_header_preproc=yes
21863 echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_header_preproc=no
21869 rm -f conftest.err conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21871 echo "${ECHO_T}$ac_header_preproc" >&6; }
21873 # So? What about this header?
21874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21880 ac_header_preproc=yes
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 eval "$as_ac_Header=\$ac_header_preproc"
21905 ac_res=`eval echo '${'$as_ac_Header'}'`
21906 { echo "$as_me:$LINENO: result: $ac_res" >&5
21907 echo "${ECHO_T}$ac_res" >&6; }
21910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21911 cat >>confdefs.h <<_ACEOF
21912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21926 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21927 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21928 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 $ac_includes_default
21938 typedef ptrdiff_t ac__type_new_;
21942 if ((ac__type_new_ *) 0)
21944 if (sizeof (ac__type_new_))
21950 rm -f conftest.$ac_objext
21951 if { (ac_try="$ac_compile"
21952 case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957 (eval "$ac_compile") 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } && {
21964 test -z "$ac_c_werror_flag" ||
21965 test ! -s conftest.err
21966 } && test -s conftest.$ac_objext; then
21967 ac_cv_type_ptrdiff_t=yes
21969 echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 ac_cv_type_ptrdiff_t=no
21975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
21978 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
21979 if test $ac_cv_type_ptrdiff_t = yes; then
21983 cat >>confdefs.h <<\_ACEOF
21984 #define ptrdiff_t long
22000 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22001 stdlib.h string.h unistd.h sys/param.h
22003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 ac_res=`eval echo '${'$as_ac_Header'}'`
22011 { echo "$as_me:$LINENO: result: $ac_res" >&5
22012 echo "${ECHO_T}$ac_res" >&6; }
22014 # Is the header compilable?
22015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 $ac_includes_default
22024 #include <$ac_header>
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_compile") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest.$ac_objext; then
22043 ac_header_compiler=yes
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ac_header_compiler=no
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22053 echo "${ECHO_T}$ac_header_compiler" >&6; }
22055 # Is the header present?
22056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 #include <$ac_header>
22066 if { (ac_try="$ac_cpp conftest.$ac_ext"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22074 grep -v '^ *+' conftest.er1 >conftest.err
22076 cat conftest.err >&5
22077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } >/dev/null && {
22079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22082 ac_header_preproc=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ac_header_preproc=no
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22094 # So? What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22101 ac_header_preproc=yes
22104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 eval "$as_ac_Header=\$ac_header_preproc"
22126 ac_res=`eval echo '${'$as_ac_Header'}'`
22127 { echo "$as_me:$LINENO: result: $ac_res" >&5
22128 echo "${ECHO_T}$ac_res" >&6; }
22131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22132 cat >>confdefs.h <<_ACEOF
22133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22163 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22164 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22165 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22182 #define $ac_func innocuous_$ac_func
22184 /* System header to define __stub macros and hopefully few prototypes,
22185 which can conflict with char $ac_func (); below.
22186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187 <limits.h> exists even on freestanding compilers. */
22190 # include <limits.h>
22192 # include <assert.h>
22197 /* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22204 /* The GNU C library defines this for functions which it implements
22205 to always fail with ENOSYS. Some functions are actually named
22206 something starting with __ and the normal name is an alias. */
22207 #if defined __stub_$ac_func || defined __stub___$ac_func
22214 return $ac_func ();
22219 rm -f conftest.$ac_objext conftest$ac_exeext
22220 if { (ac_try="$ac_link"
22221 case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_link") 2>conftest.er1
22228 grep -v '^ *+' conftest.er1 >conftest.err
22230 cat conftest.err >&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } && {
22233 test -z "$ac_c_werror_flag" ||
22234 test ! -s conftest.err
22235 } && test -s conftest$ac_exeext &&
22236 $as_test_x conftest$ac_exeext; then
22237 eval "$as_ac_var=yes"
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 eval "$as_ac_var=no"
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246 conftest$ac_exeext conftest.$ac_ext
22248 ac_res=`eval echo '${'$as_ac_var'}'`
22249 { echo "$as_me:$LINENO: result: $ac_res" >&5
22250 echo "${ECHO_T}$ac_res" >&6; }
22251 if test `eval echo '${'$as_ac_var'}'` = yes; then
22252 cat >>confdefs.h <<_ACEOF
22253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22261 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22262 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22263 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22278 char *p = (char *) _snprintf;
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_compile") 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest.$ac_objext; then
22302 ac_cv_have_decl__snprintf=yes
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_cv_have_decl__snprintf=no
22310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22313 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22314 if test $ac_cv_have_decl__snprintf = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define HAVE_DECL__SNPRINTF $gt_value
22326 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22327 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22328 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22343 char *p = (char *) _snwprintf;
22350 rm -f conftest.$ac_objext
22351 if { (ac_try="$ac_compile"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_compile") 2>conftest.er1
22359 grep -v '^ *+' conftest.er1 >conftest.err
22361 cat conftest.err >&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } && {
22364 test -z "$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22366 } && test -s conftest.$ac_objext; then
22367 ac_cv_have_decl__snwprintf=yes
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ac_cv_have_decl__snwprintf=no
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22378 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22379 if test $ac_cv_have_decl__snwprintf = yes; then
22385 cat >>confdefs.h <<_ACEOF
22386 #define HAVE_DECL__SNWPRINTF $gt_value
22392 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22393 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22394 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22408 #ifndef feof_unlocked
22409 char *p = (char *) feof_unlocked;
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420 *) ac_try_echo=$ac_try;;
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22425 grep -v '^ *+' conftest.er1 >conftest.err
22427 cat conftest.err >&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_cv_have_decl_feof_unlocked=yes
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438 ac_cv_have_decl_feof_unlocked=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22444 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22445 if test $ac_cv_have_decl_feof_unlocked = yes; then
22451 cat >>confdefs.h <<_ACEOF
22452 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22457 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22458 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22459 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22460 echo $ECHO_N "(cached) $ECHO_C" >&6
22462 cat >conftest.$ac_ext <<_ACEOF
22465 cat confdefs.h >>conftest.$ac_ext
22466 cat >>conftest.$ac_ext <<_ACEOF
22467 /* end confdefs.h. */
22473 #ifndef fgets_unlocked
22474 char *p = (char *) fgets_unlocked;
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_compile") 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest.$ac_objext; then
22498 ac_cv_have_decl_fgets_unlocked=yes
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ac_cv_have_decl_fgets_unlocked=no
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22509 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22510 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22516 cat >>confdefs.h <<_ACEOF
22517 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22522 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22523 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22524 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22538 #ifndef getc_unlocked
22539 char *p = (char *) getc_unlocked;
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_compile") 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest.$ac_objext; then
22563 ac_cv_have_decl_getc_unlocked=yes
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_cv_have_decl_getc_unlocked=no
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22574 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22575 if test $ac_cv_have_decl_getc_unlocked = yes; then
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22587 case $gt_cv_func_printf_posix in
22588 *yes) HAVE_POSIX_PRINTF=1 ;;
22589 *) HAVE_POSIX_PRINTF=0 ;;
22592 if test "$ac_cv_func_asprintf" = yes; then
22598 if test "$ac_cv_func_snprintf" = yes; then
22604 if test "$ac_cv_func_wprintf" = yes; then
22616 am_save_CPPFLAGS="$CPPFLAGS"
22618 for element in $INCICONV; do
22620 for x in $CPPFLAGS; do
22622 acl_save_prefix="$prefix"
22623 prefix="$acl_final_prefix"
22624 acl_save_exec_prefix="$exec_prefix"
22625 exec_prefix="$acl_final_exec_prefix"
22627 exec_prefix="$acl_save_exec_prefix"
22628 prefix="$acl_save_prefix"
22630 if test "X$x" = "X$element"; then
22635 if test -z "$haveit"; then
22636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22641 { echo "$as_me:$LINENO: checking for iconv" >&5
22642 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22643 if test "${am_cv_func_iconv+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 am_cv_func_iconv="no, consider installing GNU libiconv"
22649 cat >conftest.$ac_ext <<_ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h. */
22655 #include <stdlib.h>
22660 iconv_t cd = iconv_open("","");
22661 iconv(cd,NULL,NULL,NULL,NULL);
22667 rm -f conftest.$ac_objext conftest$ac_exeext
22668 if { (ac_try="$ac_link"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_link") 2>conftest.er1
22676 grep -v '^ *+' conftest.er1 >conftest.err
22678 cat conftest.err >&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); } && {
22681 test -z "$ac_c_werror_flag" ||
22682 test ! -s conftest.err
22683 } && test -s conftest$ac_exeext &&
22684 $as_test_x conftest$ac_exeext; then
22685 am_cv_func_iconv=yes
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22694 conftest$ac_exeext conftest.$ac_ext
22695 if test "$am_cv_func_iconv" != yes; then
22696 am_save_LIBS="$LIBS"
22697 LIBS="$LIBS $LIBICONV"
22698 cat >conftest.$ac_ext <<_ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h. */
22704 #include <stdlib.h>
22709 iconv_t cd = iconv_open("","");
22710 iconv(cd,NULL,NULL,NULL,NULL);
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (ac_try="$ac_link"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_link") 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest$ac_exeext &&
22733 $as_test_x conftest$ac_exeext; then
22734 am_cv_lib_iconv=yes
22735 am_cv_func_iconv=yes
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22744 conftest$ac_exeext conftest.$ac_ext
22745 LIBS="$am_save_LIBS"
22749 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22750 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22751 if test "$am_cv_func_iconv" = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_ICONV 1
22758 if test "$am_cv_lib_iconv" = yes; then
22759 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22760 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22761 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22762 echo "${ECHO_T}$LIBICONV" >&6; }
22764 CPPFLAGS="$am_save_CPPFLAGS"
22771 if test "$am_cv_func_iconv" = yes; then
22772 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22773 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22774 if test "${am_cv_proto_iconv+set}" = set; then
22775 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22785 #include <stdlib.h>
22791 #if defined(__STDC__) || defined(__cplusplus)
22792 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809 *) ac_try_echo=$ac_try;;
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812 (eval "$ac_compile") 2>conftest.er1
22814 grep -v '^ *+' conftest.er1 >conftest.err
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } && {
22819 test -z "$ac_c_werror_flag" ||
22820 test ! -s conftest.err
22821 } && test -s conftest.$ac_objext; then
22822 am_cv_proto_iconv_arg1=""
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 am_cv_proto_iconv_arg1="const"
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 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);"
22834 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22835 { echo "$as_me:$LINENO: result: ${ac_t:-
22836 }$am_cv_proto_iconv" >&5
22837 echo "${ECHO_T}${ac_t:-
22838 }$am_cv_proto_iconv" >&6; }
22840 cat >>confdefs.h <<_ACEOF
22841 #define ICONV_CONST $am_cv_proto_iconv_arg1
22847 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22848 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22849 if test "${am_cv_langinfo_codeset+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 #include <langinfo.h>
22862 char* cs = nl_langinfo(CODESET);
22867 rm -f conftest.$ac_objext conftest$ac_exeext
22868 if { (ac_try="$ac_link"
22869 case "(($ac_try" in
22870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871 *) ac_try_echo=$ac_try;;
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874 (eval "$ac_link") 2>conftest.er1
22876 grep -v '^ *+' conftest.er1 >conftest.err
22878 cat conftest.err >&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && {
22881 test -z "$ac_c_werror_flag" ||
22882 test ! -s conftest.err
22883 } && test -s conftest$ac_exeext &&
22884 $as_test_x conftest$ac_exeext; then
22885 am_cv_langinfo_codeset=yes
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 am_cv_langinfo_codeset=no
22893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22894 conftest$ac_exeext conftest.$ac_ext
22897 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22898 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22899 if test $am_cv_langinfo_codeset = yes; then
22901 cat >>confdefs.h <<\_ACEOF
22902 #define HAVE_LANGINFO_CODESET 1
22907 if test $ac_cv_header_locale_h = yes; then
22909 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22910 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22911 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include <locale.h>
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936 (eval "$ac_link") 2>conftest.er1
22938 grep -v '^ *+' conftest.er1 >conftest.err
22940 cat conftest.err >&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } && {
22943 test -z "$ac_c_werror_flag" ||
22944 test ! -s conftest.err
22945 } && test -s conftest$ac_exeext &&
22946 $as_test_x conftest$ac_exeext; then
22947 gt_cv_val_LC_MESSAGES=yes
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 gt_cv_val_LC_MESSAGES=no
22955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22956 conftest$ac_exeext conftest.$ac_ext
22958 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
22959 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
22960 if test $gt_cv_val_LC_MESSAGES = yes; then
22962 cat >>confdefs.h <<\_ACEOF
22963 #define HAVE_LC_MESSAGES 1
22970 if test -n "$INTL_MACOSX_LIBS"; then
22971 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
22974 for ac_prog in bison
22976 # Extract the first word of "$ac_prog", so it can be a program name with args.
22977 set dummy $ac_prog; ac_word=$2
22978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22980 if test "${ac_cv_prog_INTLBISON+set}" = set; then
22981 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 if test -n "$INTLBISON"; then
22984 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
22986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987 for as_dir in $PATH
22990 test -z "$as_dir" && as_dir=.
22991 for ac_exec_ext in '' $ac_executable_extensions; do
22992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22993 ac_cv_prog_INTLBISON="$ac_prog"
22994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23003 INTLBISON=$ac_cv_prog_INTLBISON
23004 if test -n "$INTLBISON"; then
23005 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23006 echo "${ECHO_T}$INTLBISON" >&6; }
23008 { echo "$as_me:$LINENO: result: no" >&5
23009 echo "${ECHO_T}no" >&6; }
23013 test -n "$INTLBISON" && break
23016 if test -z "$INTLBISON"; then
23019 { echo "$as_me:$LINENO: checking version of bison" >&5
23020 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23021 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23022 case $ac_prog_version in
23023 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23024 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23025 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23026 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23028 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23029 echo "${ECHO_T}$ac_prog_version" >&6; }
23031 if test $ac_verc_fail = yes; then
23050 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23051 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23052 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23053 echo $ECHO_N "(cached) $ECHO_C" >&6
23055 gt_save_CPPFLAGS="$CPPFLAGS"
23056 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23057 gt_save_LIBS="$LIBS"
23058 LIBS="$LIBS -framework CoreFoundation"
23059 cat >conftest.$ac_ext <<_ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23065 #include <CFPreferences.h>
23069 CFPreferencesCopyAppValue(NULL, NULL)
23074 rm -f conftest.$ac_objext conftest$ac_exeext
23075 if { (ac_try="$ac_link"
23076 case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_link") 2>conftest.er1
23083 grep -v '^ *+' conftest.er1 >conftest.err
23085 cat conftest.err >&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && {
23088 test -z "$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23090 } && test -s conftest$ac_exeext &&
23091 $as_test_x conftest$ac_exeext; then
23092 gt_cv_func_CFPreferencesCopyAppValue=yes
23094 echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23097 gt_cv_func_CFPreferencesCopyAppValue=no
23100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23101 conftest$ac_exeext conftest.$ac_ext
23102 CPPFLAGS="$gt_save_CPPFLAGS"
23103 LIBS="$gt_save_LIBS"
23105 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23106 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23107 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23114 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23115 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23116 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23119 gt_save_CPPFLAGS="$CPPFLAGS"
23120 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23121 gt_save_LIBS="$LIBS"
23122 LIBS="$LIBS -framework CoreFoundation"
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include <CFLocale.h>
23133 CFLocaleCopyCurrent();
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142 *) ac_try_echo=$ac_try;;
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145 (eval "$ac_link") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest$ac_exeext &&
23155 $as_test_x conftest$ac_exeext; then
23156 gt_cv_func_CFLocaleCopyCurrent=yes
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23161 gt_cv_func_CFLocaleCopyCurrent=no
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165 conftest$ac_exeext conftest.$ac_ext
23166 CPPFLAGS="$gt_save_CPPFLAGS"
23167 LIBS="$gt_save_LIBS"
23169 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23170 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23171 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23173 cat >>confdefs.h <<\_ACEOF
23174 #define HAVE_CFLOCALECOPYCURRENT 1
23179 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23180 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23186 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23187 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23188 # Check whether --enable-nls was given.
23189 if test "${enable_nls+set}" = set; then
23190 enableval=$enable_nls; USE_NLS=$enableval
23195 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23196 echo "${ECHO_T}$USE_NLS" >&6; }
23201 BUILD_INCLUDED_LIBINTL=no
23202 USE_INCLUDED_LIBINTL=no
23208 if test "$USE_NLS" = "yes"; then
23209 gt_use_preinstalled_gnugettext=no
23211 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23212 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23214 # Check whether --with-included-gettext was given.
23215 if test "${with_included_gettext+set}" = set; then
23216 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23218 nls_cv_force_use_gnu_gettext=no
23221 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23222 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23224 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23225 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23232 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23233 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23234 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 #include <libintl.h>
23244 extern int _nl_msg_cat_cntr;
23245 extern int *_nl_domain_bindings;
23249 bindtextdomain ("", "");
23250 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (ac_try="$ac_link"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_link") 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest$ac_exeext &&
23272 $as_test_x conftest$ac_exeext; then
23273 gt_cv_func_gnugettext1_libc=yes
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23278 gt_cv_func_gnugettext1_libc=no
23281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23282 conftest$ac_exeext conftest.$ac_ext
23284 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23285 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23287 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23293 acl_save_prefix="$prefix"
23294 prefix="$acl_final_prefix"
23295 acl_save_exec_prefix="$exec_prefix"
23296 exec_prefix="$acl_final_exec_prefix"
23298 eval additional_includedir=\"$includedir\"
23299 eval additional_libdir=\"$libdir\"
23301 exec_prefix="$acl_save_exec_prefix"
23302 prefix="$acl_save_prefix"
23305 # Check whether --with-libintl-prefix was given.
23306 if test "${with_libintl_prefix+set}" = set; then
23307 withval=$with_libintl_prefix;
23308 if test "X$withval" = "Xno"; then
23311 if test "X$withval" = "X"; then
23313 acl_save_prefix="$prefix"
23314 prefix="$acl_final_prefix"
23315 acl_save_exec_prefix="$exec_prefix"
23316 exec_prefix="$acl_final_exec_prefix"
23318 eval additional_includedir=\"$includedir\"
23319 eval additional_libdir=\"$libdir\"
23321 exec_prefix="$acl_save_exec_prefix"
23322 prefix="$acl_save_prefix"
23325 additional_includedir="$withval/include"
23326 additional_libdir="$withval/lib"
23337 names_already_handled=
23338 names_next_round='intl '
23339 while test -n "$names_next_round"; do
23340 names_this_round="$names_next_round"
23342 for name in $names_this_round; do
23344 for n in $names_already_handled; do
23345 if test "$n" = "$name"; then
23346 already_handled=yes
23350 if test -z "$already_handled"; then
23351 names_already_handled="$names_already_handled $name"
23352 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23353 eval value=\"\$HAVE_LIB$uppername\"
23354 if test -n "$value"; then
23355 if test "$value" = yes; then
23356 eval value=\"\$LIB$uppername\"
23357 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23358 eval value=\"\$LTLIB$uppername\"
23359 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23368 if test $use_additional = yes; then
23369 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23370 found_dir="$additional_libdir"
23371 found_so="$additional_libdir/lib$name.$shlibext"
23372 if test -f "$additional_libdir/lib$name.la"; then
23373 found_la="$additional_libdir/lib$name.la"
23376 if test -f "$additional_libdir/lib$name.$libext"; then
23377 found_dir="$additional_libdir"
23378 found_a="$additional_libdir/lib$name.$libext"
23379 if test -f "$additional_libdir/lib$name.la"; then
23380 found_la="$additional_libdir/lib$name.la"
23385 if test "X$found_dir" = "X"; then
23386 for x in $LDFLAGS $LTLIBINTL; do
23388 acl_save_prefix="$prefix"
23389 prefix="$acl_final_prefix"
23390 acl_save_exec_prefix="$exec_prefix"
23391 exec_prefix="$acl_final_exec_prefix"
23393 exec_prefix="$acl_save_exec_prefix"
23394 prefix="$acl_save_prefix"
23398 dir=`echo "X$x" | sed -e 's/^X-L//'`
23399 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23401 found_so="$dir/lib$name.$shlibext"
23402 if test -f "$dir/lib$name.la"; then
23403 found_la="$dir/lib$name.la"
23406 if test -f "$dir/lib$name.$libext"; then
23408 found_a="$dir/lib$name.$libext"
23409 if test -f "$dir/lib$name.la"; then
23410 found_la="$dir/lib$name.la"
23416 if test "X$found_dir" != "X"; then
23421 if test "X$found_dir" != "X"; then
23422 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23423 if test "X$found_so" != "X"; then
23424 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23425 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23428 for x in $ltrpathdirs; do
23429 if test "X$x" = "X$found_dir"; then
23434 if test -z "$haveit"; then
23435 ltrpathdirs="$ltrpathdirs $found_dir"
23437 if test "$hardcode_direct" = yes; then
23438 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23440 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23441 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23443 for x in $rpathdirs; do
23444 if test "X$x" = "X$found_dir"; then
23449 if test -z "$haveit"; then
23450 rpathdirs="$rpathdirs $found_dir"
23454 for x in $LDFLAGS $LIBINTL; do
23456 acl_save_prefix="$prefix"
23457 prefix="$acl_final_prefix"
23458 acl_save_exec_prefix="$exec_prefix"
23459 exec_prefix="$acl_final_exec_prefix"
23461 exec_prefix="$acl_save_exec_prefix"
23462 prefix="$acl_save_prefix"
23464 if test "X$x" = "X-L$found_dir"; then
23469 if test -z "$haveit"; then
23470 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23472 if test "$hardcode_minus_L" != no; then
23473 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23475 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23481 if test "X$found_a" != "X"; then
23482 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23484 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23487 additional_includedir=
23488 case "$found_dir" in
23490 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23491 additional_includedir="$basedir/include"
23494 if test "X$additional_includedir" != "X"; then
23495 if test "X$additional_includedir" != "X/usr/include"; then
23497 if test "X$additional_includedir" = "X/usr/local/include"; then
23498 if test -n "$GCC"; then
23500 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23504 if test -z "$haveit"; then
23505 for x in $CPPFLAGS $INCINTL; do
23507 acl_save_prefix="$prefix"
23508 prefix="$acl_final_prefix"
23509 acl_save_exec_prefix="$exec_prefix"
23510 exec_prefix="$acl_final_exec_prefix"
23512 exec_prefix="$acl_save_exec_prefix"
23513 prefix="$acl_save_prefix"
23515 if test "X$x" = "X-I$additional_includedir"; then
23520 if test -z "$haveit"; then
23521 if test -d "$additional_includedir"; then
23522 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23528 if test -n "$found_la"; then
23529 save_libdir="$libdir"
23530 case "$found_la" in
23531 */* | *\\*) . "$found_la" ;;
23532 *) . "./$found_la" ;;
23534 libdir="$save_libdir"
23535 for dep in $dependency_libs; do
23538 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23539 if test "X$additional_libdir" != "X/usr/lib"; then
23541 if test "X$additional_libdir" = "X/usr/local/lib"; then
23542 if test -n "$GCC"; then
23544 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23548 if test -z "$haveit"; then
23550 for x in $LDFLAGS $LIBINTL; do
23552 acl_save_prefix="$prefix"
23553 prefix="$acl_final_prefix"
23554 acl_save_exec_prefix="$exec_prefix"
23555 exec_prefix="$acl_final_exec_prefix"
23557 exec_prefix="$acl_save_exec_prefix"
23558 prefix="$acl_save_prefix"
23560 if test "X$x" = "X-L$additional_libdir"; then
23565 if test -z "$haveit"; then
23566 if test -d "$additional_libdir"; then
23567 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23571 for x in $LDFLAGS $LTLIBINTL; do
23573 acl_save_prefix="$prefix"
23574 prefix="$acl_final_prefix"
23575 acl_save_exec_prefix="$exec_prefix"
23576 exec_prefix="$acl_final_exec_prefix"
23578 exec_prefix="$acl_save_exec_prefix"
23579 prefix="$acl_save_prefix"
23581 if test "X$x" = "X-L$additional_libdir"; then
23586 if test -z "$haveit"; then
23587 if test -d "$additional_libdir"; then
23588 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23595 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23596 if test "$enable_rpath" != no; then
23598 for x in $rpathdirs; do
23599 if test "X$x" = "X$dir"; then
23604 if test -z "$haveit"; then
23605 rpathdirs="$rpathdirs $dir"
23608 for x in $ltrpathdirs; do
23609 if test "X$x" = "X$dir"; then
23614 if test -z "$haveit"; then
23615 ltrpathdirs="$ltrpathdirs $dir"
23620 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23623 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23626 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23627 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23633 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23634 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23640 if test "X$rpathdirs" != "X"; then
23641 if test -n "$hardcode_libdir_separator"; then
23643 for found_dir in $rpathdirs; do
23644 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23646 acl_save_libdir="$libdir"
23648 eval flag=\"$hardcode_libdir_flag_spec\"
23649 libdir="$acl_save_libdir"
23650 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23652 for found_dir in $rpathdirs; do
23653 acl_save_libdir="$libdir"
23654 libdir="$found_dir"
23655 eval flag=\"$hardcode_libdir_flag_spec\"
23656 libdir="$acl_save_libdir"
23657 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23661 if test "X$ltrpathdirs" != "X"; then
23662 for found_dir in $ltrpathdirs; do
23663 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23667 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23668 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23669 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23670 echo $ECHO_N "(cached) $ECHO_C" >&6
23672 gt_save_CPPFLAGS="$CPPFLAGS"
23673 CPPFLAGS="$CPPFLAGS $INCINTL"
23674 gt_save_LIBS="$LIBS"
23675 LIBS="$LIBS $LIBINTL"
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 #include <libintl.h>
23683 extern int _nl_msg_cat_cntr;
23688 const char *_nl_expand_alias (const char *);
23692 bindtextdomain ("", "");
23693 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23698 rm -f conftest.$ac_objext conftest$ac_exeext
23699 if { (ac_try="$ac_link"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_link") 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest$ac_exeext &&
23715 $as_test_x conftest$ac_exeext; then
23716 gt_cv_func_gnugettext1_libintl=yes
23718 echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 gt_cv_func_gnugettext1_libintl=no
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725 conftest$ac_exeext conftest.$ac_ext
23726 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23727 LIBS="$LIBS $LIBICONV"
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 #include <libintl.h>
23735 extern int _nl_msg_cat_cntr;
23740 const char *_nl_expand_alias (const char *);
23744 bindtextdomain ("", "");
23745 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23750 rm -f conftest.$ac_objext conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_link") 2>conftest.er1
23759 grep -v '^ *+' conftest.er1 >conftest.err
23761 cat conftest.err >&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } && {
23764 test -z "$ac_c_werror_flag" ||
23765 test ! -s conftest.err
23766 } && test -s conftest$ac_exeext &&
23767 $as_test_x conftest$ac_exeext; then
23768 LIBINTL="$LIBINTL $LIBICONV"
23769 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23770 gt_cv_func_gnugettext1_libintl=yes
23773 echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23780 conftest$ac_exeext conftest.$ac_ext
23782 CPPFLAGS="$gt_save_CPPFLAGS"
23783 LIBS="$gt_save_LIBS"
23785 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23786 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23789 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23790 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23791 && test "$PACKAGE" != gettext-runtime \
23792 && test "$PACKAGE" != gettext-tools; }; then
23793 gt_use_preinstalled_gnugettext=yes
23801 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23802 nls_cv_use_gnu_gettext=yes
23806 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23807 BUILD_INCLUDED_LIBINTL=yes
23808 USE_INCLUDED_LIBINTL=yes
23809 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23810 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23811 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23815 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23816 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23821 if test -n "$INTL_MACOSX_LIBS"; then
23822 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23823 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23824 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23825 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23829 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23830 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define ENABLE_NLS 1
23841 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23842 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23843 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23844 echo "${ECHO_T}$USE_NLS" >&6; }
23845 if test "$USE_NLS" = "yes"; then
23846 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23847 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23848 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23849 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23850 gt_source="external libintl"
23855 gt_source="included intl directory"
23857 { echo "$as_me:$LINENO: result: $gt_source" >&5
23858 echo "${ECHO_T}$gt_source" >&6; }
23861 if test "$USE_NLS" = "yes"; then
23863 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23864 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23865 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23866 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23867 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23868 echo "${ECHO_T}$LIBINTL" >&6; }
23870 for element in $INCINTL; do
23872 for x in $CPPFLAGS; do
23874 acl_save_prefix="$prefix"
23875 prefix="$acl_final_prefix"
23876 acl_save_exec_prefix="$exec_prefix"
23877 exec_prefix="$acl_final_exec_prefix"
23879 exec_prefix="$acl_save_exec_prefix"
23880 prefix="$acl_save_prefix"
23882 if test "X$x" = "X$element"; then
23887 if test -z "$haveit"; then
23888 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23895 cat >>confdefs.h <<\_ACEOF
23896 #define HAVE_GETTEXT 1
23900 cat >>confdefs.h <<\_ACEOF
23901 #define HAVE_DCGETTEXT 1
23910 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23911 BUILD_INCLUDED_LIBINTL=yes
23918 nls_cv_header_intl=
23919 nls_cv_header_libgt=
23931 if test "$USE_INCLUDED_LIBINTL" = yes; then
23932 INTLOBJS="\$(GETTOBJS)"
23936 INTL_LIBTOOL_SUFFIX_PREFIX=
23940 INTLLIBS="$LIBINTL"
23952 support_postgresql=no
23954 support_smartalloc=yes
23955 support_readline=yes
23959 support_wx_console=no
23960 support_tray_monitor=no
23965 support_static_tools=no
23966 support_static_fd=no
23967 support_static_sd=no
23968 support_static_dir=no
23969 support_static_cons=no
23971 build_client_only=no
23979 # Check whether --enable-gnome was given.
23980 if test "${enable_gnome+set}" = set; then
23981 enableval=$enable_gnome;
23982 if test x$enableval = xyes; then
23991 if test x$support_gnome = xyes; then
23992 abc=`$PKGCONFIG --exists libgnomeui-2.0`
23994 if test $pkg = 0; then
23995 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
23996 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
23997 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
23998 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24003 GNOME_DIR=src/gnome2-console
24004 gnome_version="Version 2.x"
24006 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24007 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24008 { (exit 1); exit 1; }; }
24013 # Check whether --enable-bat was given.
24014 if test "${enable_bat+set}" = set; then
24015 enableval=$enable_bat;
24016 if test x$enableval = xyes; then
24018 cat >>confdefs.h <<\_ACEOF
24030 if test x$support_bat = xyes; then
24031 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24033 if test $pkg = 0; then
24034 BAT_DIR=src/qt-console
24036 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24037 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24038 { (exit 1); exit 1; }; }
24048 if test x$support_bat = xyes; then
24049 { echo "$as_me:$LINENO: checking for qwt support" >&5
24050 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24052 # Check whether --with-qwt was given.
24053 if test "${with_qwt+set}" = set; then
24055 case "$with_qwt" in
24060 if test -f ${with_qwt}/include/qwt.h; then
24061 QWT_INC="${with_qwt}/include"
24062 QWT_LDFLAGS="-L${with_qwt}/lib"
24073 if test $no_qwt = no; then
24074 if test x$QWT_INC = x; then
24075 for root in /usr /usr/local; do
24076 for ver in qwt qwt5 qwt-qt4; do
24077 if test -f ${root}/include/${ver}/qwt.h; then
24078 QWT_INC="${root}/include/${ver}"
24079 if test -d ${root}/lib64/; then
24080 QWT_LDFLAGS="-L${root}/lib64"
24081 elif test -d ${root}/lib/64/; then
24082 QWT_LDFLAGS="-L${root}/64"
24084 QWT_LDFLAGS="-L${root}/lib"
24095 if test x$QWT_INC = x; then
24096 { echo "$as_me:$LINENO: result: no" >&5
24097 echo "${ECHO_T}no" >&6; }
24100 cat >>confdefs.h <<\_ACEOF
24104 { echo "$as_me:$LINENO: result: yes" >&5
24105 echo "${ECHO_T}yes" >&6; }
24115 # Check whether --enable-bwx-console was given.
24116 if test "${enable_bwx_console+set}" = set; then
24117 enableval=$enable_bwx_console;
24118 if test x$enableval = xyes; then
24119 support_wx_console=yes
24127 if test x$support_wx_console = xyes; then
24128 abc=`$WXCONFIG $WXFLAGS --cppflags`
24130 if test $pkg = 0; then
24131 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24132 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24133 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24137 WX_DIR=src/wx-console
24140 echo "wx-config program not found. bwx-console disabled."
24142 support_wx_console=no
24147 # Check whether --enable-tray-monitor was given.
24148 if test "${enable_tray_monitor+set}" = set; then
24149 enableval=$enable_tray_monitor;
24150 if test x$enableval = xyes; then
24151 support_tray_monitor=yes
24159 if test x$support_tray_monitor = xyes; then
24160 abc=`$PKGCONFIG --exists gtk+-2.0`
24162 if test $pkg = 0; then
24163 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24164 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24167 TRAY_MONITOR_DIR=src/tray-monitor
24168 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24170 if test $pkg = 0; then
24172 cat >>confdefs.h <<\_ACEOF
24173 #define HAVE_GTK_2_4 1
24181 # Check whether --enable-smartalloc was given.
24182 if test "${enable_smartalloc+set}" = set; then
24183 enableval=$enable_smartalloc;
24184 if test x$enableval = xno; then
24185 support_smartalloc=no
24192 if test x$support_smartalloc = xyes; then
24194 cat >>confdefs.h <<\_ACEOF
24195 #define SMARTALLOC 1
24200 # Check whether --enable-static-tools was given.
24201 if test "${enable_static_tools+set}" = set; then
24202 enableval=$enable_static_tools;
24203 if test x$enableval = xyes; then
24204 support_static_tools=yes
24212 if test x$support_static_tools = xyes; then
24213 TTOOL_LDFLAGS="-static"
24217 # Check whether --enable-static-fd was given.
24218 if test "${enable_static_fd+set}" = set; then
24219 enableval=$enable_static_fd;
24220 if test x$enableval = xyes; then
24221 support_static_fd=yes
24229 if test x$support_static_fd = xyes; then
24230 STATIC_FD="static-bacula-fd"
24234 # Check whether --enable-static-sd was given.
24235 if test "${enable_static_sd+set}" = set; then
24236 enableval=$enable_static_sd;
24237 if test x$enableval = xyes; then
24238 support_static_sd=yes
24246 if test x$support_static_sd = xyes; then
24247 STATIC_SD="static-bacula-sd"
24251 # Check whether --enable-static-dir was given.
24252 if test "${enable_static_dir+set}" = set; then
24253 enableval=$enable_static_dir;
24254 if test x$enableval = xyes; then
24255 support_static_dir=yes
24263 if test x$support_static_dir = xyes; then
24264 STATIC_DIR="static-bacula-dir"
24268 # Check whether --enable-static-cons was given.
24269 if test "${enable_static_cons+set}" = set; then
24270 enableval=$enable_static_cons;
24271 if test x$enableval = xyes; then
24272 support_static_cons=yes
24282 if test x$support_static_cons = xyes; then
24283 STATIC_CONS="static-bconsole"
24284 STATIC_GNOME_CONS="static-bgnome-console"
24285 STATIC_WX_CONS="static-bwx-console"
24291 # Check whether --enable-client-only was given.
24292 if test "${enable_client_only+set}" = set; then
24293 enableval=$enable_client_only;
24294 if test x$enableval = xyes; then
24295 build_client_only=yes
24303 if test x$build_client_only = xno; then
24310 # Check whether --enable-build-dird was given.
24311 if test "${enable_build_dird+set}" = set; then
24312 enableval=$enable_build_dird;
24313 if test x$enableval = xno; then
24320 if test x$build_dird = xyes; then
24321 DIRD_DIR="src/dird"
24322 DIR_TOOLS="DIRTOOLS"
24325 DIR_TOOLS="NODIRTOOLS"
24330 # Check whether --enable-build-stored was given.
24331 if test "${enable_build_stored+set}" = set; then
24332 enableval=$enable_build_stored;
24333 if test x$enableval = xno; then
24340 if test x$build_stored = xyes; then
24341 STORED_DIR="src/stored"
24347 # Check whether --enable-conio was given.
24348 if test "${enable_conio+set}" = set; then
24349 enableval=$enable_conio;
24350 if test x$enableval = xno; then
24360 # Check whether --enable-ipv6 was given.
24361 if test "${enable_ipv6+set}" = set; then
24362 enableval=$enable_ipv6;
24363 if test x$enableval = xno; then
24371 if test x$support_ipv6 = xyes; then
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24378 #include <sys/types.h>
24379 #include <sys/socket.h>
24380 #include <netinet/in.h>
24384 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24389 rm -f conftest.$ac_objext conftest$ac_exeext
24390 if { (ac_try="$ac_link"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_link") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } && {
24403 test -z "$ac_c_werror_flag" ||
24404 test ! -s conftest.err
24405 } && test -s conftest$ac_exeext &&
24406 $as_test_x conftest$ac_exeext; then
24409 echo "$as_me: failed program was:" >&5
24410 sed 's/^/| /' conftest.$ac_ext >&5
24415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24416 conftest$ac_exeext conftest.$ac_ext
24419 if test x$support_ipv6 = xyes; then
24421 cat >>confdefs.h <<\_ACEOF
24422 #define HAVE_IPV6 1
24428 if test x$support_conio = xyes; then
24429 if test "${ac_cv_header_termcap_h+set}" = set; then
24430 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24431 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24432 if test "${ac_cv_header_termcap_h+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24435 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24436 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24438 # Is the header compilable?
24439 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24440 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24441 cat >conftest.$ac_ext <<_ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h. */
24447 $ac_includes_default
24448 #include <termcap.h>
24450 rm -f conftest.$ac_objext
24451 if { (ac_try="$ac_compile"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457 (eval "$ac_compile") 2>conftest.er1
24459 grep -v '^ *+' conftest.er1 >conftest.err
24461 cat conftest.err >&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } && {
24464 test -z "$ac_c_werror_flag" ||
24465 test ! -s conftest.err
24466 } && test -s conftest.$ac_objext; then
24467 ac_header_compiler=yes
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ac_header_compiler=no
24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24477 echo "${ECHO_T}$ac_header_compiler" >&6; }
24479 # Is the header present?
24480 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24481 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24482 cat >conftest.$ac_ext <<_ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 #include <termcap.h>
24490 if { (ac_try="$ac_cpp conftest.$ac_ext"
24491 case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24498 grep -v '^ *+' conftest.er1 >conftest.err
24500 cat conftest.err >&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } >/dev/null && {
24503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24504 test ! -s conftest.err
24506 ac_header_preproc=yes
24508 echo "$as_me: failed program was:" >&5
24509 sed 's/^/| /' conftest.$ac_ext >&5
24511 ac_header_preproc=no
24514 rm -f conftest.err conftest.$ac_ext
24515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24516 echo "${ECHO_T}$ac_header_preproc" >&6; }
24518 # So? What about this header?
24519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24521 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24522 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24523 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24524 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24525 ac_header_preproc=yes
24528 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24529 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24530 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24531 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24533 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24534 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24535 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24536 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24537 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24538 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24539 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24543 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24544 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24545 if test "${ac_cv_header_termcap_h+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24548 ac_cv_header_termcap_h=$ac_header_preproc
24550 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24551 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24554 if test $ac_cv_header_termcap_h = yes; then
24555 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24556 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24557 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24558 echo $ECHO_N "(cached) $ECHO_C" >&6
24560 ac_check_lib_save_LIBS=$LIBS
24561 LIBS="-ltermcap $LIBS"
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24569 /* Override any GCC internal prototype to avoid an error.
24570 Use char because int might match the return type of a GCC
24571 builtin and then its argument prototype would still apply. */
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_link") 2>conftest.er1
24593 grep -v '^ *+' conftest.er1 >conftest.err
24595 cat conftest.err >&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } && {
24598 test -z "$ac_c_werror_flag" ||
24599 test ! -s conftest.err
24600 } && test -s conftest$ac_exeext &&
24601 $as_test_x conftest$ac_exeext; then
24602 ac_cv_lib_termcap_tgetent=yes
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24607 ac_cv_lib_termcap_tgetent=no
24610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24611 conftest$ac_exeext conftest.$ac_ext
24612 LIBS=$ac_check_lib_save_LIBS
24614 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24615 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24616 if test $ac_cv_lib_termcap_tgetent = yes; then
24617 CONS_LIBS="-ltermcap"
24621 support_readline=no
24623 cat >>confdefs.h <<\_ACEOF
24624 #define HAVE_CONIO 1
24629 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24630 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24631 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24632 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 ac_check_lib_save_LIBS=$LIBS
24635 LIBS="-lncurses $LIBS"
24636 cat >conftest.$ac_ext <<_ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24643 /* Override any GCC internal prototype to avoid an error.
24644 Use char because int might match the return type of a GCC
24645 builtin and then its argument prototype would still apply. */
24658 rm -f conftest.$ac_objext conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_link") 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && {
24672 test -z "$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24674 } && test -s conftest$ac_exeext &&
24675 $as_test_x conftest$ac_exeext; then
24676 ac_cv_lib_ncurses_tgetent=yes
24678 echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24681 ac_cv_lib_ncurses_tgetent=no
24684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24685 conftest$ac_exeext conftest.$ac_ext
24686 LIBS=$ac_check_lib_save_LIBS
24688 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24689 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24690 if test $ac_cv_lib_ncurses_tgetent = yes; then
24691 CONS_LIBS="-lncurses"
24695 support_readline=no
24697 cat >>confdefs.h <<\_ACEOF
24698 #define HAVE_CONIO 1
24711 for ac_header in curses.h
24713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 ac_res=`eval echo '${'$as_ac_Header'}'`
24721 { echo "$as_me:$LINENO: result: $ac_res" >&5
24722 echo "${ECHO_T}$ac_res" >&6; }
24724 # Is the header compilable?
24725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24727 cat >conftest.$ac_ext <<_ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 $ac_includes_default
24734 #include <$ac_header>
24736 rm -f conftest.$ac_objext
24737 if { (ac_try="$ac_compile"
24738 case "(($ac_try" in
24739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24740 *) ac_try_echo=$ac_try;;
24742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24743 (eval "$ac_compile") 2>conftest.er1
24745 grep -v '^ *+' conftest.er1 >conftest.err
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } && {
24750 test -z "$ac_c_werror_flag" ||
24751 test ! -s conftest.err
24752 } && test -s conftest.$ac_objext; then
24753 ac_header_compiler=yes
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24758 ac_header_compiler=no
24761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24763 echo "${ECHO_T}$ac_header_compiler" >&6; }
24765 # Is the header present?
24766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 #include <$ac_header>
24776 if { (ac_try="$ac_cpp conftest.$ac_ext"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24784 grep -v '^ *+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } >/dev/null && {
24789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24790 test ! -s conftest.err
24792 ac_header_preproc=yes
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 ac_header_preproc=no
24800 rm -f conftest.err conftest.$ac_ext
24801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24802 echo "${ECHO_T}$ac_header_preproc" >&6; }
24804 # So? What about this header?
24805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24811 ac_header_preproc=yes
24814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24832 echo $ECHO_N "(cached) $ECHO_C" >&6
24834 eval "$as_ac_Header=\$ac_header_preproc"
24836 ac_res=`eval echo '${'$as_ac_Header'}'`
24837 { echo "$as_me:$LINENO: result: $ac_res" >&5
24838 echo "${ECHO_T}$ac_res" >&6; }
24841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24842 cat >>confdefs.h <<_ACEOF
24843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24850 { echo "$as_me:$LINENO: checking for term.h" >&5
24851 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24852 if test "${ac_cv_header_term_h+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24862 #include <curses.h>
24868 rm -f conftest.$ac_objext
24869 if { (ac_try="$ac_compile"
24870 case "(($ac_try" in
24871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872 *) ac_try_echo=$ac_try;;
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875 (eval "$ac_compile") 2>conftest.er1
24877 grep -v '^ *+' conftest.er1 >conftest.err
24879 cat conftest.err >&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } && {
24882 test -z "$ac_c_werror_flag" ||
24883 test ! -s conftest.err
24884 } && test -s conftest.$ac_objext; then
24885 ac_cv_header_term_h=yes
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24890 ac_cv_header_term_h=no
24893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24895 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24896 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24897 if test $ac_cv_header_term_h = yes; then
24898 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24899 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24900 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24903 ac_check_lib_save_LIBS=$LIBS
24904 LIBS="-lcurses $LIBS"
24905 cat >conftest.$ac_ext <<_ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h. */
24912 /* Override any GCC internal prototype to avoid an error.
24913 Use char because int might match the return type of a GCC
24914 builtin and then its argument prototype would still apply. */
24927 rm -f conftest.$ac_objext conftest$ac_exeext
24928 if { (ac_try="$ac_link"
24929 case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934 (eval "$ac_link") 2>conftest.er1
24936 grep -v '^ *+' conftest.er1 >conftest.err
24938 cat conftest.err >&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } && {
24941 test -z "$ac_c_werror_flag" ||
24942 test ! -s conftest.err
24943 } && test -s conftest$ac_exeext &&
24944 $as_test_x conftest$ac_exeext; then
24945 ac_cv_lib_curses_tgetent=yes
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24950 ac_cv_lib_curses_tgetent=no
24953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24954 conftest$ac_exeext conftest.$ac_ext
24955 LIBS=$ac_check_lib_save_LIBS
24957 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
24958 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
24959 if test $ac_cv_lib_curses_tgetent = yes; then
24960 CONS_LIBS="-lcurses"
24964 support_readline=no
24966 cat >>confdefs.h <<\_ACEOF
24967 #define HAVE_CONIO 1
24975 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
24986 # Check whether --enable-readline was given.
24987 if test "${enable_readline+set}" = set; then
24988 enableval=$enable_readline;
24989 if test x$enableval = xno; then
24990 support_readline=no
24999 if test x$support_readline = xyes; then
25001 # Check whether --with-readline was given.
25002 if test "${with_readline+set}" = set; then
25003 withval=$with_readline;
25004 case "$with_readline" in
25009 if test -f ${with_readline}/readline.h; then
25010 CONS_INC="-I${with_readline}"
25011 CONS_LDFLAGS="-L$with_readline"
25012 elif test -f ${with_readline}/include/readline/readline.h; then
25013 CONS_INC="-I${with_readline}/include/readline"
25014 CONS_LDFLAGS="-L${with_readline}/lib"
25015 with_readline="${with_readline}/include/readline"
25017 with_readline="/usr/include/readline"
25020 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25022 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25023 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 ac_res=`eval echo '${'$as_ac_Header'}'`
25028 { echo "$as_me:$LINENO: result: $ac_res" >&5
25029 echo "${ECHO_T}$ac_res" >&6; }
25031 # Is the header compilable?
25032 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25033 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25034 cat >conftest.$ac_ext <<_ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 $ac_includes_default
25041 #include <${with_readline}/readline.h>
25043 rm -f conftest.$ac_objext
25044 if { (ac_try="$ac_compile"
25045 case "(($ac_try" in
25046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050 (eval "$ac_compile") 2>conftest.er1
25052 grep -v '^ *+' conftest.er1 >conftest.err
25054 cat conftest.err >&5
25055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); } && {
25057 test -z "$ac_c_werror_flag" ||
25058 test ! -s conftest.err
25059 } && test -s conftest.$ac_objext; then
25060 ac_header_compiler=yes
25062 echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25065 ac_header_compiler=no
25068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25070 echo "${ECHO_T}$ac_header_compiler" >&6; }
25072 # Is the header present?
25073 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25074 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25075 cat >conftest.$ac_ext <<_ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h. */
25081 #include <${with_readline}/readline.h>
25083 if { (ac_try="$ac_cpp conftest.$ac_ext"
25084 case "(($ac_try" in
25085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086 *) ac_try_echo=$ac_try;;
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25091 grep -v '^ *+' conftest.er1 >conftest.err
25093 cat conftest.err >&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } >/dev/null && {
25096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25099 ac_header_preproc=yes
25101 echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25104 ac_header_preproc=no
25107 rm -f conftest.err conftest.$ac_ext
25108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25109 echo "${ECHO_T}$ac_header_preproc" >&6; }
25111 # So? What about this header?
25112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25114 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25115 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25116 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25117 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25118 ac_header_preproc=yes
25121 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25122 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25123 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25124 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25125 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25126 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25127 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25128 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25129 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25130 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25131 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25132 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25136 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25137 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25139 echo $ECHO_N "(cached) $ECHO_C" >&6
25141 eval "$as_ac_Header=\$ac_header_preproc"
25143 ac_res=`eval echo '${'$as_ac_Header'}'`
25144 { echo "$as_me:$LINENO: result: $ac_res" >&5
25145 echo "${ECHO_T}$ac_res" >&6; }
25148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_READLINE 1
25155 CONS_LIBS="-lreadline -lhistory -ltermcap"
25161 echo "readline.h not found. readline turned off ..."
25173 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25174 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25175 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25176 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25180 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25182 # Is the header compilable?
25183 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25184 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25185 cat >conftest.$ac_ext <<_ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25191 $ac_includes_default
25192 #include </usr/include/readline/readline.h>
25194 rm -f conftest.$ac_objext
25195 if { (ac_try="$ac_compile"
25196 case "(($ac_try" in
25197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198 *) ac_try_echo=$ac_try;;
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201 (eval "$ac_compile") 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } && {
25208 test -z "$ac_c_werror_flag" ||
25209 test ! -s conftest.err
25210 } && test -s conftest.$ac_objext; then
25211 ac_header_compiler=yes
25213 echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25216 ac_header_compiler=no
25219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25221 echo "${ECHO_T}$ac_header_compiler" >&6; }
25223 # Is the header present?
25224 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25225 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include </usr/include/readline/readline.h>
25234 if { (ac_try="$ac_cpp conftest.$ac_ext"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } >/dev/null && {
25247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25248 test ! -s conftest.err
25250 ac_header_preproc=yes
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25255 ac_header_preproc=no
25258 rm -f conftest.err conftest.$ac_ext
25259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25260 echo "${ECHO_T}$ac_header_preproc" >&6; }
25262 # So? What about this header?
25263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25265 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25266 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25267 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25268 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25269 ac_header_preproc=yes
25272 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25273 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25274 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25275 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25276 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25277 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25278 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25279 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25280 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25281 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25283 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25287 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25288 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25289 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25290 echo $ECHO_N "(cached) $ECHO_C" >&6
25292 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25294 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25295 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25298 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25301 cat >>confdefs.h <<\_ACEOF
25302 #define HAVE_READLINE 1
25306 CONS_INC="-I/usr/include/readline"
25307 CONS_LIBS="-lreadline -ltermcap"
25311 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25313 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25314 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25316 echo $ECHO_N "(cached) $ECHO_C" >&6
25318 ac_res=`eval echo '${'$as_ac_Header'}'`
25319 { echo "$as_me:$LINENO: result: $ac_res" >&5
25320 echo "${ECHO_T}$ac_res" >&6; }
25322 # Is the header compilable?
25323 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25324 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25325 cat >conftest.$ac_ext <<_ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25331 $ac_includes_default
25332 #include <${TOP_DIR}/depkgs/readline/readline.h>
25334 rm -f conftest.$ac_objext
25335 if { (ac_try="$ac_compile"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341 (eval "$ac_compile") 2>conftest.er1
25343 grep -v '^ *+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } && {
25348 test -z "$ac_c_werror_flag" ||
25349 test ! -s conftest.err
25350 } && test -s conftest.$ac_objext; then
25351 ac_header_compiler=yes
25353 echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25356 ac_header_compiler=no
25359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25361 echo "${ECHO_T}$ac_header_compiler" >&6; }
25363 # Is the header present?
25364 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25365 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25366 cat >conftest.$ac_ext <<_ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25372 #include <${TOP_DIR}/depkgs/readline/readline.h>
25374 if { (ac_try="$ac_cpp conftest.$ac_ext"
25375 case "(($ac_try" in
25376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377 *) ac_try_echo=$ac_try;;
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25382 grep -v '^ *+' conftest.er1 >conftest.err
25384 cat conftest.err >&5
25385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386 (exit $ac_status); } >/dev/null && {
25387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25388 test ! -s conftest.err
25390 ac_header_preproc=yes
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 ac_header_preproc=no
25398 rm -f conftest.err conftest.$ac_ext
25399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25400 echo "${ECHO_T}$ac_header_preproc" >&6; }
25402 # So? What about this header?
25403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25405 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25406 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25407 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25408 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25409 ac_header_preproc=yes
25412 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25413 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25414 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25415 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25416 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25417 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25418 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25419 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25420 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25421 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25422 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25423 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25427 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25428 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 eval "$as_ac_Header=\$ac_header_preproc"
25434 ac_res=`eval echo '${'$as_ac_Header'}'`
25435 { echo "$as_me:$LINENO: result: $ac_res" >&5
25436 echo "${ECHO_T}$ac_res" >&6; }
25439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25442 cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_READLINE 1
25447 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25448 CONS_LIBS="-lreadline -lhistory -ltermcap"
25449 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25450 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25455 echo "readline.h not found. readline turned off ..."
25482 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25483 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25484 if test "${ac_cv_header_stat_broken+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25487 cat >conftest.$ac_ext <<_ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h. */
25493 #include <sys/types.h>
25494 #include <sys/stat.h>
25496 #if defined S_ISBLK && defined S_IFDIR
25497 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25500 #if defined S_ISBLK && defined S_IFCHR
25501 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25504 #if defined S_ISLNK && defined S_IFREG
25505 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25508 #if defined S_ISSOCK && defined S_IFREG
25509 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25513 rm -f conftest.$ac_objext
25514 if { (ac_try="$ac_compile"
25515 case "(($ac_try" in
25516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517 *) ac_try_echo=$ac_try;;
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520 (eval "$ac_compile") 2>conftest.er1
25522 grep -v '^ *+' conftest.er1 >conftest.err
25524 cat conftest.err >&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } && {
25527 test -z "$ac_c_werror_flag" ||
25528 test ! -s conftest.err
25529 } && test -s conftest.$ac_objext; then
25530 ac_cv_header_stat_broken=no
25532 echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25535 ac_cv_header_stat_broken=yes
25538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25540 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25541 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25542 if test $ac_cv_header_stat_broken = yes; then
25544 cat >>confdefs.h <<\_ACEOF
25545 #define STAT_MACROS_BROKEN 1
25555 ac_header_dirent=no
25556 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25557 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25558 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25559 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25563 cat >conftest.$ac_ext <<_ACEOF
25566 cat confdefs.h >>conftest.$ac_ext
25567 cat >>conftest.$ac_ext <<_ACEOF
25568 /* end confdefs.h. */
25569 #include <sys/types.h>
25581 rm -f conftest.$ac_objext
25582 if { (ac_try="$ac_compile"
25583 case "(($ac_try" in
25584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585 *) ac_try_echo=$ac_try;;
25587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25588 (eval "$ac_compile") 2>conftest.er1
25590 grep -v '^ *+' conftest.er1 >conftest.err
25592 cat conftest.err >&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } && {
25595 test -z "$ac_c_werror_flag" ||
25596 test ! -s conftest.err
25597 } && test -s conftest.$ac_objext; then
25598 eval "$as_ac_Header=yes"
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25603 eval "$as_ac_Header=no"
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 ac_res=`eval echo '${'$as_ac_Header'}'`
25609 { echo "$as_me:$LINENO: result: $ac_res" >&5
25610 echo "${ECHO_T}$ac_res" >&6; }
25611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25612 cat >>confdefs.h <<_ACEOF
25613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25616 ac_header_dirent=$ac_hdr; break
25620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25621 if test $ac_header_dirent = dirent.h; then
25622 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25624 if test "${ac_cv_search_opendir+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25627 ac_func_search_save_LIBS=$LIBS
25628 cat >conftest.$ac_ext <<_ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25635 /* Override any GCC internal prototype to avoid an error.
25636 Use char because int might match the return type of a GCC
25637 builtin and then its argument prototype would still apply. */
25650 for ac_lib in '' dir; do
25651 if test -z "$ac_lib"; then
25652 ac_res="none required"
25655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25657 rm -f conftest.$ac_objext conftest$ac_exeext
25658 if { (ac_try="$ac_link"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25664 (eval "$ac_link") 2>conftest.er1
25666 grep -v '^ *+' conftest.er1 >conftest.err
25668 cat conftest.err >&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); } && {
25671 test -z "$ac_c_werror_flag" ||
25672 test ! -s conftest.err
25673 } && test -s conftest$ac_exeext &&
25674 $as_test_x conftest$ac_exeext; then
25675 ac_cv_search_opendir=$ac_res
25677 echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25685 if test "${ac_cv_search_opendir+set}" = set; then
25689 if test "${ac_cv_search_opendir+set}" = set; then
25692 ac_cv_search_opendir=no
25694 rm conftest.$ac_ext
25695 LIBS=$ac_func_search_save_LIBS
25697 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25698 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25699 ac_res=$ac_cv_search_opendir
25700 if test "$ac_res" != no; then
25701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25706 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25707 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25708 if test "${ac_cv_search_opendir+set}" = set; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25711 ac_func_search_save_LIBS=$LIBS
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25719 /* Override any GCC internal prototype to avoid an error.
25720 Use char because int might match the return type of a GCC
25721 builtin and then its argument prototype would still apply. */
25734 for ac_lib in '' x; do
25735 if test -z "$ac_lib"; then
25736 ac_res="none required"
25739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25741 rm -f conftest.$ac_objext conftest$ac_exeext
25742 if { (ac_try="$ac_link"
25743 case "(($ac_try" in
25744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745 *) ac_try_echo=$ac_try;;
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748 (eval "$ac_link") 2>conftest.er1
25750 grep -v '^ *+' conftest.er1 >conftest.err
25752 cat conftest.err >&5
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest$ac_exeext &&
25758 $as_test_x conftest$ac_exeext; then
25759 ac_cv_search_opendir=$ac_res
25761 echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25769 if test "${ac_cv_search_opendir+set}" = set; then
25773 if test "${ac_cv_search_opendir+set}" = set; then
25776 ac_cv_search_opendir=no
25778 rm conftest.$ac_ext
25779 LIBS=$ac_func_search_save_LIBS
25781 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25782 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25783 ac_res=$ac_cv_search_opendir
25784 if test "$ac_res" != no; then
25785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25798 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25806 cat >conftest.$ac_ext <<_ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h. */
25812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25814 #define $ac_func innocuous_$ac_func
25816 /* System header to define __stub macros and hopefully few prototypes,
25817 which can conflict with char $ac_func (); below.
25818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25819 <limits.h> exists even on freestanding compilers. */
25822 # include <limits.h>
25824 # include <assert.h>
25829 /* Override any GCC internal prototype to avoid an error.
25830 Use char because int might match the return type of a GCC
25831 builtin and then its argument prototype would still apply. */
25836 /* The GNU C library defines this for functions which it implements
25837 to always fail with ENOSYS. Some functions are actually named
25838 something starting with __ and the normal name is an alias. */
25839 #if defined __stub_$ac_func || defined __stub___$ac_func
25846 return $ac_func ();
25851 rm -f conftest.$ac_objext conftest$ac_exeext
25852 if { (ac_try="$ac_link"
25853 case "(($ac_try" in
25854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25855 *) ac_try_echo=$ac_try;;
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_link") 2>conftest.er1
25860 grep -v '^ *+' conftest.er1 >conftest.err
25862 cat conftest.err >&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } && {
25865 test -z "$ac_c_werror_flag" ||
25866 test ! -s conftest.err
25867 } && test -s conftest$ac_exeext &&
25868 $as_test_x conftest$ac_exeext; then
25869 eval "$as_ac_var=yes"
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 eval "$as_ac_var=no"
25877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878 conftest$ac_exeext conftest.$ac_ext
25880 ac_res=`eval echo '${'$as_ac_var'}'`
25881 { echo "$as_me:$LINENO: result: $ac_res" >&5
25882 echo "${ECHO_T}$ac_res" >&6; }
25883 if test `eval echo '${'$as_ac_var'}'` = yes; then
25884 cat >>confdefs.h <<_ACEOF
25885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25893 for ac_func in nanosleep nl_langinfo
25895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25909 #define $ac_func innocuous_$ac_func
25911 /* System header to define __stub macros and hopefully few prototypes,
25912 which can conflict with char $ac_func (); below.
25913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914 <limits.h> exists even on freestanding compilers. */
25917 # include <limits.h>
25919 # include <assert.h>
25924 /* Override any GCC internal prototype to avoid an error.
25925 Use char because int might match the return type of a GCC
25926 builtin and then its argument prototype would still apply. */
25931 /* The GNU C library defines this for functions which it implements
25932 to always fail with ENOSYS. Some functions are actually named
25933 something starting with __ and the normal name is an alias. */
25934 #if defined __stub_$ac_func || defined __stub___$ac_func
25941 return $ac_func ();
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_link") 2>conftest.er1
25955 grep -v '^ *+' conftest.er1 >conftest.err
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } && {
25960 test -z "$ac_c_werror_flag" ||
25961 test ! -s conftest.err
25962 } && test -s conftest$ac_exeext &&
25963 $as_test_x conftest$ac_exeext; then
25964 eval "$as_ac_var=yes"
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 eval "$as_ac_var=no"
25972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25973 conftest$ac_exeext conftest.$ac_ext
25975 ac_res=`eval echo '${'$as_ac_var'}'`
25976 { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25978 if test `eval echo '${'$as_ac_var'}'` = yes; then
25979 cat >>confdefs.h <<_ACEOF
25980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25987 for ac_header in varargs.h
25989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 ac_res=`eval echo '${'$as_ac_Header'}'`
25997 { echo "$as_me:$LINENO: result: $ac_res" >&5
25998 echo "${ECHO_T}$ac_res" >&6; }
26000 # Is the header compilable?
26001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26003 cat >conftest.$ac_ext <<_ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 $ac_includes_default
26010 #include <$ac_header>
26012 rm -f conftest.$ac_objext
26013 if { (ac_try="$ac_compile"
26014 case "(($ac_try" in
26015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016 *) ac_try_echo=$ac_try;;
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019 (eval "$ac_compile") 2>conftest.er1
26021 grep -v '^ *+' conftest.er1 >conftest.err
26023 cat conftest.err >&5
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); } && {
26026 test -z "$ac_c_werror_flag" ||
26027 test ! -s conftest.err
26028 } && test -s conftest.$ac_objext; then
26029 ac_header_compiler=yes
26031 echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26034 ac_header_compiler=no
26037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26039 echo "${ECHO_T}$ac_header_compiler" >&6; }
26041 # Is the header present?
26042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26044 cat >conftest.$ac_ext <<_ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h. */
26050 #include <$ac_header>
26052 if { (ac_try="$ac_cpp conftest.$ac_ext"
26053 case "(($ac_try" in
26054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055 *) ac_try_echo=$ac_try;;
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26060 grep -v '^ *+' conftest.er1 >conftest.err
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } >/dev/null && {
26065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26066 test ! -s conftest.err
26068 ac_header_preproc=yes
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26073 ac_header_preproc=no
26076 rm -f conftest.err conftest.$ac_ext
26077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26078 echo "${ECHO_T}$ac_header_preproc" >&6; }
26080 # So? What about this header?
26081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26087 ac_header_preproc=yes
26090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26108 echo $ECHO_N "(cached) $ECHO_C" >&6
26110 eval "$as_ac_Header=\$ac_header_preproc"
26112 ac_res=`eval echo '${'$as_ac_Header'}'`
26113 { echo "$as_me:$LINENO: result: $ac_res" >&5
26114 echo "${ECHO_T}$ac_res" >&6; }
26117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26118 cat >>confdefs.h <<_ACEOF
26119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26128 { echo "$as_me:$LINENO: checking for Python support" >&5
26129 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26131 # Check whether --with-python was given.
26132 if test "${with_python+set}" = set; then
26133 withval=$with_python;
26136 if test "$withval" != "no"; then
26137 if test "$withval" = "yes"; then
26138 for python_root in /usr /usr/local /usr/sfw; do
26139 for ver in python2.2 python2.3 python2.4 python2.5; do
26140 if test -f $python_root/include/${ver}/Python.h; then
26141 PYTHON_INCDIR=-I$python_root/include/${ver}
26142 if test -d $python_root/lib64/${ver}/config; then
26143 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26145 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26152 if test x$PYTHON_INCDIR = x; then
26153 if test -f $prefix/include/Python.h; then
26154 PYTHON_INCDIR=-I$prefix/include
26155 if test -d $prefix/lib64/config; then
26156 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26158 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26161 { echo "$as_me:$LINENO: result: no" >&5
26162 echo "${ECHO_T}no" >&6; }
26163 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26164 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26165 { (exit 1); exit 1; }; }
26169 if test -f $withval/Python.h; then
26170 PYTHON_INCDIR=-I$withval
26171 PYTHON_LIBS="-L$withval/config -lpython"
26172 elif test -f $withval/include/Python.h; then
26173 PYTHON_INCDIR=-I$withval/include
26174 if test -d $withval/lib64/config; then
26175 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26177 PYTHON_LIBS="-L$withval/lib/config -lpython"
26179 elif test -f $withval/include/python/Python.h; then
26180 PYTHON_INCDIR=-I$withval/include/python
26181 if test -d $withval/lib64/python/config; then
26182 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26184 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26187 { echo "$as_me:$LINENO: result: no" >&5
26188 echo "${ECHO_T}no" >&6; }
26189 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26190 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26191 { (exit 1); exit 1; }; }
26195 cat >>confdefs.h <<\_ACEOF
26196 #define HAVE_PYTHON 1
26199 { echo "$as_me:$LINENO: result: yes" >&5
26200 echo "${ECHO_T}yes" >&6; }
26202 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26203 echo "$as_me: checking for more Python libs" >&6;}
26204 saved_LIBS="$LIBS"; LIBS=
26205 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26206 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26207 if test "${ac_cv_search_shm_open+set}" = set; then
26208 echo $ECHO_N "(cached) $ECHO_C" >&6
26210 ac_func_search_save_LIBS=$LIBS
26211 cat >conftest.$ac_ext <<_ACEOF
26214 cat confdefs.h >>conftest.$ac_ext
26215 cat >>conftest.$ac_ext <<_ACEOF
26216 /* end confdefs.h. */
26218 /* Override any GCC internal prototype to avoid an error.
26219 Use char because int might match the return type of a GCC
26220 builtin and then its argument prototype would still apply. */
26228 return shm_open ();
26233 for ac_lib in '' rt; do
26234 if test -z "$ac_lib"; then
26235 ac_res="none required"
26238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26240 rm -f conftest.$ac_objext conftest$ac_exeext
26241 if { (ac_try="$ac_link"
26242 case "(($ac_try" in
26243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247 (eval "$ac_link") 2>conftest.er1
26249 grep -v '^ *+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } && {
26254 test -z "$ac_c_werror_flag" ||
26255 test ! -s conftest.err
26256 } && test -s conftest$ac_exeext &&
26257 $as_test_x conftest$ac_exeext; then
26258 ac_cv_search_shm_open=$ac_res
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26268 if test "${ac_cv_search_shm_open+set}" = set; then
26272 if test "${ac_cv_search_shm_open+set}" = set; then
26275 ac_cv_search_shm_open=no
26277 rm conftest.$ac_ext
26278 LIBS=$ac_func_search_save_LIBS
26280 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26281 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26282 ac_res=$ac_cv_search_shm_open
26283 if test "$ac_res" != no; then
26284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26289 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26290 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26291 if test "${ac_cv_lib_util_openpty+set}" = set; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 ac_check_lib_save_LIBS=$LIBS
26295 LIBS="-lutil $LIBS"
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26303 /* Override any GCC internal prototype to avoid an error.
26304 Use char because int might match the return type of a GCC
26305 builtin and then its argument prototype would still apply. */
26318 rm -f conftest.$ac_objext conftest$ac_exeext
26319 if { (ac_try="$ac_link"
26320 case "(($ac_try" in
26321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322 *) ac_try_echo=$ac_try;;
26324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26325 (eval "$ac_link") 2>conftest.er1
26327 grep -v '^ *+' conftest.er1 >conftest.err
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } && {
26332 test -z "$ac_c_werror_flag" ||
26333 test ! -s conftest.err
26334 } && test -s conftest$ac_exeext &&
26335 $as_test_x conftest$ac_exeext; then
26336 ac_cv_lib_util_openpty=yes
26338 echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26341 ac_cv_lib_util_openpty=no
26344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26345 conftest$ac_exeext conftest.$ac_ext
26346 LIBS=$ac_check_lib_save_LIBS
26348 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26349 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26350 if test $ac_cv_lib_util_openpty = yes; then
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE_LIBUTIL 1
26355 LIBS="-lutil $LIBS"
26359 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26362 { echo "$as_me:$LINENO: result: no" >&5
26363 echo "${ECHO_T}no" >&6; }
26368 { echo "$as_me:$LINENO: result: no" >&5
26369 echo "${ECHO_T}no" >&6; }
26377 { echo "$as_me:$LINENO: checking for socket" >&5
26378 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26379 if test "${ac_cv_func_socket+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
26382 cat >conftest.$ac_ext <<_ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h. */
26388 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26390 #define socket innocuous_socket
26392 /* System header to define __stub macros and hopefully few prototypes,
26393 which can conflict with char socket (); below.
26394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26395 <limits.h> exists even on freestanding compilers. */
26398 # include <limits.h>
26400 # include <assert.h>
26405 /* Override any GCC internal prototype to avoid an error.
26406 Use char because int might match the return type of a GCC
26407 builtin and then its argument prototype would still apply. */
26412 /* The GNU C library defines this for functions which it implements
26413 to always fail with ENOSYS. Some functions are actually named
26414 something starting with __ and the normal name is an alias. */
26415 #if defined __stub_socket || defined __stub___socket
26427 rm -f conftest.$ac_objext conftest$ac_exeext
26428 if { (ac_try="$ac_link"
26429 case "(($ac_try" in
26430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26431 *) ac_try_echo=$ac_try;;
26433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26434 (eval "$ac_link") 2>conftest.er1
26436 grep -v '^ *+' conftest.er1 >conftest.err
26438 cat conftest.err >&5
26439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } && {
26441 test -z "$ac_c_werror_flag" ||
26442 test ! -s conftest.err
26443 } && test -s conftest$ac_exeext &&
26444 $as_test_x conftest$ac_exeext; then
26445 ac_cv_func_socket=yes
26447 echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26450 ac_cv_func_socket=no
26453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26454 conftest$ac_exeext conftest.$ac_ext
26456 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26457 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26458 if test $ac_cv_func_socket = yes; then
26459 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26460 echo "${ECHO_T}using libc's socket" >&6; }
26463 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26464 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26465 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 ac_check_lib_save_LIBS=$LIBS
26469 LIBS="-lxnet $LIBS"
26470 cat >conftest.$ac_ext <<_ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h. */
26477 /* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26492 rm -f conftest.$ac_objext conftest$ac_exeext
26493 if { (ac_try="$ac_link"
26494 case "(($ac_try" in
26495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26496 *) ac_try_echo=$ac_try;;
26498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26499 (eval "$ac_link") 2>conftest.er1
26501 grep -v '^ *+' conftest.er1 >conftest.err
26503 cat conftest.err >&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } && {
26506 test -z "$ac_c_werror_flag" ||
26507 test ! -s conftest.err
26508 } && test -s conftest$ac_exeext &&
26509 $as_test_x conftest$ac_exeext; then
26510 ac_cv_lib_xnet_socket=yes
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 ac_cv_lib_xnet_socket=no
26518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26519 conftest$ac_exeext conftest.$ac_ext
26520 LIBS=$ac_check_lib_save_LIBS
26522 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26523 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26524 if test $ac_cv_lib_xnet_socket = yes; then
26525 cat >>confdefs.h <<_ACEOF
26526 #define HAVE_LIBXNET 1
26529 LIBS="-lxnet $LIBS"
26534 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26535 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26536 if test "${ac_cv_lib_socket_socket+set}" = set; then
26537 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 ac_check_lib_save_LIBS=$LIBS
26540 LIBS="-lsocket $LIBS"
26541 cat >conftest.$ac_ext <<_ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h. */
26548 /* Override any GCC internal prototype to avoid an error.
26549 Use char because int might match the return type of a GCC
26550 builtin and then its argument prototype would still apply. */
26563 rm -f conftest.$ac_objext conftest$ac_exeext
26564 if { (ac_try="$ac_link"
26565 case "(($ac_try" in
26566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567 *) ac_try_echo=$ac_try;;
26569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26570 (eval "$ac_link") 2>conftest.er1
26572 grep -v '^ *+' conftest.er1 >conftest.err
26574 cat conftest.err >&5
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } && {
26577 test -z "$ac_c_werror_flag" ||
26578 test ! -s conftest.err
26579 } && test -s conftest$ac_exeext &&
26580 $as_test_x conftest$ac_exeext; then
26581 ac_cv_lib_socket_socket=yes
26583 echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26586 ac_cv_lib_socket_socket=no
26589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26590 conftest$ac_exeext conftest.$ac_ext
26591 LIBS=$ac_check_lib_save_LIBS
26593 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26594 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26595 if test $ac_cv_lib_socket_socket = yes; then
26596 cat >>confdefs.h <<_ACEOF
26597 #define HAVE_LIBSOCKET 1
26600 LIBS="-lsocket $LIBS"
26605 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26606 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26607 if test "${ac_cv_lib_inet_socket+set}" = set; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26610 ac_check_lib_save_LIBS=$LIBS
26611 LIBS="-linet $LIBS"
26612 cat >conftest.$ac_ext <<_ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h. */
26619 /* Override any GCC internal prototype to avoid an error.
26620 Use char because int might match the return type of a GCC
26621 builtin and then its argument prototype would still apply. */
26634 rm -f conftest.$ac_objext conftest$ac_exeext
26635 if { (ac_try="$ac_link"
26636 case "(($ac_try" in
26637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26638 *) ac_try_echo=$ac_try;;
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_link") 2>conftest.er1
26643 grep -v '^ *+' conftest.er1 >conftest.err
26645 cat conftest.err >&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } && {
26648 test -z "$ac_c_werror_flag" ||
26649 test ! -s conftest.err
26650 } && test -s conftest$ac_exeext &&
26651 $as_test_x conftest$ac_exeext; then
26652 ac_cv_lib_inet_socket=yes
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_cv_lib_inet_socket=no
26660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26661 conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26664 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26665 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26666 if test $ac_cv_lib_inet_socket = yes; then
26667 cat >>confdefs.h <<_ACEOF
26668 #define HAVE_LIBINET 1
26671 LIBS="-linet $LIBS"
26681 # Check whether --with-tcp-wrappers was given.
26682 if test "${with_tcp_wrappers+set}" = set; then
26683 withval=$with_tcp_wrappers;
26684 if test "x$withval" != "xno" ; then
26686 LIBS="$saved_LIBS -lwrap"
26687 { echo "$as_me:$LINENO: checking for libwrap" >&5
26688 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26689 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26690 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26691 if test "${ac_cv_search_nanosleep+set}" = set; then
26692 echo $ECHO_N "(cached) $ECHO_C" >&6
26694 ac_func_search_save_LIBS=$LIBS
26695 cat >conftest.$ac_ext <<_ACEOF
26698 cat confdefs.h >>conftest.$ac_ext
26699 cat >>conftest.$ac_ext <<_ACEOF
26700 /* end confdefs.h. */
26702 /* Override any GCC internal prototype to avoid an error.
26703 Use char because int might match the return type of a GCC
26704 builtin and then its argument prototype would still apply. */
26712 return nanosleep ();
26717 for ac_lib in '' rt; do
26718 if test -z "$ac_lib"; then
26719 ac_res="none required"
26722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26724 rm -f conftest.$ac_objext conftest$ac_exeext
26725 if { (ac_try="$ac_link"
26726 case "(($ac_try" in
26727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26728 *) ac_try_echo=$ac_try;;
26730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26731 (eval "$ac_link") 2>conftest.er1
26733 grep -v '^ *+' conftest.er1 >conftest.err
26735 cat conftest.err >&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); } && {
26738 test -z "$ac_c_werror_flag" ||
26739 test ! -s conftest.err
26740 } && test -s conftest$ac_exeext &&
26741 $as_test_x conftest$ac_exeext; then
26742 ac_cv_search_nanosleep=$ac_res
26744 echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26752 if test "${ac_cv_search_nanosleep+set}" = set; then
26756 if test "${ac_cv_search_nanosleep+set}" = set; then
26759 ac_cv_search_nanosleep=no
26761 rm conftest.$ac_ext
26762 LIBS=$ac_func_search_save_LIBS
26764 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26765 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26766 ac_res=$ac_cv_search_nanosleep
26767 if test "$ac_res" != no; then
26768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26772 cat >conftest.$ac_ext <<_ACEOF
26775 cat confdefs.h >>conftest.$ac_ext
26776 cat >>conftest.$ac_ext <<_ACEOF
26777 /* end confdefs.h. */
26779 #include <sys/types.h>
26781 int deny_severity = 0;
26782 int allow_severity = 0;
26783 struct request_info *req;
26795 rm -f conftest.$ac_objext conftest$ac_exeext
26796 if { (ac_try="$ac_link"
26797 case "(($ac_try" in
26798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26799 *) ac_try_echo=$ac_try;;
26801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802 (eval "$ac_link") 2>conftest.er1
26804 grep -v '^ *+' conftest.er1 >conftest.err
26806 cat conftest.err >&5
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); } && {
26809 test -z "$ac_c_werror_flag" ||
26810 test ! -s conftest.err
26811 } && test -s conftest$ac_exeext &&
26812 $as_test_x conftest$ac_exeext; then
26814 { echo "$as_me:$LINENO: result: yes" >&5
26815 echo "${ECHO_T}yes" >&6; }
26817 cat >>confdefs.h <<\_ACEOF
26818 #define HAVE_LIBWRAP 1
26826 echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26830 LIBS="$saved_LIBS -lwrap -lnsl"
26831 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26832 cat >conftest.$ac_ext <<_ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h. */
26839 #include <sys/types.h>
26841 int deny_severity = 0;
26842 int allow_severity = 0;
26843 struct request_info *req;
26855 rm -f conftest.$ac_objext conftest$ac_exeext
26856 if { (ac_try="$ac_link"
26857 case "(($ac_try" in
26858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26859 *) ac_try_echo=$ac_try;;
26861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26862 (eval "$ac_link") 2>conftest.er1
26864 grep -v '^ *+' conftest.er1 >conftest.err
26866 cat conftest.err >&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); } && {
26869 test -z "$ac_c_werror_flag" ||
26870 test ! -s conftest.err
26871 } && test -s conftest$ac_exeext &&
26872 $as_test_x conftest$ac_exeext; then
26874 { echo "$as_me:$LINENO: result: yes" >&5
26875 echo "${ECHO_T}yes" >&6; }
26877 cat >>confdefs.h <<\_ACEOF
26878 #define HAVE_LIBWRAP 1
26886 echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26890 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26891 echo "$as_me: error: *** libwrap missing" >&2;}
26892 { (exit 1); exit 1; }; }
26897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26898 conftest$ac_exeext conftest.$ac_ext
26903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26904 conftest$ac_exeext conftest.$ac_ext
26911 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26912 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26914 # Check whether --with-openssl was given.
26915 if test "${with_openssl+set}" = set; then
26916 withval=$with_openssl;
26917 with_openssl_directory=${withval}
26923 if test "x$with_openssl_directory" != "xno"; then
26924 OPENSSL_LIBS="-lssl -lcrypto"
26927 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26929 # Make sure the $with_openssl_directory also makes sense
26931 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26932 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26933 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26937 saved_LIBS="${LIBS}"
26938 saved_CFLAGS="${CFLAGS}"
26939 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
26940 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
26942 cat >conftest.$ac_ext <<_ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26949 #include <openssl/ssl.h>
26955 CRYPTO_set_id_callback(NULL);
26961 rm -f conftest.$ac_objext conftest$ac_exeext
26962 if { (ac_try="$ac_link"
26963 case "(($ac_try" in
26964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26965 *) ac_try_echo=$ac_try;;
26967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26968 (eval "$ac_link") 2>conftest.er1
26970 grep -v '^ *+' conftest.er1 >conftest.err
26972 cat conftest.err >&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } && {
26975 test -z "$ac_c_werror_flag" ||
26976 test ! -s conftest.err
26977 } && test -s conftest$ac_exeext &&
26978 $as_test_x conftest$ac_exeext; then
26981 support_crypto="yes"
26984 echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26994 conftest$ac_exeext conftest.$ac_ext
26996 cat >conftest.$ac_ext <<_ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h. */
27003 #include <openssl/evp.h>
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_link") 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && {
27029 test -z "$ac_c_werror_flag" ||
27030 test ! -s conftest.err
27031 } && test -s conftest$ac_exeext &&
27032 $as_test_x conftest$ac_exeext; then
27034 ac_cv_openssl_sha2="yes"
27037 echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27041 ac_cv_openssl_sha2="no"
27046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27047 conftest$ac_exeext conftest.$ac_ext
27049 cat >conftest.$ac_ext <<_ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h. */
27056 #include <openssl/evp.h>
27068 rm -f conftest.$ac_objext conftest$ac_exeext
27069 if { (ac_try="$ac_link"
27070 case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_link") 2>conftest.er1
27077 grep -v '^ *+' conftest.er1 >conftest.err
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } && {
27082 test -z "$ac_c_werror_flag" ||
27083 test ! -s conftest.err
27084 } && test -s conftest$ac_exeext &&
27085 $as_test_x conftest$ac_exeext; then
27087 ac_cv_openssl_export="no"
27090 echo "$as_me: failed program was:" >&5
27091 sed 's/^/| /' conftest.$ac_ext >&5
27094 ac_cv_openssl_export="yes"
27099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27100 conftest$ac_exeext conftest.$ac_ext
27102 LIBS="${saved_LIBS}"
27103 CFLAGS="${saved_CFLAGS}"
27105 if test "$support_tls" = "yes"; then
27107 cat >>confdefs.h <<\_ACEOF
27108 #define HAVE_OPENSSL 1
27112 cat >>confdefs.h <<\_ACEOF
27117 cat >>confdefs.h <<\_ACEOF
27118 #define HAVE_CRYPTO 1
27123 if test "$ac_cv_openssl_sha2" = "yes"; then
27125 cat >>confdefs.h <<\_ACEOF
27126 #define HAVE_SHA2 1
27131 if test "$ac_cv_openssl_export" = "yes"; then
27133 cat >>confdefs.h <<\_ACEOF
27134 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27140 support_crypto="no"
27145 { echo "$as_me:$LINENO: result: $support_tls" >&5
27146 echo "${ECHO_T}$support_tls" >&6; }
27150 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27151 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27152 if test "${ac_cv_search_dlopen+set}" = set; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27155 ac_func_search_save_LIBS=$LIBS
27156 cat >conftest.$ac_ext <<_ACEOF
27159 cat confdefs.h >>conftest.$ac_ext
27160 cat >>conftest.$ac_ext <<_ACEOF
27161 /* end confdefs.h. */
27163 /* Override any GCC internal prototype to avoid an error.
27164 Use char because int might match the return type of a GCC
27165 builtin and then its argument prototype would still apply. */
27178 for ac_lib in '' dl; do
27179 if test -z "$ac_lib"; then
27180 ac_res="none required"
27183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27185 rm -f conftest.$ac_objext conftest$ac_exeext
27186 if { (ac_try="$ac_link"
27187 case "(($ac_try" in
27188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189 *) ac_try_echo=$ac_try;;
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192 (eval "$ac_link") 2>conftest.er1
27194 grep -v '^ *+' conftest.er1 >conftest.err
27196 cat conftest.err >&5
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } && {
27199 test -z "$ac_c_werror_flag" ||
27200 test ! -s conftest.err
27201 } && test -s conftest$ac_exeext &&
27202 $as_test_x conftest$ac_exeext; then
27203 ac_cv_search_dlopen=$ac_res
27205 echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27213 if test "${ac_cv_search_dlopen+set}" = set; then
27217 if test "${ac_cv_search_dlopen+set}" = set; then
27220 ac_cv_search_dlopen=no
27222 rm conftest.$ac_ext
27223 LIBS=$ac_func_search_save_LIBS
27225 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27226 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27227 ac_res=$ac_cv_search_dlopen
27228 if test "$ac_res" != no; then
27229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27234 working_dir=`eval echo ${prefix}/var/bacula/working`
27236 # Check whether --with-working-dir was given.
27237 if test "${with_working_dir+set}" = set; then
27238 withval=$with_working_dir;
27239 if test "x$withval" != "xno" ; then
27240 working_dir=$withval
27251 # Check whether --with-archivedir was given.
27252 if test "${with_archivedir+set}" = set; then
27253 withval=$with_archivedir;
27254 if test "x$withval" != "xno" ; then
27255 archivedir=$withval
27264 scriptdir=`eval echo ${sysconfdir}`
27266 # Check whether --with-scriptdir was given.
27267 if test "${with_scriptdir+set}" = set; then
27268 withval=$with_scriptdir;
27269 if test "x$withval" != "xno" ; then
27279 # ------------------------------------------
27280 # Where to place plugindir (plugin files)
27281 # ------------------------------------------
27282 plugindir=`eval echo ${sysconfdir}`
27284 # Check whether --with-plugindir was given.
27285 if test "${with_plugindir+set}" = set; then
27286 withval=$with_plugindir;
27287 if test "x$withval" != "xno" ; then
27297 dump_email=root@localhost
27299 # Check whether --with-dump-email was given.
27300 if test "${with_dump_email+set}" = set; then
27301 withval=$with_dump_email;
27302 if test "x$withval" != "xno" ; then
27303 dump_email=$withval
27312 job_email=root@localhost
27314 # Check whether --with-job-email was given.
27315 if test "${with_job_email+set}" = set; then
27316 withval=$with_job_email;
27317 if test "x$withval" != "xno" ; then
27327 smtp_host=localhost
27329 # Check whether --with-smtp_host was given.
27330 if test "${with_smtp_host+set}" = set; then
27331 withval=$with_smtp_host;
27332 if test "x$withval" != "xno" ; then
27344 # Check whether --with-pid-dir was given.
27345 if test "${with_pid_dir+set}" = set; then
27346 withval=$with_pid_dir;
27347 if test "x$withval" != "xno" ; then
27355 cat >>confdefs.h <<_ACEOF
27356 #define _PATH_BACULA_PIDDIR "$piddir"
27361 subsysdir=/var/run/subsys
27362 if test -d /var/run/subsys; then
27363 subsysdir=/var/run/subsys
27364 elif test -d /var/lock/subsys; then
27365 subsysdir=/var/lock/subsys
27367 subsysdir=/var/run/subsys
27370 # Check whether --with-subsys-dir was given.
27371 if test "${with_subsys_dir+set}" = set; then
27372 withval=$with_subsys_dir;
27373 if test "x$withval" != "xno" ; then
27385 # Check whether --with-baseport was given.
27386 if test "${with_baseport+set}" = set; then
27387 withval=$with_baseport;
27388 if test "x$withval" != "xno" ; then
27397 dir_port=`expr $baseport`
27398 fd_port=`expr $baseport + 1`
27399 sd_port=`expr $fd_port + 1`
27407 # Check whether --with-dir-password was given.
27408 if test "${with_dir_password+set}" = set; then
27409 withval=$with_dir_password;
27410 if test "x$withval" != "xno" ; then
27411 dir_password=$withval
27418 if test "x$dir_password" = "x" ; then
27419 if test "x$OPENSSL" = "xnone" ; then
27420 key=`autoconf/randpass 33`
27422 key=`openssl rand -base64 33`
27429 # Check whether --with-fd-password was given.
27430 if test "${with_fd_password+set}" = set; then
27431 withval=$with_fd_password;
27432 if test "x$withval" != "xno" ; then
27433 fd_password=$withval
27440 if test "x$fd_password" = "x" ; then
27441 if test "x$OPENSSL" = "xnone" ; then
27442 key=`autoconf/randpass 37`
27444 key=`openssl rand -base64 33`
27451 # Check whether --with-sd-password was given.
27452 if test "${with_sd_password+set}" = set; then
27453 withval=$with_sd_password;
27454 if test "x$withval" != "xno" ; then
27455 sd_password=$withval
27462 if test "x$sd_password" = "x" ; then
27463 if test "x$OPENSSL" = "xnone" ; then
27464 key=`autoconf/randpass 41`
27466 key=`openssl rand -base64 33`
27473 # Check whether --with-mon-dir-password was given.
27474 if test "${with_mon_dir_password+set}" = set; then
27475 withval=$with_mon_dir_password;
27476 if test "x$withval" != "xno" ; then
27477 mon_dir_password=$withval
27484 if test "x$mon_dir_password" = "x" ; then
27485 if test "x$OPENSSL" = "xnone" ; then
27486 key=`autoconf/randpass 33`
27488 key=`openssl rand -base64 33`
27490 mon_dir_password=$key
27495 # Check whether --with-mon-fd-password was given.
27496 if test "${with_mon_fd_password+set}" = set; then
27497 withval=$with_mon_fd_password;
27498 if test "x$withval" != "xno" ; then
27499 mon_fd_password=$withval
27506 if test "x$mon_fd_password" = "x" ; then
27507 if test "x$OPENSSL" = "xnone" ; then
27508 key=`autoconf/randpass 37`
27510 key=`openssl rand -base64 33`
27512 mon_fd_password=$key
27517 # Check whether --with-mon-sd-password was given.
27518 if test "${with_mon_sd_password+set}" = set; then
27519 withval=$with_mon_sd_password;
27520 if test "x$withval" != "xno" ; then
27521 mon_sd_password=$withval
27528 if test "x$mon_sd_password" = "x" ; then
27529 if test "x$OPENSSL" = "xnone" ; then
27530 key=`autoconf/randpass 41`
27532 key=`openssl rand -base64 33`
27534 mon_sd_password=$key
27546 # Check whether --with-db_name was given.
27547 if test "${with_db_name+set}" = set; then
27548 withval=$with_db_name;
27549 if test "x$withval" != "x" ; then
27560 # Check whether --with-db_user was given.
27561 if test "${with_db_user+set}" = set; then
27562 withval=$with_db_user;
27563 if test "x$withval" != "x" ; then
27574 # Check whether --with-db_password was given.
27575 if test "${with_db_password+set}" = set; then
27576 withval=$with_db_password;
27577 if test "x$withval" != "x" ; then
27578 db_password=$withval
27588 # Check whether --with-db_port was given.
27589 if test "${with_db_port+set}" = set; then
27590 withval=$with_db_port;
27591 if test "x$withval" != "x" ; then
27601 # Handle users and groups for each daemon
27605 # Check whether --with-dir_user was given.
27606 if test "${with_dir_user+set}" = set; then
27607 withval=$with_dir_user;
27608 if test "x$withval" != "x" ; then
27618 # Check whether --with-dir_group was given.
27619 if test "${with_dir_group+set}" = set; then
27620 withval=$with_dir_group;
27621 if test "x$withval" != "x" ; then
27631 # Check whether --with-sd_user was given.
27632 if test "${with_sd_user+set}" = set; then
27633 withval=$with_sd_user;
27634 if test "x$withval" != "x" ; then
27644 # Check whether --with-sd_group was given.
27645 if test "${with_sd_group+set}" = set; then
27646 withval=$with_sd_group;
27647 if test "x$withval" != "x" ; then
27657 # Check whether --with-fd_user was given.
27658 if test "${with_fd_user+set}" = set; then
27659 withval=$with_fd_user;
27660 if test "x$withval" != "x" ; then
27670 # Check whether --with-fd_group was given.
27671 if test "${with_fd_group+set}" = set; then
27672 withval=$with_fd_group;
27673 if test "x$withval" != "x" ; then
27690 # Check whether --with-sbin-perm was given.
27691 if test "${with_sbin_perm+set}" = set; then
27692 withval=$with_sbin_perm;
27693 if test "x$withval" != "x" ; then
27706 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27707 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27709 # Check whether --with-postgresql was given.
27710 if test "${with_postgresql+set}" = set; then
27711 withval=$with_postgresql;
27712 if test "$withval" != "no"; then
27713 if test "$db_found" = "yes"; then
27714 { echo "$as_me:$LINENO: result: error" >&5
27715 echo "${ECHO_T}error" >&6; }
27716 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27717 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27718 { (exit 1); exit 1; }; };
27720 if test "$withval" = "yes"; then
27721 PG_CONFIG=`which pg_config`
27722 if test -n "$PG_CONFIG";then
27723 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27724 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27725 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27726 elif test -f /usr/local/include/libpq-fe.h; then
27727 POSTGRESQL_INCDIR=/usr/local/include
27728 if test -d /usr/local/lib64; then
27729 POSTGRESQL_LIBDIR=/usr/local/lib64
27731 POSTGRESQL_LIBDIR=/usr/local/lib
27733 POSTGRESQL_BINDIR=/usr/local/bin
27734 elif test -f /usr/include/libpq-fe.h; then
27735 POSTGRESQL_INCDIR=/usr/include
27736 if test -d /usr/lib64; then
27737 POSTGRESQL_LIBDIR=/usr/lib64
27739 POSTGRESQL_LIBDIR=/usr/lib
27741 POSTGRESQL_BINDIR=/usr/bin
27742 elif test -f /usr/include/pgsql/libpq-fe.h; then
27743 POSTGRESQL_INCDIR=/usr/include/pgsql
27744 if test -d /usr/lib64/pgsql; then
27745 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27747 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27749 POSTGRESQL_BINDIR=/usr/bin
27750 elif test -f /usr/include/postgresql/libpq-fe.h; then
27751 POSTGRESQL_INCDIR=/usr/include/postgresql
27752 if test -d /usr/lib64/postgresql; then
27753 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27755 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27757 POSTGRESQL_BINDIR=/usr/bin
27759 { echo "$as_me:$LINENO: result: no" >&5
27760 echo "${ECHO_T}no" >&6; }
27761 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27762 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27763 { (exit 1); exit 1; }; }
27765 elif test -f $withval/include/libpq-fe.h; then
27766 POSTGRESQL_INCDIR=$withval/include
27767 POSTGRESQL_LIBDIR=$withval/lib
27768 POSTGRESQL_BINDIR=$withval/bin
27769 elif test -f $withval/include/postgresql/libpq-fe.h; then
27770 POSTGRESQL_INCDIR=$withval/include/postgresql
27771 if test -d $withval/lib64; then
27772 POSTGRESQL_LIBDIR=$withval/lib64
27774 POSTGRESQL_LIBDIR=$withval/lib
27776 POSTGRESQL_BINDIR=$withval/bin
27778 { echo "$as_me:$LINENO: result: no" >&5
27779 echo "${ECHO_T}no" >&6; }
27780 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27781 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27782 { (exit 1); exit 1; }; }
27784 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27785 { echo "$as_me:$LINENO: checking for crypt" >&5
27786 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27787 if test "${ac_cv_func_crypt+set}" = set; then
27788 echo $ECHO_N "(cached) $ECHO_C" >&6
27790 cat >conftest.$ac_ext <<_ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h. */
27796 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27798 #define crypt innocuous_crypt
27800 /* System header to define __stub macros and hopefully few prototypes,
27801 which can conflict with char crypt (); below.
27802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27803 <limits.h> exists even on freestanding compilers. */
27806 # include <limits.h>
27808 # include <assert.h>
27813 /* Override any GCC internal prototype to avoid an error.
27814 Use char because int might match the return type of a GCC
27815 builtin and then its argument prototype would still apply. */
27820 /* The GNU C library defines this for functions which it implements
27821 to always fail with ENOSYS. Some functions are actually named
27822 something starting with __ and the normal name is an alias. */
27823 #if defined __stub_crypt || defined __stub___crypt
27835 rm -f conftest.$ac_objext conftest$ac_exeext
27836 if { (ac_try="$ac_link"
27837 case "(($ac_try" in
27838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27839 *) ac_try_echo=$ac_try;;
27841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27842 (eval "$ac_link") 2>conftest.er1
27844 grep -v '^ *+' conftest.er1 >conftest.err
27846 cat conftest.err >&5
27847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848 (exit $ac_status); } && {
27849 test -z "$ac_c_werror_flag" ||
27850 test ! -s conftest.err
27851 } && test -s conftest$ac_exeext &&
27852 $as_test_x conftest$ac_exeext; then
27853 ac_cv_func_crypt=yes
27855 echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27858 ac_cv_func_crypt=no
27861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27862 conftest$ac_exeext conftest.$ac_ext
27864 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
27865 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
27866 if test $ac_cv_func_crypt = yes; then
27869 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
27870 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
27871 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
27872 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 ac_check_lib_save_LIBS=$LIBS
27875 LIBS="-lcrypt $LIBS"
27876 cat >conftest.$ac_ext <<_ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h. */
27883 /* Override any GCC internal prototype to avoid an error.
27884 Use char because int might match the return type of a GCC
27885 builtin and then its argument prototype would still apply. */
27898 rm -f conftest.$ac_objext conftest$ac_exeext
27899 if { (ac_try="$ac_link"
27900 case "(($ac_try" in
27901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902 *) ac_try_echo=$ac_try;;
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905 (eval "$ac_link") 2>conftest.er1
27907 grep -v '^ *+' conftest.er1 >conftest.err
27909 cat conftest.err >&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } && {
27912 test -z "$ac_c_werror_flag" ||
27913 test ! -s conftest.err
27914 } && test -s conftest$ac_exeext &&
27915 $as_test_x conftest$ac_exeext; then
27916 ac_cv_lib_crypt_crypt=yes
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27921 ac_cv_lib_crypt_crypt=no
27924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27925 conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27928 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
27929 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
27930 if test $ac_cv_lib_crypt_crypt = yes; then
27931 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
27936 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
27937 SQL_LFLAGS=$POSTGRESQL_LFLAGS
27938 SQL_BINDIR=$POSTGRESQL_BINDIR
27939 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
27941 cat >>confdefs.h <<\_ACEOF
27942 #define HAVE_POSTGRESQL 1
27945 { echo "$as_me:$LINENO: result: yes" >&5
27946 echo "${ECHO_T}yes" >&6; }
27948 support_postgresql=yes
27952 { echo "$as_me:$LINENO: result: no" >&5
27953 echo "${ECHO_T}no" >&6; }
27958 { echo "$as_me:$LINENO: result: no" >&5
27959 echo "${ECHO_T}no" >&6; }
27971 { echo "$as_me:$LINENO: checking for MySQL support" >&5
27972 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
27974 # Check whether --with-mysql was given.
27975 if test "${with_mysql+set}" = set; then
27976 withval=$with_mysql;
27977 if test "$withval" != "no"; then
27978 if test "$withval" = "yes"; then
27979 if test -f /usr/local/mysql/include/mysql/mysql.h; then
27980 MYSQL_INCDIR=/usr/local/mysql/include/mysql
27981 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
27982 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
27983 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
27985 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
27987 MYSQL_BINDIR=/usr/local/mysql/bin
27988 elif test -f /usr/include/mysql/mysql.h; then
27989 MYSQL_INCDIR=/usr/include/mysql
27990 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
27991 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
27992 MYSQL_LIBDIR=/usr/lib64/mysql
27993 elif test -f /usr/lib64/libmysqlclient_r.a \
27994 -o -f /usr/lib64/libmysqlclient_r.so; then
27995 MYSQL_LIBDIR=/usr/lib64
27996 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
27997 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
27998 MYSQL_LIBDIR=/usr/lib/mysql
28000 MYSQL_LIBDIR=/usr/lib
28002 MYSQL_BINDIR=/usr/bin
28003 elif test -f /usr/include/mysql.h; then
28004 MYSQL_INCDIR=/usr/include
28005 if test -f /usr/lib64/libmysqlclient_r.a \
28006 -o -f /usr/lib64/libmysqlclient_r.so; then
28007 MYSQL_LIBDIR=/usr/lib64
28009 MYSQL_LIBDIR=/usr/lib
28011 MYSQL_BINDIR=/usr/bin
28012 elif test -f /usr/local/include/mysql/mysql.h; then
28013 MYSQL_INCDIR=/usr/local/include/mysql
28014 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28015 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28016 MYSQL_LIBDIR=/usr/local/lib64/mysql
28018 MYSQL_LIBDIR=/usr/local/lib/mysql
28020 MYSQL_BINDIR=/usr/local/bin
28021 elif test -f /usr/local/include/mysql.h; then
28022 MYSQL_INCDIR=/usr/local/include
28023 if test -f /usr/local/lib64/libmysqlclient_r.a \
28024 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28025 MYSQL_LIBDIR=/usr/local/lib64
28027 MYSQL_LIBDIR=/usr/local/lib
28029 MYSQL_BINDIR=/usr/local/bin
28031 { echo "$as_me:$LINENO: result: no" >&5
28032 echo "${ECHO_T}no" >&6; }
28033 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28034 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28035 { (exit 1); exit 1; }; }
28038 if test -f $withval/include/mysql/mysql.h; then
28039 MYSQL_INCDIR=$withval/include/mysql
28040 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28041 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28042 MYSQL_LIBDIR=$withval/lib64/mysql
28043 elif test -f $withval/lib64/libmysqlclient_r.a \
28044 -o -f $withval/lib64/libmysqlclient_r.so; then
28045 MYSQL_LIBDIR=$withval/lib64
28046 elif test -f $withval/lib/libmysqlclient_r.a \
28047 -o -f $withval/lib/libmysqlclient_r.so; then
28048 MYSQL_LIBDIR=$withval/lib
28050 MYSQL_LIBDIR=$withval/lib/mysql
28052 MYSQL_BINDIR=$withval/bin
28053 elif test -f $withval/include/mysql.h; then
28054 MYSQL_INCDIR=$withval/include
28055 if test -f $withval/lib64/libmysqlclient_r.a \
28056 -o -f $withval/lib64/libmysqlclient_r.so; then
28057 MYSQL_LIBDIR=$withval/lib64
28059 MYSQL_LIBDIR=$withval/lib
28061 MYSQL_BINDIR=$withval/bin
28063 { echo "$as_me:$LINENO: result: no" >&5
28064 echo "${ECHO_T}no" >&6; }
28065 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28066 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28067 { (exit 1); exit 1; }; }
28070 SQL_INCLUDE=-I$MYSQL_INCDIR
28071 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28072 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28073 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28074 cat >>confdefs.h <<\_ACEOF
28075 #define HAVE_THREAD_SAFE_MYSQL 1
28079 SQL_BINDIR=$MYSQL_BINDIR
28080 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28082 cat >>confdefs.h <<\_ACEOF
28083 #define HAVE_MYSQL 1
28086 { echo "$as_me:$LINENO: result: yes" >&5
28087 echo "${ECHO_T}yes" >&6; }
28094 { echo "$as_me:$LINENO: result: no" >&5
28095 echo "${ECHO_T}no" >&6; }
28103 # Check whether --with-embedded-mysql was given.
28104 if test "${with_embedded_mysql+set}" = set; then
28105 withval=$with_embedded_mysql;
28106 if test "$withval" != "no"; then
28107 if test "$withval" = "yes"; then
28108 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28109 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28110 if test -d /usr/local/mysql/lib64/mysql; then
28111 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28113 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28115 MYSQL_BINDIR=/usr/local/mysql/bin
28116 elif test -f /usr/include/mysql/mysql.h; then
28117 MYSQL_INCDIR=/usr/include/mysql
28118 if test -d /usr/lib64/mysql; then
28119 MYSQL_LIBDIR=/usr/lib64/mysql
28121 MYSQL_LIBDIR=/usr/lib/mysql
28123 MYSQL_BINDIR=/usr/bin
28124 elif test -f /usr/include/mysql.h; then
28125 MYSQL_INCDIR=/usr/include
28126 if test -d /usr/lib64; then
28127 MYSQL_LIBDIR=/usr/lib64
28129 MYSQL_LIBDIR=/usr/lib
28131 MYSQL_BINDIR=/usr/bin
28132 elif test -f /usr/local/include/mysql/mysql.h; then
28133 MYSQL_INCDIR=/usr/local/include/mysql
28134 if test -d /usr/local/lib64/mysql; then
28135 MYSQL_LIBDIR=/usr/local/lib64/mysql
28137 MYSQL_LIBDIR=/usr/local/lib/mysql
28139 MYSQL_BINDIR=/usr/local/bin
28140 elif test -f /usr/local/include/mysql.h; then
28141 MYSQL_INCDIR=/usr/local/include
28142 if test -d /usr/local/lib64; then
28143 MYSQL_LIBDIR=/usr/local/lib64
28145 MYSQL_LIBDIR=/usr/local/lib
28147 MYSQL_BINDIR=/usr/local/bin
28149 { echo "$as_me:$LINENO: result: no" >&5
28150 echo "${ECHO_T}no" >&6; }
28151 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28152 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28153 { (exit 1); exit 1; }; }
28156 if test -f $withval/include/mysql/mysql.h; then
28157 MYSQL_INCDIR=$withval/include/mysql
28158 if test -d $withval/lib64/mysql; then
28159 MYSQL_LIBDIR=$withval/lib64/mysql
28161 MYSQL_LIBDIR=$withval/lib/mysql
28163 MYSQL_BINDIR=$withval/bin
28164 elif test -f $withval/include/mysql.h; then
28165 MYSQL_INCDIR=$withval/include
28166 if test -d $withval/lib64; then
28167 MYSQL_LIBDIR=$withval/lib64
28169 MYSQL_LIBDIR=$withval/lib
28171 MYSQL_BINDIR=$withval/bin
28173 { echo "$as_me:$LINENO: result: no" >&5
28174 echo "${ECHO_T}no" >&6; }
28175 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28176 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28177 { (exit 1); exit 1; }; }
28180 SQL_INCLUDE=-I$MYSQL_INCDIR
28181 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28182 SQL_BINDIR=$MYSQL_BINDIR
28183 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28185 cat >>confdefs.h <<\_ACEOF
28186 #define HAVE_MYSQL 1
28189 cat >>confdefs.h <<\_ACEOF
28190 #define HAVE_EMBEDDED_MYSQL 1
28193 { echo "$as_me:$LINENO: result: yes" >&5
28194 echo "${ECHO_T}yes" >&6; }
28201 { echo "$as_me:$LINENO: result: no" >&5
28202 echo "${ECHO_T}no" >&6; }
28218 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28219 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28221 # Check whether --with-sqlite3 was given.
28222 if test "${with_sqlite3+set}" = set; then
28223 withval=$with_sqlite3;
28224 if test "$withval" != "no"; then
28225 if test "$withval" = "yes"; then
28226 if test -f /usr/local/include/sqlite3.h; then
28227 SQLITE_INCDIR=/usr/local/include
28228 if test -d /usr/local/lib64; then
28229 SQLITE_LIBDIR=/usr/local/lib64
28231 SQLITE_LIBDIR=/usr/local/lib
28233 SQLITE_BINDIR=/usr/local/bin
28234 elif test -f /usr/include/sqlite3.h; then
28235 SQLITE_INCDIR=/usr/include
28236 if test -d /usr/lib64; then
28237 SQLITE_LIBDIR=/usr/lib64
28239 SQLITE_LIBDIR=/usr/lib
28241 SQLITE_BINDIR=/usr/bin
28242 elif test -f $prefix/include/sqlite3.h; then
28243 SQLITE_INCDIR=$prefix/include
28244 if test -d $prefix/lib64; then
28245 SQLITE_LIBDIR=$prefix/lib64
28247 SQLITE_LIBDIR=$prefix/lib
28249 SQLITE_BINDIR=$prefix/bin
28251 { echo "$as_me:$LINENO: result: no" >&5
28252 echo "${ECHO_T}no" >&6; }
28253 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28254 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28255 { (exit 1); exit 1; }; }
28258 if test -f $withval/sqlite3.h; then
28259 SQLITE_INCDIR=$withval
28260 SQLITE_LIBDIR=$withval
28261 SQLITE_BINDIR=$withval
28262 elif test -f $withval/include/sqlite3.h; then
28263 SQLITE_INCDIR=$withval/include
28264 if test -d $withval/lib64; then
28265 SQLITE_LIBDIR=$withval/lib64
28267 SQLITE_LIBDIR=$withval/lib
28269 SQLITE_BINDIR=$withval/bin
28271 { echo "$as_me:$LINENO: result: no" >&5
28272 echo "${ECHO_T}no" >&6; }
28273 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28274 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28275 { (exit 1); exit 1; }; }
28278 SQL_INCLUDE=-I$SQLITE_INCDIR
28279 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28280 SQL_BINDIR=$SQLITE_BINDIR
28281 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28283 cat >>confdefs.h <<\_ACEOF
28284 #define HAVE_SQLITE3 1
28287 { echo "$as_me:$LINENO: result: yes" >&5
28288 echo "${ECHO_T}yes" >&6; }
28290 support_sqlite3=yes
28295 { echo "$as_me:$LINENO: result: no" >&5
28296 echo "${ECHO_T}no" >&6; }
28301 { echo "$as_me:$LINENO: result: no" >&5
28302 echo "${ECHO_T}no" >&6; }
28314 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28315 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28317 # Check whether --with-sqlite was given.
28318 if test "${with_sqlite+set}" = set; then
28319 withval=$with_sqlite;
28320 if test "$withval" != "no"; then
28321 if test "$withval" = "yes"; then
28322 if test -f /usr/local/include/sqlite.h; then
28323 SQLITE_INCDIR=/usr/local/include
28324 if test -d /usr/local/lib64; then
28325 SQLITE_LIBDIR=/usr/local/lib64
28327 SQLITE_LIBDIR=/usr/local/lib
28329 SQLITE_BINDIR=/usr/local/bin
28330 elif test -f /usr/include/sqlite.h; then
28331 SQLITE_INCDIR=/usr/include
28332 if test -d /usr/lib64; then
28333 SQLITE_LIBDIR=/usr/lib64
28335 SQLITE_LIBDIR=/usr/lib
28337 SQLITE_BINDIR=/usr/bin
28338 elif test -f $prefix/include/sqlite.h; then
28339 SQLITE_INCDIR=$prefix/include
28340 if test -d $prefix/lib64; then
28341 SQLITE_LIBDIR=$prefix/lib64
28343 SQLITE_LIBDIR=$prefix/lib
28345 SQLITE_BINDIR=$prefix/bin
28347 { echo "$as_me:$LINENO: result: no" >&5
28348 echo "${ECHO_T}no" >&6; }
28349 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28350 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28351 { (exit 1); exit 1; }; }
28354 if test -f $withval/sqlite.h; then
28355 SQLITE_INCDIR=$withval
28356 SQLITE_LIBDIR=$withval
28357 SQLITE_BINDIR=$withval
28358 elif test -f $withval/include/sqlite.h; then
28359 SQLITE_INCDIR=$withval/include
28360 if test -d $withval/lib64; then
28361 SQLITE_LIBDIR=$withval/lib64
28363 SQLITE_LIBDIR=$withval/lib
28365 SQLITE_BINDIR=$withval/bin
28367 { echo "$as_me:$LINENO: result: no" >&5
28368 echo "${ECHO_T}no" >&6; }
28369 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28370 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28371 { (exit 1); exit 1; }; }
28374 SQL_INCLUDE=-I$SQLITE_INCDIR
28375 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28376 SQL_BINDIR=$SQLITE_BINDIR
28377 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28379 cat >>confdefs.h <<\_ACEOF
28380 #define HAVE_SQLITE 1
28383 { echo "$as_me:$LINENO: result: yes" >&5
28384 echo "${ECHO_T}yes" >&6; }
28391 { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28397 { echo "$as_me:$LINENO: result: no" >&5
28398 echo "${ECHO_T}no" >&6; }
28410 { echo "$as_me:$LINENO: checking for DBI support" >&5
28411 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28413 # Check whether --with-dbi was given.
28414 if test "${with_dbi+set}" = set; then
28416 if test "$withval" != "no"; then
28417 if test "$withval" = "yes"; then
28418 if test -f /usr/local/include/dbi/dbi.h; then
28419 DBI_INCDIR=/usr/local/dbi/include
28420 if test -d /usr/local/lib64; then
28421 DBI_LIBDIR=/usr/local/lib64
28423 DBI_LIBDIR=/usr/local/lib
28425 DBI_BINDIR=/usr/local/bin
28426 elif test -f /usr/include/dbi/dbi.h; then
28427 DBI_INCDIR=/usr/include
28428 if test -d /usr/lib64; then
28429 DBI_LIBDIR=/usr/lib64
28431 DBI_LIBDIR=/usr/lib
28433 DBI_BINDIR=/usr/bin
28434 elif test -f $prefix/include/dbi/dbi.h; then
28435 DBI_INCDIR=$prefix/include
28436 if test -d $prefix/lib64; then
28437 DBI_LIBDIR=$prefix/lib64
28439 DBI_LIBDIR=$prefix/lib
28441 DBI_BINDIR=$prefix/bin
28443 { echo "$as_me:$LINENO: result: no" >&5
28444 echo "${ECHO_T}no" >&6; }
28445 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28446 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28447 { (exit 1); exit 1; }; }
28449 if test -d /usr/local/lib/dbd; then
28450 DRIVERDIR=/usr/local/lib/dbd
28451 if test -d /usr/local/lib64/dbd; then
28452 DRIVERDIR=/usr/local/lib64/dbd
28454 DRIVERDIR=/usr/local/lib/dbd
28456 elif test -d /usr/lib/dbd; then
28457 DRIVERDIR=/usr/lib/dbd
28458 if test -d /usr/lib64/dbd; then
28459 DRIVERDIR=/usr/lib64/dbd
28461 DRIVERDIR=/usr/lib/dbd
28463 elif test -d $prefix/lib/dbd; then
28464 if test -d $prefix/lib64/dbd; then
28465 DRIVERDIR=$prefix/lib64/dbd
28467 DRIVERDIR=$prefix/lib/dbd
28470 { echo "$as_me:$LINENO: result: no" >&5
28471 echo "${ECHO_T}no" >&6; }
28472 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28473 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28474 { (exit 1); exit 1; }; }
28477 if test -f $withval/dbi.h; then
28478 DBI_INCDIR=$withval
28479 DBI_LIBDIR=$withval
28480 DBI_BINDIR=$withval
28481 elif test -f $withval/include/dbi/dbi.h; then
28482 DBI_INCDIR=$withval/include
28483 if test -d $withval/lib64; then
28484 DBI_LIBDIR=$withval/lib64
28486 DBI_LIBDIR=$withval/lib
28488 DBI_BINDIR=$withval/bin
28490 { echo "$as_me:$LINENO: result: no" >&5
28491 echo "${ECHO_T}no" >&6; }
28492 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28493 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28494 { (exit 1); exit 1; }; }
28496 if test -d $withval/dbd; then
28497 DRIVERDIR=$withval/dbd
28498 elif test -d $withval/lib/; then
28499 if test -d $withval/lib64/dbd; then
28500 DRIVERDIR=$withval/lib64/dbd
28502 DRIVERDIR=$withval/lib/dbd
28505 { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28507 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28508 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28509 { (exit 1); exit 1; }; }
28512 SQL_INCLUDE=-I$DBI_INCDIR
28513 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28514 SQL_BINDIR=$DBI_BINDIR
28515 SQL_LIB=$DBI_LIBDIR/libdbi.a
28516 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28519 cat >>confdefs.h <<\_ACEOF
28523 { echo "$as_me:$LINENO: result: yes" >&5
28524 echo "${ECHO_T}yes" >&6; }
28532 { echo "$as_me:$LINENO: result: no" >&5
28533 echo "${ECHO_T}no" >&6; }
28538 { echo "$as_me:$LINENO: result: no" >&5
28539 echo "${ECHO_T}no" >&6; }
28554 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28555 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28557 # Check whether --with-dbi-driver was given.
28558 if test "${with_dbi_driver+set}" = set; then
28559 withval=$with_dbi_driver;
28560 if test "$withval" != "no"; then
28564 if test -f /usr/local/mysql/bin/mysql; then
28565 SQL_BINDIR=/usr/local/mysql/bin
28566 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28567 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28568 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28570 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28572 elif test -f /usr/bin/mysql; then
28573 SQL_BINDIR=/usr/bin
28574 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28575 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28576 SQL_LIBDIR=/usr/lib64/mysql
28577 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28578 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28579 SQL_LIBDIR=/usr/lib/mysql
28581 SQL_LIBDIR=/usr/lib
28583 elif test -f /usr/local/bin/mysql; then
28584 SQL_BINDIR=/usr/local/bin
28585 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28586 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28587 SQL_LIBDIR=/usr/local/lib64/mysql
28588 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28589 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28590 SQL_LIBDIR=/usr/local/lib/mysql
28592 SQL_LIBDIR=/usr/local/lib
28594 elif test -f $withval/bin/mysql; then
28595 SQL_BINDIR=$withval/bin
28596 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28597 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28598 SQL_LIBDIR=$withval/lib64/mysql
28599 elif test -f $withval/lib64/libmysqlclient_r.a \
28600 -o -f $withval/lib64/libmysqlclient_r.so; then
28601 SQL_LIBDIR=$withval/lib64
28602 elif test -f $withval/lib/libmysqlclient_r.a \
28603 -o -f $withval/lib/libmysqlclient_r.so; then
28604 SQL_LIBDIR=$withval/lib/
28606 SQL_LIBDIR=$withval/lib/mysql
28609 { echo "$as_me:$LINENO: result: no" >&5
28610 echo "${ECHO_T}no" >&6; }
28611 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28612 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28613 { (exit 1); exit 1; }; }
28615 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28618 db_prog="postgresql"
28619 PG_CONFIG=`which pg_config`
28620 if test -n "$PG_CONFIG"; then
28621 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28622 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28623 elif test -f /usr/local/bin/psql; then
28624 SQL_BINDIR=/usr/local/bin
28625 if test -d /usr/local/lib64; then
28626 SQL_LIBDIR=/usr/local/lib64
28628 SQL_LIBDIR=/usr/local/lib
28630 elif test -f /usr/bin/psql; then
28631 SQL_BINDIR=/usr/local/bin
28632 if test -d /usr/lib64/postgresql; then
28633 SQL_LIBDIR=/usr/lib64/postgresql
28634 elif test -d /usr/lib/postgresql; then
28635 SQL_LIBDIR=/usr/lib/postgresql
28636 elif test -d /usr/lib64; then
28637 SQL_LIBDIR=/usr/lib64
28639 SQL_LIBDIR=/usr/lib
28641 elif test -f $withval/bin/psql; then
28642 SQL_BINDIR=$withval/bin
28643 if test -d $withval/lib64; then
28644 SQL_LIBDIR=$withval/lib64
28646 SQL_LIBDIR=$withval/lib
28649 { echo "$as_me:$LINENO: result: no" >&5
28650 echo "${ECHO_T}no" >&6; }
28651 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28652 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28653 { (exit 1); exit 1; }; }
28655 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28659 if test -f /usr/local/bin/sqlite; then
28660 SQL_BINDIR=/usr/local/bin
28661 if test -d /usr/local/lib64; then
28662 SQL_LIBDIR=/usr/local/lib64
28664 SQL_LIBDIR=/usr/local/lib
28666 elif test -f /usr/bin/sqlite; then
28667 SQL_BINDIR=/usr/bin
28668 if test -d /usr/lib64; then
28669 SQL_LIBDIR=/usr/lib64
28671 SQL_LIBDIR=/usr/lib
28673 elif test -f $withval/bin/sqlite; then
28674 SQL_BINDIR=$withval/bin
28675 if test -d $withval/lib64; then
28676 SQL_LIBDIR=$withval/lib64
28678 SQL_LIBDIR=$withval/lib
28681 { echo "$as_me:$LINENO: result: no" >&5
28682 echo "${ECHO_T}no" >&6; }
28683 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28684 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28685 { (exit 1); exit 1; }; }
28687 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28691 if test -f /usr/local/bin/sqlite3; then
28692 SQL_BINDIR=/usr/local/bin
28693 if test -d /usr/local/lib64; then
28694 SQL_LIBDIR=/usr/local/lib64
28696 SQL_LIBDIR=/usr/local/lib
28698 elif test -f /usr/bin/sqlite3; then
28699 SQL_BINDIR=/usr/bin
28700 if test -d /usr/lib64; then
28701 SQL_LIBDIR=/usr/lib64
28703 SQL_LIBDIR=/usr/lib
28705 elif test -f $withval/bin/sqlite3; then
28706 SQL_BINDIR=$withval/bin
28707 if test -d $withval/lib64; then
28708 SQL_LIBDIR=$withval/lib64
28710 SQL_LIBDIR=$withval/lib
28713 { echo "$as_me:$LINENO: result: no" >&5
28714 echo "${ECHO_T}no" >&6; }
28715 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28716 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28717 { (exit 1); exit 1; }; }
28719 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28722 { echo "$as_me:$LINENO: result: no" >&5
28723 echo "${ECHO_T}no" >&6; }
28724 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28725 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28726 { (exit 1); exit 1; }; }
28730 { echo "$as_me:$LINENO: result: yes" >&5
28731 echo "${ECHO_T}yes" >&6; }
28734 { echo "$as_me:$LINENO: result: no" >&5
28735 echo "${ECHO_T}no" >&6; }
28740 { echo "$as_me:$LINENO: result: no" >&5
28741 echo "${ECHO_T}no" >&6; }
28754 support_batch_insert=no
28755 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28757 if test $pkg = 0; then
28758 support_batch_insert=yes
28759 # Check whether --enable-batch-insert was given.
28760 if test "${enable_batch_insert+set}" = set; then
28761 enableval=$enable_batch_insert;
28762 if test x$enableval = xno; then
28763 support_batch_insert=no
28765 support_batch_insert=yes
28773 if test x$DB_TYPE = xpostgresql; then
28774 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28776 if test $pkg != 0; then
28777 support_batch_insert=no
28781 if test x$DB_TYPE = xdbi; then
28785 if test $DB_PROG = postgresql; then
28786 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28790 if test $DB_PROG = mysql; then
28791 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28795 if test $DB_PROG = sqlite3; then
28796 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28800 if test $pkg = 0; then
28801 # Check whether --enable-batch-insert was given.
28802 if test "${enable_batch_insert+set}" = set; then
28803 enableval=$enable_batch_insert;
28804 if test x$enableval = xno; then
28805 support_batch_insert=no
28807 support_batch_insert=yes
28820 if test $support_batch_insert = yes ; then
28822 cat >>confdefs.h <<\_ACEOF
28823 #define HAVE_BATCH_FILE_INSERT 1
28828 cat >>confdefs.h <<\_ACEOF
28829 #define PROTOTYPES 1
28833 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
28834 if test -z "$CCOPTS"; then
28835 CCOPTS='-g -O2 -Wall'
28842 largefile_support="no"
28844 # Check whether --enable-largefile was given.
28845 if test "${enable_largefile+set}" = set; then
28846 enableval=$enable_largefile;
28849 if test "$enable_largefile" != no; then
28850 if test -n "$ac_tool_prefix"; then
28851 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
28852 set dummy ${ac_tool_prefix}getconf; ac_word=$2
28853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28855 if test "${ac_cv_prog_GETCONF+set}" = set; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28858 if test -n "$GETCONF"; then
28859 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
28861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28862 for as_dir in $PATH
28865 test -z "$as_dir" && as_dir=.
28866 for ac_exec_ext in '' $ac_executable_extensions; do
28867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28868 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
28869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28878 GETCONF=$ac_cv_prog_GETCONF
28879 if test -n "$GETCONF"; then
28880 { echo "$as_me:$LINENO: result: $GETCONF" >&5
28881 echo "${ECHO_T}$GETCONF" >&6; }
28883 { echo "$as_me:$LINENO: result: no" >&5
28884 echo "${ECHO_T}no" >&6; }
28889 if test -z "$ac_cv_prog_GETCONF"; then
28890 ac_ct_GETCONF=$GETCONF
28891 # Extract the first word of "getconf", so it can be a program name with args.
28892 set dummy getconf; ac_word=$2
28893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28895 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
28896 echo $ECHO_N "(cached) $ECHO_C" >&6
28898 if test -n "$ac_ct_GETCONF"; then
28899 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
28901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28902 for as_dir in $PATH
28905 test -z "$as_dir" && as_dir=.
28906 for ac_exec_ext in '' $ac_executable_extensions; do
28907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28908 ac_cv_prog_ac_ct_GETCONF="getconf"
28909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28918 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
28919 if test -n "$ac_ct_GETCONF"; then
28920 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
28921 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
28923 { echo "$as_me:$LINENO: result: no" >&5
28924 echo "${ECHO_T}no" >&6; }
28927 if test "x$ac_ct_GETCONF" = x; then
28930 case $cross_compiling:$ac_tool_warned in
28932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28933 whose name does not start with the host triplet. If you think this
28934 configuration is useful to you, please write to autoconf@gnu.org." >&5
28935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28936 whose name does not start with the host triplet. If you think this
28937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28938 ac_tool_warned=yes ;;
28940 GETCONF=$ac_ct_GETCONF
28943 GETCONF="$ac_cv_prog_GETCONF"
28946 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
28947 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
28948 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
28949 echo $ECHO_N "(cached) $ECHO_C" >&6
28951 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
28952 ac_cv_sys_largefile_CFLAGS=no
28954 # IRIX 6.2 and later require cc -n32.
28955 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
28956 if test "$GCC" != yes; then
28957 ac_cv_sys_largefile_CFLAGS=-n32
28960 CC="$CC $ac_cv_sys_largefile_CFLAGS"
28961 cat >conftest.$ac_ext <<_ACEOF
28964 cat confdefs.h >>conftest.$ac_ext
28965 cat >>conftest.$ac_ext <<_ACEOF
28966 /* end confdefs.h. */
28976 rm -f conftest.$ac_objext conftest$ac_exeext
28977 if { (ac_try="$ac_link"
28978 case "(($ac_try" in
28979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28980 *) ac_try_echo=$ac_try;;
28982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28983 (eval "$ac_link") 2>conftest.er1
28985 grep -v '^ *+' conftest.er1 >conftest.err
28987 cat conftest.err >&5
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } && {
28990 test -z "$ac_c_werror_flag" ||
28991 test ! -s conftest.err
28992 } && test -s conftest$ac_exeext &&
28993 $as_test_x conftest$ac_exeext; then
28996 echo "$as_me: failed program was:" >&5
28997 sed 's/^/| /' conftest.$ac_ext >&5
28999 ac_cv_sys_largefile_CFLAGS=no
29002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29003 conftest$ac_exeext conftest.$ac_ext
29008 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29009 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29010 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29011 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29012 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29013 echo $ECHO_N "(cached) $ECHO_C" >&6
29015 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29016 ac_cv_sys_largefile_LDFLAGS=no
29020 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29021 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29022 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29023 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29024 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29025 echo $ECHO_N "(cached) $ECHO_C" >&6
29027 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29028 ac_cv_sys_largefile_LIBS=no
29032 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29033 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29035 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29038 -D_FILE_OFFSET_BITS=*) ;;
29039 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29040 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29045 case "$CPPFLAGS" in
29046 '') CPPFLAGS="$ac_flag" ;;
29047 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29055 '') CFLAGS="$ac_flag" ;;
29056 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29061 case "$ac_cv_sys_largefile_LDFLAGS" in
29065 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29066 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29069 case "$ac_cv_sys_largefile_LIBS" in
29073 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29074 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29077 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29078 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29079 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 ac_cv_sys_file_offset_bits=no
29083 ac_cv_sys_file_offset_bits=64
29084 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29086 -D_FILE_OFFSET_BITS)
29087 ac_cv_sys_file_offset_bits=1 ;;
29088 -D_FILE_OFFSET_BITS=*)
29089 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29094 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29095 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29096 if test "$ac_cv_sys_file_offset_bits" != no; then
29098 cat >>confdefs.h <<_ACEOF
29099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29103 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29104 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29105 if test "${ac_cv_sys_largefile_source+set}" = set; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29108 ac_cv_sys_largefile_source=no
29109 ac_cv_sys_largefile_source=1
29110 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29112 -D_LARGEFILE_SOURCE)
29113 ac_cv_sys_largefile_source=1 ;;
29114 -D_LARGEFILE_SOURCE=*)
29115 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29120 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29121 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29122 if test "$ac_cv_sys_largefile_source" != no; then
29124 cat >>confdefs.h <<_ACEOF
29125 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29129 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29130 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29131 if test "${ac_cv_sys_large_files+set}" = set; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29134 ac_cv_sys_large_files=no
29135 ac_cv_sys_large_files=1
29136 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29139 ac_cv_sys_large_files=1 ;;
29141 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29146 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29147 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29148 if test "$ac_cv_sys_large_files" != no; then
29150 cat >>confdefs.h <<_ACEOF
29151 #define _LARGE_FILES $ac_cv_sys_large_files
29158 { echo "$as_me:$LINENO: checking for X" >&5
29159 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29162 # Check whether --with-x was given.
29163 if test "${with_x+set}" = set; then
29167 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29168 if test "x$with_x" = xno; then
29169 # The user explicitly disabled X.
29172 case $x_includes,$x_libraries in #(
29173 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29174 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29175 { (exit 1); exit 1; }; };; #(
29176 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29177 echo $ECHO_N "(cached) $ECHO_C" >&6
29179 # One or both of the vars are not set, and there is no cached value.
29180 ac_x_includes=no ac_x_libraries=no
29181 rm -f -r conftest.dir
29182 if mkdir conftest.dir; then
29184 cat >Imakefile <<'_ACEOF'
29186 @echo incroot='${INCROOT}'
29188 @echo usrlibdir='${USRLIBDIR}'
29190 @echo libdir='${LIBDIR}'
29192 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29194 for ac_var in incroot usrlibdir libdir; do
29195 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29197 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29198 for ac_extension in a so sl; do
29199 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29200 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29201 ac_im_usrlibdir=$ac_im_libdir; break
29204 # Screen out bogus values from the imake configuration. They are
29205 # bogus both because they are the default anyway, and because
29206 # using them would break gcc on systems where it needs fixed includes.
29207 case $ac_im_incroot in
29208 /usr/include) ac_x_includes= ;;
29209 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29211 case $ac_im_usrlibdir in
29212 /usr/lib | /lib) ;;
29213 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29217 rm -f -r conftest.dir
29220 # Standard set of common directories for X headers.
29221 # Check X11 before X11Rn because it is often a symlink to the current release.
29233 /usr/local/X11/include
29234 /usr/local/X11R6/include
29235 /usr/local/X11R5/include
29236 /usr/local/X11R4/include
29238 /usr/local/include/X11
29239 /usr/local/include/X11R6
29240 /usr/local/include/X11R5
29241 /usr/local/include/X11R4
29245 /usr/XFree86/include/X11
29249 /usr/unsupported/include
29250 /usr/athena/include
29251 /usr/local/x11r5/include
29252 /usr/lpp/Xamples/include
29254 /usr/openwin/include
29255 /usr/openwin/share/include'
29257 if test "$ac_x_includes" = no; then
29258 # Guess where to find include files, by looking for Xlib.h.
29259 # First, try using that file with no special directory specified.
29260 cat >conftest.$ac_ext <<_ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 #include <X11/Xlib.h>
29268 if { (ac_try="$ac_cpp conftest.$ac_ext"
29269 case "(($ac_try" in
29270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29271 *) ac_try_echo=$ac_try;;
29273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29276 grep -v '^ *+' conftest.er1 >conftest.err
29278 cat conftest.err >&5
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); } >/dev/null && {
29281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29282 test ! -s conftest.err
29284 # We can compile using X headers with no special include directory.
29287 echo "$as_me: failed program was:" >&5
29288 sed 's/^/| /' conftest.$ac_ext >&5
29290 for ac_dir in $ac_x_header_dirs; do
29291 if test -r "$ac_dir/X11/Xlib.h"; then
29292 ac_x_includes=$ac_dir
29298 rm -f conftest.err conftest.$ac_ext
29299 fi # $ac_x_includes = no
29301 if test "$ac_x_libraries" = no; then
29302 # Check for the libraries.
29303 # See if we find them without any special options.
29304 # Don't add to $LIBS permanently.
29307 cat >conftest.$ac_ext <<_ACEOF
29310 cat confdefs.h >>conftest.$ac_ext
29311 cat >>conftest.$ac_ext <<_ACEOF
29312 /* end confdefs.h. */
29313 #include <X11/Xlib.h>
29322 rm -f conftest.$ac_objext conftest$ac_exeext
29323 if { (ac_try="$ac_link"
29324 case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_link") 2>conftest.er1
29331 grep -v '^ *+' conftest.er1 >conftest.err
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } && {
29336 test -z "$ac_c_werror_flag" ||
29337 test ! -s conftest.err
29338 } && test -s conftest$ac_exeext &&
29339 $as_test_x conftest$ac_exeext; then
29341 # We can link X programs with no special library path.
29344 echo "$as_me: failed program was:" >&5
29345 sed 's/^/| /' conftest.$ac_ext >&5
29348 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29350 # Don't even attempt the hair of trying to link an X program!
29351 for ac_extension in a so sl; do
29352 if test -r "$ac_dir/libX11.$ac_extension"; then
29353 ac_x_libraries=$ac_dir
29360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29361 conftest$ac_exeext conftest.$ac_ext
29362 fi # $ac_x_libraries = no
29364 case $ac_x_includes,$ac_x_libraries in #(
29365 no,* | *,no | *\'*)
29366 # Didn't find X, or a directory has "'" in its name.
29367 ac_cv_have_x="have_x=no";; #(
29369 # Record where we found X for the cache.
29370 ac_cv_have_x="have_x=yes\
29371 ac_x_includes='$ac_x_includes'\
29372 ac_x_libraries='$ac_x_libraries'"
29378 eval "$ac_cv_have_x"
29381 if test "$have_x" != yes; then
29382 { echo "$as_me:$LINENO: result: $have_x" >&5
29383 echo "${ECHO_T}$have_x" >&6; }
29386 # If each of the values was on the command line, it overrides each guess.
29387 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29388 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29389 # Update the cache value to reflect the command line values.
29390 ac_cv_have_x="have_x=yes\
29391 ac_x_includes='$x_includes'\
29392 ac_x_libraries='$x_libraries'"
29393 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29394 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29397 if test "$no_x" = yes; then
29398 # Not all programs may use this symbol, but it does not hurt to define it.
29400 cat >>confdefs.h <<\_ACEOF
29401 #define X_DISPLAY_MISSING 1
29404 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29406 if test -n "$x_includes"; then
29407 X_CFLAGS="$X_CFLAGS -I$x_includes"
29410 # It would also be nice to do this for all -L options, not just this one.
29411 if test -n "$x_libraries"; then
29412 X_LIBS="$X_LIBS -L$x_libraries"
29413 # For Solaris; some versions of Sun CC require a space after -R and
29414 # others require no space. Words are not sufficient . . . .
29415 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29416 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29417 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29418 ac_xsave_c_werror_flag=$ac_c_werror_flag
29419 ac_c_werror_flag=yes
29420 cat >conftest.$ac_ext <<_ACEOF
29423 cat confdefs.h >>conftest.$ac_ext
29424 cat >>conftest.$ac_ext <<_ACEOF
29425 /* end confdefs.h. */
29435 rm -f conftest.$ac_objext conftest$ac_exeext
29436 if { (ac_try="$ac_link"
29437 case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_link") 2>conftest.er1
29444 grep -v '^ *+' conftest.er1 >conftest.err
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); } && {
29449 test -z "$ac_c_werror_flag" ||
29450 test ! -s conftest.err
29451 } && test -s conftest$ac_exeext &&
29452 $as_test_x conftest$ac_exeext; then
29453 { echo "$as_me:$LINENO: result: no" >&5
29454 echo "${ECHO_T}no" >&6; }
29455 X_LIBS="$X_LIBS -R$x_libraries"
29457 echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29460 LIBS="$ac_xsave_LIBS -R $x_libraries"
29461 cat >conftest.$ac_ext <<_ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (ac_try="$ac_link"
29478 case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_link") 2>conftest.er1
29485 grep -v '^ *+' conftest.er1 >conftest.err
29487 cat conftest.err >&5
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } && {
29490 test -z "$ac_c_werror_flag" ||
29491 test ! -s conftest.err
29492 } && test -s conftest$ac_exeext &&
29493 $as_test_x conftest$ac_exeext; then
29494 { echo "$as_me:$LINENO: result: yes" >&5
29495 echo "${ECHO_T}yes" >&6; }
29496 X_LIBS="$X_LIBS -R $x_libraries"
29498 echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29501 { echo "$as_me:$LINENO: result: neither works" >&5
29502 echo "${ECHO_T}neither works" >&6; }
29505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29506 conftest$ac_exeext conftest.$ac_ext
29509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29510 conftest$ac_exeext conftest.$ac_ext
29511 ac_c_werror_flag=$ac_xsave_c_werror_flag
29512 LIBS=$ac_xsave_LIBS
29515 # Check for system-dependent libraries X programs must link with.
29516 # Do this before checking for the system-independent R6 libraries
29517 # (-lICE), since we may need -lsocket or whatever for X linking.
29519 if test "$ISC" = yes; then
29520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29522 # Martyn Johnson says this is needed for Ultrix, if the X
29523 # libraries were built with DECnet support. And Karl Berry says
29524 # the Alpha needs dnet_stub (dnet does not exist).
29525 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29526 cat >conftest.$ac_ext <<_ACEOF
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h. */
29533 /* Override any GCC internal prototype to avoid an error.
29534 Use char because int might match the return type of a GCC
29535 builtin and then its argument prototype would still apply. */
29539 char XOpenDisplay ();
29543 return XOpenDisplay ();
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (ac_try="$ac_link"
29550 case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_link") 2>conftest.er1
29557 grep -v '^ *+' conftest.er1 >conftest.err
29559 cat conftest.err >&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } && {
29562 test -z "$ac_c_werror_flag" ||
29563 test ! -s conftest.err
29564 } && test -s conftest$ac_exeext &&
29565 $as_test_x conftest$ac_exeext; then
29568 echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29571 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29572 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29573 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29574 echo $ECHO_N "(cached) $ECHO_C" >&6
29576 ac_check_lib_save_LIBS=$LIBS
29577 LIBS="-ldnet $LIBS"
29578 cat >conftest.$ac_ext <<_ACEOF
29581 cat confdefs.h >>conftest.$ac_ext
29582 cat >>conftest.$ac_ext <<_ACEOF
29583 /* end confdefs.h. */
29585 /* Override any GCC internal prototype to avoid an error.
29586 Use char because int might match the return type of a GCC
29587 builtin and then its argument prototype would still apply. */
29595 return dnet_ntoa ();
29600 rm -f conftest.$ac_objext conftest$ac_exeext
29601 if { (ac_try="$ac_link"
29602 case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607 (eval "$ac_link") 2>conftest.er1
29609 grep -v '^ *+' conftest.er1 >conftest.err
29611 cat conftest.err >&5
29612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613 (exit $ac_status); } && {
29614 test -z "$ac_c_werror_flag" ||
29615 test ! -s conftest.err
29616 } && test -s conftest$ac_exeext &&
29617 $as_test_x conftest$ac_exeext; then
29618 ac_cv_lib_dnet_dnet_ntoa=yes
29620 echo "$as_me: failed program was:" >&5
29621 sed 's/^/| /' conftest.$ac_ext >&5
29623 ac_cv_lib_dnet_dnet_ntoa=no
29626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29627 conftest$ac_exeext conftest.$ac_ext
29628 LIBS=$ac_check_lib_save_LIBS
29630 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29631 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29632 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29633 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29636 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29637 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29638 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29639 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29640 echo $ECHO_N "(cached) $ECHO_C" >&6
29642 ac_check_lib_save_LIBS=$LIBS
29643 LIBS="-ldnet_stub $LIBS"
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29651 /* Override any GCC internal prototype to avoid an error.
29652 Use char because int might match the return type of a GCC
29653 builtin and then its argument prototype would still apply. */
29661 return dnet_ntoa ();
29666 rm -f conftest.$ac_objext conftest$ac_exeext
29667 if { (ac_try="$ac_link"
29668 case "(($ac_try" in
29669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670 *) ac_try_echo=$ac_try;;
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673 (eval "$ac_link") 2>conftest.er1
29675 grep -v '^ *+' conftest.er1 >conftest.err
29677 cat conftest.err >&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } && {
29680 test -z "$ac_c_werror_flag" ||
29681 test ! -s conftest.err
29682 } && test -s conftest$ac_exeext &&
29683 $as_test_x conftest$ac_exeext; then
29684 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29686 echo "$as_me: failed program was:" >&5
29687 sed 's/^/| /' conftest.$ac_ext >&5
29689 ac_cv_lib_dnet_stub_dnet_ntoa=no
29692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29693 conftest$ac_exeext conftest.$ac_ext
29694 LIBS=$ac_check_lib_save_LIBS
29696 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29697 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29698 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29699 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29706 conftest$ac_exeext conftest.$ac_ext
29707 LIBS="$ac_xsave_LIBS"
29709 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29710 # to get the SysV transport functions.
29711 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29713 # The nsl library prevents programs from opening the X display
29714 # on Irix 5.2, according to T.E. Dickey.
29715 # The functions gethostbyname, getservbyname, and inet_addr are
29716 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29717 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29718 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29719 if test "${ac_cv_func_gethostbyname+set}" = set; then
29720 echo $ECHO_N "(cached) $ECHO_C" >&6
29722 cat >conftest.$ac_ext <<_ACEOF
29725 cat confdefs.h >>conftest.$ac_ext
29726 cat >>conftest.$ac_ext <<_ACEOF
29727 /* end confdefs.h. */
29728 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29730 #define gethostbyname innocuous_gethostbyname
29732 /* System header to define __stub macros and hopefully few prototypes,
29733 which can conflict with char gethostbyname (); below.
29734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29735 <limits.h> exists even on freestanding compilers. */
29738 # include <limits.h>
29740 # include <assert.h>
29743 #undef gethostbyname
29745 /* Override any GCC internal prototype to avoid an error.
29746 Use char because int might match the return type of a GCC
29747 builtin and then its argument prototype would still apply. */
29751 char gethostbyname ();
29752 /* The GNU C library defines this for functions which it implements
29753 to always fail with ENOSYS. Some functions are actually named
29754 something starting with __ and the normal name is an alias. */
29755 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29762 return gethostbyname ();
29767 rm -f conftest.$ac_objext conftest$ac_exeext
29768 if { (ac_try="$ac_link"
29769 case "(($ac_try" in
29770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29771 *) ac_try_echo=$ac_try;;
29773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29774 (eval "$ac_link") 2>conftest.er1
29776 grep -v '^ *+' conftest.er1 >conftest.err
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } && {
29781 test -z "$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 } && test -s conftest$ac_exeext &&
29784 $as_test_x conftest$ac_exeext; then
29785 ac_cv_func_gethostbyname=yes
29787 echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29790 ac_cv_func_gethostbyname=no
29793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29794 conftest$ac_exeext conftest.$ac_ext
29796 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29797 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29799 if test $ac_cv_func_gethostbyname = no; then
29800 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29801 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29802 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29805 ac_check_lib_save_LIBS=$LIBS
29807 cat >conftest.$ac_ext <<_ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h. */
29814 /* Override any GCC internal prototype to avoid an error.
29815 Use char because int might match the return type of a GCC
29816 builtin and then its argument prototype would still apply. */
29820 char gethostbyname ();
29824 return gethostbyname ();
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (ac_try="$ac_link"
29831 case "(($ac_try" in
29832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833 *) ac_try_echo=$ac_try;;
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836 (eval "$ac_link") 2>conftest.er1
29838 grep -v '^ *+' conftest.er1 >conftest.err
29840 cat conftest.err >&5
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); } && {
29843 test -z "$ac_c_werror_flag" ||
29844 test ! -s conftest.err
29845 } && test -s conftest$ac_exeext &&
29846 $as_test_x conftest$ac_exeext; then
29847 ac_cv_lib_nsl_gethostbyname=yes
29849 echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29852 ac_cv_lib_nsl_gethostbyname=no
29855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29856 conftest$ac_exeext conftest.$ac_ext
29857 LIBS=$ac_check_lib_save_LIBS
29859 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29860 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
29861 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29865 if test $ac_cv_lib_nsl_gethostbyname = no; then
29866 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29867 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
29868 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29871 ac_check_lib_save_LIBS=$LIBS
29873 cat >conftest.$ac_ext <<_ACEOF
29876 cat confdefs.h >>conftest.$ac_ext
29877 cat >>conftest.$ac_ext <<_ACEOF
29878 /* end confdefs.h. */
29880 /* Override any GCC internal prototype to avoid an error.
29881 Use char because int might match the return type of a GCC
29882 builtin and then its argument prototype would still apply. */
29886 char gethostbyname ();
29890 return gethostbyname ();
29895 rm -f conftest.$ac_objext conftest$ac_exeext
29896 if { (ac_try="$ac_link"
29897 case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_link") 2>conftest.er1
29904 grep -v '^ *+' conftest.er1 >conftest.err
29906 cat conftest.err >&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } && {
29909 test -z "$ac_c_werror_flag" ||
29910 test ! -s conftest.err
29911 } && test -s conftest$ac_exeext &&
29912 $as_test_x conftest$ac_exeext; then
29913 ac_cv_lib_bsd_gethostbyname=yes
29915 echo "$as_me: failed program was:" >&5
29916 sed 's/^/| /' conftest.$ac_ext >&5
29918 ac_cv_lib_bsd_gethostbyname=no
29921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29922 conftest$ac_exeext conftest.$ac_ext
29923 LIBS=$ac_check_lib_save_LIBS
29925 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29926 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
29927 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29934 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29935 # socket/setsockopt and other routines are undefined under SCO ODT
29936 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29937 # on later versions), says Simon Leinen: it contains gethostby*
29938 # variants that don't use the name server (or something). -lsocket
29939 # must be given before -lnsl if both are needed. We assume that
29940 # if connect needs -lnsl, so does gethostbyname.
29941 { echo "$as_me:$LINENO: checking for connect" >&5
29942 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
29943 if test "${ac_cv_func_connect+set}" = set; then
29944 echo $ECHO_N "(cached) $ECHO_C" >&6
29946 cat >conftest.$ac_ext <<_ACEOF
29949 cat confdefs.h >>conftest.$ac_ext
29950 cat >>conftest.$ac_ext <<_ACEOF
29951 /* end confdefs.h. */
29952 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29954 #define connect innocuous_connect
29956 /* System header to define __stub macros and hopefully few prototypes,
29957 which can conflict with char connect (); below.
29958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29959 <limits.h> exists even on freestanding compilers. */
29962 # include <limits.h>
29964 # include <assert.h>
29969 /* Override any GCC internal prototype to avoid an error.
29970 Use char because int might match the return type of a GCC
29971 builtin and then its argument prototype would still apply. */
29976 /* The GNU C library defines this for functions which it implements
29977 to always fail with ENOSYS. Some functions are actually named
29978 something starting with __ and the normal name is an alias. */
29979 #if defined __stub_connect || defined __stub___connect
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995 *) ac_try_echo=$ac_try;;
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998 (eval "$ac_link") 2>conftest.er1
30000 grep -v '^ *+' conftest.er1 >conftest.err
30002 cat conftest.err >&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); } && {
30005 test -z "$ac_c_werror_flag" ||
30006 test ! -s conftest.err
30007 } && test -s conftest$ac_exeext &&
30008 $as_test_x conftest$ac_exeext; then
30009 ac_cv_func_connect=yes
30011 echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30014 ac_cv_func_connect=no
30017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30018 conftest$ac_exeext conftest.$ac_ext
30020 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30021 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30023 if test $ac_cv_func_connect = no; then
30024 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30025 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30026 if test "${ac_cv_lib_socket_connect+set}" = set; then
30027 echo $ECHO_N "(cached) $ECHO_C" >&6
30029 ac_check_lib_save_LIBS=$LIBS
30030 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30031 cat >conftest.$ac_ext <<_ACEOF
30034 cat confdefs.h >>conftest.$ac_ext
30035 cat >>conftest.$ac_ext <<_ACEOF
30036 /* end confdefs.h. */
30038 /* Override any GCC internal prototype to avoid an error.
30039 Use char because int might match the return type of a GCC
30040 builtin and then its argument prototype would still apply. */
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (ac_try="$ac_link"
30055 case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_link") 2>conftest.er1
30062 grep -v '^ *+' conftest.er1 >conftest.err
30064 cat conftest.err >&5
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } && {
30067 test -z "$ac_c_werror_flag" ||
30068 test ! -s conftest.err
30069 } && test -s conftest$ac_exeext &&
30070 $as_test_x conftest$ac_exeext; then
30071 ac_cv_lib_socket_connect=yes
30073 echo "$as_me: failed program was:" >&5
30074 sed 's/^/| /' conftest.$ac_ext >&5
30076 ac_cv_lib_socket_connect=no
30079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30080 conftest$ac_exeext conftest.$ac_ext
30081 LIBS=$ac_check_lib_save_LIBS
30083 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30084 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30085 if test $ac_cv_lib_socket_connect = yes; then
30086 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30091 # Guillermo Gomez says -lposix is necessary on A/UX.
30092 { echo "$as_me:$LINENO: checking for remove" >&5
30093 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30094 if test "${ac_cv_func_remove+set}" = set; then
30095 echo $ECHO_N "(cached) $ECHO_C" >&6
30097 cat >conftest.$ac_ext <<_ACEOF
30100 cat confdefs.h >>conftest.$ac_ext
30101 cat >>conftest.$ac_ext <<_ACEOF
30102 /* end confdefs.h. */
30103 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30105 #define remove innocuous_remove
30107 /* System header to define __stub macros and hopefully few prototypes,
30108 which can conflict with char remove (); below.
30109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30110 <limits.h> exists even on freestanding compilers. */
30113 # include <limits.h>
30115 # include <assert.h>
30120 /* Override any GCC internal prototype to avoid an error.
30121 Use char because int might match the return type of a GCC
30122 builtin and then its argument prototype would still apply. */
30127 /* The GNU C library defines this for functions which it implements
30128 to always fail with ENOSYS. Some functions are actually named
30129 something starting with __ and the normal name is an alias. */
30130 #if defined __stub_remove || defined __stub___remove
30142 rm -f conftest.$ac_objext conftest$ac_exeext
30143 if { (ac_try="$ac_link"
30144 case "(($ac_try" in
30145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146 *) ac_try_echo=$ac_try;;
30148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30149 (eval "$ac_link") 2>conftest.er1
30151 grep -v '^ *+' conftest.er1 >conftest.err
30153 cat conftest.err >&5
30154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155 (exit $ac_status); } && {
30156 test -z "$ac_c_werror_flag" ||
30157 test ! -s conftest.err
30158 } && test -s conftest$ac_exeext &&
30159 $as_test_x conftest$ac_exeext; then
30160 ac_cv_func_remove=yes
30162 echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30165 ac_cv_func_remove=no
30168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30169 conftest$ac_exeext conftest.$ac_ext
30171 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30172 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30174 if test $ac_cv_func_remove = no; then
30175 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30176 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30177 if test "${ac_cv_lib_posix_remove+set}" = set; then
30178 echo $ECHO_N "(cached) $ECHO_C" >&6
30180 ac_check_lib_save_LIBS=$LIBS
30181 LIBS="-lposix $LIBS"
30182 cat >conftest.$ac_ext <<_ACEOF
30185 cat confdefs.h >>conftest.$ac_ext
30186 cat >>conftest.$ac_ext <<_ACEOF
30187 /* end confdefs.h. */
30189 /* Override any GCC internal prototype to avoid an error.
30190 Use char because int might match the return type of a GCC
30191 builtin and then its argument prototype would still apply. */
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (ac_try="$ac_link"
30206 case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_link") 2>conftest.er1
30213 grep -v '^ *+' conftest.er1 >conftest.err
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } && {
30218 test -z "$ac_c_werror_flag" ||
30219 test ! -s conftest.err
30220 } && test -s conftest$ac_exeext &&
30221 $as_test_x conftest$ac_exeext; then
30222 ac_cv_lib_posix_remove=yes
30224 echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30227 ac_cv_lib_posix_remove=no
30230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30231 conftest$ac_exeext conftest.$ac_ext
30232 LIBS=$ac_check_lib_save_LIBS
30234 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30235 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30236 if test $ac_cv_lib_posix_remove = yes; then
30237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30242 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30243 { echo "$as_me:$LINENO: checking for shmat" >&5
30244 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30245 if test "${ac_cv_func_shmat+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30248 cat >conftest.$ac_ext <<_ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h. */
30254 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30256 #define shmat innocuous_shmat
30258 /* System header to define __stub macros and hopefully few prototypes,
30259 which can conflict with char shmat (); below.
30260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30261 <limits.h> exists even on freestanding compilers. */
30264 # include <limits.h>
30266 # include <assert.h>
30271 /* Override any GCC internal prototype to avoid an error.
30272 Use char because int might match the return type of a GCC
30273 builtin and then its argument prototype would still apply. */
30278 /* The GNU C library defines this for functions which it implements
30279 to always fail with ENOSYS. Some functions are actually named
30280 something starting with __ and the normal name is an alias. */
30281 #if defined __stub_shmat || defined __stub___shmat
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (ac_try="$ac_link"
30295 case "(($ac_try" in
30296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30297 *) ac_try_echo=$ac_try;;
30299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30300 (eval "$ac_link") 2>conftest.er1
30302 grep -v '^ *+' conftest.er1 >conftest.err
30304 cat conftest.err >&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); } && {
30307 test -z "$ac_c_werror_flag" ||
30308 test ! -s conftest.err
30309 } && test -s conftest$ac_exeext &&
30310 $as_test_x conftest$ac_exeext; then
30311 ac_cv_func_shmat=yes
30313 echo "$as_me: failed program was:" >&5
30314 sed 's/^/| /' conftest.$ac_ext >&5
30316 ac_cv_func_shmat=no
30319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30320 conftest$ac_exeext conftest.$ac_ext
30322 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30323 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30325 if test $ac_cv_func_shmat = no; then
30326 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30327 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30328 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 ac_check_lib_save_LIBS=$LIBS
30333 cat >conftest.$ac_ext <<_ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30340 /* Override any GCC internal prototype to avoid an error.
30341 Use char because int might match the return type of a GCC
30342 builtin and then its argument prototype would still apply. */
30355 rm -f conftest.$ac_objext conftest$ac_exeext
30356 if { (ac_try="$ac_link"
30357 case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_link") 2>conftest.er1
30364 grep -v '^ *+' conftest.er1 >conftest.err
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368 (exit $ac_status); } && {
30369 test -z "$ac_c_werror_flag" ||
30370 test ! -s conftest.err
30371 } && test -s conftest$ac_exeext &&
30372 $as_test_x conftest$ac_exeext; then
30373 ac_cv_lib_ipc_shmat=yes
30375 echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.$ac_ext >&5
30378 ac_cv_lib_ipc_shmat=no
30381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30382 conftest$ac_exeext conftest.$ac_ext
30383 LIBS=$ac_check_lib_save_LIBS
30385 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30386 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30387 if test $ac_cv_lib_ipc_shmat = yes; then
30388 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30394 # Check for libraries that X11R6 Xt/Xaw programs need.
30395 ac_save_LDFLAGS=$LDFLAGS
30396 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30397 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30398 # check for ICE first), but we must link in the order -lSM -lICE or
30399 # we get undefined symbols. So assume we have SM if we have ICE.
30400 # These have to be linked with before -lX11, unlike the other
30401 # libraries we check for below, so use a different variable.
30402 # John Interrante, Karl Berry
30403 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30404 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30405 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30408 ac_check_lib_save_LIBS=$LIBS
30409 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30410 cat >conftest.$ac_ext <<_ACEOF
30413 cat confdefs.h >>conftest.$ac_ext
30414 cat >>conftest.$ac_ext <<_ACEOF
30415 /* end confdefs.h. */
30417 /* Override any GCC internal prototype to avoid an error.
30418 Use char because int might match the return type of a GCC
30419 builtin and then its argument prototype would still apply. */
30423 char IceConnectionNumber ();
30427 return IceConnectionNumber ();
30432 rm -f conftest.$ac_objext conftest$ac_exeext
30433 if { (ac_try="$ac_link"
30434 case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_link") 2>conftest.er1
30441 grep -v '^ *+' conftest.er1 >conftest.err
30443 cat conftest.err >&5
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); } && {
30446 test -z "$ac_c_werror_flag" ||
30447 test ! -s conftest.err
30448 } && test -s conftest$ac_exeext &&
30449 $as_test_x conftest$ac_exeext; then
30450 ac_cv_lib_ICE_IceConnectionNumber=yes
30452 echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30455 ac_cv_lib_ICE_IceConnectionNumber=no
30458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30459 conftest$ac_exeext conftest.$ac_ext
30460 LIBS=$ac_check_lib_save_LIBS
30462 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30463 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30464 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30465 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30468 LDFLAGS=$ac_save_LDFLAGS
30536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30541 echo $ECHO_N "(cached) $ECHO_C" >&6
30543 ac_res=`eval echo '${'$as_ac_Header'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30547 # Is the header compilable?
30548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30556 $ac_includes_default
30557 #include <$ac_header>
30559 rm -f conftest.$ac_objext
30560 if { (ac_try="$ac_compile"
30561 case "(($ac_try" in
30562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563 *) ac_try_echo=$ac_try;;
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566 (eval "$ac_compile") 2>conftest.er1
30568 grep -v '^ *+' conftest.er1 >conftest.err
30570 cat conftest.err >&5
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); } && {
30573 test -z "$ac_c_werror_flag" ||
30574 test ! -s conftest.err
30575 } && test -s conftest.$ac_objext; then
30576 ac_header_compiler=yes
30578 echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30581 ac_header_compiler=no
30584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30586 echo "${ECHO_T}$ac_header_compiler" >&6; }
30588 # Is the header present?
30589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597 #include <$ac_header>
30599 if { (ac_try="$ac_cpp conftest.$ac_ext"
30600 case "(($ac_try" in
30601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602 *) ac_try_echo=$ac_try;;
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30607 grep -v '^ *+' conftest.er1 >conftest.err
30609 cat conftest.err >&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } >/dev/null && {
30612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30613 test ! -s conftest.err
30615 ac_header_preproc=yes
30617 echo "$as_me: failed program was:" >&5
30618 sed 's/^/| /' conftest.$ac_ext >&5
30620 ac_header_preproc=no
30623 rm -f conftest.err conftest.$ac_ext
30624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30625 echo "${ECHO_T}$ac_header_preproc" >&6; }
30627 # So? What about this header?
30628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30634 ac_header_preproc=yes
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30655 echo $ECHO_N "(cached) $ECHO_C" >&6
30657 eval "$as_ac_Header=\$ac_header_preproc"
30659 ac_res=`eval echo '${'$as_ac_Header'}'`
30660 { echo "$as_me:$LINENO: result: $ac_res" >&5
30661 echo "${ECHO_T}$ac_res" >&6; }
30664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30665 cat >>confdefs.h <<_ACEOF
30666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30673 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30674 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30675 if test "${ac_cv_header_stdc+set}" = set; then
30676 echo $ECHO_N "(cached) $ECHO_C" >&6
30678 cat >conftest.$ac_ext <<_ACEOF
30681 cat confdefs.h >>conftest.$ac_ext
30682 cat >>conftest.$ac_ext <<_ACEOF
30683 /* end confdefs.h. */
30684 #include <stdlib.h>
30685 #include <stdarg.h>
30686 #include <string.h>
30697 rm -f conftest.$ac_objext
30698 if { (ac_try="$ac_compile"
30699 case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_compile") 2>conftest.er1
30706 grep -v '^ *+' conftest.er1 >conftest.err
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } && {
30711 test -z "$ac_c_werror_flag" ||
30712 test ! -s conftest.err
30713 } && test -s conftest.$ac_objext; then
30714 ac_cv_header_stdc=yes
30716 echo "$as_me: failed program was:" >&5
30717 sed 's/^/| /' conftest.$ac_ext >&5
30719 ac_cv_header_stdc=no
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30724 if test $ac_cv_header_stdc = yes; then
30725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30726 cat >conftest.$ac_ext <<_ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h. */
30732 #include <string.h>
30735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30736 $EGREP "memchr" >/dev/null 2>&1; then
30739 ac_cv_header_stdc=no
30745 if test $ac_cv_header_stdc = yes; then
30746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30747 cat >conftest.$ac_ext <<_ACEOF
30750 cat confdefs.h >>conftest.$ac_ext
30751 cat >>conftest.$ac_ext <<_ACEOF
30752 /* end confdefs.h. */
30753 #include <stdlib.h>
30756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30757 $EGREP "free" >/dev/null 2>&1; then
30760 ac_cv_header_stdc=no
30766 if test $ac_cv_header_stdc = yes; then
30767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30768 if test "$cross_compiling" = yes; then
30771 cat >conftest.$ac_ext <<_ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30778 #include <stdlib.h>
30779 #if ((' ' & 0x0FF) == 0x020)
30780 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30781 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30783 # define ISLOWER(c) \
30784 (('a' <= (c) && (c) <= 'i') \
30785 || ('j' <= (c) && (c) <= 'r') \
30786 || ('s' <= (c) && (c) <= 'z'))
30787 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30790 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30795 for (i = 0; i < 256; i++)
30796 if (XOR (islower (i), ISLOWER (i))
30797 || toupper (i) != TOUPPER (i))
30802 rm -f conftest$ac_exeext
30803 if { (ac_try="$ac_link"
30804 case "(($ac_try" in
30805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806 *) ac_try_echo=$ac_try;;
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809 (eval "$ac_link") 2>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30813 { (case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_try") 2>&5
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; }; then
30824 echo "$as_me: program exited with status $ac_status" >&5
30825 echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30828 ( exit $ac_status )
30829 ac_cv_header_stdc=no
30831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30837 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30838 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
30839 if test $ac_cv_header_stdc = yes; then
30841 cat >>confdefs.h <<\_ACEOF
30842 #define STDC_HEADERS 1
30847 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
30848 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
30849 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
30850 echo $ECHO_N "(cached) $ECHO_C" >&6
30852 cat >conftest.$ac_ext <<_ACEOF
30855 cat confdefs.h >>conftest.$ac_ext
30856 cat >>conftest.$ac_ext <<_ACEOF
30857 /* end confdefs.h. */
30858 #include <sys/types.h>
30862 return makedev(0, 0);
30867 rm -f conftest.$ac_objext conftest$ac_exeext
30868 if { (ac_try="$ac_link"
30869 case "(($ac_try" in
30870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30871 *) ac_try_echo=$ac_try;;
30873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30874 (eval "$ac_link") 2>conftest.er1
30876 grep -v '^ *+' conftest.er1 >conftest.err
30878 cat conftest.err >&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); } && {
30881 test -z "$ac_c_werror_flag" ||
30882 test ! -s conftest.err
30883 } && test -s conftest$ac_exeext &&
30884 $as_test_x conftest$ac_exeext; then
30885 ac_cv_header_sys_types_h_makedev=yes
30887 echo "$as_me: failed program was:" >&5
30888 sed 's/^/| /' conftest.$ac_ext >&5
30890 ac_cv_header_sys_types_h_makedev=no
30893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30894 conftest$ac_exeext conftest.$ac_ext
30897 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
30898 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
30900 if test $ac_cv_header_sys_types_h_makedev = no; then
30901 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30902 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
30903 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
30904 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
30905 echo $ECHO_N "(cached) $ECHO_C" >&6
30907 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
30908 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
30910 # Is the header compilable?
30911 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
30912 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
30913 cat >conftest.$ac_ext <<_ACEOF
30916 cat confdefs.h >>conftest.$ac_ext
30917 cat >>conftest.$ac_ext <<_ACEOF
30918 /* end confdefs.h. */
30919 $ac_includes_default
30920 #include <sys/mkdev.h>
30922 rm -f conftest.$ac_objext
30923 if { (ac_try="$ac_compile"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_compile") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } && {
30936 test -z "$ac_c_werror_flag" ||
30937 test ! -s conftest.err
30938 } && test -s conftest.$ac_objext; then
30939 ac_header_compiler=yes
30941 echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30944 ac_header_compiler=no
30947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30949 echo "${ECHO_T}$ac_header_compiler" >&6; }
30951 # Is the header present?
30952 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
30953 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h. */
30960 #include <sys/mkdev.h>
30962 if { (ac_try="$ac_cpp conftest.$ac_ext"
30963 case "(($ac_try" in
30964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965 *) ac_try_echo=$ac_try;;
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30970 grep -v '^ *+' conftest.er1 >conftest.err
30972 cat conftest.err >&5
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); } >/dev/null && {
30975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30976 test ! -s conftest.err
30978 ac_header_preproc=yes
30980 echo "$as_me: failed program was:" >&5
30981 sed 's/^/| /' conftest.$ac_ext >&5
30983 ac_header_preproc=no
30986 rm -f conftest.err conftest.$ac_ext
30987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30988 echo "${ECHO_T}$ac_header_preproc" >&6; }
30990 # So? What about this header?
30991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30993 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
30994 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30995 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
30996 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
30997 ac_header_preproc=yes
31000 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31001 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31002 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31003 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31004 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31005 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31006 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31007 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31008 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31009 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31010 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31011 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31015 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31016 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31017 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31018 echo $ECHO_N "(cached) $ECHO_C" >&6
31020 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31022 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31023 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31026 if test $ac_cv_header_sys_mkdev_h = yes; then
31028 cat >>confdefs.h <<\_ACEOF
31029 #define MAJOR_IN_MKDEV 1
31036 if test $ac_cv_header_sys_mkdev_h = no; then
31037 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31038 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31039 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31040 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31041 echo $ECHO_N "(cached) $ECHO_C" >&6
31043 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31044 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31046 # Is the header compilable?
31047 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31048 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31049 cat >conftest.$ac_ext <<_ACEOF
31052 cat confdefs.h >>conftest.$ac_ext
31053 cat >>conftest.$ac_ext <<_ACEOF
31054 /* end confdefs.h. */
31055 $ac_includes_default
31056 #include <sys/sysmacros.h>
31058 rm -f conftest.$ac_objext
31059 if { (ac_try="$ac_compile"
31060 case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_compile") 2>conftest.er1
31067 grep -v '^ *+' conftest.er1 >conftest.err
31069 cat conftest.err >&5
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); } && {
31072 test -z "$ac_c_werror_flag" ||
31073 test ! -s conftest.err
31074 } && test -s conftest.$ac_objext; then
31075 ac_header_compiler=yes
31077 echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.$ac_ext >&5
31080 ac_header_compiler=no
31083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31085 echo "${ECHO_T}$ac_header_compiler" >&6; }
31087 # Is the header present?
31088 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31089 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31090 cat >conftest.$ac_ext <<_ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h. */
31096 #include <sys/sysmacros.h>
31098 if { (ac_try="$ac_cpp conftest.$ac_ext"
31099 case "(($ac_try" in
31100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31101 *) ac_try_echo=$ac_try;;
31103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31106 grep -v '^ *+' conftest.er1 >conftest.err
31108 cat conftest.err >&5
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); } >/dev/null && {
31111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31112 test ! -s conftest.err
31114 ac_header_preproc=yes
31116 echo "$as_me: failed program was:" >&5
31117 sed 's/^/| /' conftest.$ac_ext >&5
31119 ac_header_preproc=no
31122 rm -f conftest.err conftest.$ac_ext
31123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31124 echo "${ECHO_T}$ac_header_preproc" >&6; }
31126 # So? What about this header?
31127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31129 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31130 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31131 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31132 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31133 ac_header_preproc=yes
31136 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31137 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31138 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31139 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31140 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31141 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31142 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31143 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31144 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31145 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31146 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31147 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31151 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31152 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31153 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31154 echo $ECHO_N "(cached) $ECHO_C" >&6
31156 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31158 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31159 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31162 if test $ac_cv_header_sys_sysmacros_h = yes; then
31164 cat >>confdefs.h <<\_ACEOF
31165 #define MAJOR_IN_SYSMACROS 1
31179 ac_header_dirent=no
31180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31181 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31182 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31183 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31187 cat >conftest.$ac_ext <<_ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h. */
31193 #include <sys/types.h>
31205 rm -f conftest.$ac_objext
31206 if { (ac_try="$ac_compile"
31207 case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_compile") 2>conftest.er1
31214 grep -v '^ *+' conftest.er1 >conftest.err
31216 cat conftest.err >&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); } && {
31219 test -z "$ac_c_werror_flag" ||
31220 test ! -s conftest.err
31221 } && test -s conftest.$ac_objext; then
31222 eval "$as_ac_Header=yes"
31224 echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31227 eval "$as_ac_Header=no"
31230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31232 ac_res=`eval echo '${'$as_ac_Header'}'`
31233 { echo "$as_me:$LINENO: result: $ac_res" >&5
31234 echo "${ECHO_T}$ac_res" >&6; }
31235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31236 cat >>confdefs.h <<_ACEOF
31237 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31240 ac_header_dirent=$ac_hdr; break
31244 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31245 if test $ac_header_dirent = dirent.h; then
31246 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31247 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31248 if test "${ac_cv_search_opendir+set}" = set; then
31249 echo $ECHO_N "(cached) $ECHO_C" >&6
31251 ac_func_search_save_LIBS=$LIBS
31252 cat >conftest.$ac_ext <<_ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h. */
31259 /* Override any GCC internal prototype to avoid an error.
31260 Use char because int might match the return type of a GCC
31261 builtin and then its argument prototype would still apply. */
31274 for ac_lib in '' dir; do
31275 if test -z "$ac_lib"; then
31276 ac_res="none required"
31279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31281 rm -f conftest.$ac_objext conftest$ac_exeext
31282 if { (ac_try="$ac_link"
31283 case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_link") 2>conftest.er1
31290 grep -v '^ *+' conftest.er1 >conftest.err
31292 cat conftest.err >&5
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); } && {
31295 test -z "$ac_c_werror_flag" ||
31296 test ! -s conftest.err
31297 } && test -s conftest$ac_exeext &&
31298 $as_test_x conftest$ac_exeext; then
31299 ac_cv_search_opendir=$ac_res
31301 echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31309 if test "${ac_cv_search_opendir+set}" = set; then
31313 if test "${ac_cv_search_opendir+set}" = set; then
31316 ac_cv_search_opendir=no
31318 rm conftest.$ac_ext
31319 LIBS=$ac_func_search_save_LIBS
31321 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31322 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31323 ac_res=$ac_cv_search_opendir
31324 if test "$ac_res" != no; then
31325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31330 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31331 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31332 if test "${ac_cv_search_opendir+set}" = set; then
31333 echo $ECHO_N "(cached) $ECHO_C" >&6
31335 ac_func_search_save_LIBS=$LIBS
31336 cat >conftest.$ac_ext <<_ACEOF
31339 cat confdefs.h >>conftest.$ac_ext
31340 cat >>conftest.$ac_ext <<_ACEOF
31341 /* end confdefs.h. */
31343 /* Override any GCC internal prototype to avoid an error.
31344 Use char because int might match the return type of a GCC
31345 builtin and then its argument prototype would still apply. */
31358 for ac_lib in '' x; do
31359 if test -z "$ac_lib"; then
31360 ac_res="none required"
31363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31365 rm -f conftest.$ac_objext conftest$ac_exeext
31366 if { (ac_try="$ac_link"
31367 case "(($ac_try" in
31368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369 *) ac_try_echo=$ac_try;;
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372 (eval "$ac_link") 2>conftest.er1
31374 grep -v '^ *+' conftest.er1 >conftest.err
31376 cat conftest.err >&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); } && {
31379 test -z "$ac_c_werror_flag" ||
31380 test ! -s conftest.err
31381 } && test -s conftest$ac_exeext &&
31382 $as_test_x conftest$ac_exeext; then
31383 ac_cv_search_opendir=$ac_res
31385 echo "$as_me: failed program was:" >&5
31386 sed 's/^/| /' conftest.$ac_ext >&5
31391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31393 if test "${ac_cv_search_opendir+set}" = set; then
31397 if test "${ac_cv_search_opendir+set}" = set; then
31400 ac_cv_search_opendir=no
31402 rm conftest.$ac_ext
31403 LIBS=$ac_func_search_save_LIBS
31405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31407 ac_res=$ac_cv_search_opendir
31408 if test "$ac_res" != no; then
31409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31415 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31416 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31417 if test "${ac_cv_header_stat_broken+set}" = set; then
31418 echo $ECHO_N "(cached) $ECHO_C" >&6
31420 cat >conftest.$ac_ext <<_ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h. */
31426 #include <sys/types.h>
31427 #include <sys/stat.h>
31429 #if defined S_ISBLK && defined S_IFDIR
31430 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31433 #if defined S_ISBLK && defined S_IFCHR
31434 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31437 #if defined S_ISLNK && defined S_IFREG
31438 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31441 #if defined S_ISSOCK && defined S_IFREG
31442 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31446 rm -f conftest.$ac_objext
31447 if { (ac_try="$ac_compile"
31448 case "(($ac_try" in
31449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450 *) ac_try_echo=$ac_try;;
31452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453 (eval "$ac_compile") 2>conftest.er1
31455 grep -v '^ *+' conftest.er1 >conftest.err
31457 cat conftest.err >&5
31458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459 (exit $ac_status); } && {
31460 test -z "$ac_c_werror_flag" ||
31461 test ! -s conftest.err
31462 } && test -s conftest.$ac_objext; then
31463 ac_cv_header_stat_broken=no
31465 echo "$as_me: failed program was:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31468 ac_cv_header_stat_broken=yes
31471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31473 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31474 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31475 if test $ac_cv_header_stat_broken = yes; then
31477 cat >>confdefs.h <<\_ACEOF
31478 #define STAT_MACROS_BROKEN 1
31483 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31484 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31485 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31488 cat >conftest.$ac_ext <<_ACEOF
31491 cat confdefs.h >>conftest.$ac_ext
31492 cat >>conftest.$ac_ext <<_ACEOF
31493 /* end confdefs.h. */
31494 #include <sys/types.h>
31495 #include <sys/wait.h>
31496 #ifndef WEXITSTATUS
31497 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31500 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31508 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31513 rm -f conftest.$ac_objext
31514 if { (ac_try="$ac_compile"
31515 case "(($ac_try" in
31516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31517 *) ac_try_echo=$ac_try;;
31519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31520 (eval "$ac_compile") 2>conftest.er1
31522 grep -v '^ *+' conftest.er1 >conftest.err
31524 cat conftest.err >&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } && {
31527 test -z "$ac_c_werror_flag" ||
31528 test ! -s conftest.err
31529 } && test -s conftest.$ac_objext; then
31530 ac_cv_header_sys_wait_h=yes
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31535 ac_cv_header_sys_wait_h=no
31538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31540 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31541 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31542 if test $ac_cv_header_sys_wait_h = yes; then
31544 cat >>confdefs.h <<\_ACEOF
31545 #define HAVE_SYS_WAIT_H 1
31550 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31551 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31552 if test "${ac_cv_header_time+set}" = set; then
31553 echo $ECHO_N "(cached) $ECHO_C" >&6
31555 cat >conftest.$ac_ext <<_ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561 #include <sys/types.h>
31562 #include <sys/time.h>
31568 if ((struct tm *) 0)
31574 rm -f conftest.$ac_objext
31575 if { (ac_try="$ac_compile"
31576 case "(($ac_try" in
31577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578 *) ac_try_echo=$ac_try;;
31580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31581 (eval "$ac_compile") 2>conftest.er1
31583 grep -v '^ *+' conftest.er1 >conftest.err
31585 cat conftest.err >&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); } && {
31588 test -z "$ac_c_werror_flag" ||
31589 test ! -s conftest.err
31590 } && test -s conftest.$ac_objext; then
31591 ac_cv_header_time=yes
31593 echo "$as_me: failed program was:" >&5
31594 sed 's/^/| /' conftest.$ac_ext >&5
31596 ac_cv_header_time=no
31599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31601 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31602 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31603 if test $ac_cv_header_time = yes; then
31605 cat >>confdefs.h <<\_ACEOF
31606 #define TIME_WITH_SYS_TIME 1
31611 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31612 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31613 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31614 echo $ECHO_N "(cached) $ECHO_C" >&6
31616 cat >conftest.$ac_ext <<_ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h. */
31622 $ac_includes_default
31626 static struct stat ac_aggr;
31627 if (ac_aggr.st_blksize)
31633 rm -f conftest.$ac_objext
31634 if { (ac_try="$ac_compile"
31635 case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_compile") 2>conftest.er1
31642 grep -v '^ *+' conftest.er1 >conftest.err
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } && {
31647 test -z "$ac_c_werror_flag" ||
31648 test ! -s conftest.err
31649 } && test -s conftest.$ac_objext; then
31650 ac_cv_member_struct_stat_st_blksize=yes
31652 echo "$as_me: failed program was:" >&5
31653 sed 's/^/| /' conftest.$ac_ext >&5
31655 cat >conftest.$ac_ext <<_ACEOF
31658 cat confdefs.h >>conftest.$ac_ext
31659 cat >>conftest.$ac_ext <<_ACEOF
31660 /* end confdefs.h. */
31661 $ac_includes_default
31665 static struct stat ac_aggr;
31666 if (sizeof ac_aggr.st_blksize)
31672 rm -f conftest.$ac_objext
31673 if { (ac_try="$ac_compile"
31674 case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_compile") 2>conftest.er1
31681 grep -v '^ *+' conftest.er1 >conftest.err
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } && {
31686 test -z "$ac_c_werror_flag" ||
31687 test ! -s conftest.err
31688 } && test -s conftest.$ac_objext; then
31689 ac_cv_member_struct_stat_st_blksize=yes
31691 echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31694 ac_cv_member_struct_stat_st_blksize=no
31697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31702 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31703 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31704 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31706 cat >>confdefs.h <<_ACEOF
31707 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31711 cat >>confdefs.h <<\_ACEOF
31712 #define HAVE_ST_BLKSIZE 1
31718 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31719 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31720 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31721 echo $ECHO_N "(cached) $ECHO_C" >&6
31723 cat >conftest.$ac_ext <<_ACEOF
31726 cat confdefs.h >>conftest.$ac_ext
31727 cat >>conftest.$ac_ext <<_ACEOF
31728 /* end confdefs.h. */
31729 $ac_includes_default
31733 static struct stat ac_aggr;
31734 if (ac_aggr.st_blocks)
31740 rm -f conftest.$ac_objext
31741 if { (ac_try="$ac_compile"
31742 case "(($ac_try" in
31743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31744 *) ac_try_echo=$ac_try;;
31746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31747 (eval "$ac_compile") 2>conftest.er1
31749 grep -v '^ *+' conftest.er1 >conftest.err
31751 cat conftest.err >&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); } && {
31754 test -z "$ac_c_werror_flag" ||
31755 test ! -s conftest.err
31756 } && test -s conftest.$ac_objext; then
31757 ac_cv_member_struct_stat_st_blocks=yes
31759 echo "$as_me: failed program was:" >&5
31760 sed 's/^/| /' conftest.$ac_ext >&5
31762 cat >conftest.$ac_ext <<_ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h. */
31768 $ac_includes_default
31772 static struct stat ac_aggr;
31773 if (sizeof ac_aggr.st_blocks)
31779 rm -f conftest.$ac_objext
31780 if { (ac_try="$ac_compile"
31781 case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_compile") 2>conftest.er1
31788 grep -v '^ *+' conftest.er1 >conftest.err
31790 cat conftest.err >&5
31791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792 (exit $ac_status); } && {
31793 test -z "$ac_c_werror_flag" ||
31794 test ! -s conftest.err
31795 } && test -s conftest.$ac_objext; then
31796 ac_cv_member_struct_stat_st_blocks=yes
31798 echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31801 ac_cv_member_struct_stat_st_blocks=no
31804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31809 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31810 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31811 if test $ac_cv_member_struct_stat_st_blocks = yes; then
31813 cat >>confdefs.h <<_ACEOF
31814 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
31818 cat >>confdefs.h <<\_ACEOF
31819 #define HAVE_ST_BLOCKS 1
31823 case " $LIBOBJS " in
31824 *" fileblocks.$ac_objext "* ) ;;
31825 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
31832 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31833 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31834 if test "${ac_cv_struct_tm+set}" = set; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 cat >conftest.$ac_ext <<_ACEOF
31840 cat confdefs.h >>conftest.$ac_ext
31841 cat >>conftest.$ac_ext <<_ACEOF
31842 /* end confdefs.h. */
31843 #include <sys/types.h>
31850 int *p = &tm.tm_sec;
31856 rm -f conftest.$ac_objext
31857 if { (ac_try="$ac_compile"
31858 case "(($ac_try" in
31859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31860 *) ac_try_echo=$ac_try;;
31862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31863 (eval "$ac_compile") 2>conftest.er1
31865 grep -v '^ *+' conftest.er1 >conftest.err
31867 cat conftest.err >&5
31868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869 (exit $ac_status); } && {
31870 test -z "$ac_c_werror_flag" ||
31871 test ! -s conftest.err
31872 } && test -s conftest.$ac_objext; then
31873 ac_cv_struct_tm=time.h
31875 echo "$as_me: failed program was:" >&5
31876 sed 's/^/| /' conftest.$ac_ext >&5
31878 ac_cv_struct_tm=sys/time.h
31881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31883 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31884 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31885 if test $ac_cv_struct_tm = sys/time.h; then
31887 cat >>confdefs.h <<\_ACEOF
31888 #define TM_IN_SYS_TIME 1
31893 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
31894 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
31895 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
31896 echo $ECHO_N "(cached) $ECHO_C" >&6
31898 cat >conftest.$ac_ext <<_ACEOF
31901 cat confdefs.h >>conftest.$ac_ext
31902 cat >>conftest.$ac_ext <<_ACEOF
31903 /* end confdefs.h. */
31904 #include <sys/types.h>
31905 #include <$ac_cv_struct_tm>
31911 static struct tm ac_aggr;
31912 if (ac_aggr.tm_zone)
31918 rm -f conftest.$ac_objext
31919 if { (ac_try="$ac_compile"
31920 case "(($ac_try" in
31921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922 *) ac_try_echo=$ac_try;;
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925 (eval "$ac_compile") 2>conftest.er1
31927 grep -v '^ *+' conftest.er1 >conftest.err
31929 cat conftest.err >&5
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); } && {
31932 test -z "$ac_c_werror_flag" ||
31933 test ! -s conftest.err
31934 } && test -s conftest.$ac_objext; then
31935 ac_cv_member_struct_tm_tm_zone=yes
31937 echo "$as_me: failed program was:" >&5
31938 sed 's/^/| /' conftest.$ac_ext >&5
31940 cat >conftest.$ac_ext <<_ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h. */
31946 #include <sys/types.h>
31947 #include <$ac_cv_struct_tm>
31953 static struct tm ac_aggr;
31954 if (sizeof ac_aggr.tm_zone)
31960 rm -f conftest.$ac_objext
31961 if { (ac_try="$ac_compile"
31962 case "(($ac_try" in
31963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964 *) ac_try_echo=$ac_try;;
31966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967 (eval "$ac_compile") 2>conftest.er1
31969 grep -v '^ *+' conftest.er1 >conftest.err
31971 cat conftest.err >&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); } && {
31974 test -z "$ac_c_werror_flag" ||
31975 test ! -s conftest.err
31976 } && test -s conftest.$ac_objext; then
31977 ac_cv_member_struct_tm_tm_zone=yes
31979 echo "$as_me: failed program was:" >&5
31980 sed 's/^/| /' conftest.$ac_ext >&5
31982 ac_cv_member_struct_tm_tm_zone=no
31985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
31991 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
31992 if test $ac_cv_member_struct_tm_tm_zone = yes; then
31994 cat >>confdefs.h <<_ACEOF
31995 #define HAVE_STRUCT_TM_TM_ZONE 1
32001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32003 cat >>confdefs.h <<\_ACEOF
32004 #define HAVE_TM_ZONE 1
32008 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32009 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32010 if test "${ac_cv_have_decl_tzname+set}" = set; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32013 cat >conftest.$ac_ext <<_ACEOF
32016 cat confdefs.h >>conftest.$ac_ext
32017 cat >>conftest.$ac_ext <<_ACEOF
32018 /* end confdefs.h. */
32032 rm -f conftest.$ac_objext
32033 if { (ac_try="$ac_compile"
32034 case "(($ac_try" in
32035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036 *) ac_try_echo=$ac_try;;
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039 (eval "$ac_compile") 2>conftest.er1
32041 grep -v '^ *+' conftest.er1 >conftest.err
32043 cat conftest.err >&5
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); } && {
32046 test -z "$ac_c_werror_flag" ||
32047 test ! -s conftest.err
32048 } && test -s conftest.$ac_objext; then
32049 ac_cv_have_decl_tzname=yes
32051 echo "$as_me: failed program was:" >&5
32052 sed 's/^/| /' conftest.$ac_ext >&5
32054 ac_cv_have_decl_tzname=no
32057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32060 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32061 if test $ac_cv_have_decl_tzname = yes; then
32063 cat >>confdefs.h <<_ACEOF
32064 #define HAVE_DECL_TZNAME 1
32069 cat >>confdefs.h <<_ACEOF
32070 #define HAVE_DECL_TZNAME 0
32077 { echo "$as_me:$LINENO: checking for tzname" >&5
32078 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32079 if test "${ac_cv_var_tzname+set}" = set; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32082 cat >conftest.$ac_ext <<_ACEOF
32085 cat confdefs.h >>conftest.$ac_ext
32086 cat >>conftest.$ac_ext <<_ACEOF
32087 /* end confdefs.h. */
32089 #if !HAVE_DECL_TZNAME
32090 extern char *tzname[];
32096 return tzname[0][0];
32101 rm -f conftest.$ac_objext conftest$ac_exeext
32102 if { (ac_try="$ac_link"
32103 case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_link") 2>conftest.er1
32110 grep -v '^ *+' conftest.er1 >conftest.err
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } && {
32115 test -z "$ac_c_werror_flag" ||
32116 test ! -s conftest.err
32117 } && test -s conftest$ac_exeext &&
32118 $as_test_x conftest$ac_exeext; then
32119 ac_cv_var_tzname=yes
32121 echo "$as_me: failed program was:" >&5
32122 sed 's/^/| /' conftest.$ac_ext >&5
32124 ac_cv_var_tzname=no
32127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32128 conftest$ac_exeext conftest.$ac_ext
32130 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32131 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32132 if test $ac_cv_var_tzname = yes; then
32134 cat >>confdefs.h <<\_ACEOF
32135 #define HAVE_TZNAME 1
32142 { echo "$as_me:$LINENO: checking for utime.h" >&5
32143 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32144 if test "${ba_cv_header_utime_h+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32148 cat >conftest.$ac_ext <<_ACEOF
32151 cat confdefs.h >>conftest.$ac_ext
32152 cat >>conftest.$ac_ext <<_ACEOF
32153 /* end confdefs.h. */
32155 #include <sys/types.h>
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_compile") 2>conftest.er1
32177 grep -v '^ *+' conftest.er1 >conftest.err
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } && {
32182 test -z "$ac_c_werror_flag" ||
32183 test ! -s conftest.err
32184 } && test -s conftest.$ac_objext; then
32186 ba_cv_header_utime_h=yes
32189 echo "$as_me: failed program was:" >&5
32190 sed 's/^/| /' conftest.$ac_ext >&5
32193 ba_cv_header_utime_h=no
32198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32202 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32203 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32204 test $ba_cv_header_utime_h = yes &&
32205 cat >>confdefs.h <<\_ACEOF
32206 #define HAVE_UTIME_H 1
32210 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32211 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32212 if test "${ba_cv_header_socklen_t+set}" = set; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32216 cat >conftest.$ac_ext <<_ACEOF
32219 cat confdefs.h >>conftest.$ac_ext
32220 cat >>conftest.$ac_ext <<_ACEOF
32221 /* end confdefs.h. */
32223 #include <sys/types.h>
32224 #include <sys/socket.h>
32236 rm -f conftest.$ac_objext
32237 if { (ac_try="$ac_compile"
32238 case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_compile") 2>conftest.er1
32245 grep -v '^ *+' conftest.er1 >conftest.err
32247 cat conftest.err >&5
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); } && {
32250 test -z "$ac_c_werror_flag" ||
32251 test ! -s conftest.err
32252 } && test -s conftest.$ac_objext; then
32254 ba_cv_header_socklen_t=yes
32257 echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32261 ba_cv_header_socklen_t=no
32266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32270 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32271 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32272 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32273 #define HAVE_SOCKLEN_T 1
32277 { echo "$as_me:$LINENO: checking for bigendian" >&5
32278 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32279 if test "${ba_cv_bigendian+set}" = set; then
32280 echo $ECHO_N "(cached) $ECHO_C" >&6
32283 if test "$cross_compiling" = yes; then
32289 cat >conftest.$ac_ext <<_ACEOF
32292 cat confdefs.h >>conftest.$ac_ext
32293 cat >>conftest.$ac_ext <<_ACEOF
32294 /* end confdefs.h. */
32296 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32299 rm -f conftest$ac_exeext
32300 if { (ac_try="$ac_link"
32301 case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_link") 2>&5
32308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32310 { (case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_try") 2>&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); }; }; then
32320 ba_cv_bigendian=yes
32323 echo "$as_me: program exited with status $ac_status" >&5
32324 echo "$as_me: failed program was:" >&5
32325 sed 's/^/| /' conftest.$ac_ext >&5
32327 ( exit $ac_status )
32332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32339 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32340 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32341 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32342 #define HAVE_BIGENDIAN 1
32347 ac_cpp='$CXXCPP $CPPFLAGS'
32348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32352 { echo "$as_me:$LINENO: checking for typeof" >&5
32353 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32354 if test "${ba_cv_have_typeof+set}" = set; then
32355 echo $ECHO_N "(cached) $ECHO_C" >&6
32358 if test "$cross_compiling" = yes; then
32360 ba_cv_have_typeof=no
32364 cat >conftest.$ac_ext <<_ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32371 main(){char *a = 0; a = (typeof a)a;}
32374 rm -f conftest$ac_exeext
32375 if { (ac_try="$ac_link"
32376 case "(($ac_try" in
32377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32378 *) ac_try_echo=$ac_try;;
32380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32381 (eval "$ac_link") 2>&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32385 { (case "(($ac_try" in
32386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32387 *) ac_try_echo=$ac_try;;
32389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32390 (eval "$ac_try") 2>&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
32395 ba_cv_have_typeof=yes
32398 echo "$as_me: program exited with status $ac_status" >&5
32399 echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32402 ( exit $ac_status )
32404 ba_cv_have_typeof=no
32407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32414 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32415 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32416 test $ba_cv_have_typeof = yes &&
32417 cat >>confdefs.h <<\_ACEOF
32418 #define HAVE_TYPEOF 1
32422 ac_cpp='$CPP $CPPFLAGS'
32423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32428 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32429 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32430 if test "${ac_cv_c_const+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32433 cat >conftest.$ac_ext <<_ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32443 /* FIXME: Include the comments suggested by Paul. */
32444 #ifndef __cplusplus
32445 /* Ultrix mips cc rejects this. */
32446 typedef int charset[2];
32448 /* SunOS 4.1.1 cc rejects this. */
32449 char const *const *pcpcc;
32451 /* NEC SVR4.0.2 mips cc rejects this. */
32452 struct point {int x, y;};
32453 static struct point const zero = {0,0};
32454 /* AIX XL C 1.02.0.0 rejects this.
32455 It does not let you subtract one const X* pointer from another in
32456 an arm of an if-expression whose if-part is not a constant
32458 const char *g = "string";
32459 pcpcc = &g + (g ? g-g : 0);
32460 /* HPUX 7.0 cc rejects these. */
32462 ppc = (char**) pcpcc;
32463 pcpcc = (char const *const *) ppc;
32464 { /* SCO 3.2v4 cc rejects this. */
32466 char const *s = 0 ? (char *) 0 : (char const *) 0;
32471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32472 int x[] = {25, 17};
32473 const int *foo = &x[0];
32476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32477 typedef const int *iptr;
32481 { /* AIX XL C 1.02.0.0 rejects this saying
32482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32483 struct s { int j; const int *ap[3]; };
32484 struct s *b; b->j = 5;
32486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32487 const int foo = 10;
32488 if (!foo) return 0;
32490 return !cs[0] && !zero.x;
32497 rm -f conftest.$ac_objext
32498 if { (ac_try="$ac_compile"
32499 case "(($ac_try" in
32500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501 *) ac_try_echo=$ac_try;;
32503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32504 (eval "$ac_compile") 2>conftest.er1
32506 grep -v '^ *+' conftest.er1 >conftest.err
32508 cat conftest.err >&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); } && {
32511 test -z "$ac_c_werror_flag" ||
32512 test ! -s conftest.err
32513 } && test -s conftest.$ac_objext; then
32516 echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32524 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32525 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32526 if test $ac_cv_c_const = no; then
32528 cat >>confdefs.h <<\_ACEOF
32535 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32536 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32538 # The order of these tests is important.
32539 cat >conftest.$ac_ext <<_ACEOF
32542 cat confdefs.h >>conftest.$ac_ext
32543 cat >>conftest.$ac_ext <<_ACEOF
32544 /* end confdefs.h. */
32546 #include <sys/statvfs.h>
32547 #include <sys/fstyp.h>
32550 if { (ac_try="$ac_cpp conftest.$ac_ext"
32551 case "(($ac_try" in
32552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32553 *) ac_try_echo=$ac_try;;
32555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32558 grep -v '^ *+' conftest.er1 >conftest.err
32560 cat conftest.err >&5
32561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562 (exit $ac_status); } >/dev/null && {
32563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32564 test ! -s conftest.err
32566 cat >>confdefs.h <<\_ACEOF
32567 #define FSTYPE_STATVFS 1
32572 echo "$as_me: failed program was:" >&5
32573 sed 's/^/| /' conftest.$ac_ext >&5
32578 rm -f conftest.err conftest.$ac_ext
32579 if test $fstype = no; then
32580 cat >conftest.$ac_ext <<_ACEOF
32583 cat confdefs.h >>conftest.$ac_ext
32584 cat >>conftest.$ac_ext <<_ACEOF
32585 /* end confdefs.h. */
32587 #include <sys/statfs.h>
32588 #include <sys/fstyp.h>
32591 if { (ac_try="$ac_cpp conftest.$ac_ext"
32592 case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32599 grep -v '^ *+' conftest.er1 >conftest.err
32601 cat conftest.err >&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); } >/dev/null && {
32604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32605 test ! -s conftest.err
32607 cat >>confdefs.h <<\_ACEOF
32608 #define FSTYPE_USG_STATFS 1
32613 echo "$as_me: failed program was:" >&5
32614 sed 's/^/| /' conftest.$ac_ext >&5
32619 rm -f conftest.err conftest.$ac_ext
32621 if test $fstype = no; then
32622 cat >conftest.$ac_ext <<_ACEOF
32625 cat confdefs.h >>conftest.$ac_ext
32626 cat >>conftest.$ac_ext <<_ACEOF
32627 /* end confdefs.h. */
32629 #include <sys/statfs.h>
32630 #include <sys/vmount.h>
32633 if { (ac_try="$ac_cpp conftest.$ac_ext"
32634 case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32641 grep -v '^ *+' conftest.er1 >conftest.err
32643 cat conftest.err >&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); } >/dev/null && {
32646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32647 test ! -s conftest.err
32649 cat >>confdefs.h <<\_ACEOF
32650 #define FSTYPE_AIX_STATFS 1
32655 echo "$as_me: failed program was:" >&5
32656 sed 's/^/| /' conftest.$ac_ext >&5
32661 rm -f conftest.err conftest.$ac_ext
32663 if test $fstype = no; then
32664 cat >conftest.$ac_ext <<_ACEOF
32667 cat confdefs.h >>conftest.$ac_ext
32668 cat >>conftest.$ac_ext <<_ACEOF
32669 /* end confdefs.h. */
32671 #include <mntent.h>
32674 if { (ac_try="$ac_cpp conftest.$ac_ext"
32675 case "(($ac_try" in
32676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32677 *) ac_try_echo=$ac_try;;
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32682 grep -v '^ *+' conftest.er1 >conftest.err
32684 cat conftest.err >&5
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); } >/dev/null && {
32687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32688 test ! -s conftest.err
32690 cat >>confdefs.h <<\_ACEOF
32691 #define FSTYPE_MNTENT 1
32696 echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32702 rm -f conftest.err conftest.$ac_ext
32704 if test $fstype = no; then
32705 cat >conftest.$ac_ext <<_ACEOF
32708 cat confdefs.h >>conftest.$ac_ext
32709 cat >>conftest.$ac_ext <<_ACEOF
32710 /* end confdefs.h. */
32711 #include <sys/mount.h>
32714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32715 $EGREP "f_type;" >/dev/null 2>&1; then
32716 cat >>confdefs.h <<\_ACEOF
32717 #define FSTYPE_STATFS 1
32724 if test $fstype = no; then
32725 cat >conftest.$ac_ext <<_ACEOF
32728 cat confdefs.h >>conftest.$ac_ext
32729 cat >>conftest.$ac_ext <<_ACEOF
32730 /* end confdefs.h. */
32732 #include <sys/mount.h>
32733 #include <sys/fs_types.h>
32736 if { (ac_try="$ac_cpp conftest.$ac_ext"
32737 case "(($ac_try" in
32738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32739 *) ac_try_echo=$ac_try;;
32741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32744 grep -v '^ *+' conftest.er1 >conftest.err
32746 cat conftest.err >&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } >/dev/null && {
32749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32750 test ! -s conftest.err
32752 cat >>confdefs.h <<\_ACEOF
32753 #define FSTYPE_GETMNT 1
32758 echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32764 rm -f conftest.err conftest.$ac_ext
32766 { echo "$as_me:$LINENO: result: $fstype" >&5
32767 echo "${ECHO_T}$fstype" >&6; }
32769 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32770 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32771 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32772 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32773 echo $ECHO_N "(cached) $ECHO_C" >&6
32775 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32776 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32778 # Is the header compilable?
32779 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32780 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32781 cat >conftest.$ac_ext <<_ACEOF
32784 cat confdefs.h >>conftest.$ac_ext
32785 cat >>conftest.$ac_ext <<_ACEOF
32786 /* end confdefs.h. */
32787 $ac_includes_default
32788 #include <sys/statvfs.h>
32790 rm -f conftest.$ac_objext
32791 if { (ac_try="$ac_compile"
32792 case "(($ac_try" in
32793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32794 *) ac_try_echo=$ac_try;;
32796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32797 (eval "$ac_compile") 2>conftest.er1
32799 grep -v '^ *+' conftest.er1 >conftest.err
32801 cat conftest.err >&5
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); } && {
32804 test -z "$ac_c_werror_flag" ||
32805 test ! -s conftest.err
32806 } && test -s conftest.$ac_objext; then
32807 ac_header_compiler=yes
32809 echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32812 ac_header_compiler=no
32815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32817 echo "${ECHO_T}$ac_header_compiler" >&6; }
32819 # Is the header present?
32820 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32821 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32822 cat >conftest.$ac_ext <<_ACEOF
32825 cat confdefs.h >>conftest.$ac_ext
32826 cat >>conftest.$ac_ext <<_ACEOF
32827 /* end confdefs.h. */
32828 #include <sys/statvfs.h>
32830 if { (ac_try="$ac_cpp conftest.$ac_ext"
32831 case "(($ac_try" in
32832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32833 *) ac_try_echo=$ac_try;;
32835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32838 grep -v '^ *+' conftest.er1 >conftest.err
32840 cat conftest.err >&5
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); } >/dev/null && {
32843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32844 test ! -s conftest.err
32846 ac_header_preproc=yes
32848 echo "$as_me: failed program was:" >&5
32849 sed 's/^/| /' conftest.$ac_ext >&5
32851 ac_header_preproc=no
32854 rm -f conftest.err conftest.$ac_ext
32855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32856 echo "${ECHO_T}$ac_header_preproc" >&6; }
32858 # So? What about this header?
32859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32861 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32862 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32863 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32864 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32865 ac_header_preproc=yes
32868 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32869 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32870 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32871 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32872 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32873 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32874 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32875 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32876 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32877 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32878 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32879 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
32883 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32884 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32885 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32886 echo $ECHO_N "(cached) $ECHO_C" >&6
32888 ac_cv_header_sys_statvfs_h=$ac_header_preproc
32890 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32891 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32894 if test $ac_cv_header_sys_statvfs_h = yes; then
32896 cat >>confdefs.h <<\_ACEOF
32897 #define HAVE_SYS_STATVFS_H 1
32904 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32905 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32906 if test "${ac_cv_type_signal+set}" = set; then
32907 echo $ECHO_N "(cached) $ECHO_C" >&6
32909 cat >conftest.$ac_ext <<_ACEOF
32912 cat confdefs.h >>conftest.$ac_ext
32913 cat >>conftest.$ac_ext <<_ACEOF
32914 /* end confdefs.h. */
32915 #include <sys/types.h>
32916 #include <signal.h>
32921 return *(signal (0, 0)) (0) == 1;
32926 rm -f conftest.$ac_objext
32927 if { (ac_try="$ac_compile"
32928 case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_compile") 2>conftest.er1
32935 grep -v '^ *+' conftest.er1 >conftest.err
32937 cat conftest.err >&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } && {
32940 test -z "$ac_c_werror_flag" ||
32941 test ! -s conftest.err
32942 } && test -s conftest.$ac_objext; then
32943 ac_cv_type_signal=int
32945 echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32948 ac_cv_type_signal=void
32951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32953 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32954 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32956 cat >>confdefs.h <<_ACEOF
32957 #define RETSIGTYPE $ac_cv_type_signal
32962 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
32963 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
32964 if test "${bash_cv_signal_vintage+set}" = set; then
32965 echo $ECHO_N "(cached) $ECHO_C" >&6
32968 cat >conftest.$ac_ext <<_ACEOF
32971 cat confdefs.h >>conftest.$ac_ext
32972 cat >>conftest.$ac_ext <<_ACEOF
32973 /* end confdefs.h. */
32974 #include <signal.h>
32980 struct sigaction sa;
32981 sigemptyset(&ss); sigsuspend(&ss);
32982 sigaction(SIGINT, &sa, (struct sigaction *) 0);
32983 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
32989 rm -f conftest.$ac_objext conftest$ac_exeext
32990 if { (ac_try="$ac_link"
32991 case "(($ac_try" in
32992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993 *) ac_try_echo=$ac_try;;
32995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996 (eval "$ac_link") 2>conftest.er1
32998 grep -v '^ *+' conftest.er1 >conftest.err
33000 cat conftest.err >&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); } && {
33003 test -z "$ac_c_werror_flag" ||
33004 test ! -s conftest.err
33005 } && test -s conftest$ac_exeext &&
33006 $as_test_x conftest$ac_exeext; then
33007 bash_cv_signal_vintage="posix"
33009 echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33013 cat >conftest.$ac_ext <<_ACEOF
33016 cat confdefs.h >>conftest.$ac_ext
33017 cat >>conftest.$ac_ext <<_ACEOF
33018 /* end confdefs.h. */
33019 #include <signal.h>
33024 int mask = sigmask(SIGINT);
33025 sigsetmask(mask); sigblock(mask); sigpause(mask);
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (ac_try="$ac_link"
33033 case "(($ac_try" in
33034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035 *) ac_try_echo=$ac_try;;
33037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038 (eval "$ac_link") 2>conftest.er1
33040 grep -v '^ *+' conftest.er1 >conftest.err
33042 cat conftest.err >&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } && {
33045 test -z "$ac_c_werror_flag" ||
33046 test ! -s conftest.err
33047 } && test -s conftest$ac_exeext &&
33048 $as_test_x conftest$ac_exeext; then
33049 bash_cv_signal_vintage="4.2bsd"
33051 echo "$as_me: failed program was:" >&5
33052 sed 's/^/| /' conftest.$ac_ext >&5
33055 cat >conftest.$ac_ext <<_ACEOF
33058 cat confdefs.h >>conftest.$ac_ext
33059 cat >>conftest.$ac_ext <<_ACEOF
33060 /* end confdefs.h. */
33062 #include <signal.h>
33063 RETSIGTYPE foo() { }
33068 int mask = sigmask(SIGINT);
33069 sigset(SIGINT, foo); sigrelse(SIGINT);
33070 sighold(SIGINT); sigpause(SIGINT);
33076 rm -f conftest.$ac_objext conftest$ac_exeext
33077 if { (ac_try="$ac_link"
33078 case "(($ac_try" in
33079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33080 *) ac_try_echo=$ac_try;;
33082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33083 (eval "$ac_link") 2>conftest.er1
33085 grep -v '^ *+' conftest.er1 >conftest.err
33087 cat conftest.err >&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); } && {
33090 test -z "$ac_c_werror_flag" ||
33091 test ! -s conftest.err
33092 } && test -s conftest$ac_exeext &&
33093 $as_test_x conftest$ac_exeext; then
33094 bash_cv_signal_vintage="svr3"
33096 echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33099 bash_cv_signal_vintage="v7"
33103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33104 conftest$ac_exeext conftest.$ac_ext
33108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33109 conftest$ac_exeext conftest.$ac_ext
33113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33114 conftest$ac_exeext conftest.$ac_ext
33118 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33119 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33120 if test "$bash_cv_signal_vintage" = "posix"; then
33121 cat >>confdefs.h <<\_ACEOF
33122 #define HAVE_POSIX_SIGNALS 1
33125 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33126 cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_BSD_SIGNALS 1
33130 elif test "$bash_cv_signal_vintage" = "svr3"; then
33131 cat >>confdefs.h <<\_ACEOF
33132 #define HAVE_USG_SIGHOLD 1
33137 { echo "$as_me:$LINENO: checking for mode_t" >&5
33138 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33139 if test "${ac_cv_type_mode_t+set}" = set; then
33140 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 cat >conftest.$ac_ext <<_ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33148 $ac_includes_default
33149 typedef mode_t ac__type_new_;
33153 if ((ac__type_new_ *) 0)
33155 if (sizeof (ac__type_new_))
33161 rm -f conftest.$ac_objext
33162 if { (ac_try="$ac_compile"
33163 case "(($ac_try" in
33164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33165 *) ac_try_echo=$ac_try;;
33167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33168 (eval "$ac_compile") 2>conftest.er1
33170 grep -v '^ *+' conftest.er1 >conftest.err
33172 cat conftest.err >&5
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); } && {
33175 test -z "$ac_c_werror_flag" ||
33176 test ! -s conftest.err
33177 } && test -s conftest.$ac_objext; then
33178 ac_cv_type_mode_t=yes
33180 echo "$as_me: failed program was:" >&5
33181 sed 's/^/| /' conftest.$ac_ext >&5
33183 ac_cv_type_mode_t=no
33186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33188 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33189 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33190 if test $ac_cv_type_mode_t = yes; then
33194 cat >>confdefs.h <<_ACEOF
33200 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33201 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33202 if test "${ac_cv_type_uid_t+set}" = set; then
33203 echo $ECHO_N "(cached) $ECHO_C" >&6
33205 cat >conftest.$ac_ext <<_ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h. */
33211 #include <sys/types.h>
33214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33215 $EGREP "uid_t" >/dev/null 2>&1; then
33216 ac_cv_type_uid_t=yes
33218 ac_cv_type_uid_t=no
33223 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33224 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33225 if test $ac_cv_type_uid_t = no; then
33227 cat >>confdefs.h <<\_ACEOF
33232 cat >>confdefs.h <<\_ACEOF
33238 { echo "$as_me:$LINENO: checking for size_t" >&5
33239 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33240 if test "${ac_cv_type_size_t+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33243 cat >conftest.$ac_ext <<_ACEOF
33246 cat confdefs.h >>conftest.$ac_ext
33247 cat >>conftest.$ac_ext <<_ACEOF
33248 /* end confdefs.h. */
33249 $ac_includes_default
33250 typedef size_t ac__type_new_;
33254 if ((ac__type_new_ *) 0)
33256 if (sizeof (ac__type_new_))
33262 rm -f conftest.$ac_objext
33263 if { (ac_try="$ac_compile"
33264 case "(($ac_try" in
33265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33266 *) ac_try_echo=$ac_try;;
33268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33269 (eval "$ac_compile") 2>conftest.er1
33271 grep -v '^ *+' conftest.er1 >conftest.err
33273 cat conftest.err >&5
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); } && {
33276 test -z "$ac_c_werror_flag" ||
33277 test ! -s conftest.err
33278 } && test -s conftest.$ac_objext; then
33279 ac_cv_type_size_t=yes
33281 echo "$as_me: failed program was:" >&5
33282 sed 's/^/| /' conftest.$ac_ext >&5
33284 ac_cv_type_size_t=no
33287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33289 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33290 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33291 if test $ac_cv_type_size_t = yes; then
33295 cat >>confdefs.h <<_ACEOF
33296 #define size_t unsigned int
33301 { echo "$as_me:$LINENO: checking for pid_t" >&5
33302 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33303 if test "${ac_cv_type_pid_t+set}" = set; then
33304 echo $ECHO_N "(cached) $ECHO_C" >&6
33306 cat >conftest.$ac_ext <<_ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h. */
33312 $ac_includes_default
33313 typedef pid_t ac__type_new_;
33317 if ((ac__type_new_ *) 0)
33319 if (sizeof (ac__type_new_))
33325 rm -f conftest.$ac_objext
33326 if { (ac_try="$ac_compile"
33327 case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33332 (eval "$ac_compile") 2>conftest.er1
33334 grep -v '^ *+' conftest.er1 >conftest.err
33336 cat conftest.err >&5
33337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338 (exit $ac_status); } && {
33339 test -z "$ac_c_werror_flag" ||
33340 test ! -s conftest.err
33341 } && test -s conftest.$ac_objext; then
33342 ac_cv_type_pid_t=yes
33344 echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33347 ac_cv_type_pid_t=no
33350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33352 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33353 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33354 if test $ac_cv_type_pid_t = yes; then
33358 cat >>confdefs.h <<_ACEOF
33364 { echo "$as_me:$LINENO: checking for off_t" >&5
33365 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33366 if test "${ac_cv_type_off_t+set}" = set; then
33367 echo $ECHO_N "(cached) $ECHO_C" >&6
33369 cat >conftest.$ac_ext <<_ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h. */
33375 $ac_includes_default
33376 typedef off_t ac__type_new_;
33380 if ((ac__type_new_ *) 0)
33382 if (sizeof (ac__type_new_))
33388 rm -f conftest.$ac_objext
33389 if { (ac_try="$ac_compile"
33390 case "(($ac_try" in
33391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392 *) ac_try_echo=$ac_try;;
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395 (eval "$ac_compile") 2>conftest.er1
33397 grep -v '^ *+' conftest.er1 >conftest.err
33399 cat conftest.err >&5
33400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401 (exit $ac_status); } && {
33402 test -z "$ac_c_werror_flag" ||
33403 test ! -s conftest.err
33404 } && test -s conftest.$ac_objext; then
33405 ac_cv_type_off_t=yes
33407 echo "$as_me: failed program was:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33410 ac_cv_type_off_t=no
33413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33415 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33416 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33417 if test $ac_cv_type_off_t = yes; then
33421 cat >>confdefs.h <<_ACEOF
33422 #define off_t long int
33427 { echo "$as_me:$LINENO: checking for ino_t" >&5
33428 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33429 if test "${ac_cv_type_ino_t+set}" = set; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33432 cat >conftest.$ac_ext <<_ACEOF
33435 cat confdefs.h >>conftest.$ac_ext
33436 cat >>conftest.$ac_ext <<_ACEOF
33437 /* end confdefs.h. */
33438 $ac_includes_default
33439 typedef ino_t ac__type_new_;
33443 if ((ac__type_new_ *) 0)
33445 if (sizeof (ac__type_new_))
33451 rm -f conftest.$ac_objext
33452 if { (ac_try="$ac_compile"
33453 case "(($ac_try" in
33454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33455 *) ac_try_echo=$ac_try;;
33457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33458 (eval "$ac_compile") 2>conftest.er1
33460 grep -v '^ *+' conftest.er1 >conftest.err
33462 cat conftest.err >&5
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); } && {
33465 test -z "$ac_c_werror_flag" ||
33466 test ! -s conftest.err
33467 } && test -s conftest.$ac_objext; then
33468 ac_cv_type_ino_t=yes
33470 echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33473 ac_cv_type_ino_t=no
33476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33479 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33480 if test $ac_cv_type_ino_t = yes; then
33484 cat >>confdefs.h <<_ACEOF
33485 #define ino_t unsigned long
33490 { echo "$as_me:$LINENO: checking for dev_t" >&5
33491 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33492 if test "${ac_cv_type_dev_t+set}" = set; then
33493 echo $ECHO_N "(cached) $ECHO_C" >&6
33495 cat >conftest.$ac_ext <<_ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h. */
33501 $ac_includes_default
33502 typedef dev_t ac__type_new_;
33506 if ((ac__type_new_ *) 0)
33508 if (sizeof (ac__type_new_))
33514 rm -f conftest.$ac_objext
33515 if { (ac_try="$ac_compile"
33516 case "(($ac_try" in
33517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33518 *) ac_try_echo=$ac_try;;
33520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33521 (eval "$ac_compile") 2>conftest.er1
33523 grep -v '^ *+' conftest.er1 >conftest.err
33525 cat conftest.err >&5
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); } && {
33528 test -z "$ac_c_werror_flag" ||
33529 test ! -s conftest.err
33530 } && test -s conftest.$ac_objext; then
33531 ac_cv_type_dev_t=yes
33533 echo "$as_me: failed program was:" >&5
33534 sed 's/^/| /' conftest.$ac_ext >&5
33536 ac_cv_type_dev_t=no
33539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33541 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33542 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33543 if test $ac_cv_type_dev_t = yes; then
33547 cat >>confdefs.h <<_ACEOF
33548 #define dev_t unsigned long
33553 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33554 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33555 if test "${ac_cv_type_daddr_t+set}" = set; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33558 cat >conftest.$ac_ext <<_ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h. */
33564 $ac_includes_default
33565 typedef daddr_t ac__type_new_;
33569 if ((ac__type_new_ *) 0)
33571 if (sizeof (ac__type_new_))
33577 rm -f conftest.$ac_objext
33578 if { (ac_try="$ac_compile"
33579 case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_compile") 2>conftest.er1
33586 grep -v '^ *+' conftest.er1 >conftest.err
33588 cat conftest.err >&5
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); } && {
33591 test -z "$ac_c_werror_flag" ||
33592 test ! -s conftest.err
33593 } && test -s conftest.$ac_objext; then
33594 ac_cv_type_daddr_t=yes
33596 echo "$as_me: failed program was:" >&5
33597 sed 's/^/| /' conftest.$ac_ext >&5
33599 ac_cv_type_daddr_t=no
33602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33604 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33605 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33606 if test $ac_cv_type_daddr_t = yes; then
33610 cat >>confdefs.h <<_ACEOF
33611 #define daddr_t long
33616 { echo "$as_me:$LINENO: checking for major_t" >&5
33617 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33618 if test "${ac_cv_type_major_t+set}" = set; then
33619 echo $ECHO_N "(cached) $ECHO_C" >&6
33621 cat >conftest.$ac_ext <<_ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h. */
33627 $ac_includes_default
33628 typedef major_t ac__type_new_;
33632 if ((ac__type_new_ *) 0)
33634 if (sizeof (ac__type_new_))
33640 rm -f conftest.$ac_objext
33641 if { (ac_try="$ac_compile"
33642 case "(($ac_try" in
33643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33644 *) ac_try_echo=$ac_try;;
33646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33647 (eval "$ac_compile") 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } && {
33654 test -z "$ac_c_werror_flag" ||
33655 test ! -s conftest.err
33656 } && test -s conftest.$ac_objext; then
33657 ac_cv_type_major_t=yes
33659 echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 ac_cv_type_major_t=no
33665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33667 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
33668 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
33669 if test $ac_cv_type_major_t = yes; then
33673 cat >>confdefs.h <<_ACEOF
33674 #define major_t int
33679 { echo "$as_me:$LINENO: checking for minor_t" >&5
33680 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
33681 if test "${ac_cv_type_minor_t+set}" = set; then
33682 echo $ECHO_N "(cached) $ECHO_C" >&6
33684 cat >conftest.$ac_ext <<_ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h. */
33690 $ac_includes_default
33691 typedef minor_t ac__type_new_;
33695 if ((ac__type_new_ *) 0)
33697 if (sizeof (ac__type_new_))
33703 rm -f conftest.$ac_objext
33704 if { (ac_try="$ac_compile"
33705 case "(($ac_try" in
33706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707 *) ac_try_echo=$ac_try;;
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710 (eval "$ac_compile") 2>conftest.er1
33712 grep -v '^ *+' conftest.er1 >conftest.err
33714 cat conftest.err >&5
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } && {
33717 test -z "$ac_c_werror_flag" ||
33718 test ! -s conftest.err
33719 } && test -s conftest.$ac_objext; then
33720 ac_cv_type_minor_t=yes
33722 echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33725 ac_cv_type_minor_t=no
33728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33730 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
33731 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
33732 if test $ac_cv_type_minor_t = yes; then
33736 cat >>confdefs.h <<_ACEOF
33737 #define minor_t int
33742 { echo "$as_me:$LINENO: checking for ssize_t" >&5
33743 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33744 if test "${ac_cv_type_ssize_t+set}" = set; then
33745 echo $ECHO_N "(cached) $ECHO_C" >&6
33747 cat >conftest.$ac_ext <<_ACEOF
33750 cat confdefs.h >>conftest.$ac_ext
33751 cat >>conftest.$ac_ext <<_ACEOF
33752 /* end confdefs.h. */
33753 $ac_includes_default
33754 typedef ssize_t ac__type_new_;
33758 if ((ac__type_new_ *) 0)
33760 if (sizeof (ac__type_new_))
33766 rm -f conftest.$ac_objext
33767 if { (ac_try="$ac_compile"
33768 case "(($ac_try" in
33769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33770 *) ac_try_echo=$ac_try;;
33772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33773 (eval "$ac_compile") 2>conftest.er1
33775 grep -v '^ *+' conftest.er1 >conftest.err
33777 cat conftest.err >&5
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); } && {
33780 test -z "$ac_c_werror_flag" ||
33781 test ! -s conftest.err
33782 } && test -s conftest.$ac_objext; then
33783 ac_cv_type_ssize_t=yes
33785 echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33788 ac_cv_type_ssize_t=no
33791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33793 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33794 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
33795 if test $ac_cv_type_ssize_t = yes; then
33799 cat >>confdefs.h <<_ACEOF
33800 #define ssize_t int
33805 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
33806 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
33807 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
33808 echo $ECHO_N "(cached) $ECHO_C" >&6
33810 cat >conftest.$ac_ext <<_ACEOF
33813 cat confdefs.h >>conftest.$ac_ext
33814 cat >>conftest.$ac_ext <<_ACEOF
33815 /* end confdefs.h. */
33816 $ac_includes_default
33820 static struct stat ac_aggr;
33821 if (ac_aggr.st_blocks)
33827 rm -f conftest.$ac_objext
33828 if { (ac_try="$ac_compile"
33829 case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_compile") 2>conftest.er1
33836 grep -v '^ *+' conftest.er1 >conftest.err
33838 cat conftest.err >&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } && {
33841 test -z "$ac_c_werror_flag" ||
33842 test ! -s conftest.err
33843 } && test -s conftest.$ac_objext; then
33844 ac_cv_member_struct_stat_st_blocks=yes
33846 echo "$as_me: failed program was:" >&5
33847 sed 's/^/| /' conftest.$ac_ext >&5
33849 cat >conftest.$ac_ext <<_ACEOF
33852 cat confdefs.h >>conftest.$ac_ext
33853 cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h. */
33855 $ac_includes_default
33859 static struct stat ac_aggr;
33860 if (sizeof ac_aggr.st_blocks)
33866 rm -f conftest.$ac_objext
33867 if { (ac_try="$ac_compile"
33868 case "(($ac_try" in
33869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33870 *) ac_try_echo=$ac_try;;
33872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33873 (eval "$ac_compile") 2>conftest.er1
33875 grep -v '^ *+' conftest.er1 >conftest.err
33877 cat conftest.err >&5
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); } && {
33880 test -z "$ac_c_werror_flag" ||
33881 test ! -s conftest.err
33882 } && test -s conftest.$ac_objext; then
33883 ac_cv_member_struct_stat_st_blocks=yes
33885 echo "$as_me: failed program was:" >&5
33886 sed 's/^/| /' conftest.$ac_ext >&5
33888 ac_cv_member_struct_stat_st_blocks=no
33891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33896 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
33897 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
33898 if test $ac_cv_member_struct_stat_st_blocks = yes; then
33900 cat >>confdefs.h <<_ACEOF
33901 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
33905 cat >>confdefs.h <<\_ACEOF
33906 #define HAVE_ST_BLOCKS 1
33910 case " $LIBOBJS " in
33911 *" fileblocks.$ac_objext "* ) ;;
33912 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
33919 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
33920 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
33921 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33924 cat >conftest.$ac_ext <<_ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h. */
33930 $ac_includes_default
33934 static struct stat ac_aggr;
33935 if (ac_aggr.st_rdev)
33941 rm -f conftest.$ac_objext
33942 if { (ac_try="$ac_compile"
33943 case "(($ac_try" in
33944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33945 *) ac_try_echo=$ac_try;;
33947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33948 (eval "$ac_compile") 2>conftest.er1
33950 grep -v '^ *+' conftest.er1 >conftest.err
33952 cat conftest.err >&5
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); } && {
33955 test -z "$ac_c_werror_flag" ||
33956 test ! -s conftest.err
33957 } && test -s conftest.$ac_objext; then
33958 ac_cv_member_struct_stat_st_rdev=yes
33960 echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33963 cat >conftest.$ac_ext <<_ACEOF
33966 cat confdefs.h >>conftest.$ac_ext
33967 cat >>conftest.$ac_ext <<_ACEOF
33968 /* end confdefs.h. */
33969 $ac_includes_default
33973 static struct stat ac_aggr;
33974 if (sizeof ac_aggr.st_rdev)
33980 rm -f conftest.$ac_objext
33981 if { (ac_try="$ac_compile"
33982 case "(($ac_try" in
33983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984 *) ac_try_echo=$ac_try;;
33986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33987 (eval "$ac_compile") 2>conftest.er1
33989 grep -v '^ *+' conftest.er1 >conftest.err
33991 cat conftest.err >&5
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); } && {
33994 test -z "$ac_c_werror_flag" ||
33995 test ! -s conftest.err
33996 } && test -s conftest.$ac_objext; then
33997 ac_cv_member_struct_stat_st_rdev=yes
33999 echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34002 ac_cv_member_struct_stat_st_rdev=no
34005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34012 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34014 cat >>confdefs.h <<_ACEOF
34015 #define HAVE_STRUCT_STAT_ST_RDEV 1
34019 cat >>confdefs.h <<\_ACEOF
34020 #define HAVE_ST_RDEV 1
34026 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34027 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34028 if test "${ac_cv_struct_tm+set}" = set; then
34029 echo $ECHO_N "(cached) $ECHO_C" >&6
34031 cat >conftest.$ac_ext <<_ACEOF
34034 cat confdefs.h >>conftest.$ac_ext
34035 cat >>conftest.$ac_ext <<_ACEOF
34036 /* end confdefs.h. */
34037 #include <sys/types.h>
34044 int *p = &tm.tm_sec;
34050 rm -f conftest.$ac_objext
34051 if { (ac_try="$ac_compile"
34052 case "(($ac_try" in
34053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34054 *) ac_try_echo=$ac_try;;
34056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34057 (eval "$ac_compile") 2>conftest.er1
34059 grep -v '^ *+' conftest.er1 >conftest.err
34061 cat conftest.err >&5
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); } && {
34064 test -z "$ac_c_werror_flag" ||
34065 test ! -s conftest.err
34066 } && test -s conftest.$ac_objext; then
34067 ac_cv_struct_tm=time.h
34069 echo "$as_me: failed program was:" >&5
34070 sed 's/^/| /' conftest.$ac_ext >&5
34072 ac_cv_struct_tm=sys/time.h
34075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34077 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34078 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34079 if test $ac_cv_struct_tm = sys/time.h; then
34081 cat >>confdefs.h <<\_ACEOF
34082 #define TM_IN_SYS_TIME 1
34087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34089 if test "${ac_cv_c_const+set}" = set; then
34090 echo $ECHO_N "(cached) $ECHO_C" >&6
34092 cat >conftest.$ac_ext <<_ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h. */
34102 /* FIXME: Include the comments suggested by Paul. */
34103 #ifndef __cplusplus
34104 /* Ultrix mips cc rejects this. */
34105 typedef int charset[2];
34107 /* SunOS 4.1.1 cc rejects this. */
34108 char const *const *pcpcc;
34110 /* NEC SVR4.0.2 mips cc rejects this. */
34111 struct point {int x, y;};
34112 static struct point const zero = {0,0};
34113 /* AIX XL C 1.02.0.0 rejects this.
34114 It does not let you subtract one const X* pointer from another in
34115 an arm of an if-expression whose if-part is not a constant
34117 const char *g = "string";
34118 pcpcc = &g + (g ? g-g : 0);
34119 /* HPUX 7.0 cc rejects these. */
34121 ppc = (char**) pcpcc;
34122 pcpcc = (char const *const *) ppc;
34123 { /* SCO 3.2v4 cc rejects this. */
34125 char const *s = 0 ? (char *) 0 : (char const *) 0;
34130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34131 int x[] = {25, 17};
34132 const int *foo = &x[0];
34135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34136 typedef const int *iptr;
34140 { /* AIX XL C 1.02.0.0 rejects this saying
34141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34142 struct s { int j; const int *ap[3]; };
34143 struct s *b; b->j = 5;
34145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34146 const int foo = 10;
34147 if (!foo) return 0;
34149 return !cs[0] && !zero.x;
34156 rm -f conftest.$ac_objext
34157 if { (ac_try="$ac_compile"
34158 case "(($ac_try" in
34159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34160 *) ac_try_echo=$ac_try;;
34162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34163 (eval "$ac_compile") 2>conftest.er1
34165 grep -v '^ *+' conftest.er1 >conftest.err
34167 cat conftest.err >&5
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); } && {
34170 test -z "$ac_c_werror_flag" ||
34171 test ! -s conftest.err
34172 } && test -s conftest.$ac_objext; then
34175 echo "$as_me: failed program was:" >&5
34176 sed 's/^/| /' conftest.$ac_ext >&5
34181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34183 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34184 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34185 if test $ac_cv_c_const = no; then
34187 cat >>confdefs.h <<\_ACEOF
34194 { echo "$as_me:$LINENO: checking for char" >&5
34195 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34196 if test "${ac_cv_type_char+set}" = set; then
34197 echo $ECHO_N "(cached) $ECHO_C" >&6
34199 cat >conftest.$ac_ext <<_ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34205 $ac_includes_default
34206 typedef char ac__type_new_;
34210 if ((ac__type_new_ *) 0)
34212 if (sizeof (ac__type_new_))
34218 rm -f conftest.$ac_objext
34219 if { (ac_try="$ac_compile"
34220 case "(($ac_try" in
34221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34222 *) ac_try_echo=$ac_try;;
34224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34225 (eval "$ac_compile") 2>conftest.er1
34227 grep -v '^ *+' conftest.er1 >conftest.err
34229 cat conftest.err >&5
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } && {
34232 test -z "$ac_c_werror_flag" ||
34233 test ! -s conftest.err
34234 } && test -s conftest.$ac_objext; then
34235 ac_cv_type_char=yes
34237 echo "$as_me: failed program was:" >&5
34238 sed 's/^/| /' conftest.$ac_ext >&5
34243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34245 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34246 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34248 # The cast to long int works around a bug in the HP C Compiler
34249 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34250 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34251 # This bug is HP SR number 8606223364.
34252 { echo "$as_me:$LINENO: checking size of char" >&5
34253 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34254 if test "${ac_cv_sizeof_char+set}" = set; then
34255 echo $ECHO_N "(cached) $ECHO_C" >&6
34257 if test "$cross_compiling" = yes; then
34258 # Depending upon the size, compute the lo and hi bounds.
34259 cat >conftest.$ac_ext <<_ACEOF
34262 cat confdefs.h >>conftest.$ac_ext
34263 cat >>conftest.$ac_ext <<_ACEOF
34264 /* end confdefs.h. */
34265 $ac_includes_default
34266 typedef char ac__type_sizeof_;
34270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34277 rm -f conftest.$ac_objext
34278 if { (ac_try="$ac_compile"
34279 case "(($ac_try" in
34280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34281 *) ac_try_echo=$ac_try;;
34283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284 (eval "$ac_compile") 2>conftest.er1
34286 grep -v '^ *+' conftest.er1 >conftest.err
34288 cat conftest.err >&5
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); } && {
34291 test -z "$ac_c_werror_flag" ||
34292 test ! -s conftest.err
34293 } && test -s conftest.$ac_objext; then
34296 cat >conftest.$ac_ext <<_ACEOF
34299 cat confdefs.h >>conftest.$ac_ext
34300 cat >>conftest.$ac_ext <<_ACEOF
34301 /* end confdefs.h. */
34302 $ac_includes_default
34303 typedef char ac__type_sizeof_;
34307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34314 rm -f conftest.$ac_objext
34315 if { (ac_try="$ac_compile"
34316 case "(($ac_try" in
34317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34318 *) ac_try_echo=$ac_try;;
34320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34321 (eval "$ac_compile") 2>conftest.er1
34323 grep -v '^ *+' conftest.er1 >conftest.err
34325 cat conftest.err >&5
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); } && {
34328 test -z "$ac_c_werror_flag" ||
34329 test ! -s conftest.err
34330 } && test -s conftest.$ac_objext; then
34331 ac_hi=$ac_mid; break
34333 echo "$as_me: failed program was:" >&5
34334 sed 's/^/| /' conftest.$ac_ext >&5
34336 ac_lo=`expr $ac_mid + 1`
34337 if test $ac_lo -le $ac_mid; then
34341 ac_mid=`expr 2 '*' $ac_mid + 1`
34344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34347 echo "$as_me: failed program was:" >&5
34348 sed 's/^/| /' conftest.$ac_ext >&5
34350 cat >conftest.$ac_ext <<_ACEOF
34353 cat confdefs.h >>conftest.$ac_ext
34354 cat >>conftest.$ac_ext <<_ACEOF
34355 /* end confdefs.h. */
34356 $ac_includes_default
34357 typedef char ac__type_sizeof_;
34361 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34368 rm -f conftest.$ac_objext
34369 if { (ac_try="$ac_compile"
34370 case "(($ac_try" in
34371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34372 *) ac_try_echo=$ac_try;;
34374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34375 (eval "$ac_compile") 2>conftest.er1
34377 grep -v '^ *+' conftest.er1 >conftest.err
34379 cat conftest.err >&5
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); } && {
34382 test -z "$ac_c_werror_flag" ||
34383 test ! -s conftest.err
34384 } && test -s conftest.$ac_objext; then
34387 cat >conftest.$ac_ext <<_ACEOF
34390 cat confdefs.h >>conftest.$ac_ext
34391 cat >>conftest.$ac_ext <<_ACEOF
34392 /* end confdefs.h. */
34393 $ac_includes_default
34394 typedef char ac__type_sizeof_;
34398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34405 rm -f conftest.$ac_objext
34406 if { (ac_try="$ac_compile"
34407 case "(($ac_try" in
34408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34409 *) ac_try_echo=$ac_try;;
34411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34412 (eval "$ac_compile") 2>conftest.er1
34414 grep -v '^ *+' conftest.er1 >conftest.err
34416 cat conftest.err >&5
34417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34418 (exit $ac_status); } && {
34419 test -z "$ac_c_werror_flag" ||
34420 test ! -s conftest.err
34421 } && test -s conftest.$ac_objext; then
34422 ac_lo=$ac_mid; break
34424 echo "$as_me: failed program was:" >&5
34425 sed 's/^/| /' conftest.$ac_ext >&5
34427 ac_hi=`expr '(' $ac_mid ')' - 1`
34428 if test $ac_mid -le $ac_hi; then
34432 ac_mid=`expr 2 '*' $ac_mid`
34435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34438 echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34448 # Binary search between lo and hi bounds.
34449 while test "x$ac_lo" != "x$ac_hi"; do
34450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34451 cat >conftest.$ac_ext <<_ACEOF
34454 cat confdefs.h >>conftest.$ac_ext
34455 cat >>conftest.$ac_ext <<_ACEOF
34456 /* end confdefs.h. */
34457 $ac_includes_default
34458 typedef char ac__type_sizeof_;
34462 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34469 rm -f conftest.$ac_objext
34470 if { (ac_try="$ac_compile"
34471 case "(($ac_try" in
34472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34473 *) ac_try_echo=$ac_try;;
34475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34476 (eval "$ac_compile") 2>conftest.er1
34478 grep -v '^ *+' conftest.er1 >conftest.err
34480 cat conftest.err >&5
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); } && {
34483 test -z "$ac_c_werror_flag" ||
34484 test ! -s conftest.err
34485 } && test -s conftest.$ac_objext; then
34488 echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34491 ac_lo=`expr '(' $ac_mid ')' + 1`
34494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34497 ?*) ac_cv_sizeof_char=$ac_lo;;
34498 '') if test "$ac_cv_type_char" = yes; then
34499 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34500 See \`config.log' for more details." >&5
34501 echo "$as_me: error: cannot compute sizeof (char)
34502 See \`config.log' for more details." >&2;}
34503 { (exit 77); exit 77; }; }
34505 ac_cv_sizeof_char=0
34509 cat >conftest.$ac_ext <<_ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h. */
34515 $ac_includes_default
34516 typedef char ac__type_sizeof_;
34517 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34518 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34520 #include <stdlib.h>
34525 FILE *f = fopen ("conftest.val", "w");
34528 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34530 long int i = longval ();
34531 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34533 fprintf (f, "%ld\n", i);
34537 unsigned long int i = ulongval ();
34538 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34540 fprintf (f, "%lu\n", i);
34542 return ferror (f) || fclose (f) != 0;
34548 rm -f conftest$ac_exeext
34549 if { (ac_try="$ac_link"
34550 case "(($ac_try" in
34551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34552 *) ac_try_echo=$ac_try;;
34554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34555 (eval "$ac_link") 2>&5
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34559 { (case "(($ac_try" in
34560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34561 *) ac_try_echo=$ac_try;;
34563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34564 (eval "$ac_try") 2>&5
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); }; }; then
34568 ac_cv_sizeof_char=`cat conftest.val`
34570 echo "$as_me: program exited with status $ac_status" >&5
34571 echo "$as_me: failed program was:" >&5
34572 sed 's/^/| /' conftest.$ac_ext >&5
34574 ( exit $ac_status )
34575 if test "$ac_cv_type_char" = yes; then
34576 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34577 See \`config.log' for more details." >&5
34578 echo "$as_me: error: cannot compute sizeof (char)
34579 See \`config.log' for more details." >&2;}
34580 { (exit 77); exit 77; }; }
34582 ac_cv_sizeof_char=0
34585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34589 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34590 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34594 cat >>confdefs.h <<_ACEOF
34595 #define SIZEOF_CHAR $ac_cv_sizeof_char
34599 { echo "$as_me:$LINENO: checking for short int" >&5
34600 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34601 if test "${ac_cv_type_short_int+set}" = set; then
34602 echo $ECHO_N "(cached) $ECHO_C" >&6
34604 cat >conftest.$ac_ext <<_ACEOF
34607 cat confdefs.h >>conftest.$ac_ext
34608 cat >>conftest.$ac_ext <<_ACEOF
34609 /* end confdefs.h. */
34610 $ac_includes_default
34611 typedef short int ac__type_new_;
34615 if ((ac__type_new_ *) 0)
34617 if (sizeof (ac__type_new_))
34623 rm -f conftest.$ac_objext
34624 if { (ac_try="$ac_compile"
34625 case "(($ac_try" in
34626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34627 *) ac_try_echo=$ac_try;;
34629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34630 (eval "$ac_compile") 2>conftest.er1
34632 grep -v '^ *+' conftest.er1 >conftest.err
34634 cat conftest.err >&5
34635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636 (exit $ac_status); } && {
34637 test -z "$ac_c_werror_flag" ||
34638 test ! -s conftest.err
34639 } && test -s conftest.$ac_objext; then
34640 ac_cv_type_short_int=yes
34642 echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34645 ac_cv_type_short_int=no
34648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34650 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
34651 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
34653 # The cast to long int works around a bug in the HP C Compiler
34654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34656 # This bug is HP SR number 8606223364.
34657 { echo "$as_me:$LINENO: checking size of short int" >&5
34658 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
34659 if test "${ac_cv_sizeof_short_int+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34662 if test "$cross_compiling" = yes; then
34663 # Depending upon the size, compute the lo and hi bounds.
34664 cat >conftest.$ac_ext <<_ACEOF
34667 cat confdefs.h >>conftest.$ac_ext
34668 cat >>conftest.$ac_ext <<_ACEOF
34669 /* end confdefs.h. */
34670 $ac_includes_default
34671 typedef short int ac__type_sizeof_;
34675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34682 rm -f conftest.$ac_objext
34683 if { (ac_try="$ac_compile"
34684 case "(($ac_try" in
34685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34686 *) ac_try_echo=$ac_try;;
34688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34689 (eval "$ac_compile") 2>conftest.er1
34691 grep -v '^ *+' conftest.er1 >conftest.err
34693 cat conftest.err >&5
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); } && {
34696 test -z "$ac_c_werror_flag" ||
34697 test ! -s conftest.err
34698 } && test -s conftest.$ac_objext; then
34701 cat >conftest.$ac_ext <<_ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h. */
34707 $ac_includes_default
34708 typedef short int ac__type_sizeof_;
34712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34719 rm -f conftest.$ac_objext
34720 if { (ac_try="$ac_compile"
34721 case "(($ac_try" in
34722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34723 *) ac_try_echo=$ac_try;;
34725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34726 (eval "$ac_compile") 2>conftest.er1
34728 grep -v '^ *+' conftest.er1 >conftest.err
34730 cat conftest.err >&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); } && {
34733 test -z "$ac_c_werror_flag" ||
34734 test ! -s conftest.err
34735 } && test -s conftest.$ac_objext; then
34736 ac_hi=$ac_mid; break
34738 echo "$as_me: failed program was:" >&5
34739 sed 's/^/| /' conftest.$ac_ext >&5
34741 ac_lo=`expr $ac_mid + 1`
34742 if test $ac_lo -le $ac_mid; then
34746 ac_mid=`expr 2 '*' $ac_mid + 1`
34749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34752 echo "$as_me: failed program was:" >&5
34753 sed 's/^/| /' conftest.$ac_ext >&5
34755 cat >conftest.$ac_ext <<_ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h. */
34761 $ac_includes_default
34762 typedef short int ac__type_sizeof_;
34766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34773 rm -f conftest.$ac_objext
34774 if { (ac_try="$ac_compile"
34775 case "(($ac_try" in
34776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34777 *) ac_try_echo=$ac_try;;
34779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34780 (eval "$ac_compile") 2>conftest.er1
34782 grep -v '^ *+' conftest.er1 >conftest.err
34784 cat conftest.err >&5
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); } && {
34787 test -z "$ac_c_werror_flag" ||
34788 test ! -s conftest.err
34789 } && test -s conftest.$ac_objext; then
34792 cat >conftest.$ac_ext <<_ACEOF
34795 cat confdefs.h >>conftest.$ac_ext
34796 cat >>conftest.$ac_ext <<_ACEOF
34797 /* end confdefs.h. */
34798 $ac_includes_default
34799 typedef short int ac__type_sizeof_;
34803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34810 rm -f conftest.$ac_objext
34811 if { (ac_try="$ac_compile"
34812 case "(($ac_try" in
34813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814 *) ac_try_echo=$ac_try;;
34816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34817 (eval "$ac_compile") 2>conftest.er1
34819 grep -v '^ *+' conftest.er1 >conftest.err
34821 cat conftest.err >&5
34822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823 (exit $ac_status); } && {
34824 test -z "$ac_c_werror_flag" ||
34825 test ! -s conftest.err
34826 } && test -s conftest.$ac_objext; then
34827 ac_lo=$ac_mid; break
34829 echo "$as_me: failed program was:" >&5
34830 sed 's/^/| /' conftest.$ac_ext >&5
34832 ac_hi=`expr '(' $ac_mid ')' - 1`
34833 if test $ac_mid -le $ac_hi; then
34837 ac_mid=`expr 2 '*' $ac_mid`
34840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34843 echo "$as_me: failed program was:" >&5
34844 sed 's/^/| /' conftest.$ac_ext >&5
34849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34853 # Binary search between lo and hi bounds.
34854 while test "x$ac_lo" != "x$ac_hi"; do
34855 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34856 cat >conftest.$ac_ext <<_ACEOF
34859 cat confdefs.h >>conftest.$ac_ext
34860 cat >>conftest.$ac_ext <<_ACEOF
34861 /* end confdefs.h. */
34862 $ac_includes_default
34863 typedef short int ac__type_sizeof_;
34867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34874 rm -f conftest.$ac_objext
34875 if { (ac_try="$ac_compile"
34876 case "(($ac_try" in
34877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34878 *) ac_try_echo=$ac_try;;
34880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34881 (eval "$ac_compile") 2>conftest.er1
34883 grep -v '^ *+' conftest.er1 >conftest.err
34885 cat conftest.err >&5
34886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887 (exit $ac_status); } && {
34888 test -z "$ac_c_werror_flag" ||
34889 test ! -s conftest.err
34890 } && test -s conftest.$ac_objext; then
34893 echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34896 ac_lo=`expr '(' $ac_mid ')' + 1`
34899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34902 ?*) ac_cv_sizeof_short_int=$ac_lo;;
34903 '') if test "$ac_cv_type_short_int" = yes; then
34904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34905 See \`config.log' for more details." >&5
34906 echo "$as_me: error: cannot compute sizeof (short int)
34907 See \`config.log' for more details." >&2;}
34908 { (exit 77); exit 77; }; }
34910 ac_cv_sizeof_short_int=0
34914 cat >conftest.$ac_ext <<_ACEOF
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h. */
34920 $ac_includes_default
34921 typedef short int ac__type_sizeof_;
34922 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34923 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34925 #include <stdlib.h>
34930 FILE *f = fopen ("conftest.val", "w");
34933 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34935 long int i = longval ();
34936 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34938 fprintf (f, "%ld\n", i);
34942 unsigned long int i = ulongval ();
34943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34945 fprintf (f, "%lu\n", i);
34947 return ferror (f) || fclose (f) != 0;
34953 rm -f conftest$ac_exeext
34954 if { (ac_try="$ac_link"
34955 case "(($ac_try" in
34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34957 *) ac_try_echo=$ac_try;;
34959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34960 (eval "$ac_link") 2>&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34964 { (case "(($ac_try" in
34965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34966 *) ac_try_echo=$ac_try;;
34968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34969 (eval "$ac_try") 2>&5
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); }; }; then
34973 ac_cv_sizeof_short_int=`cat conftest.val`
34975 echo "$as_me: program exited with status $ac_status" >&5
34976 echo "$as_me: failed program was:" >&5
34977 sed 's/^/| /' conftest.$ac_ext >&5
34979 ( exit $ac_status )
34980 if test "$ac_cv_type_short_int" = yes; then
34981 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
34982 See \`config.log' for more details." >&5
34983 echo "$as_me: error: cannot compute sizeof (short int)
34984 See \`config.log' for more details." >&2;}
34985 { (exit 77); exit 77; }; }
34987 ac_cv_sizeof_short_int=0
34990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34994 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
34995 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
34999 cat >>confdefs.h <<_ACEOF
35000 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35004 { echo "$as_me:$LINENO: checking for int" >&5
35005 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35006 if test "${ac_cv_type_int+set}" = set; then
35007 echo $ECHO_N "(cached) $ECHO_C" >&6
35009 cat >conftest.$ac_ext <<_ACEOF
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h. */
35015 $ac_includes_default
35016 typedef int ac__type_new_;
35020 if ((ac__type_new_ *) 0)
35022 if (sizeof (ac__type_new_))
35028 rm -f conftest.$ac_objext
35029 if { (ac_try="$ac_compile"
35030 case "(($ac_try" in
35031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032 *) ac_try_echo=$ac_try;;
35034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035 (eval "$ac_compile") 2>conftest.er1
35037 grep -v '^ *+' conftest.er1 >conftest.err
35039 cat conftest.err >&5
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); } && {
35042 test -z "$ac_c_werror_flag" ||
35043 test ! -s conftest.err
35044 } && test -s conftest.$ac_objext; then
35047 echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.$ac_ext >&5
35053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35055 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35056 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35058 # The cast to long int works around a bug in the HP C Compiler
35059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35061 # This bug is HP SR number 8606223364.
35062 { echo "$as_me:$LINENO: checking size of int" >&5
35063 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35064 if test "${ac_cv_sizeof_int+set}" = set; then
35065 echo $ECHO_N "(cached) $ECHO_C" >&6
35067 if test "$cross_compiling" = yes; then
35068 # Depending upon the size, compute the lo and hi bounds.
35069 cat >conftest.$ac_ext <<_ACEOF
35072 cat confdefs.h >>conftest.$ac_ext
35073 cat >>conftest.$ac_ext <<_ACEOF
35074 /* end confdefs.h. */
35075 $ac_includes_default
35076 typedef int ac__type_sizeof_;
35080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35087 rm -f conftest.$ac_objext
35088 if { (ac_try="$ac_compile"
35089 case "(($ac_try" in
35090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091 *) ac_try_echo=$ac_try;;
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094 (eval "$ac_compile") 2>conftest.er1
35096 grep -v '^ *+' conftest.er1 >conftest.err
35098 cat conftest.err >&5
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); } && {
35101 test -z "$ac_c_werror_flag" ||
35102 test ! -s conftest.err
35103 } && test -s conftest.$ac_objext; then
35106 cat >conftest.$ac_ext <<_ACEOF
35109 cat confdefs.h >>conftest.$ac_ext
35110 cat >>conftest.$ac_ext <<_ACEOF
35111 /* end confdefs.h. */
35112 $ac_includes_default
35113 typedef int ac__type_sizeof_;
35117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35124 rm -f conftest.$ac_objext
35125 if { (ac_try="$ac_compile"
35126 case "(($ac_try" in
35127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35128 *) ac_try_echo=$ac_try;;
35130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35131 (eval "$ac_compile") 2>conftest.er1
35133 grep -v '^ *+' conftest.er1 >conftest.err
35135 cat conftest.err >&5
35136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137 (exit $ac_status); } && {
35138 test -z "$ac_c_werror_flag" ||
35139 test ! -s conftest.err
35140 } && test -s conftest.$ac_objext; then
35141 ac_hi=$ac_mid; break
35143 echo "$as_me: failed program was:" >&5
35144 sed 's/^/| /' conftest.$ac_ext >&5
35146 ac_lo=`expr $ac_mid + 1`
35147 if test $ac_lo -le $ac_mid; then
35151 ac_mid=`expr 2 '*' $ac_mid + 1`
35154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35157 echo "$as_me: failed program was:" >&5
35158 sed 's/^/| /' conftest.$ac_ext >&5
35160 cat >conftest.$ac_ext <<_ACEOF
35163 cat confdefs.h >>conftest.$ac_ext
35164 cat >>conftest.$ac_ext <<_ACEOF
35165 /* end confdefs.h. */
35166 $ac_includes_default
35167 typedef int ac__type_sizeof_;
35171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35178 rm -f conftest.$ac_objext
35179 if { (ac_try="$ac_compile"
35180 case "(($ac_try" in
35181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35182 *) ac_try_echo=$ac_try;;
35184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35185 (eval "$ac_compile") 2>conftest.er1
35187 grep -v '^ *+' conftest.er1 >conftest.err
35189 cat conftest.err >&5
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); } && {
35192 test -z "$ac_c_werror_flag" ||
35193 test ! -s conftest.err
35194 } && test -s conftest.$ac_objext; then
35197 cat >conftest.$ac_ext <<_ACEOF
35200 cat confdefs.h >>conftest.$ac_ext
35201 cat >>conftest.$ac_ext <<_ACEOF
35202 /* end confdefs.h. */
35203 $ac_includes_default
35204 typedef int ac__type_sizeof_;
35208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35215 rm -f conftest.$ac_objext
35216 if { (ac_try="$ac_compile"
35217 case "(($ac_try" in
35218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35219 *) ac_try_echo=$ac_try;;
35221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35222 (eval "$ac_compile") 2>conftest.er1
35224 grep -v '^ *+' conftest.er1 >conftest.err
35226 cat conftest.err >&5
35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228 (exit $ac_status); } && {
35229 test -z "$ac_c_werror_flag" ||
35230 test ! -s conftest.err
35231 } && test -s conftest.$ac_objext; then
35232 ac_lo=$ac_mid; break
35234 echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.$ac_ext >&5
35237 ac_hi=`expr '(' $ac_mid ')' - 1`
35238 if test $ac_mid -le $ac_hi; then
35242 ac_mid=`expr 2 '*' $ac_mid`
35245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35258 # Binary search between lo and hi bounds.
35259 while test "x$ac_lo" != "x$ac_hi"; do
35260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35261 cat >conftest.$ac_ext <<_ACEOF
35264 cat confdefs.h >>conftest.$ac_ext
35265 cat >>conftest.$ac_ext <<_ACEOF
35266 /* end confdefs.h. */
35267 $ac_includes_default
35268 typedef int ac__type_sizeof_;
35272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35279 rm -f conftest.$ac_objext
35280 if { (ac_try="$ac_compile"
35281 case "(($ac_try" in
35282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35283 *) ac_try_echo=$ac_try;;
35285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35286 (eval "$ac_compile") 2>conftest.er1
35288 grep -v '^ *+' conftest.er1 >conftest.err
35290 cat conftest.err >&5
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); } && {
35293 test -z "$ac_c_werror_flag" ||
35294 test ! -s conftest.err
35295 } && test -s conftest.$ac_objext; then
35298 echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35301 ac_lo=`expr '(' $ac_mid ')' + 1`
35304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 ?*) ac_cv_sizeof_int=$ac_lo;;
35308 '') if test "$ac_cv_type_int" = yes; then
35309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35310 See \`config.log' for more details." >&5
35311 echo "$as_me: error: cannot compute sizeof (int)
35312 See \`config.log' for more details." >&2;}
35313 { (exit 77); exit 77; }; }
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 $ac_includes_default
35326 typedef int ac__type_sizeof_;
35327 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35328 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35330 #include <stdlib.h>
35335 FILE *f = fopen ("conftest.val", "w");
35338 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35340 long int i = longval ();
35341 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35343 fprintf (f, "%ld\n", i);
35347 unsigned long int i = ulongval ();
35348 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35350 fprintf (f, "%lu\n", i);
35352 return ferror (f) || fclose (f) != 0;
35358 rm -f conftest$ac_exeext
35359 if { (ac_try="$ac_link"
35360 case "(($ac_try" in
35361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35362 *) ac_try_echo=$ac_try;;
35364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35365 (eval "$ac_link") 2>&5
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35369 { (case "(($ac_try" in
35370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35371 *) ac_try_echo=$ac_try;;
35373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35374 (eval "$ac_try") 2>&5
35376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377 (exit $ac_status); }; }; then
35378 ac_cv_sizeof_int=`cat conftest.val`
35380 echo "$as_me: program exited with status $ac_status" >&5
35381 echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.$ac_ext >&5
35384 ( exit $ac_status )
35385 if test "$ac_cv_type_int" = yes; then
35386 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35387 See \`config.log' for more details." >&5
35388 echo "$as_me: error: cannot compute sizeof (int)
35389 See \`config.log' for more details." >&2;}
35390 { (exit 77); exit 77; }; }
35395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35399 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35400 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35404 cat >>confdefs.h <<_ACEOF
35405 #define SIZEOF_INT $ac_cv_sizeof_int
35409 { echo "$as_me:$LINENO: checking for long int" >&5
35410 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35411 if test "${ac_cv_type_long_int+set}" = set; then
35412 echo $ECHO_N "(cached) $ECHO_C" >&6
35414 cat >conftest.$ac_ext <<_ACEOF
35417 cat confdefs.h >>conftest.$ac_ext
35418 cat >>conftest.$ac_ext <<_ACEOF
35419 /* end confdefs.h. */
35420 $ac_includes_default
35421 typedef long int ac__type_new_;
35425 if ((ac__type_new_ *) 0)
35427 if (sizeof (ac__type_new_))
35433 rm -f conftest.$ac_objext
35434 if { (ac_try="$ac_compile"
35435 case "(($ac_try" in
35436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35437 *) ac_try_echo=$ac_try;;
35439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35440 (eval "$ac_compile") 2>conftest.er1
35442 grep -v '^ *+' conftest.er1 >conftest.err
35444 cat conftest.err >&5
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); } && {
35447 test -z "$ac_c_werror_flag" ||
35448 test ! -s conftest.err
35449 } && test -s conftest.$ac_objext; then
35450 ac_cv_type_long_int=yes
35452 echo "$as_me: failed program was:" >&5
35453 sed 's/^/| /' conftest.$ac_ext >&5
35455 ac_cv_type_long_int=no
35458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35460 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35461 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35463 # The cast to long int works around a bug in the HP C Compiler
35464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35466 # This bug is HP SR number 8606223364.
35467 { echo "$as_me:$LINENO: checking size of long int" >&5
35468 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35469 if test "${ac_cv_sizeof_long_int+set}" = set; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35472 if test "$cross_compiling" = yes; then
35473 # Depending upon the size, compute the lo and hi bounds.
35474 cat >conftest.$ac_ext <<_ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h. */
35480 $ac_includes_default
35481 typedef long int ac__type_sizeof_;
35485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35492 rm -f conftest.$ac_objext
35493 if { (ac_try="$ac_compile"
35494 case "(($ac_try" in
35495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35496 *) ac_try_echo=$ac_try;;
35498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35499 (eval "$ac_compile") 2>conftest.er1
35501 grep -v '^ *+' conftest.er1 >conftest.err
35503 cat conftest.err >&5
35504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35505 (exit $ac_status); } && {
35506 test -z "$ac_c_werror_flag" ||
35507 test ! -s conftest.err
35508 } && test -s conftest.$ac_objext; then
35511 cat >conftest.$ac_ext <<_ACEOF
35514 cat confdefs.h >>conftest.$ac_ext
35515 cat >>conftest.$ac_ext <<_ACEOF
35516 /* end confdefs.h. */
35517 $ac_includes_default
35518 typedef long int ac__type_sizeof_;
35522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35529 rm -f conftest.$ac_objext
35530 if { (ac_try="$ac_compile"
35531 case "(($ac_try" in
35532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35533 *) ac_try_echo=$ac_try;;
35535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35536 (eval "$ac_compile") 2>conftest.er1
35538 grep -v '^ *+' conftest.er1 >conftest.err
35540 cat conftest.err >&5
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); } && {
35543 test -z "$ac_c_werror_flag" ||
35544 test ! -s conftest.err
35545 } && test -s conftest.$ac_objext; then
35546 ac_hi=$ac_mid; break
35548 echo "$as_me: failed program was:" >&5
35549 sed 's/^/| /' conftest.$ac_ext >&5
35551 ac_lo=`expr $ac_mid + 1`
35552 if test $ac_lo -le $ac_mid; then
35556 ac_mid=`expr 2 '*' $ac_mid + 1`
35559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35562 echo "$as_me: failed program was:" >&5
35563 sed 's/^/| /' conftest.$ac_ext >&5
35565 cat >conftest.$ac_ext <<_ACEOF
35568 cat confdefs.h >>conftest.$ac_ext
35569 cat >>conftest.$ac_ext <<_ACEOF
35570 /* end confdefs.h. */
35571 $ac_includes_default
35572 typedef long int ac__type_sizeof_;
35576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35583 rm -f conftest.$ac_objext
35584 if { (ac_try="$ac_compile"
35585 case "(($ac_try" in
35586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35587 *) ac_try_echo=$ac_try;;
35589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35590 (eval "$ac_compile") 2>conftest.er1
35592 grep -v '^ *+' conftest.er1 >conftest.err
35594 cat conftest.err >&5
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); } && {
35597 test -z "$ac_c_werror_flag" ||
35598 test ! -s conftest.err
35599 } && test -s conftest.$ac_objext; then
35602 cat >conftest.$ac_ext <<_ACEOF
35605 cat confdefs.h >>conftest.$ac_ext
35606 cat >>conftest.$ac_ext <<_ACEOF
35607 /* end confdefs.h. */
35608 $ac_includes_default
35609 typedef long int ac__type_sizeof_;
35613 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35620 rm -f conftest.$ac_objext
35621 if { (ac_try="$ac_compile"
35622 case "(($ac_try" in
35623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35624 *) ac_try_echo=$ac_try;;
35626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35627 (eval "$ac_compile") 2>conftest.er1
35629 grep -v '^ *+' conftest.er1 >conftest.err
35631 cat conftest.err >&5
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); } && {
35634 test -z "$ac_c_werror_flag" ||
35635 test ! -s conftest.err
35636 } && test -s conftest.$ac_objext; then
35637 ac_lo=$ac_mid; break
35639 echo "$as_me: failed program was:" >&5
35640 sed 's/^/| /' conftest.$ac_ext >&5
35642 ac_hi=`expr '(' $ac_mid ')' - 1`
35643 if test $ac_mid -le $ac_hi; then
35647 ac_mid=`expr 2 '*' $ac_mid`
35650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35653 echo "$as_me: failed program was:" >&5
35654 sed 's/^/| /' conftest.$ac_ext >&5
35659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35663 # Binary search between lo and hi bounds.
35664 while test "x$ac_lo" != "x$ac_hi"; do
35665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35672 $ac_includes_default
35673 typedef long int ac__type_sizeof_;
35677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35684 rm -f conftest.$ac_objext
35685 if { (ac_try="$ac_compile"
35686 case "(($ac_try" in
35687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35688 *) ac_try_echo=$ac_try;;
35690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35691 (eval "$ac_compile") 2>conftest.er1
35693 grep -v '^ *+' conftest.er1 >conftest.err
35695 cat conftest.err >&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); } && {
35698 test -z "$ac_c_werror_flag" ||
35699 test ! -s conftest.err
35700 } && test -s conftest.$ac_objext; then
35703 echo "$as_me: failed program was:" >&5
35704 sed 's/^/| /' conftest.$ac_ext >&5
35706 ac_lo=`expr '(' $ac_mid ')' + 1`
35709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35712 ?*) ac_cv_sizeof_long_int=$ac_lo;;
35713 '') if test "$ac_cv_type_long_int" = yes; then
35714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35715 See \`config.log' for more details." >&5
35716 echo "$as_me: error: cannot compute sizeof (long int)
35717 See \`config.log' for more details." >&2;}
35718 { (exit 77); exit 77; }; }
35720 ac_cv_sizeof_long_int=0
35724 cat >conftest.$ac_ext <<_ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35730 $ac_includes_default
35731 typedef long int ac__type_sizeof_;
35732 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35733 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35735 #include <stdlib.h>
35740 FILE *f = fopen ("conftest.val", "w");
35743 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35745 long int i = longval ();
35746 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35748 fprintf (f, "%ld\n", i);
35752 unsigned long int i = ulongval ();
35753 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35755 fprintf (f, "%lu\n", i);
35757 return ferror (f) || fclose (f) != 0;
35763 rm -f conftest$ac_exeext
35764 if { (ac_try="$ac_link"
35765 case "(($ac_try" in
35766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35767 *) ac_try_echo=$ac_try;;
35769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35770 (eval "$ac_link") 2>&5
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35774 { (case "(($ac_try" in
35775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35776 *) ac_try_echo=$ac_try;;
35778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35779 (eval "$ac_try") 2>&5
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); }; }; then
35783 ac_cv_sizeof_long_int=`cat conftest.val`
35785 echo "$as_me: program exited with status $ac_status" >&5
35786 echo "$as_me: failed program was:" >&5
35787 sed 's/^/| /' conftest.$ac_ext >&5
35789 ( exit $ac_status )
35790 if test "$ac_cv_type_long_int" = yes; then
35791 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
35792 See \`config.log' for more details." >&5
35793 echo "$as_me: error: cannot compute sizeof (long int)
35794 See \`config.log' for more details." >&2;}
35795 { (exit 77); exit 77; }; }
35797 ac_cv_sizeof_long_int=0
35800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35804 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
35805 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
35809 cat >>confdefs.h <<_ACEOF
35810 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
35814 { echo "$as_me:$LINENO: checking for long long int" >&5
35815 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
35816 if test "${ac_cv_type_long_long_int+set}" = set; then
35817 echo $ECHO_N "(cached) $ECHO_C" >&6
35819 cat >conftest.$ac_ext <<_ACEOF
35822 cat confdefs.h >>conftest.$ac_ext
35823 cat >>conftest.$ac_ext <<_ACEOF
35824 /* end confdefs.h. */
35825 $ac_includes_default
35826 typedef long long int ac__type_new_;
35830 if ((ac__type_new_ *) 0)
35832 if (sizeof (ac__type_new_))
35838 rm -f conftest.$ac_objext
35839 if { (ac_try="$ac_compile"
35840 case "(($ac_try" in
35841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35842 *) ac_try_echo=$ac_try;;
35844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35845 (eval "$ac_compile") 2>conftest.er1
35847 grep -v '^ *+' conftest.er1 >conftest.err
35849 cat conftest.err >&5
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); } && {
35852 test -z "$ac_c_werror_flag" ||
35853 test ! -s conftest.err
35854 } && test -s conftest.$ac_objext; then
35855 ac_cv_type_long_long_int=yes
35857 echo "$as_me: failed program was:" >&5
35858 sed 's/^/| /' conftest.$ac_ext >&5
35860 ac_cv_type_long_long_int=no
35863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35865 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
35866 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
35868 # The cast to long int works around a bug in the HP C Compiler
35869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35871 # This bug is HP SR number 8606223364.
35872 { echo "$as_me:$LINENO: checking size of long long int" >&5
35873 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
35874 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
35875 echo $ECHO_N "(cached) $ECHO_C" >&6
35877 if test "$cross_compiling" = yes; then
35878 # Depending upon the size, compute the lo and hi bounds.
35879 cat >conftest.$ac_ext <<_ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h. */
35885 $ac_includes_default
35886 typedef long long int ac__type_sizeof_;
35890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35897 rm -f conftest.$ac_objext
35898 if { (ac_try="$ac_compile"
35899 case "(($ac_try" in
35900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901 *) ac_try_echo=$ac_try;;
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904 (eval "$ac_compile") 2>conftest.er1
35906 grep -v '^ *+' conftest.er1 >conftest.err
35908 cat conftest.err >&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } && {
35911 test -z "$ac_c_werror_flag" ||
35912 test ! -s conftest.err
35913 } && test -s conftest.$ac_objext; then
35916 cat >conftest.$ac_ext <<_ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h. */
35922 $ac_includes_default
35923 typedef long long int ac__type_sizeof_;
35927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35934 rm -f conftest.$ac_objext
35935 if { (ac_try="$ac_compile"
35936 case "(($ac_try" in
35937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35938 *) ac_try_echo=$ac_try;;
35940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35941 (eval "$ac_compile") 2>conftest.er1
35943 grep -v '^ *+' conftest.er1 >conftest.err
35945 cat conftest.err >&5
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } && {
35948 test -z "$ac_c_werror_flag" ||
35949 test ! -s conftest.err
35950 } && test -s conftest.$ac_objext; then
35951 ac_hi=$ac_mid; break
35953 echo "$as_me: failed program was:" >&5
35954 sed 's/^/| /' conftest.$ac_ext >&5
35956 ac_lo=`expr $ac_mid + 1`
35957 if test $ac_lo -le $ac_mid; then
35961 ac_mid=`expr 2 '*' $ac_mid + 1`
35964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35967 echo "$as_me: failed program was:" >&5
35968 sed 's/^/| /' conftest.$ac_ext >&5
35970 cat >conftest.$ac_ext <<_ACEOF
35973 cat confdefs.h >>conftest.$ac_ext
35974 cat >>conftest.$ac_ext <<_ACEOF
35975 /* end confdefs.h. */
35976 $ac_includes_default
35977 typedef long long int ac__type_sizeof_;
35981 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35988 rm -f conftest.$ac_objext
35989 if { (ac_try="$ac_compile"
35990 case "(($ac_try" in
35991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35992 *) ac_try_echo=$ac_try;;
35994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35995 (eval "$ac_compile") 2>conftest.er1
35997 grep -v '^ *+' conftest.er1 >conftest.err
35999 cat conftest.err >&5
36000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36001 (exit $ac_status); } && {
36002 test -z "$ac_c_werror_flag" ||
36003 test ! -s conftest.err
36004 } && test -s conftest.$ac_objext; then
36007 cat >conftest.$ac_ext <<_ACEOF
36010 cat confdefs.h >>conftest.$ac_ext
36011 cat >>conftest.$ac_ext <<_ACEOF
36012 /* end confdefs.h. */
36013 $ac_includes_default
36014 typedef long long int ac__type_sizeof_;
36018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36025 rm -f conftest.$ac_objext
36026 if { (ac_try="$ac_compile"
36027 case "(($ac_try" in
36028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36029 *) ac_try_echo=$ac_try;;
36031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36032 (eval "$ac_compile") 2>conftest.er1
36034 grep -v '^ *+' conftest.er1 >conftest.err
36036 cat conftest.err >&5
36037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038 (exit $ac_status); } && {
36039 test -z "$ac_c_werror_flag" ||
36040 test ! -s conftest.err
36041 } && test -s conftest.$ac_objext; then
36042 ac_lo=$ac_mid; break
36044 echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36047 ac_hi=`expr '(' $ac_mid ')' - 1`
36048 if test $ac_mid -le $ac_hi; then
36052 ac_mid=`expr 2 '*' $ac_mid`
36055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36058 echo "$as_me: failed program was:" >&5
36059 sed 's/^/| /' conftest.$ac_ext >&5
36064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36068 # Binary search between lo and hi bounds.
36069 while test "x$ac_lo" != "x$ac_hi"; do
36070 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36071 cat >conftest.$ac_ext <<_ACEOF
36074 cat confdefs.h >>conftest.$ac_ext
36075 cat >>conftest.$ac_ext <<_ACEOF
36076 /* end confdefs.h. */
36077 $ac_includes_default
36078 typedef long long int ac__type_sizeof_;
36082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36089 rm -f conftest.$ac_objext
36090 if { (ac_try="$ac_compile"
36091 case "(($ac_try" in
36092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36093 *) ac_try_echo=$ac_try;;
36095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36096 (eval "$ac_compile") 2>conftest.er1
36098 grep -v '^ *+' conftest.er1 >conftest.err
36100 cat conftest.err >&5
36101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102 (exit $ac_status); } && {
36103 test -z "$ac_c_werror_flag" ||
36104 test ! -s conftest.err
36105 } && test -s conftest.$ac_objext; then
36108 echo "$as_me: failed program was:" >&5
36109 sed 's/^/| /' conftest.$ac_ext >&5
36111 ac_lo=`expr '(' $ac_mid ')' + 1`
36114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36117 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36118 '') if test "$ac_cv_type_long_long_int" = yes; then
36119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36120 See \`config.log' for more details." >&5
36121 echo "$as_me: error: cannot compute sizeof (long long int)
36122 See \`config.log' for more details." >&2;}
36123 { (exit 77); exit 77; }; }
36125 ac_cv_sizeof_long_long_int=0
36129 cat >conftest.$ac_ext <<_ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h. */
36135 $ac_includes_default
36136 typedef long long int ac__type_sizeof_;
36137 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36138 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36140 #include <stdlib.h>
36145 FILE *f = fopen ("conftest.val", "w");
36148 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36150 long int i = longval ();
36151 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36153 fprintf (f, "%ld\n", i);
36157 unsigned long int i = ulongval ();
36158 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36160 fprintf (f, "%lu\n", i);
36162 return ferror (f) || fclose (f) != 0;
36168 rm -f conftest$ac_exeext
36169 if { (ac_try="$ac_link"
36170 case "(($ac_try" in
36171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36172 *) ac_try_echo=$ac_try;;
36174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36175 (eval "$ac_link") 2>&5
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36179 { (case "(($ac_try" in
36180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36181 *) ac_try_echo=$ac_try;;
36183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36184 (eval "$ac_try") 2>&5
36186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187 (exit $ac_status); }; }; then
36188 ac_cv_sizeof_long_long_int=`cat conftest.val`
36190 echo "$as_me: program exited with status $ac_status" >&5
36191 echo "$as_me: failed program was:" >&5
36192 sed 's/^/| /' conftest.$ac_ext >&5
36194 ( exit $ac_status )
36195 if test "$ac_cv_type_long_long_int" = yes; then
36196 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36197 See \`config.log' for more details." >&5
36198 echo "$as_me: error: cannot compute sizeof (long long int)
36199 See \`config.log' for more details." >&2;}
36200 { (exit 77); exit 77; }; }
36202 ac_cv_sizeof_long_long_int=0
36205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36209 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36210 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36214 cat >>confdefs.h <<_ACEOF
36215 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36219 { echo "$as_me:$LINENO: checking for int *" >&5
36220 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36221 if test "${ac_cv_type_int_p+set}" = set; then
36222 echo $ECHO_N "(cached) $ECHO_C" >&6
36224 cat >conftest.$ac_ext <<_ACEOF
36227 cat confdefs.h >>conftest.$ac_ext
36228 cat >>conftest.$ac_ext <<_ACEOF
36229 /* end confdefs.h. */
36230 $ac_includes_default
36231 typedef int * ac__type_new_;
36235 if ((ac__type_new_ *) 0)
36237 if (sizeof (ac__type_new_))
36243 rm -f conftest.$ac_objext
36244 if { (ac_try="$ac_compile"
36245 case "(($ac_try" in
36246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36247 *) ac_try_echo=$ac_try;;
36249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36250 (eval "$ac_compile") 2>conftest.er1
36252 grep -v '^ *+' conftest.er1 >conftest.err
36254 cat conftest.err >&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); } && {
36257 test -z "$ac_c_werror_flag" ||
36258 test ! -s conftest.err
36259 } && test -s conftest.$ac_objext; then
36260 ac_cv_type_int_p=yes
36262 echo "$as_me: failed program was:" >&5
36263 sed 's/^/| /' conftest.$ac_ext >&5
36265 ac_cv_type_int_p=no
36268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36270 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36271 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36273 # The cast to long int works around a bug in the HP C Compiler
36274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36276 # This bug is HP SR number 8606223364.
36277 { echo "$as_me:$LINENO: checking size of int *" >&5
36278 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36279 if test "${ac_cv_sizeof_int_p+set}" = set; then
36280 echo $ECHO_N "(cached) $ECHO_C" >&6
36282 if test "$cross_compiling" = yes; then
36283 # Depending upon the size, compute the lo and hi bounds.
36284 cat >conftest.$ac_ext <<_ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h. */
36290 $ac_includes_default
36291 typedef int * ac__type_sizeof_;
36295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36302 rm -f conftest.$ac_objext
36303 if { (ac_try="$ac_compile"
36304 case "(($ac_try" in
36305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36306 *) ac_try_echo=$ac_try;;
36308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36309 (eval "$ac_compile") 2>conftest.er1
36311 grep -v '^ *+' conftest.er1 >conftest.err
36313 cat conftest.err >&5
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); } && {
36316 test -z "$ac_c_werror_flag" ||
36317 test ! -s conftest.err
36318 } && test -s conftest.$ac_objext; then
36321 cat >conftest.$ac_ext <<_ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h. */
36327 $ac_includes_default
36328 typedef int * ac__type_sizeof_;
36332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36339 rm -f conftest.$ac_objext
36340 if { (ac_try="$ac_compile"
36341 case "(($ac_try" in
36342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36343 *) ac_try_echo=$ac_try;;
36345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36346 (eval "$ac_compile") 2>conftest.er1
36348 grep -v '^ *+' conftest.er1 >conftest.err
36350 cat conftest.err >&5
36351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36352 (exit $ac_status); } && {
36353 test -z "$ac_c_werror_flag" ||
36354 test ! -s conftest.err
36355 } && test -s conftest.$ac_objext; then
36356 ac_hi=$ac_mid; break
36358 echo "$as_me: failed program was:" >&5
36359 sed 's/^/| /' conftest.$ac_ext >&5
36361 ac_lo=`expr $ac_mid + 1`
36362 if test $ac_lo -le $ac_mid; then
36366 ac_mid=`expr 2 '*' $ac_mid + 1`
36369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36372 echo "$as_me: failed program was:" >&5
36373 sed 's/^/| /' conftest.$ac_ext >&5
36375 cat >conftest.$ac_ext <<_ACEOF
36378 cat confdefs.h >>conftest.$ac_ext
36379 cat >>conftest.$ac_ext <<_ACEOF
36380 /* end confdefs.h. */
36381 $ac_includes_default
36382 typedef int * ac__type_sizeof_;
36386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36393 rm -f conftest.$ac_objext
36394 if { (ac_try="$ac_compile"
36395 case "(($ac_try" in
36396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36397 *) ac_try_echo=$ac_try;;
36399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36400 (eval "$ac_compile") 2>conftest.er1
36402 grep -v '^ *+' conftest.er1 >conftest.err
36404 cat conftest.err >&5
36405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406 (exit $ac_status); } && {
36407 test -z "$ac_c_werror_flag" ||
36408 test ! -s conftest.err
36409 } && test -s conftest.$ac_objext; then
36412 cat >conftest.$ac_ext <<_ACEOF
36415 cat confdefs.h >>conftest.$ac_ext
36416 cat >>conftest.$ac_ext <<_ACEOF
36417 /* end confdefs.h. */
36418 $ac_includes_default
36419 typedef int * ac__type_sizeof_;
36423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36430 rm -f conftest.$ac_objext
36431 if { (ac_try="$ac_compile"
36432 case "(($ac_try" in
36433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36434 *) ac_try_echo=$ac_try;;
36436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36437 (eval "$ac_compile") 2>conftest.er1
36439 grep -v '^ *+' conftest.er1 >conftest.err
36441 cat conftest.err >&5
36442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443 (exit $ac_status); } && {
36444 test -z "$ac_c_werror_flag" ||
36445 test ! -s conftest.err
36446 } && test -s conftest.$ac_objext; then
36447 ac_lo=$ac_mid; break
36449 echo "$as_me: failed program was:" >&5
36450 sed 's/^/| /' conftest.$ac_ext >&5
36452 ac_hi=`expr '(' $ac_mid ')' - 1`
36453 if test $ac_mid -le $ac_hi; then
36457 ac_mid=`expr 2 '*' $ac_mid`
36460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36463 echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36473 # Binary search between lo and hi bounds.
36474 while test "x$ac_lo" != "x$ac_hi"; do
36475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36476 cat >conftest.$ac_ext <<_ACEOF
36479 cat confdefs.h >>conftest.$ac_ext
36480 cat >>conftest.$ac_ext <<_ACEOF
36481 /* end confdefs.h. */
36482 $ac_includes_default
36483 typedef int * ac__type_sizeof_;
36487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36494 rm -f conftest.$ac_objext
36495 if { (ac_try="$ac_compile"
36496 case "(($ac_try" in
36497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36498 *) ac_try_echo=$ac_try;;
36500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36501 (eval "$ac_compile") 2>conftest.er1
36503 grep -v '^ *+' conftest.er1 >conftest.err
36505 cat conftest.err >&5
36506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); } && {
36508 test -z "$ac_c_werror_flag" ||
36509 test ! -s conftest.err
36510 } && test -s conftest.$ac_objext; then
36513 echo "$as_me: failed program was:" >&5
36514 sed 's/^/| /' conftest.$ac_ext >&5
36516 ac_lo=`expr '(' $ac_mid ')' + 1`
36519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36522 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36523 '') if test "$ac_cv_type_int_p" = yes; then
36524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36525 See \`config.log' for more details." >&5
36526 echo "$as_me: error: cannot compute sizeof (int *)
36527 See \`config.log' for more details." >&2;}
36528 { (exit 77); exit 77; }; }
36530 ac_cv_sizeof_int_p=0
36534 cat >conftest.$ac_ext <<_ACEOF
36537 cat confdefs.h >>conftest.$ac_ext
36538 cat >>conftest.$ac_ext <<_ACEOF
36539 /* end confdefs.h. */
36540 $ac_includes_default
36541 typedef int * ac__type_sizeof_;
36542 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36543 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36545 #include <stdlib.h>
36550 FILE *f = fopen ("conftest.val", "w");
36553 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36555 long int i = longval ();
36556 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36558 fprintf (f, "%ld\n", i);
36562 unsigned long int i = ulongval ();
36563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36565 fprintf (f, "%lu\n", i);
36567 return ferror (f) || fclose (f) != 0;
36573 rm -f conftest$ac_exeext
36574 if { (ac_try="$ac_link"
36575 case "(($ac_try" in
36576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577 *) ac_try_echo=$ac_try;;
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580 (eval "$ac_link") 2>&5
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36584 { (case "(($ac_try" in
36585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36586 *) ac_try_echo=$ac_try;;
36588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36589 (eval "$ac_try") 2>&5
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); }; }; then
36593 ac_cv_sizeof_int_p=`cat conftest.val`
36595 echo "$as_me: program exited with status $ac_status" >&5
36596 echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36599 ( exit $ac_status )
36600 if test "$ac_cv_type_int_p" = yes; then
36601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36602 See \`config.log' for more details." >&5
36603 echo "$as_me: error: cannot compute sizeof (int *)
36604 See \`config.log' for more details." >&2;}
36605 { (exit 77); exit 77; }; }
36607 ac_cv_sizeof_int_p=0
36610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36614 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36615 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36619 cat >>confdefs.h <<_ACEOF
36620 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36625 { echo "$as_me:$LINENO: checking for u_int type" >&5
36626 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36627 if test "${ac_cv_have_u_int+set}" = set; then
36628 echo $ECHO_N "(cached) $ECHO_C" >&6
36631 cat >conftest.$ac_ext <<_ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h. */
36638 #include <sys/types.h>
36650 rm -f conftest.$ac_objext
36651 if { (ac_try="$ac_compile"
36652 case "(($ac_try" in
36653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36654 *) ac_try_echo=$ac_try;;
36656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36657 (eval "$ac_compile") 2>conftest.er1
36659 grep -v '^ *+' conftest.er1 >conftest.err
36661 cat conftest.err >&5
36662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36663 (exit $ac_status); } && {
36664 test -z "$ac_c_werror_flag" ||
36665 test ! -s conftest.err
36666 } && test -s conftest.$ac_objext; then
36668 ac_cv_have_u_int="yes"
36671 echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36675 ac_cv_have_u_int="no"
36680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36684 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
36685 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
36686 if test "x$ac_cv_have_u_int" = "xyes" ; then
36687 cat >>confdefs.h <<\_ACEOF
36688 #define HAVE_U_INT 1
36694 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
36695 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
36696 if test "${ac_cv_have_intmax_t+set}" = set; then
36697 echo $ECHO_N "(cached) $ECHO_C" >&6
36700 cat >conftest.$ac_ext <<_ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h. */
36707 #include <sys/types.h>
36719 rm -f conftest.$ac_objext
36720 if { (ac_try="$ac_compile"
36721 case "(($ac_try" in
36722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36723 *) ac_try_echo=$ac_try;;
36725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36726 (eval "$ac_compile") 2>conftest.er1
36728 grep -v '^ *+' conftest.er1 >conftest.err
36730 cat conftest.err >&5
36731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732 (exit $ac_status); } && {
36733 test -z "$ac_c_werror_flag" ||
36734 test ! -s conftest.err
36735 } && test -s conftest.$ac_objext; then
36737 ac_cv_have_intmax_t="yes"
36740 echo "$as_me: failed program was:" >&5
36741 sed 's/^/| /' conftest.$ac_ext >&5
36744 cat >conftest.$ac_ext <<_ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h. */
36751 #include <stdint.h>
36763 rm -f conftest.$ac_objext
36764 if { (ac_try="$ac_compile"
36765 case "(($ac_try" in
36766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36767 *) ac_try_echo=$ac_try;;
36769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36770 (eval "$ac_compile") 2>conftest.er1
36772 grep -v '^ *+' conftest.er1 >conftest.err
36774 cat conftest.err >&5
36775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776 (exit $ac_status); } && {
36777 test -z "$ac_c_werror_flag" ||
36778 test ! -s conftest.err
36779 } && test -s conftest.$ac_objext; then
36781 ac_cv_have_intmax_t="yes"
36784 echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36788 ac_cv_have_intmax_t="no"
36793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36802 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
36803 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
36804 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
36805 cat >>confdefs.h <<\_ACEOF
36806 #define HAVE_INTMAX_T 1
36812 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
36813 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
36814 if test "${ac_cv_have_u_intmax_t+set}" = set; then
36815 echo $ECHO_N "(cached) $ECHO_C" >&6
36818 cat >conftest.$ac_ext <<_ACEOF
36821 cat confdefs.h >>conftest.$ac_ext
36822 cat >>conftest.$ac_ext <<_ACEOF
36823 /* end confdefs.h. */
36825 #include <sys/types.h>
36831 u_intmax_t a; a = 1;
36837 rm -f conftest.$ac_objext
36838 if { (ac_try="$ac_compile"
36839 case "(($ac_try" in
36840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36841 *) ac_try_echo=$ac_try;;
36843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36844 (eval "$ac_compile") 2>conftest.er1
36846 grep -v '^ *+' conftest.er1 >conftest.err
36848 cat conftest.err >&5
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } && {
36851 test -z "$ac_c_werror_flag" ||
36852 test ! -s conftest.err
36853 } && test -s conftest.$ac_objext; then
36855 ac_cv_have_u_intmax_t="yes"
36858 echo "$as_me: failed program was:" >&5
36859 sed 's/^/| /' conftest.$ac_ext >&5
36862 cat >conftest.$ac_ext <<_ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h. */
36869 #include <stdint.h>
36875 u_intmax_t a; a = 1;
36881 rm -f conftest.$ac_objext
36882 if { (ac_try="$ac_compile"
36883 case "(($ac_try" in
36884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36885 *) ac_try_echo=$ac_try;;
36887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36888 (eval "$ac_compile") 2>conftest.er1
36890 grep -v '^ *+' conftest.er1 >conftest.err
36892 cat conftest.err >&5
36893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36894 (exit $ac_status); } && {
36895 test -z "$ac_c_werror_flag" ||
36896 test ! -s conftest.err
36897 } && test -s conftest.$ac_objext; then
36899 ac_cv_have_u_intmax_t="yes"
36902 echo "$as_me: failed program was:" >&5
36903 sed 's/^/| /' conftest.$ac_ext >&5
36906 ac_cv_have_u_intmax_t="no"
36911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36920 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
36921 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
36922 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
36923 cat >>confdefs.h <<\_ACEOF
36924 #define HAVE_U_INTMAX_T 1
36930 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
36931 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
36932 if test "${ac_cv_have_intxx_t+set}" = set; then
36933 echo $ECHO_N "(cached) $ECHO_C" >&6
36936 cat >conftest.$ac_ext <<_ACEOF
36939 cat confdefs.h >>conftest.$ac_ext
36940 cat >>conftest.$ac_ext <<_ACEOF
36941 /* end confdefs.h. */
36943 #include <sys/types.h>
36949 int8_t a; int16_t b; int32_t c; a = b = c = 1;
36955 rm -f conftest.$ac_objext
36956 if { (ac_try="$ac_compile"
36957 case "(($ac_try" in
36958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36959 *) ac_try_echo=$ac_try;;
36961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36962 (eval "$ac_compile") 2>conftest.er1
36964 grep -v '^ *+' conftest.er1 >conftest.err
36966 cat conftest.err >&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } && {
36969 test -z "$ac_c_werror_flag" ||
36970 test ! -s conftest.err
36971 } && test -s conftest.$ac_objext; then
36973 ac_cv_have_intxx_t="yes"
36976 echo "$as_me: failed program was:" >&5
36977 sed 's/^/| /' conftest.$ac_ext >&5
36980 ac_cv_have_intxx_t="no"
36985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36989 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
36990 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
36991 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
36992 cat >>confdefs.h <<\_ACEOF
36993 #define HAVE_INTXX_T 1
36999 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37000 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37001 if test "${ac_cv_have_int64_t+set}" = set; then
37002 echo $ECHO_N "(cached) $ECHO_C" >&6
37005 cat >conftest.$ac_ext <<_ACEOF
37008 cat confdefs.h >>conftest.$ac_ext
37009 cat >>conftest.$ac_ext <<_ACEOF
37010 /* end confdefs.h. */
37012 #include <sys/types.h>
37024 rm -f conftest.$ac_objext
37025 if { (ac_try="$ac_compile"
37026 case "(($ac_try" in
37027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37028 *) ac_try_echo=$ac_try;;
37030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37031 (eval "$ac_compile") 2>conftest.er1
37033 grep -v '^ *+' conftest.er1 >conftest.err
37035 cat conftest.err >&5
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); } && {
37038 test -z "$ac_c_werror_flag" ||
37039 test ! -s conftest.err
37040 } && test -s conftest.$ac_objext; then
37042 ac_cv_have_int64_t="yes"
37045 echo "$as_me: failed program was:" >&5
37046 sed 's/^/| /' conftest.$ac_ext >&5
37049 ac_cv_have_int64_t="no"
37054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37058 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37059 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37060 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37061 cat >>confdefs.h <<\_ACEOF
37062 #define HAVE_INT64_T 1
37068 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37069 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37070 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37071 echo $ECHO_N "(cached) $ECHO_C" >&6
37074 cat >conftest.$ac_ext <<_ACEOF
37077 cat confdefs.h >>conftest.$ac_ext
37078 cat >>conftest.$ac_ext <<_ACEOF
37079 /* end confdefs.h. */
37081 #include <sys/types.h>
37087 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37093 rm -f conftest.$ac_objext
37094 if { (ac_try="$ac_compile"
37095 case "(($ac_try" in
37096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37097 *) ac_try_echo=$ac_try;;
37099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37100 (eval "$ac_compile") 2>conftest.er1
37102 grep -v '^ *+' conftest.er1 >conftest.err
37104 cat conftest.err >&5
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); } && {
37107 test -z "$ac_c_werror_flag" ||
37108 test ! -s conftest.err
37109 } && test -s conftest.$ac_objext; then
37111 ac_cv_have_u_intxx_t="yes"
37114 echo "$as_me: failed program was:" >&5
37115 sed 's/^/| /' conftest.$ac_ext >&5
37118 ac_cv_have_u_intxx_t="no"
37123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37127 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37128 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37129 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37130 cat >>confdefs.h <<\_ACEOF
37131 #define HAVE_U_INTXX_T 1
37137 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37138 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37139 if test "${ac_cv_have_u_int64_t+set}" = set; then
37140 echo $ECHO_N "(cached) $ECHO_C" >&6
37143 cat >conftest.$ac_ext <<_ACEOF
37146 cat confdefs.h >>conftest.$ac_ext
37147 cat >>conftest.$ac_ext <<_ACEOF
37148 /* end confdefs.h. */
37150 #include <sys/types.h>
37156 u_int64_t a; a = 1;
37162 rm -f conftest.$ac_objext
37163 if { (ac_try="$ac_compile"
37164 case "(($ac_try" in
37165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37166 *) ac_try_echo=$ac_try;;
37168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37169 (eval "$ac_compile") 2>conftest.er1
37171 grep -v '^ *+' conftest.er1 >conftest.err
37173 cat conftest.err >&5
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); } && {
37176 test -z "$ac_c_werror_flag" ||
37177 test ! -s conftest.err
37178 } && test -s conftest.$ac_objext; then
37180 ac_cv_have_u_int64_t="yes"
37183 echo "$as_me: failed program was:" >&5
37184 sed 's/^/| /' conftest.$ac_ext >&5
37187 ac_cv_have_u_int64_t="no"
37192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37196 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37197 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37198 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37199 cat >>confdefs.h <<\_ACEOF
37200 #define HAVE_U_INT64_T 1
37206 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37207 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37209 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37210 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37211 cat >conftest.$ac_ext <<_ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h. */
37218 #include <sys/bitypes.h>
37224 int8_t a; int16_t b; int32_t c;
37225 u_int8_t e; u_int16_t f; u_int32_t g;
37226 a = b = c = e = f = g = 1;
37232 rm -f conftest.$ac_objext
37233 if { (ac_try="$ac_compile"
37234 case "(($ac_try" in
37235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37236 *) ac_try_echo=$ac_try;;
37238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37239 (eval "$ac_compile") 2>conftest.er1
37241 grep -v '^ *+' conftest.er1 >conftest.err
37243 cat conftest.err >&5
37244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37245 (exit $ac_status); } && {
37246 test -z "$ac_c_werror_flag" ||
37247 test ! -s conftest.err
37248 } && test -s conftest.$ac_objext; then
37250 cat >>confdefs.h <<\_ACEOF
37251 #define HAVE_U_INTXX_T 1
37254 cat >>confdefs.h <<\_ACEOF
37255 #define HAVE_INTXX_T 1
37258 cat >>confdefs.h <<\_ACEOF
37259 #define HAVE_SYS_BITYPES_H 1
37262 { echo "$as_me:$LINENO: result: yes" >&5
37263 echo "${ECHO_T}yes" >&6; }
37266 echo "$as_me: failed program was:" >&5
37267 sed 's/^/| /' conftest.$ac_ext >&5
37270 { echo "$as_me:$LINENO: result: no" >&5
37271 echo "${ECHO_T}no" >&6; }
37276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37279 if test -z "$have_u_intxx_t" ; then
37280 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37281 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37282 if test "${ac_cv_have_uintxx_t+set}" = set; then
37283 echo $ECHO_N "(cached) $ECHO_C" >&6
37286 cat >conftest.$ac_ext <<_ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h. */
37293 #include <sys/types.h>
37299 uint8_t a; uint16_t b;
37300 uint32_t c; a = b = c = 1;
37306 rm -f conftest.$ac_objext
37307 if { (ac_try="$ac_compile"
37308 case "(($ac_try" in
37309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37310 *) ac_try_echo=$ac_try;;
37312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37313 (eval "$ac_compile") 2>conftest.er1
37315 grep -v '^ *+' conftest.er1 >conftest.err
37317 cat conftest.err >&5
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); } && {
37320 test -z "$ac_c_werror_flag" ||
37321 test ! -s conftest.err
37322 } && test -s conftest.$ac_objext; then
37324 ac_cv_have_uintxx_t="yes"
37327 echo "$as_me: failed program was:" >&5
37328 sed 's/^/| /' conftest.$ac_ext >&5
37331 ac_cv_have_uintxx_t="no"
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37340 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37341 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37342 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37343 cat >>confdefs.h <<\_ACEOF
37344 #define HAVE_UINTXX_T 1
37350 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37351 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37353 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37354 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37355 cat >conftest.$ac_ext <<_ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h. */
37362 #include <sys/bitypes.h>
37368 int64_t a; u_int64_t b;
37375 rm -f conftest.$ac_objext
37376 if { (ac_try="$ac_compile"
37377 case "(($ac_try" in
37378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37379 *) ac_try_echo=$ac_try;;
37381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37382 (eval "$ac_compile") 2>conftest.er1
37384 grep -v '^ *+' conftest.er1 >conftest.err
37386 cat conftest.err >&5
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); } && {
37389 test -z "$ac_c_werror_flag" ||
37390 test ! -s conftest.err
37391 } && test -s conftest.$ac_objext; then
37393 cat >>confdefs.h <<\_ACEOF
37394 #define HAVE_U_INT64_T 1
37397 cat >>confdefs.h <<\_ACEOF
37398 #define HAVE_INT64_T 1
37401 { echo "$as_me:$LINENO: result: yes" >&5
37402 echo "${ECHO_T}yes" >&6; }
37405 echo "$as_me: failed program was:" >&5
37406 sed 's/^/| /' conftest.$ac_ext >&5
37409 { echo "$as_me:$LINENO: result: no" >&5
37410 echo "${ECHO_T}no" >&6; }
37415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37418 if (test -z "$have_uintxx_t" && \
37419 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37421 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37422 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37423 cat >conftest.$ac_ext <<_ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h. */
37430 #include <sys/bitypes.h>
37436 uint8_t a; uint16_t b;
37437 uint32_t c; a = b = c = 1;
37443 rm -f conftest.$ac_objext
37444 if { (ac_try="$ac_compile"
37445 case "(($ac_try" in
37446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37447 *) ac_try_echo=$ac_try;;
37449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37450 (eval "$ac_compile") 2>conftest.er1
37452 grep -v '^ *+' conftest.er1 >conftest.err
37454 cat conftest.err >&5
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); } && {
37457 test -z "$ac_c_werror_flag" ||
37458 test ! -s conftest.err
37459 } && test -s conftest.$ac_objext; then
37461 cat >>confdefs.h <<\_ACEOF
37462 #define HAVE_UINTXX_T 1
37465 { echo "$as_me:$LINENO: result: yes" >&5
37466 echo "${ECHO_T}yes" >&6; }
37469 echo "$as_me: failed program was:" >&5
37470 sed 's/^/| /' conftest.$ac_ext >&5
37473 { echo "$as_me:$LINENO: result: no" >&5
37474 echo "${ECHO_T}no" >&6; }
37479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37515 echo $ECHO_N "(cached) $ECHO_C" >&6
37517 cat >conftest.$ac_ext <<_ACEOF
37520 cat confdefs.h >>conftest.$ac_ext
37521 cat >>conftest.$ac_ext <<_ACEOF
37522 /* end confdefs.h. */
37523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37525 #define $ac_func innocuous_$ac_func
37527 /* System header to define __stub macros and hopefully few prototypes,
37528 which can conflict with char $ac_func (); below.
37529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37530 <limits.h> exists even on freestanding compilers. */
37533 # include <limits.h>
37535 # include <assert.h>
37540 /* Override any GCC internal prototype to avoid an error.
37541 Use char because int might match the return type of a GCC
37542 builtin and then its argument prototype would still apply. */
37547 /* The GNU C library defines this for functions which it implements
37548 to always fail with ENOSYS. Some functions are actually named
37549 something starting with __ and the normal name is an alias. */
37550 #if defined __stub_$ac_func || defined __stub___$ac_func
37557 return $ac_func ();
37562 rm -f conftest.$ac_objext conftest$ac_exeext
37563 if { (ac_try="$ac_link"
37564 case "(($ac_try" in
37565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37566 *) ac_try_echo=$ac_try;;
37568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37569 (eval "$ac_link") 2>conftest.er1
37571 grep -v '^ *+' conftest.er1 >conftest.err
37573 cat conftest.err >&5
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); } && {
37576 test -z "$ac_c_werror_flag" ||
37577 test ! -s conftest.err
37578 } && test -s conftest$ac_exeext &&
37579 $as_test_x conftest$ac_exeext; then
37580 eval "$as_ac_var=yes"
37582 echo "$as_me: failed program was:" >&5
37583 sed 's/^/| /' conftest.$ac_ext >&5
37585 eval "$as_ac_var=no"
37588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37589 conftest$ac_exeext conftest.$ac_ext
37591 ac_res=`eval echo '${'$as_ac_var'}'`
37592 { echo "$as_me:$LINENO: result: $ac_res" >&5
37593 echo "${ECHO_T}$ac_res" >&6; }
37594 if test `eval echo '${'$as_ac_var'}'` = yes; then
37595 cat >>confdefs.h <<_ACEOF
37596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37600 echo 'configure: cannot find needed function.'; exit 1
37607 for ac_func in fchdir
37609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37613 echo $ECHO_N "(cached) $ECHO_C" >&6
37615 cat >conftest.$ac_ext <<_ACEOF
37618 cat confdefs.h >>conftest.$ac_ext
37619 cat >>conftest.$ac_ext <<_ACEOF
37620 /* end confdefs.h. */
37621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37623 #define $ac_func innocuous_$ac_func
37625 /* System header to define __stub macros and hopefully few prototypes,
37626 which can conflict with char $ac_func (); below.
37627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37628 <limits.h> exists even on freestanding compilers. */
37631 # include <limits.h>
37633 # include <assert.h>
37638 /* Override any GCC internal prototype to avoid an error.
37639 Use char because int might match the return type of a GCC
37640 builtin and then its argument prototype would still apply. */
37645 /* The GNU C library defines this for functions which it implements
37646 to always fail with ENOSYS. Some functions are actually named
37647 something starting with __ and the normal name is an alias. */
37648 #if defined __stub_$ac_func || defined __stub___$ac_func
37655 return $ac_func ();
37660 rm -f conftest.$ac_objext conftest$ac_exeext
37661 if { (ac_try="$ac_link"
37662 case "(($ac_try" in
37663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37664 *) ac_try_echo=$ac_try;;
37666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37667 (eval "$ac_link") 2>conftest.er1
37669 grep -v '^ *+' conftest.er1 >conftest.err
37671 cat conftest.err >&5
37672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673 (exit $ac_status); } && {
37674 test -z "$ac_c_werror_flag" ||
37675 test ! -s conftest.err
37676 } && test -s conftest$ac_exeext &&
37677 $as_test_x conftest$ac_exeext; then
37678 eval "$as_ac_var=yes"
37680 echo "$as_me: failed program was:" >&5
37681 sed 's/^/| /' conftest.$ac_ext >&5
37683 eval "$as_ac_var=no"
37686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37687 conftest$ac_exeext conftest.$ac_ext
37689 ac_res=`eval echo '${'$as_ac_var'}'`
37690 { echo "$as_me:$LINENO: result: $ac_res" >&5
37691 echo "${ECHO_T}$ac_res" >&6; }
37692 if test `eval echo '${'$as_ac_var'}'` = yes; then
37693 cat >>confdefs.h <<_ACEOF
37694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37696 cat >>confdefs.h <<\_ACEOF
37697 #define HAVE_FCHDIR 1
37704 for ac_func in strtoll
37706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37710 echo $ECHO_N "(cached) $ECHO_C" >&6
37712 cat >conftest.$ac_ext <<_ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37720 #define $ac_func innocuous_$ac_func
37722 /* System header to define __stub macros and hopefully few prototypes,
37723 which can conflict with char $ac_func (); below.
37724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37725 <limits.h> exists even on freestanding compilers. */
37728 # include <limits.h>
37730 # include <assert.h>
37735 /* Override any GCC internal prototype to avoid an error.
37736 Use char because int might match the return type of a GCC
37737 builtin and then its argument prototype would still apply. */
37742 /* The GNU C library defines this for functions which it implements
37743 to always fail with ENOSYS. Some functions are actually named
37744 something starting with __ and the normal name is an alias. */
37745 #if defined __stub_$ac_func || defined __stub___$ac_func
37752 return $ac_func ();
37757 rm -f conftest.$ac_objext conftest$ac_exeext
37758 if { (ac_try="$ac_link"
37759 case "(($ac_try" in
37760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37761 *) ac_try_echo=$ac_try;;
37763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37764 (eval "$ac_link") 2>conftest.er1
37766 grep -v '^ *+' conftest.er1 >conftest.err
37768 cat conftest.err >&5
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); } && {
37771 test -z "$ac_c_werror_flag" ||
37772 test ! -s conftest.err
37773 } && test -s conftest$ac_exeext &&
37774 $as_test_x conftest$ac_exeext; then
37775 eval "$as_ac_var=yes"
37777 echo "$as_me: failed program was:" >&5
37778 sed 's/^/| /' conftest.$ac_ext >&5
37780 eval "$as_ac_var=no"
37783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37784 conftest$ac_exeext conftest.$ac_ext
37786 ac_res=`eval echo '${'$as_ac_var'}'`
37787 { echo "$as_me:$LINENO: result: $ac_res" >&5
37788 echo "${ECHO_T}$ac_res" >&6; }
37789 if test `eval echo '${'$as_ac_var'}'` = yes; then
37790 cat >>confdefs.h <<_ACEOF
37791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37793 cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_STRTOLL 1
37801 for ac_func in posix_fadvise
37803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37807 echo $ECHO_N "(cached) $ECHO_C" >&6
37809 cat >conftest.$ac_ext <<_ACEOF
37812 cat confdefs.h >>conftest.$ac_ext
37813 cat >>conftest.$ac_ext <<_ACEOF
37814 /* end confdefs.h. */
37815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37817 #define $ac_func innocuous_$ac_func
37819 /* System header to define __stub macros and hopefully few prototypes,
37820 which can conflict with char $ac_func (); below.
37821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37822 <limits.h> exists even on freestanding compilers. */
37825 # include <limits.h>
37827 # include <assert.h>
37832 /* Override any GCC internal prototype to avoid an error.
37833 Use char because int might match the return type of a GCC
37834 builtin and then its argument prototype would still apply. */
37839 /* The GNU C library defines this for functions which it implements
37840 to always fail with ENOSYS. Some functions are actually named
37841 something starting with __ and the normal name is an alias. */
37842 #if defined __stub_$ac_func || defined __stub___$ac_func
37849 return $ac_func ();
37854 rm -f conftest.$ac_objext conftest$ac_exeext
37855 if { (ac_try="$ac_link"
37856 case "(($ac_try" in
37857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37858 *) ac_try_echo=$ac_try;;
37860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37861 (eval "$ac_link") 2>conftest.er1
37863 grep -v '^ *+' conftest.er1 >conftest.err
37865 cat conftest.err >&5
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); } && {
37868 test -z "$ac_c_werror_flag" ||
37869 test ! -s conftest.err
37870 } && test -s conftest$ac_exeext &&
37871 $as_test_x conftest$ac_exeext; then
37872 eval "$as_ac_var=yes"
37874 echo "$as_me: failed program was:" >&5
37875 sed 's/^/| /' conftest.$ac_ext >&5
37877 eval "$as_ac_var=no"
37880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37881 conftest$ac_exeext conftest.$ac_ext
37883 ac_res=`eval echo '${'$as_ac_var'}'`
37884 { echo "$as_me:$LINENO: result: $ac_res" >&5
37885 echo "${ECHO_T}$ac_res" >&6; }
37886 if test `eval echo '${'$as_ac_var'}'` = yes; then
37887 cat >>confdefs.h <<_ACEOF
37888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37895 for ac_func in fdatasync
37897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37901 echo $ECHO_N "(cached) $ECHO_C" >&6
37903 cat >conftest.$ac_ext <<_ACEOF
37906 cat confdefs.h >>conftest.$ac_ext
37907 cat >>conftest.$ac_ext <<_ACEOF
37908 /* end confdefs.h. */
37909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37911 #define $ac_func innocuous_$ac_func
37913 /* System header to define __stub macros and hopefully few prototypes,
37914 which can conflict with char $ac_func (); below.
37915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37916 <limits.h> exists even on freestanding compilers. */
37919 # include <limits.h>
37921 # include <assert.h>
37926 /* Override any GCC internal prototype to avoid an error.
37927 Use char because int might match the return type of a GCC
37928 builtin and then its argument prototype would still apply. */
37933 /* The GNU C library defines this for functions which it implements
37934 to always fail with ENOSYS. Some functions are actually named
37935 something starting with __ and the normal name is an alias. */
37936 #if defined __stub_$ac_func || defined __stub___$ac_func
37943 return $ac_func ();
37948 rm -f conftest.$ac_objext conftest$ac_exeext
37949 if { (ac_try="$ac_link"
37950 case "(($ac_try" in
37951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37952 *) ac_try_echo=$ac_try;;
37954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37955 (eval "$ac_link") 2>conftest.er1
37957 grep -v '^ *+' conftest.er1 >conftest.err
37959 cat conftest.err >&5
37960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37961 (exit $ac_status); } && {
37962 test -z "$ac_c_werror_flag" ||
37963 test ! -s conftest.err
37964 } && test -s conftest$ac_exeext &&
37965 $as_test_x conftest$ac_exeext; then
37966 eval "$as_ac_var=yes"
37968 echo "$as_me: failed program was:" >&5
37969 sed 's/^/| /' conftest.$ac_ext >&5
37971 eval "$as_ac_var=no"
37974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37975 conftest$ac_exeext conftest.$ac_ext
37977 ac_res=`eval echo '${'$as_ac_var'}'`
37978 { echo "$as_me:$LINENO: result: $ac_res" >&5
37979 echo "${ECHO_T}$ac_res" >&6; }
37980 if test `eval echo '${'$as_ac_var'}'` = yes; then
37981 cat >>confdefs.h <<_ACEOF
37982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37990 for ac_func in chflags
37992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37996 echo $ECHO_N "(cached) $ECHO_C" >&6
37998 cat >conftest.$ac_ext <<_ACEOF
38001 cat confdefs.h >>conftest.$ac_ext
38002 cat >>conftest.$ac_ext <<_ACEOF
38003 /* end confdefs.h. */
38004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38006 #define $ac_func innocuous_$ac_func
38008 /* System header to define __stub macros and hopefully few prototypes,
38009 which can conflict with char $ac_func (); below.
38010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38011 <limits.h> exists even on freestanding compilers. */
38014 # include <limits.h>
38016 # include <assert.h>
38021 /* Override any GCC internal prototype to avoid an error.
38022 Use char because int might match the return type of a GCC
38023 builtin and then its argument prototype would still apply. */
38028 /* The GNU C library defines this for functions which it implements
38029 to always fail with ENOSYS. Some functions are actually named
38030 something starting with __ and the normal name is an alias. */
38031 #if defined __stub_$ac_func || defined __stub___$ac_func
38038 return $ac_func ();
38043 rm -f conftest.$ac_objext conftest$ac_exeext
38044 if { (ac_try="$ac_link"
38045 case "(($ac_try" in
38046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38047 *) ac_try_echo=$ac_try;;
38049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38050 (eval "$ac_link") 2>conftest.er1
38052 grep -v '^ *+' conftest.er1 >conftest.err
38054 cat conftest.err >&5
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); } && {
38057 test -z "$ac_c_werror_flag" ||
38058 test ! -s conftest.err
38059 } && test -s conftest$ac_exeext &&
38060 $as_test_x conftest$ac_exeext; then
38061 eval "$as_ac_var=yes"
38063 echo "$as_me: failed program was:" >&5
38064 sed 's/^/| /' conftest.$ac_ext >&5
38066 eval "$as_ac_var=no"
38069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38070 conftest$ac_exeext conftest.$ac_ext
38072 ac_res=`eval echo '${'$as_ac_var'}'`
38073 { echo "$as_me:$LINENO: result: $ac_res" >&5
38074 echo "${ECHO_T}$ac_res" >&6; }
38075 if test `eval echo '${'$as_ac_var'}'` = yes; then
38076 cat >>confdefs.h <<_ACEOF
38077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38088 for ac_func in snprintf vsnprintf gethostid fseeko
38090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38094 echo $ECHO_N "(cached) $ECHO_C" >&6
38096 cat >conftest.$ac_ext <<_ACEOF
38099 cat confdefs.h >>conftest.$ac_ext
38100 cat >>conftest.$ac_ext <<_ACEOF
38101 /* end confdefs.h. */
38102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38104 #define $ac_func innocuous_$ac_func
38106 /* System header to define __stub macros and hopefully few prototypes,
38107 which can conflict with char $ac_func (); below.
38108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38109 <limits.h> exists even on freestanding compilers. */
38112 # include <limits.h>
38114 # include <assert.h>
38119 /* Override any GCC internal prototype to avoid an error.
38120 Use char because int might match the return type of a GCC
38121 builtin and then its argument prototype would still apply. */
38126 /* The GNU C library defines this for functions which it implements
38127 to always fail with ENOSYS. Some functions are actually named
38128 something starting with __ and the normal name is an alias. */
38129 #if defined __stub_$ac_func || defined __stub___$ac_func
38136 return $ac_func ();
38141 rm -f conftest.$ac_objext conftest$ac_exeext
38142 if { (ac_try="$ac_link"
38143 case "(($ac_try" in
38144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38145 *) ac_try_echo=$ac_try;;
38147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38148 (eval "$ac_link") 2>conftest.er1
38150 grep -v '^ *+' conftest.er1 >conftest.err
38152 cat conftest.err >&5
38153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154 (exit $ac_status); } && {
38155 test -z "$ac_c_werror_flag" ||
38156 test ! -s conftest.err
38157 } && test -s conftest$ac_exeext &&
38158 $as_test_x conftest$ac_exeext; then
38159 eval "$as_ac_var=yes"
38161 echo "$as_me: failed program was:" >&5
38162 sed 's/^/| /' conftest.$ac_ext >&5
38164 eval "$as_ac_var=no"
38167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38168 conftest$ac_exeext conftest.$ac_ext
38170 ac_res=`eval echo '${'$as_ac_var'}'`
38171 { echo "$as_me:$LINENO: result: $ac_res" >&5
38172 echo "${ECHO_T}$ac_res" >&6; }
38173 if test `eval echo '${'$as_ac_var'}'` = yes; then
38174 cat >>confdefs.h <<_ACEOF
38175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38182 { echo "$as_me:$LINENO: checking for va_copy" >&5
38183 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38184 if test "${ba_cv_va_copy+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38188 cat >conftest.$ac_ext <<_ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h. */
38195 #include <stdarg.h>
38196 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38197 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38203 call_use_va_copy(1,2,3)
38209 rm -f conftest.$ac_objext conftest$ac_exeext
38210 if { (ac_try="$ac_link"
38211 case "(($ac_try" in
38212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38213 *) ac_try_echo=$ac_try;;
38215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38216 (eval "$ac_link") 2>conftest.er1
38218 grep -v '^ *+' conftest.er1 >conftest.err
38220 cat conftest.err >&5
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); } && {
38223 test -z "$ac_c_werror_flag" ||
38224 test ! -s conftest.err
38225 } && test -s conftest$ac_exeext &&
38226 $as_test_x conftest$ac_exeext; then
38231 echo "$as_me: failed program was:" >&5
38232 sed 's/^/| /' conftest.$ac_ext >&5
38240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38241 conftest$ac_exeext conftest.$ac_ext
38245 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38246 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38247 test $ba_cv_va_copy = yes &&
38248 cat >>confdefs.h <<\_ACEOF
38249 #define HAVE_VA_COPY 1
38257 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38263 echo $ECHO_N "(cached) $ECHO_C" >&6
38265 cat >conftest.$ac_ext <<_ACEOF
38268 cat confdefs.h >>conftest.$ac_ext
38269 cat >>conftest.$ac_ext <<_ACEOF
38270 /* end confdefs.h. */
38271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38273 #define $ac_func innocuous_$ac_func
38275 /* System header to define __stub macros and hopefully few prototypes,
38276 which can conflict with char $ac_func (); below.
38277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38278 <limits.h> exists even on freestanding compilers. */
38281 # include <limits.h>
38283 # include <assert.h>
38288 /* Override any GCC internal prototype to avoid an error.
38289 Use char because int might match the return type of a GCC
38290 builtin and then its argument prototype would still apply. */
38295 /* The GNU C library defines this for functions which it implements
38296 to always fail with ENOSYS. Some functions are actually named
38297 something starting with __ and the normal name is an alias. */
38298 #if defined __stub_$ac_func || defined __stub___$ac_func
38305 return $ac_func ();
38310 rm -f conftest.$ac_objext conftest$ac_exeext
38311 if { (ac_try="$ac_link"
38312 case "(($ac_try" in
38313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38314 *) ac_try_echo=$ac_try;;
38316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38317 (eval "$ac_link") 2>conftest.er1
38319 grep -v '^ *+' conftest.er1 >conftest.err
38321 cat conftest.err >&5
38322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323 (exit $ac_status); } && {
38324 test -z "$ac_c_werror_flag" ||
38325 test ! -s conftest.err
38326 } && test -s conftest$ac_exeext &&
38327 $as_test_x conftest$ac_exeext; then
38328 eval "$as_ac_var=yes"
38330 echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38333 eval "$as_ac_var=no"
38336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38337 conftest$ac_exeext conftest.$ac_ext
38339 ac_res=`eval echo '${'$as_ac_var'}'`
38340 { echo "$as_me:$LINENO: result: $ac_res" >&5
38341 echo "${ECHO_T}$ac_res" >&6; }
38342 if test `eval echo '${'$as_ac_var'}'` = yes; then
38343 cat >>confdefs.h <<_ACEOF
38344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38351 # If resolver functions are not in libc check for -lnsl or -lresolv.
38352 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38353 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38354 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38355 echo $ECHO_N "(cached) $ECHO_C" >&6
38357 cat >conftest.$ac_ext <<_ACEOF
38360 cat confdefs.h >>conftest.$ac_ext
38361 cat >>conftest.$ac_ext <<_ACEOF
38362 /* end confdefs.h. */
38363 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38365 #define gethostbyname_r innocuous_gethostbyname_r
38367 /* System header to define __stub macros and hopefully few prototypes,
38368 which can conflict with char gethostbyname_r (); below.
38369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38370 <limits.h> exists even on freestanding compilers. */
38373 # include <limits.h>
38375 # include <assert.h>
38378 #undef gethostbyname_r
38380 /* Override any GCC internal prototype to avoid an error.
38381 Use char because int might match the return type of a GCC
38382 builtin and then its argument prototype would still apply. */
38386 char gethostbyname_r ();
38387 /* The GNU C library defines this for functions which it implements
38388 to always fail with ENOSYS. Some functions are actually named
38389 something starting with __ and the normal name is an alias. */
38390 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38397 return gethostbyname_r ();
38402 rm -f conftest.$ac_objext conftest$ac_exeext
38403 if { (ac_try="$ac_link"
38404 case "(($ac_try" in
38405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38406 *) ac_try_echo=$ac_try;;
38408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38409 (eval "$ac_link") 2>conftest.er1
38411 grep -v '^ *+' conftest.er1 >conftest.err
38413 cat conftest.err >&5
38414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415 (exit $ac_status); } && {
38416 test -z "$ac_c_werror_flag" ||
38417 test ! -s conftest.err
38418 } && test -s conftest$ac_exeext &&
38419 $as_test_x conftest$ac_exeext; then
38420 ac_cv_func_gethostbyname_r=yes
38422 echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38425 ac_cv_func_gethostbyname_r=no
38428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38429 conftest$ac_exeext conftest.$ac_ext
38431 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38432 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38433 if test $ac_cv_func_gethostbyname_r = yes; then
38434 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38435 echo "${ECHO_T}using libc's resolver" >&6; }
38438 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38439 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38440 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38441 echo $ECHO_N "(cached) $ECHO_C" >&6
38443 ac_check_lib_save_LIBS=$LIBS
38445 cat >conftest.$ac_ext <<_ACEOF
38448 cat confdefs.h >>conftest.$ac_ext
38449 cat >>conftest.$ac_ext <<_ACEOF
38450 /* end confdefs.h. */
38452 /* Override any GCC internal prototype to avoid an error.
38453 Use char because int might match the return type of a GCC
38454 builtin and then its argument prototype would still apply. */
38458 char gethostbyname_r ();
38462 return gethostbyname_r ();
38467 rm -f conftest.$ac_objext conftest$ac_exeext
38468 if { (ac_try="$ac_link"
38469 case "(($ac_try" in
38470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38471 *) ac_try_echo=$ac_try;;
38473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38474 (eval "$ac_link") 2>conftest.er1
38476 grep -v '^ *+' conftest.er1 >conftest.err
38478 cat conftest.err >&5
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } && {
38481 test -z "$ac_c_werror_flag" ||
38482 test ! -s conftest.err
38483 } && test -s conftest$ac_exeext &&
38484 $as_test_x conftest$ac_exeext; then
38485 ac_cv_lib_nsl_gethostbyname_r=yes
38487 echo "$as_me: failed program was:" >&5
38488 sed 's/^/| /' conftest.$ac_ext >&5
38490 ac_cv_lib_nsl_gethostbyname_r=no
38493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38494 conftest$ac_exeext conftest.$ac_ext
38495 LIBS=$ac_check_lib_save_LIBS
38497 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38498 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38499 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38500 cat >>confdefs.h <<_ACEOF
38501 #define HAVE_LIBNSL 1
38509 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38510 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38511 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38512 echo $ECHO_N "(cached) $ECHO_C" >&6
38514 ac_check_lib_save_LIBS=$LIBS
38515 LIBS="-lresolv $LIBS"
38516 cat >conftest.$ac_ext <<_ACEOF
38519 cat confdefs.h >>conftest.$ac_ext
38520 cat >>conftest.$ac_ext <<_ACEOF
38521 /* end confdefs.h. */
38523 /* Override any GCC internal prototype to avoid an error.
38524 Use char because int might match the return type of a GCC
38525 builtin and then its argument prototype would still apply. */
38529 char gethostbyname_r ();
38533 return gethostbyname_r ();
38538 rm -f conftest.$ac_objext conftest$ac_exeext
38539 if { (ac_try="$ac_link"
38540 case "(($ac_try" in
38541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38542 *) ac_try_echo=$ac_try;;
38544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38545 (eval "$ac_link") 2>conftest.er1
38547 grep -v '^ *+' conftest.er1 >conftest.err
38549 cat conftest.err >&5
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); } && {
38552 test -z "$ac_c_werror_flag" ||
38553 test ! -s conftest.err
38554 } && test -s conftest$ac_exeext &&
38555 $as_test_x conftest$ac_exeext; then
38556 ac_cv_lib_resolv_gethostbyname_r=yes
38558 echo "$as_me: failed program was:" >&5
38559 sed 's/^/| /' conftest.$ac_ext >&5
38561 ac_cv_lib_resolv_gethostbyname_r=no
38564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38565 conftest$ac_exeext conftest.$ac_ext
38566 LIBS=$ac_check_lib_save_LIBS
38568 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38569 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38570 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38571 cat >>confdefs.h <<_ACEOF
38572 #define HAVE_LIBRESOLV 1
38575 LIBS="-lresolv $LIBS"
38583 for ac_func in inet_pton
38585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38589 echo $ECHO_N "(cached) $ECHO_C" >&6
38591 cat >conftest.$ac_ext <<_ACEOF
38594 cat confdefs.h >>conftest.$ac_ext
38595 cat >>conftest.$ac_ext <<_ACEOF
38596 /* end confdefs.h. */
38597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38599 #define $ac_func innocuous_$ac_func
38601 /* System header to define __stub macros and hopefully few prototypes,
38602 which can conflict with char $ac_func (); below.
38603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38604 <limits.h> exists even on freestanding compilers. */
38607 # include <limits.h>
38609 # include <assert.h>
38614 /* Override any GCC internal prototype to avoid an error.
38615 Use char because int might match the return type of a GCC
38616 builtin and then its argument prototype would still apply. */
38621 /* The GNU C library defines this for functions which it implements
38622 to always fail with ENOSYS. Some functions are actually named
38623 something starting with __ and the normal name is an alias. */
38624 #if defined __stub_$ac_func || defined __stub___$ac_func
38631 return $ac_func ();
38636 rm -f conftest.$ac_objext conftest$ac_exeext
38637 if { (ac_try="$ac_link"
38638 case "(($ac_try" in
38639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38640 *) ac_try_echo=$ac_try;;
38642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38643 (eval "$ac_link") 2>conftest.er1
38645 grep -v '^ *+' conftest.er1 >conftest.err
38647 cat conftest.err >&5
38648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38649 (exit $ac_status); } && {
38650 test -z "$ac_c_werror_flag" ||
38651 test ! -s conftest.err
38652 } && test -s conftest$ac_exeext &&
38653 $as_test_x conftest$ac_exeext; then
38654 eval "$as_ac_var=yes"
38656 echo "$as_me: failed program was:" >&5
38657 sed 's/^/| /' conftest.$ac_ext >&5
38659 eval "$as_ac_var=no"
38662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38663 conftest$ac_exeext conftest.$ac_ext
38665 ac_res=`eval echo '${'$as_ac_var'}'`
38666 { echo "$as_me:$LINENO: result: $ac_res" >&5
38667 echo "${ECHO_T}$ac_res" >&6; }
38668 if test `eval echo '${'$as_ac_var'}'` = yes; then
38669 cat >>confdefs.h <<_ACEOF
38670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38672 cat >>confdefs.h <<\_ACEOF
38673 #define HAVE_INET_PTON 1
38680 for ac_func in inet_ntop
38682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38686 echo $ECHO_N "(cached) $ECHO_C" >&6
38688 cat >conftest.$ac_ext <<_ACEOF
38691 cat confdefs.h >>conftest.$ac_ext
38692 cat >>conftest.$ac_ext <<_ACEOF
38693 /* end confdefs.h. */
38694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38696 #define $ac_func innocuous_$ac_func
38698 /* System header to define __stub macros and hopefully few prototypes,
38699 which can conflict with char $ac_func (); below.
38700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38701 <limits.h> exists even on freestanding compilers. */
38704 # include <limits.h>
38706 # include <assert.h>
38711 /* Override any GCC internal prototype to avoid an error.
38712 Use char because int might match the return type of a GCC
38713 builtin and then its argument prototype would still apply. */
38718 /* The GNU C library defines this for functions which it implements
38719 to always fail with ENOSYS. Some functions are actually named
38720 something starting with __ and the normal name is an alias. */
38721 #if defined __stub_$ac_func || defined __stub___$ac_func
38728 return $ac_func ();
38733 rm -f conftest.$ac_objext conftest$ac_exeext
38734 if { (ac_try="$ac_link"
38735 case "(($ac_try" in
38736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38737 *) ac_try_echo=$ac_try;;
38739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38740 (eval "$ac_link") 2>conftest.er1
38742 grep -v '^ *+' conftest.er1 >conftest.err
38744 cat conftest.err >&5
38745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); } && {
38747 test -z "$ac_c_werror_flag" ||
38748 test ! -s conftest.err
38749 } && test -s conftest$ac_exeext &&
38750 $as_test_x conftest$ac_exeext; then
38751 eval "$as_ac_var=yes"
38753 echo "$as_me: failed program was:" >&5
38754 sed 's/^/| /' conftest.$ac_ext >&5
38756 eval "$as_ac_var=no"
38759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38760 conftest$ac_exeext conftest.$ac_ext
38762 ac_res=`eval echo '${'$as_ac_var'}'`
38763 { echo "$as_me:$LINENO: result: $ac_res" >&5
38764 echo "${ECHO_T}$ac_res" >&6; }
38765 if test `eval echo '${'$as_ac_var'}'` = yes; then
38766 cat >>confdefs.h <<_ACEOF
38767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38769 cat >>confdefs.h <<\_ACEOF
38770 #define HAVE_INET_NTOP 1
38777 for ac_func in gethostbyname2
38779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38783 echo $ECHO_N "(cached) $ECHO_C" >&6
38785 cat >conftest.$ac_ext <<_ACEOF
38788 cat confdefs.h >>conftest.$ac_ext
38789 cat >>conftest.$ac_ext <<_ACEOF
38790 /* end confdefs.h. */
38791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38793 #define $ac_func innocuous_$ac_func
38795 /* System header to define __stub macros and hopefully few prototypes,
38796 which can conflict with char $ac_func (); below.
38797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38798 <limits.h> exists even on freestanding compilers. */
38801 # include <limits.h>
38803 # include <assert.h>
38808 /* Override any GCC internal prototype to avoid an error.
38809 Use char because int might match the return type of a GCC
38810 builtin and then its argument prototype would still apply. */
38815 /* The GNU C library defines this for functions which it implements
38816 to always fail with ENOSYS. Some functions are actually named
38817 something starting with __ and the normal name is an alias. */
38818 #if defined __stub_$ac_func || defined __stub___$ac_func
38825 return $ac_func ();
38830 rm -f conftest.$ac_objext conftest$ac_exeext
38831 if { (ac_try="$ac_link"
38832 case "(($ac_try" in
38833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38834 *) ac_try_echo=$ac_try;;
38836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38837 (eval "$ac_link") 2>conftest.er1
38839 grep -v '^ *+' conftest.er1 >conftest.err
38841 cat conftest.err >&5
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); } && {
38844 test -z "$ac_c_werror_flag" ||
38845 test ! -s conftest.err
38846 } && test -s conftest$ac_exeext &&
38847 $as_test_x conftest$ac_exeext; then
38848 eval "$as_ac_var=yes"
38850 echo "$as_me: failed program was:" >&5
38851 sed 's/^/| /' conftest.$ac_ext >&5
38853 eval "$as_ac_var=no"
38856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38857 conftest$ac_exeext conftest.$ac_ext
38859 ac_res=`eval echo '${'$as_ac_var'}'`
38860 { echo "$as_me:$LINENO: result: $ac_res" >&5
38861 echo "${ECHO_T}$ac_res" >&6; }
38862 if test `eval echo '${'$as_ac_var'}'` = yes; then
38863 cat >>confdefs.h <<_ACEOF
38864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38866 cat >>confdefs.h <<\_ACEOF
38867 #define HAVE_GETHOSTBYNAME2 1
38874 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
38875 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
38876 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
38877 echo $ECHO_N "(cached) $ECHO_C" >&6
38880 cat >conftest.$ac_ext <<_ACEOF
38883 cat confdefs.h >>conftest.$ac_ext
38884 cat >>conftest.$ac_ext <<_ACEOF
38885 /* end confdefs.h. */
38887 #include <sys/socket.h>
38893 struct sockaddr s; s.sa_len;
38899 rm -f conftest.$ac_objext
38900 if { (ac_try="$ac_compile"
38901 case "(($ac_try" in
38902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38903 *) ac_try_echo=$ac_try;;
38905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38906 (eval "$ac_compile") 2>conftest.er1
38908 grep -v '^ *+' conftest.er1 >conftest.err
38910 cat conftest.err >&5
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); } && {
38913 test -z "$ac_c_werror_flag" ||
38914 test ! -s conftest.err
38915 } && test -s conftest.$ac_objext; then
38917 ac_cv_struct_sockaddr_sa_len=yes
38920 echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38923 ac_cv_struct_sockaddr_sa_len=no
38928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38932 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
38933 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
38935 if test $ac_cv_struct_sockaddr_sa_len = yes; then
38937 cat >>confdefs.h <<\_ACEOF
38938 #define HAVE_SA_LEN 1
38944 for ac_func in strftime
38946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38950 echo $ECHO_N "(cached) $ECHO_C" >&6
38952 cat >conftest.$ac_ext <<_ACEOF
38955 cat confdefs.h >>conftest.$ac_ext
38956 cat >>conftest.$ac_ext <<_ACEOF
38957 /* end confdefs.h. */
38958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38960 #define $ac_func innocuous_$ac_func
38962 /* System header to define __stub macros and hopefully few prototypes,
38963 which can conflict with char $ac_func (); below.
38964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38965 <limits.h> exists even on freestanding compilers. */
38968 # include <limits.h>
38970 # include <assert.h>
38975 /* Override any GCC internal prototype to avoid an error.
38976 Use char because int might match the return type of a GCC
38977 builtin and then its argument prototype would still apply. */
38982 /* The GNU C library defines this for functions which it implements
38983 to always fail with ENOSYS. Some functions are actually named
38984 something starting with __ and the normal name is an alias. */
38985 #if defined __stub_$ac_func || defined __stub___$ac_func
38992 return $ac_func ();
38997 rm -f conftest.$ac_objext conftest$ac_exeext
38998 if { (ac_try="$ac_link"
38999 case "(($ac_try" in
39000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39001 *) ac_try_echo=$ac_try;;
39003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39004 (eval "$ac_link") 2>conftest.er1
39006 grep -v '^ *+' conftest.er1 >conftest.err
39008 cat conftest.err >&5
39009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); } && {
39011 test -z "$ac_c_werror_flag" ||
39012 test ! -s conftest.err
39013 } && test -s conftest$ac_exeext &&
39014 $as_test_x conftest$ac_exeext; then
39015 eval "$as_ac_var=yes"
39017 echo "$as_me: failed program was:" >&5
39018 sed 's/^/| /' conftest.$ac_ext >&5
39020 eval "$as_ac_var=no"
39023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39024 conftest$ac_exeext conftest.$ac_ext
39026 ac_res=`eval echo '${'$as_ac_var'}'`
39027 { echo "$as_me:$LINENO: result: $ac_res" >&5
39028 echo "${ECHO_T}$ac_res" >&6; }
39029 if test `eval echo '${'$as_ac_var'}'` = yes; then
39030 cat >>confdefs.h <<_ACEOF
39031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39035 # strftime is in -lintl on SCO UNIX.
39036 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39037 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39038 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39039 echo $ECHO_N "(cached) $ECHO_C" >&6
39041 ac_check_lib_save_LIBS=$LIBS
39042 LIBS="-lintl $LIBS"
39043 cat >conftest.$ac_ext <<_ACEOF
39046 cat confdefs.h >>conftest.$ac_ext
39047 cat >>conftest.$ac_ext <<_ACEOF
39048 /* end confdefs.h. */
39050 /* Override any GCC internal prototype to avoid an error.
39051 Use char because int might match the return type of a GCC
39052 builtin and then its argument prototype would still apply. */
39060 return strftime ();
39065 rm -f conftest.$ac_objext conftest$ac_exeext
39066 if { (ac_try="$ac_link"
39067 case "(($ac_try" in
39068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39069 *) ac_try_echo=$ac_try;;
39071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39072 (eval "$ac_link") 2>conftest.er1
39074 grep -v '^ *+' conftest.er1 >conftest.err
39076 cat conftest.err >&5
39077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078 (exit $ac_status); } && {
39079 test -z "$ac_c_werror_flag" ||
39080 test ! -s conftest.err
39081 } && test -s conftest$ac_exeext &&
39082 $as_test_x conftest$ac_exeext; then
39083 ac_cv_lib_intl_strftime=yes
39085 echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39088 ac_cv_lib_intl_strftime=no
39091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39092 conftest$ac_exeext conftest.$ac_ext
39093 LIBS=$ac_check_lib_save_LIBS
39095 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39096 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39097 if test $ac_cv_lib_intl_strftime = yes; then
39098 cat >>confdefs.h <<\_ACEOF
39099 #define HAVE_STRFTIME 1
39102 LIBS="-lintl $LIBS"
39109 for ac_func in vprintf
39111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39115 echo $ECHO_N "(cached) $ECHO_C" >&6
39117 cat >conftest.$ac_ext <<_ACEOF
39120 cat confdefs.h >>conftest.$ac_ext
39121 cat >>conftest.$ac_ext <<_ACEOF
39122 /* end confdefs.h. */
39123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39125 #define $ac_func innocuous_$ac_func
39127 /* System header to define __stub macros and hopefully few prototypes,
39128 which can conflict with char $ac_func (); below.
39129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39130 <limits.h> exists even on freestanding compilers. */
39133 # include <limits.h>
39135 # include <assert.h>
39140 /* Override any GCC internal prototype to avoid an error.
39141 Use char because int might match the return type of a GCC
39142 builtin and then its argument prototype would still apply. */
39147 /* The GNU C library defines this for functions which it implements
39148 to always fail with ENOSYS. Some functions are actually named
39149 something starting with __ and the normal name is an alias. */
39150 #if defined __stub_$ac_func || defined __stub___$ac_func
39157 return $ac_func ();
39162 rm -f conftest.$ac_objext conftest$ac_exeext
39163 if { (ac_try="$ac_link"
39164 case "(($ac_try" in
39165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39166 *) ac_try_echo=$ac_try;;
39168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39169 (eval "$ac_link") 2>conftest.er1
39171 grep -v '^ *+' conftest.er1 >conftest.err
39173 cat conftest.err >&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); } && {
39176 test -z "$ac_c_werror_flag" ||
39177 test ! -s conftest.err
39178 } && test -s conftest$ac_exeext &&
39179 $as_test_x conftest$ac_exeext; then
39180 eval "$as_ac_var=yes"
39182 echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39185 eval "$as_ac_var=no"
39188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39189 conftest$ac_exeext conftest.$ac_ext
39191 ac_res=`eval echo '${'$as_ac_var'}'`
39192 { echo "$as_me:$LINENO: result: $ac_res" >&5
39193 echo "${ECHO_T}$ac_res" >&6; }
39194 if test `eval echo '${'$as_ac_var'}'` = yes; then
39195 cat >>confdefs.h <<_ACEOF
39196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39199 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39200 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39201 if test "${ac_cv_func__doprnt+set}" = set; then
39202 echo $ECHO_N "(cached) $ECHO_C" >&6
39204 cat >conftest.$ac_ext <<_ACEOF
39207 cat confdefs.h >>conftest.$ac_ext
39208 cat >>conftest.$ac_ext <<_ACEOF
39209 /* end confdefs.h. */
39210 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39212 #define _doprnt innocuous__doprnt
39214 /* System header to define __stub macros and hopefully few prototypes,
39215 which can conflict with char _doprnt (); below.
39216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39217 <limits.h> exists even on freestanding compilers. */
39220 # include <limits.h>
39222 # include <assert.h>
39227 /* Override any GCC internal prototype to avoid an error.
39228 Use char because int might match the return type of a GCC
39229 builtin and then its argument prototype would still apply. */
39234 /* The GNU C library defines this for functions which it implements
39235 to always fail with ENOSYS. Some functions are actually named
39236 something starting with __ and the normal name is an alias. */
39237 #if defined __stub__doprnt || defined __stub____doprnt
39249 rm -f conftest.$ac_objext conftest$ac_exeext
39250 if { (ac_try="$ac_link"
39251 case "(($ac_try" in
39252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39253 *) ac_try_echo=$ac_try;;
39255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39256 (eval "$ac_link") 2>conftest.er1
39258 grep -v '^ *+' conftest.er1 >conftest.err
39260 cat conftest.err >&5
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } && {
39263 test -z "$ac_c_werror_flag" ||
39264 test ! -s conftest.err
39265 } && test -s conftest$ac_exeext &&
39266 $as_test_x conftest$ac_exeext; then
39267 ac_cv_func__doprnt=yes
39269 echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.$ac_ext >&5
39272 ac_cv_func__doprnt=no
39275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39276 conftest$ac_exeext conftest.$ac_ext
39278 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39279 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39280 if test $ac_cv_func__doprnt = yes; then
39282 cat >>confdefs.h <<\_ACEOF
39283 #define HAVE_DOPRNT 1
39292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39293 # for constant arguments. Useless!
39294 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39295 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39296 if test "${ac_cv_working_alloca_h+set}" = set; then
39297 echo $ECHO_N "(cached) $ECHO_C" >&6
39299 cat >conftest.$ac_ext <<_ACEOF
39302 cat confdefs.h >>conftest.$ac_ext
39303 cat >>conftest.$ac_ext <<_ACEOF
39304 /* end confdefs.h. */
39305 #include <alloca.h>
39309 char *p = (char *) alloca (2 * sizeof (int));
39315 rm -f conftest.$ac_objext conftest$ac_exeext
39316 if { (ac_try="$ac_link"
39317 case "(($ac_try" in
39318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39319 *) ac_try_echo=$ac_try;;
39321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39322 (eval "$ac_link") 2>conftest.er1
39324 grep -v '^ *+' conftest.er1 >conftest.err
39326 cat conftest.err >&5
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); } && {
39329 test -z "$ac_c_werror_flag" ||
39330 test ! -s conftest.err
39331 } && test -s conftest$ac_exeext &&
39332 $as_test_x conftest$ac_exeext; then
39333 ac_cv_working_alloca_h=yes
39335 echo "$as_me: failed program was:" >&5
39336 sed 's/^/| /' conftest.$ac_ext >&5
39338 ac_cv_working_alloca_h=no
39341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39342 conftest$ac_exeext conftest.$ac_ext
39344 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39345 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39346 if test $ac_cv_working_alloca_h = yes; then
39348 cat >>confdefs.h <<\_ACEOF
39349 #define HAVE_ALLOCA_H 1
39354 { echo "$as_me:$LINENO: checking for alloca" >&5
39355 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39356 if test "${ac_cv_func_alloca_works+set}" = set; then
39357 echo $ECHO_N "(cached) $ECHO_C" >&6
39359 cat >conftest.$ac_ext <<_ACEOF
39362 cat confdefs.h >>conftest.$ac_ext
39363 cat >>conftest.$ac_ext <<_ACEOF
39364 /* end confdefs.h. */
39366 # define alloca __builtin_alloca
39369 # include <malloc.h>
39370 # define alloca _alloca
39372 # ifdef HAVE_ALLOCA_H
39373 # include <alloca.h>
39378 # ifndef alloca /* predefined by HP cc +Olibcalls */
39389 char *p = (char *) alloca (1);
39395 rm -f conftest.$ac_objext conftest$ac_exeext
39396 if { (ac_try="$ac_link"
39397 case "(($ac_try" in
39398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39399 *) ac_try_echo=$ac_try;;
39401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39402 (eval "$ac_link") 2>conftest.er1
39404 grep -v '^ *+' conftest.er1 >conftest.err
39406 cat conftest.err >&5
39407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408 (exit $ac_status); } && {
39409 test -z "$ac_c_werror_flag" ||
39410 test ! -s conftest.err
39411 } && test -s conftest$ac_exeext &&
39412 $as_test_x conftest$ac_exeext; then
39413 ac_cv_func_alloca_works=yes
39415 echo "$as_me: failed program was:" >&5
39416 sed 's/^/| /' conftest.$ac_ext >&5
39418 ac_cv_func_alloca_works=no
39421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39422 conftest$ac_exeext conftest.$ac_ext
39424 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39425 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39427 if test $ac_cv_func_alloca_works = yes; then
39429 cat >>confdefs.h <<\_ACEOF
39430 #define HAVE_ALLOCA 1
39434 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39435 # that cause trouble. Some versions do not even contain alloca or
39436 # contain a buggy version. If you still want to use their alloca,
39437 # use ar to extract alloca.o from them instead of compiling alloca.c.
39439 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39441 cat >>confdefs.h <<\_ACEOF
39446 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39447 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39448 if test "${ac_cv_os_cray+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39451 cat >conftest.$ac_ext <<_ACEOF
39454 cat confdefs.h >>conftest.$ac_ext
39455 cat >>conftest.$ac_ext <<_ACEOF
39456 /* end confdefs.h. */
39457 #if defined CRAY && ! defined CRAY2
39464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39465 $EGREP "webecray" >/dev/null 2>&1; then
39473 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39474 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39475 if test $ac_cv_os_cray = yes; then
39476 for ac_func in _getb67 GETB67 getb67; do
39477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39481 echo $ECHO_N "(cached) $ECHO_C" >&6
39483 cat >conftest.$ac_ext <<_ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h. */
39489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39491 #define $ac_func innocuous_$ac_func
39493 /* System header to define __stub macros and hopefully few prototypes,
39494 which can conflict with char $ac_func (); below.
39495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39496 <limits.h> exists even on freestanding compilers. */
39499 # include <limits.h>
39501 # include <assert.h>
39506 /* Override any GCC internal prototype to avoid an error.
39507 Use char because int might match the return type of a GCC
39508 builtin and then its argument prototype would still apply. */
39513 /* The GNU C library defines this for functions which it implements
39514 to always fail with ENOSYS. Some functions are actually named
39515 something starting with __ and the normal name is an alias. */
39516 #if defined __stub_$ac_func || defined __stub___$ac_func
39523 return $ac_func ();
39528 rm -f conftest.$ac_objext conftest$ac_exeext
39529 if { (ac_try="$ac_link"
39530 case "(($ac_try" in
39531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39532 *) ac_try_echo=$ac_try;;
39534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39535 (eval "$ac_link") 2>conftest.er1
39537 grep -v '^ *+' conftest.er1 >conftest.err
39539 cat conftest.err >&5
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); } && {
39542 test -z "$ac_c_werror_flag" ||
39543 test ! -s conftest.err
39544 } && test -s conftest$ac_exeext &&
39545 $as_test_x conftest$ac_exeext; then
39546 eval "$as_ac_var=yes"
39548 echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39551 eval "$as_ac_var=no"
39554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39555 conftest$ac_exeext conftest.$ac_ext
39557 ac_res=`eval echo '${'$as_ac_var'}'`
39558 { echo "$as_me:$LINENO: result: $ac_res" >&5
39559 echo "${ECHO_T}$ac_res" >&6; }
39560 if test `eval echo '${'$as_ac_var'}'` = yes; then
39562 cat >>confdefs.h <<_ACEOF
39563 #define CRAY_STACKSEG_END $ac_func
39572 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39573 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39574 if test "${ac_cv_c_stack_direction+set}" = set; then
39575 echo $ECHO_N "(cached) $ECHO_C" >&6
39577 if test "$cross_compiling" = yes; then
39578 ac_cv_c_stack_direction=0
39580 cat >conftest.$ac_ext <<_ACEOF
39583 cat confdefs.h >>conftest.$ac_ext
39584 cat >>conftest.$ac_ext <<_ACEOF
39585 /* end confdefs.h. */
39586 $ac_includes_default
39588 find_stack_direction ()
39590 static char *addr = 0;
39595 return find_stack_direction ();
39598 return (&dummy > addr) ? 1 : -1;
39604 return find_stack_direction () < 0;
39607 rm -f conftest$ac_exeext
39608 if { (ac_try="$ac_link"
39609 case "(($ac_try" in
39610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39611 *) ac_try_echo=$ac_try;;
39613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39614 (eval "$ac_link") 2>&5
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39618 { (case "(($ac_try" in
39619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39620 *) ac_try_echo=$ac_try;;
39622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39623 (eval "$ac_try") 2>&5
39625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39626 (exit $ac_status); }; }; then
39627 ac_cv_c_stack_direction=1
39629 echo "$as_me: program exited with status $ac_status" >&5
39630 echo "$as_me: failed program was:" >&5
39631 sed 's/^/| /' conftest.$ac_ext >&5
39633 ( exit $ac_status )
39634 ac_cv_c_stack_direction=-1
39636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39641 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39642 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39644 cat >>confdefs.h <<_ACEOF
39645 #define STACK_DIRECTION $ac_cv_c_stack_direction
39651 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
39652 # -lseq on Dynix/PTX, -lgen on Unixware.
39653 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
39654 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
39655 if test "${ac_cv_search_getmntent+set}" = set; then
39656 echo $ECHO_N "(cached) $ECHO_C" >&6
39658 ac_func_search_save_LIBS=$LIBS
39659 cat >conftest.$ac_ext <<_ACEOF
39662 cat confdefs.h >>conftest.$ac_ext
39663 cat >>conftest.$ac_ext <<_ACEOF
39664 /* end confdefs.h. */
39666 /* Override any GCC internal prototype to avoid an error.
39667 Use char because int might match the return type of a GCC
39668 builtin and then its argument prototype would still apply. */
39676 return getmntent ();
39681 for ac_lib in '' sun seq gen; do
39682 if test -z "$ac_lib"; then
39683 ac_res="none required"
39686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39688 rm -f conftest.$ac_objext conftest$ac_exeext
39689 if { (ac_try="$ac_link"
39690 case "(($ac_try" in
39691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692 *) ac_try_echo=$ac_try;;
39694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39695 (eval "$ac_link") 2>conftest.er1
39697 grep -v '^ *+' conftest.er1 >conftest.err
39699 cat conftest.err >&5
39700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701 (exit $ac_status); } && {
39702 test -z "$ac_c_werror_flag" ||
39703 test ! -s conftest.err
39704 } && test -s conftest$ac_exeext &&
39705 $as_test_x conftest$ac_exeext; then
39706 ac_cv_search_getmntent=$ac_res
39708 echo "$as_me: failed program was:" >&5
39709 sed 's/^/| /' conftest.$ac_ext >&5
39714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39716 if test "${ac_cv_search_getmntent+set}" = set; then
39720 if test "${ac_cv_search_getmntent+set}" = set; then
39723 ac_cv_search_getmntent=no
39725 rm conftest.$ac_ext
39726 LIBS=$ac_func_search_save_LIBS
39728 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
39729 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
39730 ac_res=$ac_cv_search_getmntent
39731 if test "$ac_res" != no; then
39732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
39733 ac_cv_func_getmntent=yes
39735 cat >>confdefs.h <<\_ACEOF
39736 #define HAVE_GETMNTENT 1
39740 ac_cv_func_getmntent=no
39744 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
39745 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
39746 if test "${ac_cv_func_closedir_void+set}" = set; then
39747 echo $ECHO_N "(cached) $ECHO_C" >&6
39749 if test "$cross_compiling" = yes; then
39750 ac_cv_func_closedir_void=yes
39752 cat >conftest.$ac_ext <<_ACEOF
39755 cat confdefs.h >>conftest.$ac_ext
39756 cat >>conftest.$ac_ext <<_ACEOF
39757 /* end confdefs.h. */
39758 $ac_includes_default
39759 #include <$ac_header_dirent>
39760 #ifndef __cplusplus
39767 return closedir (opendir (".")) != 0;
39772 rm -f conftest$ac_exeext
39773 if { (ac_try="$ac_link"
39774 case "(($ac_try" in
39775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39776 *) ac_try_echo=$ac_try;;
39778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39779 (eval "$ac_link") 2>&5
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39783 { (case "(($ac_try" in
39784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39785 *) ac_try_echo=$ac_try;;
39787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39788 (eval "$ac_try") 2>&5
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); }; }; then
39792 ac_cv_func_closedir_void=no
39794 echo "$as_me: program exited with status $ac_status" >&5
39795 echo "$as_me: failed program was:" >&5
39796 sed 's/^/| /' conftest.$ac_ext >&5
39798 ( exit $ac_status )
39799 ac_cv_func_closedir_void=yes
39801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39806 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
39807 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
39808 if test $ac_cv_func_closedir_void = yes; then
39810 cat >>confdefs.h <<\_ACEOF
39811 #define CLOSEDIR_VOID 1
39816 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
39817 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
39818 if test "${ac_cv_func_setpgrp_void+set}" = set; then
39819 echo $ECHO_N "(cached) $ECHO_C" >&6
39821 if test "$cross_compiling" = yes; then
39822 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
39823 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
39824 { (exit 1); exit 1; }; }
39826 cat >conftest.$ac_ext <<_ACEOF
39829 cat confdefs.h >>conftest.$ac_ext
39830 cat >>conftest.$ac_ext <<_ACEOF
39831 /* end confdefs.h. */
39832 $ac_includes_default
39836 /* If this system has a BSD-style setpgrp which takes arguments,
39837 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
39838 exit successfully. */
39839 return setpgrp (1,1) != -1;
39844 rm -f conftest$ac_exeext
39845 if { (ac_try="$ac_link"
39846 case "(($ac_try" in
39847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39848 *) ac_try_echo=$ac_try;;
39850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39851 (eval "$ac_link") 2>&5
39853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39855 { (case "(($ac_try" in
39856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39857 *) ac_try_echo=$ac_try;;
39859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39860 (eval "$ac_try") 2>&5
39862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39863 (exit $ac_status); }; }; then
39864 ac_cv_func_setpgrp_void=no
39866 echo "$as_me: program exited with status $ac_status" >&5
39867 echo "$as_me: failed program was:" >&5
39868 sed 's/^/| /' conftest.$ac_ext >&5
39870 ( exit $ac_status )
39871 ac_cv_func_setpgrp_void=yes
39873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39878 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
39879 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
39880 if test $ac_cv_func_setpgrp_void = yes; then
39882 cat >>confdefs.h <<\_ACEOF
39883 #define SETPGRP_VOID 1
39887 # AC_FUNC_FNMATCH dnl use local version
39889 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
39890 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
39891 if test "${ac_cv_lib_intl_gettext+set}" = set; then
39892 echo $ECHO_N "(cached) $ECHO_C" >&6
39894 ac_check_lib_save_LIBS=$LIBS
39895 LIBS="-lintl $LIBS"
39896 cat >conftest.$ac_ext <<_ACEOF
39899 cat confdefs.h >>conftest.$ac_ext
39900 cat >>conftest.$ac_ext <<_ACEOF
39901 /* end confdefs.h. */
39903 /* Override any GCC internal prototype to avoid an error.
39904 Use char because int might match the return type of a GCC
39905 builtin and then its argument prototype would still apply. */
39918 rm -f conftest.$ac_objext conftest$ac_exeext
39919 if { (ac_try="$ac_link"
39920 case "(($ac_try" in
39921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39922 *) ac_try_echo=$ac_try;;
39924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39925 (eval "$ac_link") 2>conftest.er1
39927 grep -v '^ *+' conftest.er1 >conftest.err
39929 cat conftest.err >&5
39930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); } && {
39932 test -z "$ac_c_werror_flag" ||
39933 test ! -s conftest.err
39934 } && test -s conftest$ac_exeext &&
39935 $as_test_x conftest$ac_exeext; then
39936 ac_cv_lib_intl_gettext=yes
39938 echo "$as_me: failed program was:" >&5
39939 sed 's/^/| /' conftest.$ac_ext >&5
39941 ac_cv_lib_intl_gettext=no
39944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39945 conftest$ac_exeext conftest.$ac_ext
39946 LIBS=$ac_check_lib_save_LIBS
39948 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
39949 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
39950 if test $ac_cv_lib_intl_gettext = yes; then
39951 LIBS="$LIBS -lintl"
39956 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
39957 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
39958 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
39959 echo $ECHO_N "(cached) $ECHO_C" >&6
39961 ac_check_lib_save_LIBS=$LIBS
39963 cat >conftest.$ac_ext <<_ACEOF
39966 cat confdefs.h >>conftest.$ac_ext
39967 cat >>conftest.$ac_ext <<_ACEOF
39968 /* end confdefs.h. */
39970 /* Override any GCC internal prototype to avoid an error.
39971 Use char because int might match the return type of a GCC
39972 builtin and then its argument prototype would still apply. */
39980 return getpwnam ();
39985 rm -f conftest.$ac_objext conftest$ac_exeext
39986 if { (ac_try="$ac_link"
39987 case "(($ac_try" in
39988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39989 *) ac_try_echo=$ac_try;;
39991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39992 (eval "$ac_link") 2>conftest.er1
39994 grep -v '^ *+' conftest.er1 >conftest.err
39996 cat conftest.err >&5
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); } && {
39999 test -z "$ac_c_werror_flag" ||
40000 test ! -s conftest.err
40001 } && test -s conftest$ac_exeext &&
40002 $as_test_x conftest$ac_exeext; then
40003 ac_cv_lib_sun_getpwnam=yes
40005 echo "$as_me: failed program was:" >&5
40006 sed 's/^/| /' conftest.$ac_ext >&5
40008 ac_cv_lib_sun_getpwnam=no
40011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40012 conftest$ac_exeext conftest.$ac_ext
40013 LIBS=$ac_check_lib_save_LIBS
40015 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40016 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40017 if test $ac_cv_lib_sun_getpwnam = yes; then
40018 cat >>confdefs.h <<_ACEOF
40019 #define HAVE_LIBSUN 1
40028 for ac_header in zlib.h
40030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40035 echo $ECHO_N "(cached) $ECHO_C" >&6
40037 ac_res=`eval echo '${'$as_ac_Header'}'`
40038 { echo "$as_me:$LINENO: result: $ac_res" >&5
40039 echo "${ECHO_T}$ac_res" >&6; }
40041 # Is the header compilable?
40042 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40044 cat >conftest.$ac_ext <<_ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h. */
40050 $ac_includes_default
40051 #include <$ac_header>
40053 rm -f conftest.$ac_objext
40054 if { (ac_try="$ac_compile"
40055 case "(($ac_try" in
40056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40057 *) ac_try_echo=$ac_try;;
40059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40060 (eval "$ac_compile") 2>conftest.er1
40062 grep -v '^ *+' conftest.er1 >conftest.err
40064 cat conftest.err >&5
40065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 (exit $ac_status); } && {
40067 test -z "$ac_c_werror_flag" ||
40068 test ! -s conftest.err
40069 } && test -s conftest.$ac_objext; then
40070 ac_header_compiler=yes
40072 echo "$as_me: failed program was:" >&5
40073 sed 's/^/| /' conftest.$ac_ext >&5
40075 ac_header_compiler=no
40078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40080 echo "${ECHO_T}$ac_header_compiler" >&6; }
40082 # Is the header present?
40083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40085 cat >conftest.$ac_ext <<_ACEOF
40088 cat confdefs.h >>conftest.$ac_ext
40089 cat >>conftest.$ac_ext <<_ACEOF
40090 /* end confdefs.h. */
40091 #include <$ac_header>
40093 if { (ac_try="$ac_cpp conftest.$ac_ext"
40094 case "(($ac_try" in
40095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40096 *) ac_try_echo=$ac_try;;
40098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40101 grep -v '^ *+' conftest.er1 >conftest.err
40103 cat conftest.err >&5
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); } >/dev/null && {
40106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40107 test ! -s conftest.err
40109 ac_header_preproc=yes
40111 echo "$as_me: failed program was:" >&5
40112 sed 's/^/| /' conftest.$ac_ext >&5
40114 ac_header_preproc=no
40117 rm -f conftest.err conftest.$ac_ext
40118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40119 echo "${ECHO_T}$ac_header_preproc" >&6; }
40121 # So? What about this header?
40122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40128 ac_header_preproc=yes
40131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40149 echo $ECHO_N "(cached) $ECHO_C" >&6
40151 eval "$as_ac_Header=\$ac_header_preproc"
40153 ac_res=`eval echo '${'$as_ac_Header'}'`
40154 { echo "$as_me:$LINENO: result: $ac_res" >&5
40155 echo "${ECHO_T}$ac_res" >&6; }
40158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40159 cat >>confdefs.h <<_ACEOF
40160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40167 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40168 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40169 if test "${ac_cv_lib_z_deflate+set}" = set; then
40170 echo $ECHO_N "(cached) $ECHO_C" >&6
40172 ac_check_lib_save_LIBS=$LIBS
40174 cat >conftest.$ac_ext <<_ACEOF
40177 cat confdefs.h >>conftest.$ac_ext
40178 cat >>conftest.$ac_ext <<_ACEOF
40179 /* end confdefs.h. */
40181 /* Override any GCC internal prototype to avoid an error.
40182 Use char because int might match the return type of a GCC
40183 builtin and then its argument prototype would still apply. */
40196 rm -f conftest.$ac_objext conftest$ac_exeext
40197 if { (ac_try="$ac_link"
40198 case "(($ac_try" in
40199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40200 *) ac_try_echo=$ac_try;;
40202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40203 (eval "$ac_link") 2>conftest.er1
40205 grep -v '^ *+' conftest.er1 >conftest.err
40207 cat conftest.err >&5
40208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); } && {
40210 test -z "$ac_c_werror_flag" ||
40211 test ! -s conftest.err
40212 } && test -s conftest$ac_exeext &&
40213 $as_test_x conftest$ac_exeext; then
40214 ac_cv_lib_z_deflate=yes
40216 echo "$as_me: failed program was:" >&5
40217 sed 's/^/| /' conftest.$ac_ext >&5
40219 ac_cv_lib_z_deflate=no
40222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40223 conftest$ac_exeext conftest.$ac_ext
40224 LIBS=$ac_check_lib_save_LIBS
40226 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40227 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40228 if test $ac_cv_lib_z_deflate = yes; then
40233 if test x$FDLIBS = x-lz; then
40234 cat >>confdefs.h <<\_ACEOF
40235 #define HAVE_LIBZ 1
40242 # Check whether --enable-acl was given.
40243 if test "${enable_acl+set}" = set; then
40244 enableval=$enable_acl;
40245 if test x$enableval = xno; then
40254 have_extended_acl=no
40255 if test x$support_acl = xyes; then
40256 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40257 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40258 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40259 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40260 echo $ECHO_N "(cached) $ECHO_C" >&6
40262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40263 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40265 # Is the header compilable?
40266 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40267 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40268 cat >conftest.$ac_ext <<_ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h. */
40274 $ac_includes_default
40275 #include <sys/acl.h>
40277 rm -f conftest.$ac_objext
40278 if { (ac_try="$ac_compile"
40279 case "(($ac_try" in
40280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40281 *) ac_try_echo=$ac_try;;
40283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40284 (eval "$ac_compile") 2>conftest.er1
40286 grep -v '^ *+' conftest.er1 >conftest.err
40288 cat conftest.err >&5
40289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40290 (exit $ac_status); } && {
40291 test -z "$ac_c_werror_flag" ||
40292 test ! -s conftest.err
40293 } && test -s conftest.$ac_objext; then
40294 ac_header_compiler=yes
40296 echo "$as_me: failed program was:" >&5
40297 sed 's/^/| /' conftest.$ac_ext >&5
40299 ac_header_compiler=no
40302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40304 echo "${ECHO_T}$ac_header_compiler" >&6; }
40306 # Is the header present?
40307 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40308 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40309 cat >conftest.$ac_ext <<_ACEOF
40312 cat confdefs.h >>conftest.$ac_ext
40313 cat >>conftest.$ac_ext <<_ACEOF
40314 /* end confdefs.h. */
40315 #include <sys/acl.h>
40317 if { (ac_try="$ac_cpp conftest.$ac_ext"
40318 case "(($ac_try" in
40319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40320 *) ac_try_echo=$ac_try;;
40322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40325 grep -v '^ *+' conftest.er1 >conftest.err
40327 cat conftest.err >&5
40328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40329 (exit $ac_status); } >/dev/null && {
40330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40331 test ! -s conftest.err
40333 ac_header_preproc=yes
40335 echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40338 ac_header_preproc=no
40341 rm -f conftest.err conftest.$ac_ext
40342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40343 echo "${ECHO_T}$ac_header_preproc" >&6; }
40345 # So? What about this header?
40346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40348 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40349 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40350 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40351 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40352 ac_header_preproc=yes
40355 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40356 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40357 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40358 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40359 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40360 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40361 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40362 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40363 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40364 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40365 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40366 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40370 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40371 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40372 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40373 echo $ECHO_N "(cached) $ECHO_C" >&6
40375 ac_cv_header_sys_acl_h=$ac_header_preproc
40377 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40378 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40381 if test $ac_cv_header_sys_acl_h = yes; then
40383 cat >>confdefs.h <<\_ACEOF
40384 #define HAVE_SYS_ACL_H 1
40390 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40391 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40392 if test "${ac_cv_func_acl_get_file+set}" = set; then
40393 echo $ECHO_N "(cached) $ECHO_C" >&6
40395 cat >conftest.$ac_ext <<_ACEOF
40398 cat confdefs.h >>conftest.$ac_ext
40399 cat >>conftest.$ac_ext <<_ACEOF
40400 /* end confdefs.h. */
40401 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40403 #define acl_get_file innocuous_acl_get_file
40405 /* System header to define __stub macros and hopefully few prototypes,
40406 which can conflict with char acl_get_file (); below.
40407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40408 <limits.h> exists even on freestanding compilers. */
40411 # include <limits.h>
40413 # include <assert.h>
40416 #undef acl_get_file
40418 /* Override any GCC internal prototype to avoid an error.
40419 Use char because int might match the return type of a GCC
40420 builtin and then its argument prototype would still apply. */
40424 char acl_get_file ();
40425 /* The GNU C library defines this for functions which it implements
40426 to always fail with ENOSYS. Some functions are actually named
40427 something starting with __ and the normal name is an alias. */
40428 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40435 return acl_get_file ();
40440 rm -f conftest.$ac_objext conftest$ac_exeext
40441 if { (ac_try="$ac_link"
40442 case "(($ac_try" in
40443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40444 *) ac_try_echo=$ac_try;;
40446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40447 (eval "$ac_link") 2>conftest.er1
40449 grep -v '^ *+' conftest.er1 >conftest.err
40451 cat conftest.err >&5
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); } && {
40454 test -z "$ac_c_werror_flag" ||
40455 test ! -s conftest.err
40456 } && test -s conftest$ac_exeext &&
40457 $as_test_x conftest$ac_exeext; then
40458 ac_cv_func_acl_get_file=yes
40460 echo "$as_me: failed program was:" >&5
40461 sed 's/^/| /' conftest.$ac_ext >&5
40463 ac_cv_func_acl_get_file=no
40466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40467 conftest$ac_exeext conftest.$ac_ext
40469 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40470 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40471 if test $ac_cv_func_acl_get_file = yes; then
40477 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40478 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40479 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40480 echo $ECHO_N "(cached) $ECHO_C" >&6
40482 ac_check_lib_save_LIBS=$LIBS
40484 cat >conftest.$ac_ext <<_ACEOF
40487 cat confdefs.h >>conftest.$ac_ext
40488 cat >>conftest.$ac_ext <<_ACEOF
40489 /* end confdefs.h. */
40491 /* Override any GCC internal prototype to avoid an error.
40492 Use char because int might match the return type of a GCC
40493 builtin and then its argument prototype would still apply. */
40497 char acl_get_file ();
40501 return acl_get_file ();
40506 rm -f conftest.$ac_objext conftest$ac_exeext
40507 if { (ac_try="$ac_link"
40508 case "(($ac_try" in
40509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40510 *) ac_try_echo=$ac_try;;
40512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40513 (eval "$ac_link") 2>conftest.er1
40515 grep -v '^ *+' conftest.er1 >conftest.err
40517 cat conftest.err >&5
40518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40519 (exit $ac_status); } && {
40520 test -z "$ac_c_werror_flag" ||
40521 test ! -s conftest.err
40522 } && test -s conftest$ac_exeext &&
40523 $as_test_x conftest$ac_exeext; then
40524 ac_cv_lib_acl_acl_get_file=yes
40526 echo "$as_me: failed program was:" >&5
40527 sed 's/^/| /' conftest.$ac_ext >&5
40529 ac_cv_lib_acl_acl_get_file=no
40532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40533 conftest$ac_exeext conftest.$ac_ext
40534 LIBS=$ac_check_lib_save_LIBS
40536 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40537 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40538 if test $ac_cv_lib_acl_acl_get_file = yes; then
40541 FDLIBS="-lacl $FDLIBS"
40545 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40546 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40547 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40548 echo $ECHO_N "(cached) $ECHO_C" >&6
40550 ac_check_lib_save_LIBS=$LIBS
40551 LIBS="-lpacl $LIBS"
40552 cat >conftest.$ac_ext <<_ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h. */
40559 /* Override any GCC internal prototype to avoid an error.
40560 Use char because int might match the return type of a GCC
40561 builtin and then its argument prototype would still apply. */
40565 char acl_get_file ();
40569 return acl_get_file ();
40574 rm -f conftest.$ac_objext conftest$ac_exeext
40575 if { (ac_try="$ac_link"
40576 case "(($ac_try" in
40577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40578 *) ac_try_echo=$ac_try;;
40580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40581 (eval "$ac_link") 2>conftest.er1
40583 grep -v '^ *+' conftest.er1 >conftest.err
40585 cat conftest.err >&5
40586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587 (exit $ac_status); } && {
40588 test -z "$ac_c_werror_flag" ||
40589 test ! -s conftest.err
40590 } && test -s conftest$ac_exeext &&
40591 $as_test_x conftest$ac_exeext; then
40592 ac_cv_lib_pacl_acl_get_file=yes
40594 echo "$as_me: failed program was:" >&5
40595 sed 's/^/| /' conftest.$ac_ext >&5
40597 ac_cv_lib_pacl_acl_get_file=no
40600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40601 conftest$ac_exeext conftest.$ac_ext
40602 LIBS=$ac_check_lib_save_LIBS
40604 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40605 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40606 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40609 FDLIBS="-lpacl $FDLIBS"
40613 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40614 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40615 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40616 echo $ECHO_N "(cached) $ECHO_C" >&6
40618 ac_check_lib_save_LIBS=$LIBS
40620 cat >conftest.$ac_ext <<_ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40627 /* Override any GCC internal prototype to avoid an error.
40628 Use char because int might match the return type of a GCC
40629 builtin and then its argument prototype would still apply. */
40637 return acltotext ();
40642 rm -f conftest.$ac_objext conftest$ac_exeext
40643 if { (ac_try="$ac_link"
40644 case "(($ac_try" in
40645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40646 *) ac_try_echo=$ac_try;;
40648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40649 (eval "$ac_link") 2>conftest.er1
40651 grep -v '^ *+' conftest.er1 >conftest.err
40653 cat conftest.err >&5
40654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655 (exit $ac_status); } && {
40656 test -z "$ac_c_werror_flag" ||
40657 test ! -s conftest.err
40658 } && test -s conftest$ac_exeext &&
40659 $as_test_x conftest$ac_exeext; then
40660 ac_cv_lib_sec_acltotext=yes
40662 echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40665 ac_cv_lib_sec_acltotext=no
40668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40669 conftest$ac_exeext conftest.$ac_ext
40670 LIBS=$ac_check_lib_save_LIBS
40672 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
40673 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
40674 if test $ac_cv_lib_sec_acltotext = yes; then
40677 FDLIBS="-lsec $FDLIBS"
40679 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
40680 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
40681 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
40682 echo $ECHO_N "(cached) $ECHO_C" >&6
40684 ac_check_lib_save_LIBS=$LIBS
40686 cat >conftest.$ac_ext <<_ACEOF
40689 cat confdefs.h >>conftest.$ac_ext
40690 cat >>conftest.$ac_ext <<_ACEOF
40691 /* end confdefs.h. */
40693 /* Override any GCC internal prototype to avoid an error.
40694 Use char because int might match the return type of a GCC
40695 builtin and then its argument prototype would still apply. */
40699 char acl_totext ();
40703 return acl_totext ();
40708 rm -f conftest.$ac_objext conftest$ac_exeext
40709 if { (ac_try="$ac_link"
40710 case "(($ac_try" in
40711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40712 *) ac_try_echo=$ac_try;;
40714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40715 (eval "$ac_link") 2>conftest.er1
40717 grep -v '^ *+' conftest.er1 >conftest.err
40719 cat conftest.err >&5
40720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40721 (exit $ac_status); } && {
40722 test -z "$ac_c_werror_flag" ||
40723 test ! -s conftest.err
40724 } && test -s conftest$ac_exeext &&
40725 $as_test_x conftest$ac_exeext; then
40726 ac_cv_lib_sec_acl_totext=yes
40728 echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.$ac_ext >&5
40731 ac_cv_lib_sec_acl_totext=no
40734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40735 conftest$ac_exeext conftest.$ac_ext
40736 LIBS=$ac_check_lib_save_LIBS
40738 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
40739 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
40740 if test $ac_cv_lib_sec_acl_totext = yes; then
40742 have_extended_acl=yes
40763 if test $have_acl = yes; then
40764 cat >>confdefs.h <<\_ACEOF
40770 if test $have_extended_acl = yes; then
40771 cat >>confdefs.h <<\_ACEOF
40772 #define HAVE_EXTENDED_ACL 1
40779 # Check whether --enable-xattr was given.
40780 if test "${enable_xattr+set}" = set; then
40781 enableval=$enable_xattr;
40782 if test x$enableval = xno; then
40791 if test x$support_xattr = xyes; then
40792 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40793 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40794 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40795 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40796 echo $ECHO_N "(cached) $ECHO_C" >&6
40798 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40799 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40801 # Is the header compilable?
40802 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
40803 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
40804 cat >conftest.$ac_ext <<_ACEOF
40807 cat confdefs.h >>conftest.$ac_ext
40808 cat >>conftest.$ac_ext <<_ACEOF
40809 /* end confdefs.h. */
40810 $ac_includes_default
40811 #include <sys/xattr.h>
40813 rm -f conftest.$ac_objext
40814 if { (ac_try="$ac_compile"
40815 case "(($ac_try" in
40816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40817 *) ac_try_echo=$ac_try;;
40819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40820 (eval "$ac_compile") 2>conftest.er1
40822 grep -v '^ *+' conftest.er1 >conftest.err
40824 cat conftest.err >&5
40825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40826 (exit $ac_status); } && {
40827 test -z "$ac_c_werror_flag" ||
40828 test ! -s conftest.err
40829 } && test -s conftest.$ac_objext; then
40830 ac_header_compiler=yes
40832 echo "$as_me: failed program was:" >&5
40833 sed 's/^/| /' conftest.$ac_ext >&5
40835 ac_header_compiler=no
40838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40840 echo "${ECHO_T}$ac_header_compiler" >&6; }
40842 # Is the header present?
40843 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
40844 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
40845 cat >conftest.$ac_ext <<_ACEOF
40848 cat confdefs.h >>conftest.$ac_ext
40849 cat >>conftest.$ac_ext <<_ACEOF
40850 /* end confdefs.h. */
40851 #include <sys/xattr.h>
40853 if { (ac_try="$ac_cpp conftest.$ac_ext"
40854 case "(($ac_try" in
40855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40856 *) ac_try_echo=$ac_try;;
40858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40861 grep -v '^ *+' conftest.er1 >conftest.err
40863 cat conftest.err >&5
40864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865 (exit $ac_status); } >/dev/null && {
40866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40867 test ! -s conftest.err
40869 ac_header_preproc=yes
40871 echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40874 ac_header_preproc=no
40877 rm -f conftest.err conftest.$ac_ext
40878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40879 echo "${ECHO_T}$ac_header_preproc" >&6; }
40881 # So? What about this header?
40882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40884 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
40885 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40886 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
40887 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
40888 ac_header_preproc=yes
40891 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
40892 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
40893 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
40894 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
40895 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
40896 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
40897 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
40898 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
40899 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
40900 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
40901 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
40902 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
40906 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
40907 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
40908 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
40909 echo $ECHO_N "(cached) $ECHO_C" >&6
40911 ac_cv_header_sys_xattr_h=$ac_header_preproc
40913 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
40914 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
40917 if test $ac_cv_header_sys_xattr_h = yes; then
40919 cat >>confdefs.h <<\_ACEOF
40920 #define HAVE_SYS_XATTR_H 1
40929 for ac_func in llistxattr lgetxattr lsetxattr
40931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40935 echo $ECHO_N "(cached) $ECHO_C" >&6
40937 cat >conftest.$ac_ext <<_ACEOF
40940 cat confdefs.h >>conftest.$ac_ext
40941 cat >>conftest.$ac_ext <<_ACEOF
40942 /* end confdefs.h. */
40943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40945 #define $ac_func innocuous_$ac_func
40947 /* System header to define __stub macros and hopefully few prototypes,
40948 which can conflict with char $ac_func (); below.
40949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40950 <limits.h> exists even on freestanding compilers. */
40953 # include <limits.h>
40955 # include <assert.h>
40960 /* Override any GCC internal prototype to avoid an error.
40961 Use char because int might match the return type of a GCC
40962 builtin and then its argument prototype would still apply. */
40967 /* The GNU C library defines this for functions which it implements
40968 to always fail with ENOSYS. Some functions are actually named
40969 something starting with __ and the normal name is an alias. */
40970 #if defined __stub_$ac_func || defined __stub___$ac_func
40977 return $ac_func ();
40982 rm -f conftest.$ac_objext conftest$ac_exeext
40983 if { (ac_try="$ac_link"
40984 case "(($ac_try" in
40985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40986 *) ac_try_echo=$ac_try;;
40988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40989 (eval "$ac_link") 2>conftest.er1
40991 grep -v '^ *+' conftest.er1 >conftest.err
40993 cat conftest.err >&5
40994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40995 (exit $ac_status); } && {
40996 test -z "$ac_c_werror_flag" ||
40997 test ! -s conftest.err
40998 } && test -s conftest$ac_exeext &&
40999 $as_test_x conftest$ac_exeext; then
41000 eval "$as_ac_var=yes"
41002 echo "$as_me: failed program was:" >&5
41003 sed 's/^/| /' conftest.$ac_ext >&5
41005 eval "$as_ac_var=no"
41008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41009 conftest$ac_exeext conftest.$ac_ext
41011 ac_res=`eval echo '${'$as_ac_var'}'`
41012 { echo "$as_me:$LINENO: result: $ac_res" >&5
41013 echo "${ECHO_T}$ac_res" >&6; }
41014 if test `eval echo '${'$as_ac_var'}'` = yes; then
41015 cat >>confdefs.h <<_ACEOF
41016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41020 cat >>confdefs.h <<\_ACEOF
41021 #define HAVE_LLISTXATTR 1
41024 cat >>confdefs.h <<\_ACEOF
41025 #define HAVE_LGETXATTR 1
41028 cat >>confdefs.h <<\_ACEOF
41029 #define HAVE_LSETXATTR 1
41038 for ac_func in listxattr getxattr setxattr
41040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41044 echo $ECHO_N "(cached) $ECHO_C" >&6
41046 cat >conftest.$ac_ext <<_ACEOF
41049 cat confdefs.h >>conftest.$ac_ext
41050 cat >>conftest.$ac_ext <<_ACEOF
41051 /* end confdefs.h. */
41052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41054 #define $ac_func innocuous_$ac_func
41056 /* System header to define __stub macros and hopefully few prototypes,
41057 which can conflict with char $ac_func (); below.
41058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41059 <limits.h> exists even on freestanding compilers. */
41062 # include <limits.h>
41064 # include <assert.h>
41069 /* Override any GCC internal prototype to avoid an error.
41070 Use char because int might match the return type of a GCC
41071 builtin and then its argument prototype would still apply. */
41076 /* The GNU C library defines this for functions which it implements
41077 to always fail with ENOSYS. Some functions are actually named
41078 something starting with __ and the normal name is an alias. */
41079 #if defined __stub_$ac_func || defined __stub___$ac_func
41086 return $ac_func ();
41091 rm -f conftest.$ac_objext conftest$ac_exeext
41092 if { (ac_try="$ac_link"
41093 case "(($ac_try" in
41094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41095 *) ac_try_echo=$ac_try;;
41097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41098 (eval "$ac_link") 2>conftest.er1
41100 grep -v '^ *+' conftest.er1 >conftest.err
41102 cat conftest.err >&5
41103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41104 (exit $ac_status); } && {
41105 test -z "$ac_c_werror_flag" ||
41106 test ! -s conftest.err
41107 } && test -s conftest$ac_exeext &&
41108 $as_test_x conftest$ac_exeext; then
41109 eval "$as_ac_var=yes"
41111 echo "$as_me: failed program was:" >&5
41112 sed 's/^/| /' conftest.$ac_ext >&5
41114 eval "$as_ac_var=no"
41117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41118 conftest$ac_exeext conftest.$ac_ext
41120 ac_res=`eval echo '${'$as_ac_var'}'`
41121 { echo "$as_me:$LINENO: result: $ac_res" >&5
41122 echo "${ECHO_T}$ac_res" >&6; }
41123 if test `eval echo '${'$as_ac_var'}'` = yes; then
41124 cat >>confdefs.h <<_ACEOF
41125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41129 cat >>confdefs.h <<\_ACEOF
41130 #define HAVE_LISTXATTR 1
41133 cat >>confdefs.h <<\_ACEOF
41134 #define HAVE_GETXATTR 1
41137 cat >>confdefs.h <<\_ACEOF
41138 #define HAVE_SETXATTR 1
41152 if test $have_xattr = yes; then
41153 cat >>confdefs.h <<\_ACEOF
41154 #define HAVE_XATTR 1
41161 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
41162 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
41163 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
41164 echo $ECHO_N "(cached) $ECHO_C" >&6
41166 ac_check_lib_save_LIBS=$LIBS
41167 LIBS="-lpthread $LIBS"
41168 cat >conftest.$ac_ext <<_ACEOF
41171 cat confdefs.h >>conftest.$ac_ext
41172 cat >>conftest.$ac_ext <<_ACEOF
41173 /* end confdefs.h. */
41175 /* Override any GCC internal prototype to avoid an error.
41176 Use char because int might match the return type of a GCC
41177 builtin and then its argument prototype would still apply. */
41181 char pthread_create ();
41185 return pthread_create ();
41190 rm -f conftest.$ac_objext conftest$ac_exeext
41191 if { (ac_try="$ac_link"
41192 case "(($ac_try" in
41193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41194 *) ac_try_echo=$ac_try;;
41196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41197 (eval "$ac_link") 2>conftest.er1
41199 grep -v '^ *+' conftest.er1 >conftest.err
41201 cat conftest.err >&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); } && {
41204 test -z "$ac_c_werror_flag" ||
41205 test ! -s conftest.err
41206 } && test -s conftest$ac_exeext &&
41207 $as_test_x conftest$ac_exeext; then
41208 ac_cv_lib_pthread_pthread_create=yes
41210 echo "$as_me: failed program was:" >&5
41211 sed 's/^/| /' conftest.$ac_ext >&5
41213 ac_cv_lib_pthread_pthread_create=no
41216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41217 conftest$ac_exeext conftest.$ac_ext
41218 LIBS=$ac_check_lib_save_LIBS
41220 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
41221 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
41222 if test $ac_cv_lib_pthread_pthread_create = yes; then
41223 PTHREAD_LIB="-lpthread"
41226 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
41227 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
41228 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
41229 echo $ECHO_N "(cached) $ECHO_C" >&6
41231 ac_check_lib_save_LIBS=$LIBS
41232 LIBS="-lpthreads $LIBS"
41233 cat >conftest.$ac_ext <<_ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h. */
41240 /* Override any GCC internal prototype to avoid an error.
41241 Use char because int might match the return type of a GCC
41242 builtin and then its argument prototype would still apply. */
41246 char pthread_create ();
41250 return pthread_create ();
41255 rm -f conftest.$ac_objext conftest$ac_exeext
41256 if { (ac_try="$ac_link"
41257 case "(($ac_try" in
41258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41259 *) ac_try_echo=$ac_try;;
41261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41262 (eval "$ac_link") 2>conftest.er1
41264 grep -v '^ *+' conftest.er1 >conftest.err
41266 cat conftest.err >&5
41267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268 (exit $ac_status); } && {
41269 test -z "$ac_c_werror_flag" ||
41270 test ! -s conftest.err
41271 } && test -s conftest$ac_exeext &&
41272 $as_test_x conftest$ac_exeext; then
41273 ac_cv_lib_pthreads_pthread_create=yes
41275 echo "$as_me: failed program was:" >&5
41276 sed 's/^/| /' conftest.$ac_ext >&5
41278 ac_cv_lib_pthreads_pthread_create=no
41281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41282 conftest$ac_exeext conftest.$ac_ext
41283 LIBS=$ac_check_lib_save_LIBS
41285 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
41286 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
41287 if test $ac_cv_lib_pthreads_pthread_create = yes; then
41288 PTHREAD_LIB="-lpthreads"
41291 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
41292 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
41293 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
41294 echo $ECHO_N "(cached) $ECHO_C" >&6
41296 ac_check_lib_save_LIBS=$LIBS
41298 cat >conftest.$ac_ext <<_ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h. */
41305 /* Override any GCC internal prototype to avoid an error.
41306 Use char because int might match the return type of a GCC
41307 builtin and then its argument prototype would still apply. */
41311 char pthread_create ();
41315 return pthread_create ();
41320 rm -f conftest.$ac_objext conftest$ac_exeext
41321 if { (ac_try="$ac_link"
41322 case "(($ac_try" in
41323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41324 *) ac_try_echo=$ac_try;;
41326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41327 (eval "$ac_link") 2>conftest.er1
41329 grep -v '^ *+' conftest.er1 >conftest.err
41331 cat conftest.err >&5
41332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41333 (exit $ac_status); } && {
41334 test -z "$ac_c_werror_flag" ||
41335 test ! -s conftest.err
41336 } && test -s conftest$ac_exeext &&
41337 $as_test_x conftest$ac_exeext; then
41338 ac_cv_lib_c_r_pthread_create=yes
41340 echo "$as_me: failed program was:" >&5
41341 sed 's/^/| /' conftest.$ac_ext >&5
41343 ac_cv_lib_c_r_pthread_create=no
41346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41347 conftest$ac_exeext conftest.$ac_ext
41348 LIBS=$ac_check_lib_save_LIBS
41350 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
41351 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
41352 if test $ac_cv_lib_c_r_pthread_create = yes; then
41353 PTHREAD_LIB="-lc_r"
41356 { echo "$as_me:$LINENO: checking for pthread_create" >&5
41357 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
41358 if test "${ac_cv_func_pthread_create+set}" = set; then
41359 echo $ECHO_N "(cached) $ECHO_C" >&6
41361 cat >conftest.$ac_ext <<_ACEOF
41364 cat confdefs.h >>conftest.$ac_ext
41365 cat >>conftest.$ac_ext <<_ACEOF
41366 /* end confdefs.h. */
41367 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
41368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41369 #define pthread_create innocuous_pthread_create
41371 /* System header to define __stub macros and hopefully few prototypes,
41372 which can conflict with char pthread_create (); below.
41373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41374 <limits.h> exists even on freestanding compilers. */
41377 # include <limits.h>
41379 # include <assert.h>
41382 #undef pthread_create
41384 /* Override any GCC internal prototype to avoid an error.
41385 Use char because int might match the return type of a GCC
41386 builtin and then its argument prototype would still apply. */
41390 char pthread_create ();
41391 /* The GNU C library defines this for functions which it implements
41392 to always fail with ENOSYS. Some functions are actually named
41393 something starting with __ and the normal name is an alias. */
41394 #if defined __stub_pthread_create || defined __stub___pthread_create
41401 return pthread_create ();
41406 rm -f conftest.$ac_objext conftest$ac_exeext
41407 if { (ac_try="$ac_link"
41408 case "(($ac_try" in
41409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41410 *) ac_try_echo=$ac_try;;
41412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41413 (eval "$ac_link") 2>conftest.er1
41415 grep -v '^ *+' conftest.er1 >conftest.err
41417 cat conftest.err >&5
41418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41419 (exit $ac_status); } && {
41420 test -z "$ac_c_werror_flag" ||
41421 test ! -s conftest.err
41422 } && test -s conftest$ac_exeext &&
41423 $as_test_x conftest$ac_exeext; then
41424 ac_cv_func_pthread_create=yes
41426 echo "$as_me: failed program was:" >&5
41427 sed 's/^/| /' conftest.$ac_ext >&5
41429 ac_cv_func_pthread_create=no
41432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41433 conftest$ac_exeext conftest.$ac_ext
41435 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
41436 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
41452 cat >>confdefs.h <<\_ACEOF
41457 CFLAGS=${CFLAGS--O}
41459 if test x$have_gcc = xyes ; then
41460 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41461 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
41463 LDFLAGS=${LDFLAGS--O}
41464 DB_LIBS="${SQL_LFLAGS}"
41465 CPPFLAGS="$CPPFLAGS"
41492 PFILES="platforms/Makefile"
41496 hostname=`uname -n | cut -d '.' -f 1`
41497 if test x${hostname} = x ; then
41498 hostname="localhost"
41500 case "$DISTNAME" in
41503 PSCMD="ps -e -o pid,comm"
41504 PFILES="${PFILES} \
41505 platforms/aix/Makefile"
41506 TAPEDRIVE="/dev/rmt0.1"
41510 PTHREAD_LIB="-lpthread -lexc"
41511 if test "${CC}" = "gcc" ; then
41518 TAPEDRIVE="/dev/nrmt0"
41521 DISTVER=`uname -a |awk '{print $3}'`
41522 TAPEDRIVE="/dev/nrmt0"
41523 PTHREAD_LIB="-pthread"
41524 CFLAGS="${CFLAGS} -pthread"
41525 PSCMD="ps -ax -o pid,command"
41528 PFILES="${PFILES} \
41529 platforms/bsdi/Makefile \
41530 platforms/bsdi/bacula-fd \
41531 platforms/bsdi/bacula-sd \
41532 platforms/bsdi/bacula-dir"
41533 largefile_support="yes"
41536 DISTVER=`uname -a |awk '{print $3}'`
41537 TAPEDRIVE="/dev/nrst0"
41539 WCFLAGS="-mwindows"
41540 WLDFLAGS="-mwindows"
41544 TAPEDRIVE="/dev/nst0"
41545 PSCMD="ps -e -o pid,command"
41547 PFILES="${PFILES} \
41548 platforms/darwin/Makefile"
41551 ping -c 1 $hostname 2>&1 1>/dev/null
41552 if test ! $? = 0; then
41553 hostname="localhost"
41555 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
41558 DISTVER=`cat /etc/debian_version`
41559 if test -f /etc/lsb-release ; then
41561 if test "x$DISTRIB_ID" != "x" ; then
41562 DISTNAME=$DISTRIB_ID
41564 if test "x$DISTRIB_RELEASE" != "x" ; then
41565 DISTVER=$DISTRIB_RELEASE
41568 if test "$DISTNAME" = "Ubuntu" ; then
41571 TAPEDRIVE="/dev/nst0"
41572 PSCMD="ps -e -o pid,command"
41573 if test "$DISTNAME" = "ubuntu" ; then
41574 PFILES="${PFILES} \
41575 platforms/ubuntu/Makefile \
41576 platforms/ubuntu/bacula-fd \
41577 platforms/ubuntu/bacula-sd \
41578 platforms/ubuntu/bacula-dir"
41580 PFILES="${PFILES} \
41581 platforms/debian/Makefile \
41582 platforms/debian/bacula-fd \
41583 platforms/debian/bacula-sd \
41584 platforms/debian/bacula-dir"
41588 ping -c 1 $hostname 2>&1 1>/dev/null
41589 if test ! $? = 0; then
41590 hostname="localhost"
41592 DISTVER=`uname -a |awk '{print $3}'`
41593 VER=`echo $DISTVER | cut -c 1`
41594 if test x$VER = x4 ; then
41595 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
41596 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
41600 TAPEDRIVE="/dev/nrsa0"
41601 PSCMD="ps -ax -o pid,command"
41602 PFILES="${PFILES} \
41603 platforms/freebsd/Makefile \
41604 platforms/freebsd/bacula-fd \
41605 platforms/freebsd/bacula-sd \
41606 platforms/freebsd/bacula-dir"
41607 largefile_support="yes"
41610 PSCMD="UNIX95=1; ps -e -o pid,comm"
41611 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
41613 TAPEDRIVE="/dev/rmt/0hnb"
41614 PTHREAD_LIB="-lpthread"
41615 cat >>confdefs.h <<\_ACEOF
41616 #define _INCLUDE_LONGLONG 1
41622 TAPEDRIVE="/dev/rmt/0cbn"
41623 PSCMD="ps -e -o pid,comm"
41624 PFILES="${PFILES} \
41625 platforms/irix/Makefile \
41626 platforms/irix/bacula-fd \
41627 platforms/irix/bacula-sd \
41628 platforms/irix/bacula-dir"
41631 DISTVER=`uname -a |awk '{print $3}'`
41634 TAPEDRIVE="/dev/nrst0"
41635 PSCMD="ps -ax -o pid,command"
41636 PTHREAD_LIB="-pthread"
41637 CFLAGS="${CFLAGS} -pthread"
41640 DISTVER=`uname -a |awk '{print $3}'`
41643 TAPEDRIVE="/dev/nrst0"
41644 PSCMD="ps -ax -o pid,command"
41645 PTHREAD_LIB="-pthread"
41646 CFLAGS="${CFLAGS} -pthread"
41647 PFILES="${PFILES} \
41648 platforms/openbsd/Makefile \
41649 platforms/openbsd/bacula-fd \
41650 platforms/openbsd/bacula-sd \
41651 platforms/openbsd/bacula-dir"
41654 ping -c 1 $hostname 2>&1 1>/dev/null
41655 if test ! $? = 0; then
41656 hostname="localhost"
41658 if test -f /etc/whitebox-release ; then
41659 f=/etc/whitebox-release
41661 f=/etc/redhat-release
41663 if test `cat $f | grep release |\
41664 cut -f 3 -d ' '`x = "Enterprise"x ; then
41665 DISTVER="Enterprise "`cat $f | grep release |\
41668 DISTVER=`cat /etc/redhat-release | grep release |\
41671 TAPEDRIVE="/dev/nst0"
41672 PSCMD="ps -e -o pid,command"
41673 PFILES="${PFILES} \
41674 platforms/redhat/Makefile \
41675 platforms/redhat/bacula-fd \
41676 platforms/redhat/bacula-sd \
41677 platforms/redhat/bacula-dir \
41678 platforms/redhat/bacula.spec \
41682 ping -c 1 $hostname 2>&1 1>/dev/null
41683 if test ! $? = 0; then
41684 hostname="localhost"
41686 DISTVER=`cat /etc/mandrake-release | grep release |\
41688 TAPEDRIVE="/dev/nst0"
41689 PSCMD="ps -e -o pid,command"
41690 PFILES="${PFILES} \
41691 platforms/mandrake/Makefile \
41692 platforms/mandrake/bacula-fd \
41693 platforms/mandrake/bacula-sd \
41694 platforms/mandrake/bacula-dir \
41695 platforms/mandrake/bacula.spec \
41699 ping -c 1 $hostname 2>&1 1>/dev/null
41700 if test ! $? = 0; then
41701 hostname="localhost"
41703 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
41704 TAPEDRIVE="/dev/nst0"
41705 PSCMD="ps -e -o pid,command"
41706 PFILES="${PFILES} \
41707 platforms/gentoo/Makefile \
41708 platforms/gentoo/bacula-init \
41709 platforms/gentoo/bacula-fd \
41710 platforms/gentoo/bacula-sd \
41711 platforms/gentoo/bacula-dir"
41714 ping -c 1 $hostname 2>&1 1>/dev/null
41715 if test ! $? = 0; then
41716 hostname="localhost"
41718 DISTVER=`cat /etc/slackware-version`
41719 TAPEDRIVE="/dev/nst0"
41720 PSCMD="ps -e -o pid,command"
41721 PFILES="${PFILES} \
41722 platforms/slackware/Makefile \
41723 platforms/slackware/rc.bacula-fd \
41724 platforms/slackware/rc.bacula-sd \
41725 platforms/slackware/rc.bacula-dir\
41726 platforms/slackware/functions.bacula"
41730 TAPEDRIVE="/dev/rmt/0cbn"
41731 PSCMD="ps -e -o pid,comm"
41732 PFILES="${PFILES} \
41733 platforms/solaris/Makefile \
41734 platforms/solaris/bacula-fd \
41735 platforms/solaris/bacula-sd \
41736 platforms/solaris/bacula-dir"
41737 if test x$DISTVER = x5.6 ; then
41738 cat >>confdefs.h <<\_ACEOF
41739 #define HAVE_OLD_SOCKOPT 1
41743 LIBS="$LIBS -lresolv"
41746 ping -c 1 $hostname 2>&1 1>/dev/null
41747 if test ! $? = 0; then
41748 hostname="localhost"
41750 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
41752 TAPEDRIVE="/dev/nst0"
41753 PSCMD="ps -e -o pid,command"
41754 PFILES="${PFILES} \
41755 platforms/suse/Makefile \
41756 platforms/suse/bacula-fd \
41757 platforms/suse/bacula-sd \
41758 platforms/suse/bacula-dir \
41759 platforms/suse/bacula \
41760 platforms/suse/bacula.spec"
41763 ping -c 1 $hostname 2>&1 1>/dev/null
41764 if test ! $? = 0; then
41765 hostname="localhost"
41769 TAPEDRIVE="/dev/nst0"
41770 PSCMD="ps -e -o pid,command"
41771 PFILES="${PFILES} \
41772 platforms/suse/Makefile \
41773 platforms/suse/bacula-fd \
41774 platforms/suse/bacula-sd \
41775 platforms/suse/bacula-dir"
41779 TAPEDRIVE="/dev/nst0"
41782 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
41788 LIBS="$PTHREAD_LIB $LIBS"
41790 cat >>confdefs.h <<_ACEOF
41794 cat >>confdefs.h <<_ACEOF
41805 MCOMMON=./autoconf/Make.common
41808 if test "x${subsysdir}" = "x${sbindir}" ; then
41811 echo "You have set both --sbindir and --with-subsys-dir"
41812 echo " equal to: ${subsysdir} "
41813 echo "This is not permitted. Please reconfigure."
41815 echo "Aborting configuration ..."
41821 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"
41823 ac_config_commands="$ac_config_commands default"
41825 cat >confcache <<\_ACEOF
41826 # This file is a shell script that caches the results of configure
41827 # tests run on this system so they can be shared between configure
41828 # scripts and configure runs, see configure's option --config-cache.
41829 # It is not useful on other systems. If it contains results you don't
41830 # want to keep, you may remove or edit it.
41832 # config.status only pays attention to the cache file if you give it
41833 # the --recheck option to rerun configure.
41835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41837 # following values.
41841 # The following way of writing the cache mishandles newlines in values,
41842 # but we know of no workaround that is simple, portable, and efficient.
41843 # So, we kill variables containing newlines.
41844 # Ultrix sh set writes to stderr and can't be redirected directly,
41845 # and sets the high bit in the cache file unless we assign to the vars.
41847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41848 eval ac_val=\$$ac_var
41852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41856 _ | IFS | as_nl) ;; #(
41857 *) $as_unset $ac_var ;;
41863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41864 *${as_nl}ac_space=\ *)
41865 # `set' does not quote correctly, so add quotes (double-quote
41866 # substitution turns \\\\ into \\, and sed turns \\ into \).
41869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41872 # `set' quotes correctly as required by POSIX, so do not add quotes.
41873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41887 if test -w "$cache_file"; then
41888 test "x$cache_file" != "x/dev/null" &&
41889 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41890 echo "$as_me: updating cache $cache_file" >&6;}
41891 cat confcache >$cache_file
41893 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41900 # Let make expand exec_prefix.
41901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41903 DEFS=-DHAVE_CONFIG_H
41907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41908 # 1. Remove the extension, and $U if already installed.
41909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41910 ac_i=`echo "$ac_i" | sed "$ac_script"`
41911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41912 # will be set to the directory where LIBOBJS objects are built.
41913 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41914 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41916 LIBOBJS=$ac_libobjs
41918 LTLIBOBJS=$ac_ltlibobjs
41922 : ${CONFIG_STATUS=./config.status}
41923 ac_clean_files_save=$ac_clean_files
41924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41925 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41926 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41927 cat >$CONFIG_STATUS <<_ACEOF
41929 # Generated by $as_me.
41930 # Run this file to recreate the current configuration.
41931 # Compiler output produced by configure, useful for debugging
41932 # configure, is in config.log if it exists.
41935 ac_cs_recheck=false
41937 SHELL=\${CONFIG_SHELL-$SHELL}
41940 cat >>$CONFIG_STATUS <<\_ACEOF
41941 ## --------------------- ##
41942 ## M4sh Initialization. ##
41943 ## --------------------- ##
41945 # Be more Bourne compatible
41946 DUALCASE=1; export DUALCASE # for MKS sh
41947 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41950 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41951 # is contrary to our usage. Disable this feature.
41952 alias -g '${1+"$@"}'='"$@"'
41953 setopt NO_GLOB_SUBST
41955 case `(set -o) 2>/dev/null` in
41956 *posix*) set -o posix ;;
41965 # Avoid depending upon Character Ranges.
41966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41969 as_cr_digits='0123456789'
41970 as_cr_alnum=$as_cr_Letters$as_cr_digits
41972 # The user is always right.
41973 if test "${PATH_SEPARATOR+set}" != set; then
41974 echo "#! /bin/sh" >conf$$.sh
41975 echo "exit 0" >>conf$$.sh
41977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41985 # Support unset when possible.
41986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41994 # We need space, tab and new line, in precisely that order. Quoting is
41995 # there to prevent editors from complaining about space-tab.
41996 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41997 # splitting by setting IFS to empty value.)
42002 # Find who we are. Look in the path if we contain no directory separator.
42004 *[\\/]* ) as_myself=$0 ;;
42005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42006 for as_dir in $PATH
42009 test -z "$as_dir" && as_dir=.
42010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42016 # We did not find ourselves, most probably we were run as `sh COMMAND'
42017 # in which case we are not to be found in the path.
42018 if test "x$as_myself" = x; then
42021 if test ! -f "$as_myself"; then
42022 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42023 { (exit 1); exit 1; }
42026 # Work around bugs in pre-3.0 UWIN ksh.
42027 for as_var in ENV MAIL MAILPATH
42028 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42038 LC_TELEPHONE LC_TIME
42040 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42041 eval $as_var=C; export $as_var
42043 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
42047 # Required to use basename.
42048 if expr a : '\(a\)' >/dev/null 2>&1 &&
42049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42055 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42056 as_basename=basename
42062 # Name of the executable.
42063 as_me=`$as_basename -- "$0" ||
42064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42065 X"$0" : 'X\(//\)$' \| \
42066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42068 sed '/^.*\/\([^/][^/]*\)\/*$/{
42087 as_lineno_1=$LINENO
42088 as_lineno_2=$LINENO
42089 test "x$as_lineno_1" != "x$as_lineno_2" &&
42090 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
42092 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42093 # uniformly replaced by the line number. The first 'sed' inserts a
42094 # line-number line after each line using $LINENO; the second 'sed'
42095 # does the real work. The second script uses 'N' to pair each
42096 # line-number line with the line containing $LINENO, and appends
42097 # trailing '-' during substitution so that $LINENO is not a special
42098 # case at line end.
42099 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42100 # scripts with optimization help from Paolo Bonzini. Blame Lee
42101 # E. McMahon (1931-1989) for sed's syntax. :-)
42113 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42116 ' >$as_me.lineno &&
42117 chmod +x "$as_me.lineno" ||
42118 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
42119 { (exit 1); exit 1; }; }
42121 # Don't try to exec as it changes $[0], causing all sort of problems
42122 # (the dirname of $[0] is not the place where we might find the
42123 # original and so on. Autoconf is especially sensitive to this).
42124 . "./$as_me.lineno"
42125 # Exit status is that of the last command.
42130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42136 ECHO_C= ECHO_N= ECHO_T=
42137 case `echo -n x` in
42139 case `echo 'x\c'` in
42140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42147 if expr a : '\(a\)' >/dev/null 2>&1 &&
42148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42154 rm -f conf$$ conf$$.exe conf$$.file
42155 if test -d conf$$.dir; then
42156 rm -f conf$$.dir/conf$$.file
42162 if ln -s conf$$.file conf$$ 2>/dev/null; then
42164 # ... but there are two gotchas:
42165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42167 # In both cases, we have to default to `cp -p'.
42168 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42170 elif ln conf$$.file conf$$ 2>/dev/null; then
42175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42176 rmdir conf$$.dir 2>/dev/null
42178 if mkdir -p . 2>/dev/null; then
42181 test -d ./-p && rmdir ./-p
42185 if test -x / >/dev/null 2>&1; then
42186 as_test_x='test -x'
42188 if ls -dL / >/dev/null 2>&1; then
42195 if test -d "$1"; then
42201 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
42202 ???[sx]*):;;*)false;;esac;fi
42206 as_executable_p=$as_test_x
42208 # Sed expression to map a string onto a valid CPP name.
42209 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42211 # Sed expression to map a string onto a valid variable name.
42212 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42217 # Save the log message, to keep $[0] and so on meaningful, and to
42218 # report actual input values of CONFIG_FILES etc. instead of their
42219 # values after options handling.
42221 This file was extended by $as_me, which was
42222 generated by GNU Autoconf 2.61. Invocation command line was
42224 CONFIG_FILES = $CONFIG_FILES
42225 CONFIG_HEADERS = $CONFIG_HEADERS
42226 CONFIG_LINKS = $CONFIG_LINKS
42227 CONFIG_COMMANDS = $CONFIG_COMMANDS
42230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42235 cat >>$CONFIG_STATUS <<_ACEOF
42236 # Files that config.status was made for.
42237 config_files="$ac_config_files"
42238 config_headers="$ac_config_headers"
42239 config_commands="$ac_config_commands"
42243 cat >>$CONFIG_STATUS <<\_ACEOF
42245 \`$as_me' instantiates files from templates according to the
42246 current configuration.
42248 Usage: $0 [OPTIONS] [FILE]...
42250 -h, --help print this help, then exit
42251 -V, --version print version number and configuration settings, then exit
42252 -q, --quiet do not print progress messages
42253 -d, --debug don't remove temporary files
42254 --recheck update $as_me by reconfiguring in the same conditions
42255 --file=FILE[:TEMPLATE]
42256 instantiate the configuration file FILE
42257 --header=FILE[:TEMPLATE]
42258 instantiate the configuration header FILE
42260 Configuration files:
42263 Configuration headers:
42266 Configuration commands:
42269 Report bugs to <bug-autoconf@gnu.org>."
42272 cat >>$CONFIG_STATUS <<_ACEOF
42275 configured by $0, generated by GNU Autoconf 2.61,
42276 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42278 Copyright (C) 2006 Free Software Foundation, Inc.
42279 This config.status script is free software; the Free Software Foundation
42280 gives unlimited permission to copy, distribute and modify it."
42287 cat >>$CONFIG_STATUS <<\_ACEOF
42288 # If no file are specified by the user, then we need to provide default
42289 # value. By we need to know if files were specified by the user.
42295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42307 # Handling of the options.
42308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42311 echo "$ac_cs_version"; exit ;;
42312 --debug | --debu | --deb | --de | --d | -d )
42314 --file | --fil | --fi | --f )
42316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42317 ac_need_defaults=false;;
42318 --header | --heade | --head | --hea )
42320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42321 ac_need_defaults=false;;
42323 # Conflict between --help and --header
42324 { echo "$as_me: error: ambiguous option: $1
42325 Try \`$0 --help' for more information." >&2
42326 { (exit 1); exit 1; }; };;
42327 --help | --hel | -h )
42328 echo "$ac_cs_usage"; exit ;;
42329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42333 # This is an error.
42334 -*) { echo "$as_me: error: unrecognized option: $1
42335 Try \`$0 --help' for more information." >&2
42336 { (exit 1); exit 1; }; } ;;
42338 *) ac_config_targets="$ac_config_targets $1"
42339 ac_need_defaults=false ;;
42345 ac_configure_extra_args=
42347 if $ac_cs_silent; then
42349 ac_configure_extra_args="$ac_configure_extra_args --silent"
42353 cat >>$CONFIG_STATUS <<_ACEOF
42354 if \$ac_cs_recheck; then
42355 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42356 CONFIG_SHELL=$SHELL
42357 export CONFIG_SHELL
42358 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42362 cat >>$CONFIG_STATUS <<\_ACEOF
42366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42367 ## Running $as_me. ##
42373 cat >>$CONFIG_STATUS <<_ACEOF
42379 # The HP-UX ksh and POSIX shell print the target directory to stdout
42380 # if CDPATH is set.
42381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42383 sed_quote_subst='$sed_quote_subst'
42384 double_quote_subst='$double_quote_subst'
42385 delay_variable_subst='$delay_variable_subst'
42386 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
42387 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
42388 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
42389 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
42390 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
42391 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
42392 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
42393 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
42394 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
42395 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
42396 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
42397 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
42398 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
42399 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
42400 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
42401 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
42402 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
42403 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
42404 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
42405 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
42406 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
42407 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
42408 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
42409 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
42410 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
42411 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
42412 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
42413 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42414 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
42415 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
42416 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
42417 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
42418 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42419 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
42420 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
42421 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42422 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42423 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42424 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
42425 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
42426 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
42427 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
42428 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
42429 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
42430 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"`'
42431 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"`'
42432 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
42433 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
42434 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
42435 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
42436 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
42437 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
42438 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
42439 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
42440 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
42441 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
42442 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
42443 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
42444 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
42445 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
42446 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
42447 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
42448 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42449 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42450 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
42451 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
42452 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42453 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42454 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
42455 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42456 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42457 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42458 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42459 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42460 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42461 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
42462 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42463 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
42464 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
42465 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
42466 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
42467 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
42468 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
42469 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
42470 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42471 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
42472 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
42473 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
42474 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
42475 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
42476 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42477 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42478 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
42479 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42480 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
42481 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
42482 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
42483 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
42484 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
42485 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42486 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
42487 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
42488 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42489 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
42490 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
42491 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42492 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42493 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
42494 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
42495 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
42496 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42497 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
42498 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
42499 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
42500 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
42501 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
42502 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
42503 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
42504 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
42505 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42506 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
42507 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
42508 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
42509 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
42510 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42511 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42512 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42513 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42514 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42515 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42516 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42517 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42518 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42519 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42520 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42521 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42522 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42523 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42524 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42525 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42526 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42527 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42528 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42529 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42530 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42531 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42532 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42533 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42534 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42535 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42536 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42537 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42538 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42539 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42540 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42541 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42542 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42543 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42544 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42545 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42546 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42547 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42548 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42549 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42550 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42551 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42552 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42553 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42554 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42555 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42556 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
42559 LTCFLAGS='$LTCFLAGS'
42560 compiler='$compiler_DEFAULT'
42562 # Quote evaled strings.
42574 deplibs_check_method \
42583 lt_cv_sys_global_symbol_pipe \
42584 lt_cv_sys_global_symbol_to_cdecl \
42585 lt_cv_sys_global_symbol_to_c_name_address \
42586 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42589 lt_prog_compiler_no_builtin_flag \
42590 lt_prog_compiler_wl \
42591 lt_prog_compiler_pic \
42592 lt_prog_compiler_static \
42593 lt_cv_prog_compiler_c_o \
42601 export_dynamic_flag_spec \
42602 whole_archive_flag_spec \
42603 compiler_needs_object \
42605 allow_undefined_flag \
42606 no_undefined_flag \
42607 hardcode_libdir_flag_spec \
42608 hardcode_libdir_flag_spec_ld \
42609 hardcode_libdir_separator \
42614 variables_saved_for_relink \
42616 library_names_spec \
42621 compiler_lib_search_dirs \
42626 compiler_lib_search_path \
42629 lt_prog_compiler_no_builtin_flag_CXX \
42630 lt_prog_compiler_wl_CXX \
42631 lt_prog_compiler_pic_CXX \
42632 lt_prog_compiler_static_CXX \
42633 lt_cv_prog_compiler_c_o_CXX \
42634 export_dynamic_flag_spec_CXX \
42635 whole_archive_flag_spec_CXX \
42636 compiler_needs_object_CXX \
42638 allow_undefined_flag_CXX \
42639 no_undefined_flag_CXX \
42640 hardcode_libdir_flag_spec_CXX \
42641 hardcode_libdir_flag_spec_ld_CXX \
42642 hardcode_libdir_separator_CXX \
42643 fix_srcfile_path_CXX \
42644 exclude_expsyms_CXX \
42645 include_expsyms_CXX \
42646 file_list_spec_CXX \
42647 compiler_lib_search_dirs_CXX \
42648 predep_objects_CXX \
42649 postdep_objects_CXX \
42652 compiler_lib_search_path_CXX; do
42653 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42654 *[\\\\\\\`\\"\\\$]*)
42655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
42658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42663 # Double-quote double-evaled strings.
42664 for var in reload_cmds \
42665 old_postinstall_cmds \
42666 old_postuninstall_cmds \
42668 extract_expsyms_cmds \
42669 old_archive_from_new_cmds \
42670 old_archive_from_expsyms_cmds \
42672 archive_expsym_cmds \
42674 module_expsym_cmds \
42675 export_symbols_cmds \
42678 postuninstall_cmds \
42680 sys_lib_search_path_spec \
42681 sys_lib_dlsearch_path_spec \
42682 old_archive_cmds_CXX \
42683 old_archive_from_new_cmds_CXX \
42684 old_archive_from_expsyms_cmds_CXX \
42686 archive_expsym_cmds_CXX \
42688 module_expsym_cmds_CXX \
42689 export_symbols_cmds_CXX \
42690 prelink_cmds_CXX; do
42691 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
42692 *[\\\\\\\`\\"\\\$]*)
42693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
42696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42701 # Fix-up fallback echo if it was mangled by the above quoting rules.
42703 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
42707 ac_aux_dir='$ac_aux_dir'
42708 xsi_shell='$xsi_shell'
42709 lt_shell_append='$lt_shell_append'
42711 # See if we are running on zsh, and set the options which allow our
42712 # commands through without removal of \ escapes INIT.
42713 if test -n "\${ZSH_VERSION+set}" ; then
42714 setopt NO_GLOB_SUBST
42720 TIMESTAMP='$TIMESTAMP'
42728 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
42729 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
42731 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
42732 # Capture the value of LINGUAS because we need it to compute CATALOGS.
42733 LINGUAS="${LINGUAS-%UNSET%}"
42738 cat >>$CONFIG_STATUS <<\_ACEOF
42740 # Handling of arguments.
42741 for ac_config_target in $ac_config_targets
42743 case $ac_config_target in
42744 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
42745 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42746 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
42747 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
42748 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42749 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
42750 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
42751 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
42752 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
42753 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
42754 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
42755 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
42756 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
42757 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
42758 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
42759 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
42760 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
42761 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
42762 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42763 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
42764 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
42765 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
42766 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
42767 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
42768 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
42769 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
42770 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
42771 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
42772 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
42773 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
42774 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
42775 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
42776 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
42777 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
42778 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
42779 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
42780 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
42781 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
42782 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
42783 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
42784 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
42785 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42786 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
42787 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
42788 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
42789 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
42790 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
42791 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
42792 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
42793 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
42794 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
42795 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
42796 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
42797 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
42798 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
42799 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
42800 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
42801 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
42802 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
42803 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
42804 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
42805 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
42806 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
42807 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
42808 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
42809 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
42810 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
42811 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
42812 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
42813 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
42814 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
42815 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
42816 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
42817 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
42818 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
42819 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
42820 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
42821 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
42822 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
42823 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
42824 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
42825 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
42826 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
42827 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
42828 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
42829 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
42830 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
42831 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
42832 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
42833 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
42834 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
42835 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
42836 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
42837 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
42838 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
42839 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
42840 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
42841 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
42842 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
42843 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
42844 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
42845 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
42846 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
42847 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
42848 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
42849 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
42850 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
42851 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
42852 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
42853 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
42854 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
42855 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
42856 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
42857 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
42858 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42860 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42861 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42862 { (exit 1); exit 1; }; };;
42867 # If the user did not use the arguments to specify the items to instantiate,
42868 # then the envvar interface is used. Set only those that are not.
42869 # We use the long form for the default assignment because of an extremely
42870 # bizarre bug on SunOS 4.1.3.
42871 if $ac_need_defaults; then
42872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42877 # Have a temporary directory for convenience. Make it in the build tree
42878 # simply because there is no reason against having it here, and in addition,
42879 # creating and moving files from /tmp can sometimes cause problems.
42880 # Hook for its removal unless debugging.
42881 # Note that there is a small window in which the directory will not be cleaned:
42882 # after its creation but before its name has been assigned to `$tmp'.
42886 trap 'exit_status=$?
42887 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42889 trap '{ (exit 1); exit 1; }' 1 2 13 15
42891 # Create a (secure) tmp directory for tmp files.
42894 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42895 test -n "$tmp" && test -d "$tmp"
42898 tmp=./conf$$-$RANDOM
42899 (umask 077 && mkdir "$tmp")
42902 echo "$me: cannot create a temporary directory in ." >&2
42903 { (exit 1); exit 1; }
42907 # Set up the sed scripts for CONFIG_FILES section.
42910 # No need to generate the scripts if there are no CONFIG_FILES.
42911 # This happens for instance when ./config.status config.h
42912 if test -n "$CONFIG_FILES"; then
42916 # Create sed commands to just substitute file output variables.
42918 # Remaining file output variables are in a fragment that also has non-file
42924 for ac_last_try in false false false false false :; do
42925 cat >conf$$subs.sed <<_ACEOF
42926 SHELL!$SHELL$ac_delim
42927 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
42928 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
42929 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
42930 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
42931 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
42932 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
42933 exec_prefix!$exec_prefix$ac_delim
42934 prefix!$prefix$ac_delim
42935 program_transform_name!$program_transform_name$ac_delim
42936 bindir!$bindir$ac_delim
42937 sbindir!$sbindir$ac_delim
42938 libexecdir!$libexecdir$ac_delim
42939 datarootdir!$datarootdir$ac_delim
42940 datadir!$datadir$ac_delim
42941 sysconfdir!$sysconfdir$ac_delim
42942 sharedstatedir!$sharedstatedir$ac_delim
42943 localstatedir!$localstatedir$ac_delim
42944 includedir!$includedir$ac_delim
42945 oldincludedir!$oldincludedir$ac_delim
42946 docdir!$docdir$ac_delim
42947 infodir!$infodir$ac_delim
42948 htmldir!$htmldir$ac_delim
42949 dvidir!$dvidir$ac_delim
42950 pdfdir!$pdfdir$ac_delim
42951 psdir!$psdir$ac_delim
42952 libdir!$libdir$ac_delim
42953 localedir!$localedir$ac_delim
42954 mandir!$mandir$ac_delim
42955 DEFS!$DEFS$ac_delim
42956 ECHO_C!$ECHO_C$ac_delim
42957 ECHO_N!$ECHO_N$ac_delim
42958 ECHO_T!$ECHO_T$ac_delim
42959 LIBS!$LIBS$ac_delim
42960 build_alias!$build_alias$ac_delim
42961 host_alias!$host_alias$ac_delim
42962 target_alias!$target_alias$ac_delim
42963 BUILD_DIR!$BUILD_DIR$ac_delim
42964 TOP_DIR!$TOP_DIR$ac_delim
42965 TRUEPRG!$TRUEPRG$ac_delim
42966 FALSEPRG!$FALSEPRG$ac_delim
42967 VERSION!$VERSION$ac_delim
42968 DATE!$DATE$ac_delim
42969 LSMDATE!$LSMDATE$ac_delim
42970 BACULA!$BACULA$ac_delim
42971 post_host!$post_host$ac_delim
42973 CFLAGS!$CFLAGS$ac_delim
42974 LDFLAGS!$LDFLAGS$ac_delim
42975 CPPFLAGS!$CPPFLAGS$ac_delim
42976 ac_ct_CC!$ac_ct_CC$ac_delim
42977 EXEEXT!$EXEEXT$ac_delim
42978 OBJEXT!$OBJEXT$ac_delim
42980 CXXFLAGS!$CXXFLAGS$ac_delim
42981 ac_ct_CXX!$ac_ct_CXX$ac_delim
42983 GREP!$GREP$ac_delim
42984 EGREP!$EGREP$ac_delim
42985 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
42986 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
42987 INSTALL_DATA!$INSTALL_DATA$ac_delim
42989 REMOVE!$REMOVE$ac_delim
42992 ECHO!$ECHO$ac_delim
42996 OPENSSL!$OPENSSL$ac_delim
42999 MKISOFS!$MKISOFS$ac_delim
43000 PYTHON!$PYTHON$ac_delim
43001 GROWISOFS!$GROWISOFS$ac_delim
43002 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
43003 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
43004 PKGCONFIG!$PKGCONFIG$ac_delim
43005 QMAKE!$QMAKE$ac_delim
43006 QMAKEQT4!$QMAKEQT4$ac_delim
43007 WXCONFIG!$WXCONFIG$ac_delim
43008 WXFLAGS!$WXFLAGS$ac_delim
43009 CDRECORD!$CDRECORD$ac_delim
43010 PIDOF!$PIDOF$ac_delim
43012 ARFLAGS!$ARFLAGS$ac_delim
43013 MAKE_SHELL!$MAKE_SHELL$ac_delim
43014 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
43015 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
43016 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
43017 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
43018 LIBTOOL!$LIBTOOL$ac_delim
43019 build!$build$ac_delim
43022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
43024 elif $ac_last_try; then
43025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43026 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43027 { (exit 1); exit 1; }; }
43029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43033 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43034 if test -n "$ac_eof"; then
43035 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43036 ac_eof=`expr $ac_eof + 1`
43039 cat >>$CONFIG_STATUS <<_ACEOF
43040 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43042 /^[ ]*@MCOMMON@[ ]*$/{
43048 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43049 s/^/s,@/; s/!/@,|#_!!_#|/
43052 s/'"$ac_delim"'$/,g/; t
43054 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43055 ' >>$CONFIG_STATUS <conf$$subs.sed
43056 rm -f conf$$subs.sed
43057 cat >>$CONFIG_STATUS <<_ACEOF
43063 for ac_last_try in false false false false false :; do
43064 cat >conf$$subs.sed <<_ACEOF
43065 build_cpu!$build_cpu$ac_delim
43066 build_vendor!$build_vendor$ac_delim
43067 build_os!$build_os$ac_delim
43068 host!$host$ac_delim
43069 host_cpu!$host_cpu$ac_delim
43070 host_vendor!$host_vendor$ac_delim
43071 host_os!$host_os$ac_delim
43072 FGREP!$FGREP$ac_delim
43074 DUMPBIN!$DUMPBIN$ac_delim
43075 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
43077 LN_S!$LN_S$ac_delim
43078 OBJDUMP!$OBJDUMP$ac_delim
43079 STRIP!$STRIP$ac_delim
43080 RANLIB!$RANLIB$ac_delim
43081 lt_ECHO!$lt_ECHO$ac_delim
43082 DSYMUTIL!$DSYMUTIL$ac_delim
43083 NMEDIT!$NMEDIT$ac_delim
43084 LIPO!$LIPO$ac_delim
43085 OTOOL!$OTOOL$ac_delim
43086 OTOOL64!$OTOOL64$ac_delim
43087 CXXCPP!$CXXCPP$ac_delim
43088 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
43089 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
43090 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
43091 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
43092 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
43093 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
43094 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
43095 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
43096 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
43097 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
43098 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
43099 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
43100 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
43101 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
43102 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
43103 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
43104 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
43105 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
43106 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
43107 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
43108 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
43109 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
43110 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
43111 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
43112 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
43113 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
43114 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
43115 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
43116 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
43117 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
43118 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
43119 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
43120 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
43121 SET_MAKE!$SET_MAKE$ac_delim
43122 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
43123 USE_NLS!$USE_NLS$ac_delim
43124 MSGFMT!$MSGFMT$ac_delim
43125 GMSGFMT!$GMSGFMT$ac_delim
43126 XGETTEXT!$XGETTEXT$ac_delim
43127 MSGMERGE!$MSGMERGE$ac_delim
43128 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
43129 LIBICONV!$LIBICONV$ac_delim
43130 LTLIBICONV!$LTLIBICONV$ac_delim
43131 INTLLIBS!$INTLLIBS$ac_delim
43132 LIBINTL!$LIBINTL$ac_delim
43133 LTLIBINTL!$LTLIBINTL$ac_delim
43134 POSUB!$POSUB$ac_delim
43135 GLIBC2!$GLIBC2$ac_delim
43136 ALLOCA!$ALLOCA$ac_delim
43137 GLIBC21!$GLIBC21$ac_delim
43138 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
43139 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
43140 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
43141 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
43142 INTLBISON!$INTLBISON$ac_delim
43143 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
43144 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
43145 CATOBJEXT!$CATOBJEXT$ac_delim
43146 DATADIRNAME!$DATADIRNAME$ac_delim
43147 INSTOBJEXT!$INSTOBJEXT$ac_delim
43148 GENCAT!$GENCAT$ac_delim
43149 INTLOBJS!$INTLOBJS$ac_delim
43150 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
43151 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
43152 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
43153 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
43154 GNOME_LIBS!$GNOME_LIBS$ac_delim
43155 GNOME_DIR!$GNOME_DIR$ac_delim
43156 BAT_DIR!$BAT_DIR$ac_delim
43157 QWT_INC!$QWT_INC$ac_delim
43158 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
43159 QWT_LIB!$QWT_LIB$ac_delim
43161 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
43164 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43166 elif $ac_last_try; then
43167 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43168 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43169 { (exit 1); exit 1; }; }
43171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43175 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43176 if test -n "$ac_eof"; then
43177 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43178 ac_eof=`expr $ac_eof + 1`
43181 cat >>$CONFIG_STATUS <<_ACEOF
43182 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43183 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43186 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43187 s/^/s,@/; s/!/@,|#_!!_#|/
43190 s/'"$ac_delim"'$/,g/; t
43192 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43193 ' >>$CONFIG_STATUS <conf$$subs.sed
43194 rm -f conf$$subs.sed
43195 cat >>$CONFIG_STATUS <<_ACEOF
43201 for ac_last_try in false false false false false :; do
43202 cat >conf$$subs.sed <<_ACEOF
43203 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
43204 WX_DIR!$WX_DIR$ac_delim
43205 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
43206 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
43207 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
43208 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
43209 STATIC_FD!$STATIC_FD$ac_delim
43210 STATIC_SD!$STATIC_SD$ac_delim
43211 STATIC_DIR!$STATIC_DIR$ac_delim
43212 STATIC_CONS!$STATIC_CONS$ac_delim
43213 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
43214 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
43215 ALL_DIRS!$ALL_DIRS$ac_delim
43216 DIRD_DIR!$DIRD_DIR$ac_delim
43217 DIR_TOOLS!$DIR_TOOLS$ac_delim
43218 STORED_DIR!$STORED_DIR$ac_delim
43219 CONS_INC!$CONS_INC$ac_delim
43220 CONS_OBJ!$CONS_OBJ$ac_delim
43221 CONS_SRC!$CONS_SRC$ac_delim
43222 CONS_LIBS!$CONS_LIBS$ac_delim
43223 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
43224 READLINE_SRC!$READLINE_SRC$ac_delim
43225 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
43226 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
43227 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
43228 OPENSSL_INC!$OPENSSL_INC$ac_delim
43229 working_dir!$working_dir$ac_delim
43230 archivedir!$archivedir$ac_delim
43231 scriptdir!$scriptdir$ac_delim
43232 plugindir!$plugindir$ac_delim
43233 dump_email!$dump_email$ac_delim
43234 job_email!$job_email$ac_delim
43235 smtp_host!$smtp_host$ac_delim
43236 piddir!$piddir$ac_delim
43237 subsysdir!$subsysdir$ac_delim
43238 baseport!$baseport$ac_delim
43239 dir_port!$dir_port$ac_delim
43240 fd_port!$fd_port$ac_delim
43241 sd_port!$sd_port$ac_delim
43242 dir_password!$dir_password$ac_delim
43243 fd_password!$fd_password$ac_delim
43244 sd_password!$sd_password$ac_delim
43245 mon_dir_password!$mon_dir_password$ac_delim
43246 mon_fd_password!$mon_fd_password$ac_delim
43247 mon_sd_password!$mon_sd_password$ac_delim
43248 db_name!$db_name$ac_delim
43249 db_user!$db_user$ac_delim
43250 db_password!$db_password$ac_delim
43251 db_port!$db_port$ac_delim
43252 dir_user!$dir_user$ac_delim
43253 dir_group!$dir_group$ac_delim
43254 sd_user!$sd_user$ac_delim
43255 sd_group!$sd_group$ac_delim
43256 fd_user!$fd_user$ac_delim
43257 fd_group!$fd_group$ac_delim
43258 SBINPERM!$SBINPERM$ac_delim
43259 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
43260 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
43261 SQL_BINDIR!$SQL_BINDIR$ac_delim
43262 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
43263 uncomment_dbi!$uncomment_dbi$ac_delim
43264 DB_PROG!$DB_PROG$ac_delim
43265 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
43266 cats!$cats$ac_delim
43267 DB_TYPE!$DB_TYPE$ac_delim
43268 GETCONF!$GETCONF$ac_delim
43269 XMKMF!$XMKMF$ac_delim
43270 X_CFLAGS!$X_CFLAGS$ac_delim
43271 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43272 X_LIBS!$X_LIBS$ac_delim
43273 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43274 LIBOBJS!$LIBOBJS$ac_delim
43275 FDLIBS!$FDLIBS$ac_delim
43276 DEBUG!$DEBUG$ac_delim
43277 DINCLUDE!$DINCLUDE$ac_delim
43278 DLIB!$DLIB$ac_delim
43279 DB_LIBS!$DB_LIBS$ac_delim
43280 WCFLAGS!$WCFLAGS$ac_delim
43281 WLDFLAGS!$WLDFLAGS$ac_delim
43282 WRAPLIBS!$WRAPLIBS$ac_delim
43283 OBJLIST!$OBJLIST$ac_delim
43284 hostname!$hostname$ac_delim
43285 TAPEDRIVE!$TAPEDRIVE$ac_delim
43286 PSCMD!$PSCMD$ac_delim
43287 WIN32!$WIN32$ac_delim
43288 MACOSX!$MACOSX$ac_delim
43289 DISTNAME!$DISTNAME$ac_delim
43290 DISTVER!$DISTVER$ac_delim
43291 LTLIBOBJS!$LTLIBOBJS$ac_delim
43294 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
43296 elif $ac_last_try; then
43297 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43298 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43299 { (exit 1); exit 1; }; }
43301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43305 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43306 if test -n "$ac_eof"; then
43307 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43308 ac_eof=`expr $ac_eof + 1`
43311 cat >>$CONFIG_STATUS <<_ACEOF
43312 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
43313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43316 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43317 s/^/s,@/; s/!/@,|#_!!_#|/
43320 s/'"$ac_delim"'$/,g/; t
43322 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43323 ' >>$CONFIG_STATUS <conf$$subs.sed
43324 rm -f conf$$subs.sed
43325 cat >>$CONFIG_STATUS <<_ACEOF
43332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43334 # trailing colons and then remove the whole line if VPATH becomes empty
43335 # (actually we leave an empty line to preserve line numbers).
43336 if test "x$srcdir" = x.; then
43337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43338 s/:*\$(srcdir):*/:/
43339 s/:*\${srcdir}:*/:/
43341 s/^\([^=]*=[ ]*\):*/\1/
43347 cat >>$CONFIG_STATUS <<\_ACEOF
43348 fi # test -n "$CONFIG_FILES"
43351 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43354 :[FHLC]) ac_mode=$ac_tag; continue;;
43356 case $ac_mode$ac_tag in
43358 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43359 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43360 { (exit 1); exit 1; }; };;
43361 :[FH]-) ac_tag=-:-;;
43362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43379 -) ac_f="$tmp/stdin";;
43380 *) # Look for the file first in the build tree, then in the source tree
43381 # (if the path is not absolute). The absolute path cannot be DOS-style,
43382 # because $ac_f cannot contain `:'.
43386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43388 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43389 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43390 { (exit 1); exit 1; }; };;
43392 ac_file_inputs="$ac_file_inputs $ac_f"
43395 # Let's still pretend it is `configure' which instantiates (i.e., don't
43396 # use $as_me), people would be surprised to read:
43397 # /* config.h. Generated by config.status. */
43398 configure_input="Generated from "`IFS=:
43399 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43400 if test x"$ac_file" != x-; then
43401 configure_input="$ac_file. $configure_input"
43402 { echo "$as_me:$LINENO: creating $ac_file" >&5
43403 echo "$as_me: creating $ac_file" >&6;}
43407 *:-:* | *:-) cat >"$tmp/stdin";;
43412 ac_dir=`$as_dirname -- "$ac_file" ||
43413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43414 X"$ac_file" : 'X\(//\)[^/]' \| \
43415 X"$ac_file" : 'X\(//\)$' \| \
43416 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43422 /^X\(\/\/\)[^/].*/{
43437 -*) as_dir=./$as_dir;;
43439 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43443 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43444 *) as_qdir=$as_dir;;
43446 as_dirs="'$as_qdir' $as_dirs"
43447 as_dir=`$as_dirname -- "$as_dir" ||
43448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43449 X"$as_dir" : 'X\(//\)[^/]' \| \
43450 X"$as_dir" : 'X\(//\)$' \| \
43451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43457 /^X\(\/\/\)[^/].*/{
43470 test -d "$as_dir" && break
43472 test -z "$as_dirs" || eval "mkdir $as_dirs"
43473 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43475 { (exit 1); exit 1; }; }; }
43479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43482 # A ".." for each directory in $ac_dir_suffix.
43483 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43484 case $ac_top_builddir_sub in
43485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43489 ac_abs_top_builddir=$ac_pwd
43490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43491 # for backward compatibility:
43492 ac_top_builddir=$ac_top_build_prefix
43495 .) # We are building in place.
43497 ac_top_srcdir=$ac_top_builddir_sub
43498 ac_abs_top_srcdir=$ac_pwd ;;
43499 [\\/]* | ?:[\\/]* ) # Absolute name.
43500 ac_srcdir=$srcdir$ac_dir_suffix;
43501 ac_top_srcdir=$srcdir
43502 ac_abs_top_srcdir=$srcdir ;;
43503 *) # Relative name.
43504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43505 ac_top_srcdir=$ac_top_build_prefix$srcdir
43506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43518 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43519 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43523 cat >>$CONFIG_STATUS <<\_ACEOF
43524 # If the template does not know about datarootdir, expand it.
43525 # FIXME: This hack should be removed a few years after 2.60.
43526 ac_datarootdir_hack=; ac_datarootdir_seen=
43528 case `sed -n '/datarootdir/ {
43537 ' $ac_file_inputs` in
43538 *datarootdir*) ac_datarootdir_seen=yes;;
43539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43540 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43541 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43543 cat >>$CONFIG_STATUS <<_ACEOF
43544 ac_datarootdir_hack='
43545 s&@datadir@&$datadir&g
43546 s&@docdir@&$docdir&g
43547 s&@infodir@&$infodir&g
43548 s&@localedir@&$localedir&g
43549 s&@mandir@&$mandir&g
43550 s&\\\${datarootdir}&$datarootdir&g' ;;
43554 # Neutralize VPATH when `$srcdir' = `.'.
43555 # Shell code in configure.ac might set extrasub.
43556 # FIXME: do we really want to maintain this feature?
43557 cat >>$CONFIG_STATUS <<_ACEOF
43561 cat >>$CONFIG_STATUS <<\_ACEOF
43563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43564 s&@configure_input@&$configure_input&;t t
43565 s&@top_builddir@&$ac_top_builddir_sub&;t t
43566 s&@srcdir@&$ac_srcdir&;t t
43567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43568 s&@top_srcdir@&$ac_top_srcdir&;t t
43569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43570 s&@builddir@&$ac_builddir&;t t
43571 s&@abs_builddir@&$ac_abs_builddir&;t t
43572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43573 s&@INSTALL@&$ac_INSTALL&;t t
43574 $ac_datarootdir_hack
43575 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
43577 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43578 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
43579 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
43580 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43581 which seems to be undefined. Please make sure it is defined." >&5
43582 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43583 which seems to be undefined. Please make sure it is defined." >&2;}
43587 -) cat "$tmp/out"; rm -f "$tmp/out";;
43588 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
43597 # Transform confdefs.h into a sed script `conftest.defines', that
43598 # substitutes the proper values into config.h.in to produce config.h.
43599 rm -f conftest.defines conftest.tail
43600 # First, append a space to every undef/define line, to ease matching.
43601 echo 's/$/ /' >conftest.defines
43602 # Then, protect against being on the right side of a sed subst, or in
43603 # an unquoted here document, in config.status. If some macros were
43604 # called several times there might be several #defines for the same
43605 # symbol, which is useless. But do not sort them, since the last
43606 # AC_DEFINE must be honored.
43607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43608 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
43609 # NAME is the cpp macro being defined, VALUE is the value it is being given.
43610 # PARAMS is the parameter list in the macro definition--in most cases, it's
43611 # just an empty string.
43612 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
43613 ac_dB='\\)[ (].*,\\1define\\2'
43621 s/^[ ]*#[ ]*define[ ][ ]*//
43626 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
43627 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
43628 ' >>conftest.defines
43630 # Remove the space that was appended to ease matching.
43631 # Then replace #undef with comments. This is necessary, for
43632 # example, in the case of _POSIX_SOURCE, which is predefined and required
43633 # on some systems where configure will not decide to define it.
43634 # (The regexp can be short, since the line contains either #define or #undef.)
43636 s,^[ #]*u.*,/* & */,' >>conftest.defines
43638 # Break up conftest.defines:
43639 ac_max_sed_lines=50
43641 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
43642 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
43643 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
43645 ac_in='$ac_file_inputs'
43646 ac_out='"$tmp/out1"'
43647 ac_nxt='"$tmp/out2"'
43651 # Write a here document:
43652 cat >>$CONFIG_STATUS <<_ACEOF
43653 # First, check the format of the line:
43654 cat >"\$tmp/defines.sed" <<\\CEOF
43655 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
43656 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
43660 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
43662 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
43663 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
43664 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
43665 grep . conftest.tail >/dev/null || break
43666 rm -f conftest.defines
43667 mv conftest.tail conftest.defines
43669 rm -f conftest.defines conftest.tail
43671 echo "ac_result=$ac_in" >>$CONFIG_STATUS
43672 cat >>$CONFIG_STATUS <<\_ACEOF
43673 if test x"$ac_file" != x-; then
43674 echo "/* $configure_input */" >"$tmp/config.h"
43675 cat "$ac_result" >>"$tmp/config.h"
43676 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
43677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43678 echo "$as_me: $ac_file is unchanged" >&6;}
43681 mv "$tmp/config.h" $ac_file
43684 echo "/* $configure_input */"
43690 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
43691 echo "$as_me: executing $ac_file commands" >&6;}
43696 case $ac_file$ac_mode in
43699 # See if we are running on zsh, and set the options which allow our
43700 # commands through without removal of \ escapes.
43701 if test -n "${ZSH_VERSION+set}" ; then
43702 setopt NO_GLOB_SUBST
43705 cfgfile="${ofile}T"
43706 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43709 cat <<_LT_EOF >> "$cfgfile"
43712 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
43713 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
43714 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43715 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43717 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43718 # 2006, 2007, 2008 Free Software Foundation, Inc.
43719 # Written by Gordon Matzigkeit, 1996
43721 # This file is part of GNU Libtool.
43723 # GNU Libtool is free software; you can redistribute it and/or
43724 # modify it under the terms of the GNU General Public License as
43725 # published by the Free Software Foundation; either version 2 of
43726 # the License, or (at your option) any later version.
43728 # As a special exception to the GNU General Public License,
43729 # if you distribute this file as part of a program or library that
43730 # is built using GNU Libtool, you may include this file under the
43731 # same distribution terms that you use for the rest of that program.
43733 # GNU Libtool is distributed in the hope that it will be useful,
43734 # but WITHOUT ANY WARRANTY; without even the implied warranty of
43735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43736 # GNU General Public License for more details.
43738 # You should have received a copy of the GNU General Public License
43739 # along with GNU Libtool; see the file COPYING. If not, a copy
43740 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
43741 # obtained by writing to the Free Software Foundation, Inc.,
43742 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
43745 # The names of the tagged configurations supported by this script.
43746 available_tags="CXX "
43748 # ### BEGIN LIBTOOL CONFIG
43750 # Which release of libtool.m4 was used?
43751 macro_version=$macro_version
43752 macro_revision=$macro_revision
43754 # Whether or not to build shared libraries.
43755 build_libtool_libs=$enable_shared
43757 # Whether or not to build static libraries.
43758 build_old_libs=$enable_static
43760 # What type of objects to build.
43763 # Whether or not to optimize for fast installation.
43764 fast_install=$enable_fast_install
43767 host_alias=$host_alias
43771 # The build system.
43772 build_alias=$build_alias
43776 # A sed program that does not truncate output.
43779 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43780 Xsed="\$SED -e 1s/^X//"
43782 # A grep program that handles long lines.
43788 # A literal string matcher.
43791 # A BSD- or MS-compatible name lister.
43794 # Whether we need soft or hard links.
43797 # What is the maximum length of a command?
43798 max_cmd_len=$max_cmd_len
43800 # Object file suffix (normally "o").
43803 # Executable file suffix (normally "").
43806 # whether the shell understands "unset".
43809 # turn spaces into newlines.
43812 # turn newlines into spaces.
43815 # How to create reloadable object files.
43816 reload_flag=$lt_reload_flag
43817 reload_cmds=$lt_reload_cmds
43819 # An object symbol dumper.
43820 OBJDUMP=$lt_OBJDUMP
43822 # Method to check whether dependent libraries are shared objects.
43823 deplibs_check_method=$lt_deplibs_check_method
43825 # Command to use when deplibs_check_method == "file_magic".
43826 file_magic_cmd=$lt_file_magic_cmd
43830 AR_FLAGS=$lt_AR_FLAGS
43832 # A symbol stripping program.
43835 # Commands used to install an old-style archive.
43837 old_postinstall_cmds=$lt_old_postinstall_cmds
43838 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43843 # LTCC compiler flags.
43844 LTCFLAGS=$lt_CFLAGS
43846 # Take the output of nm and produce a listing of raw symbols and C names.
43847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43849 # Transform the output of nm in a proper C declaration.
43850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43852 # Transform the output of nm in a C name address pair.
43853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43855 # Transform the output of nm in a C name address pair when lib prefix is needed.
43856 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43858 # The name of the directory that contains temporary libtool files.
43861 # Shell to use when invoking shell scripts.
43864 # An echo program that does not interpret backslashes.
43867 # Used to examine libraries when file_magic_cmd begins with "file".
43868 MAGIC_CMD=$MAGIC_CMD
43870 # Must we lock files when doing compilation?
43871 need_locks=$lt_need_locks
43873 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43874 DSYMUTIL=$lt_DSYMUTIL
43876 # Tool to change global to local symbols on Mac OS X.
43879 # Tool to manipulate fat objects and archives on Mac OS X.
43882 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43885 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43886 OTOOL64=$lt_OTOOL64
43888 # Old archive suffix (normally "a").
43891 # Shared library suffix (normally ".so").
43892 shrext_cmds=$lt_shrext_cmds
43894 # The commands to extract the exported symbol list from a shared archive.
43895 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43897 # Variables whose values should be saved in libtool wrapper scripts and
43898 # restored at link time.
43899 variables_saved_for_relink=$lt_variables_saved_for_relink
43901 # Do we need the "lib" prefix for modules?
43902 need_lib_prefix=$need_lib_prefix
43904 # Do we need a version for libraries?
43905 need_version=$need_version
43907 # Library versioning type.
43908 version_type=$version_type
43910 # Shared library runtime path variable.
43911 runpath_var=$runpath_var
43913 # Shared library path variable.
43914 shlibpath_var=$shlibpath_var
43916 # Is shlibpath searched before the hard-coded library search path?
43917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43919 # Format of library name prefix.
43920 libname_spec=$lt_libname_spec
43922 # List of archive names. First name is the real one, the rest are links.
43923 # The last name is the one that the linker finds with -lNAME
43924 library_names_spec=$lt_library_names_spec
43926 # The coded name of the library, if different from the real name.
43927 soname_spec=$lt_soname_spec
43929 # Command to use after installation of a shared archive.
43930 postinstall_cmds=$lt_postinstall_cmds
43932 # Command to use after uninstallation of a shared archive.
43933 postuninstall_cmds=$lt_postuninstall_cmds
43935 # Commands used to finish a libtool library installation in a directory.
43936 finish_cmds=$lt_finish_cmds
43938 # As "finish_cmds", except a single script fragment to be evaled but
43940 finish_eval=$lt_finish_eval
43942 # Whether we should hardcode library paths into libraries.
43943 hardcode_into_libs=$hardcode_into_libs
43945 # Compile-time system search path for libraries.
43946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43948 # Run-time system search path for libraries.
43949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43951 # Whether dlopen is supported.
43952 dlopen_support=$enable_dlopen
43954 # Whether dlopen of programs is supported.
43955 dlopen_self=$enable_dlopen_self
43957 # Whether dlopen of statically linked programs is supported.
43958 dlopen_self_static=$enable_dlopen_self_static
43960 # Commands to strip libraries.
43961 old_striplib=$lt_old_striplib
43962 striplib=$lt_striplib
43965 # The linker used to build libraries.
43968 # Commands used to build an old-style archive.
43969 old_archive_cmds=$lt_old_archive_cmds
43971 # A language specific compiler.
43974 # Is the compiler the GNU compiler?
43977 # Compiler flag to turn off builtin functions.
43978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43980 # How to pass a linker flag through the compiler.
43981 wl=$lt_lt_prog_compiler_wl
43983 # Additional compiler flags for building library objects.
43984 pic_flag=$lt_lt_prog_compiler_pic
43986 # Compiler flag to prevent dynamic linking.
43987 link_static_flag=$lt_lt_prog_compiler_static
43989 # Does compiler simultaneously support -c and -o options?
43990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43992 # Whether or not to add -lc for building shared libraries.
43993 build_libtool_need_lc=$archive_cmds_need_lc
43995 # Whether or not to disallow shared libs when runtime libs are static.
43996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43998 # Compiler flag to allow reflexive dlopens.
43999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
44001 # Compiler flag to generate shared objects directly from archives.
44002 whole_archive_flag_spec=$lt_whole_archive_flag_spec
44004 # Whether the compiler copes with passing no objects directly.
44005 compiler_needs_object=$lt_compiler_needs_object
44007 # Create an old-style archive from a shared archive.
44008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
44010 # Create a temporary old-style archive to link instead of a shared archive.
44011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
44013 # Commands used to build a shared archive.
44014 archive_cmds=$lt_archive_cmds
44015 archive_expsym_cmds=$lt_archive_expsym_cmds
44017 # Commands used to build a loadable module if different from building
44018 # a shared archive.
44019 module_cmds=$lt_module_cmds
44020 module_expsym_cmds=$lt_module_expsym_cmds
44022 # Whether we are building with GNU ld or not.
44023 with_gnu_ld=$lt_with_gnu_ld
44025 # Flag that allows shared libraries with undefined symbols to be built.
44026 allow_undefined_flag=$lt_allow_undefined_flag
44028 # Flag that enforces no undefined symbols.
44029 no_undefined_flag=$lt_no_undefined_flag
44031 # Flag to hardcode \$libdir into a binary during linking.
44032 # This must work even if \$libdir does not exist
44033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44035 # If ld is used when linking, flag to hardcode \$libdir into a binary
44036 # during linking. This must work even if \$libdir does not exist.
44037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
44039 # Whether we need a single "-rpath" flag with a separated argument.
44040 hardcode_libdir_separator=$lt_hardcode_libdir_separator
44042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44043 # DIR into the resulting binary.
44044 hardcode_direct=$hardcode_direct
44046 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44047 # DIR into the resulting binary and the resulting library dependency is
44048 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44049 # library is relocated.
44050 hardcode_direct_absolute=$hardcode_direct_absolute
44052 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44053 # into the resulting binary.
44054 hardcode_minus_L=$hardcode_minus_L
44056 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44057 # into the resulting binary.
44058 hardcode_shlibpath_var=$hardcode_shlibpath_var
44060 # Set to "yes" if building a shared library automatically hardcodes DIR
44061 # into the library and all subsequent libraries and executables linked
44063 hardcode_automatic=$hardcode_automatic
44065 # Set to yes if linker adds runtime paths of dependent libraries
44066 # to runtime path list.
44067 inherit_rpath=$inherit_rpath
44069 # Whether libtool must link a program against all its dependency libraries.
44070 link_all_deplibs=$link_all_deplibs
44072 # Fix the shell variable \$srcfile for the compiler.
44073 fix_srcfile_path=$lt_fix_srcfile_path
44075 # Set to "yes" if exported symbols are required.
44076 always_export_symbols=$always_export_symbols
44078 # The commands to list exported symbols.
44079 export_symbols_cmds=$lt_export_symbols_cmds
44081 # Symbols that should not be listed in the preloaded symbols.
44082 exclude_expsyms=$lt_exclude_expsyms
44084 # Symbols that must always be exported.
44085 include_expsyms=$lt_include_expsyms
44087 # Commands necessary for linking programs (against libraries) with templates.
44088 prelink_cmds=$lt_prelink_cmds
44090 # Specify filename containing input files.
44091 file_list_spec=$lt_file_list_spec
44093 # How to hardcode a shared library path into an executable.
44094 hardcode_action=$hardcode_action
44096 # The directories searched by this compiler when creating a shared library.
44097 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
44099 # Dependencies to place before and after the objects being linked to
44100 # create a shared library.
44101 predep_objects=$lt_predep_objects
44102 postdep_objects=$lt_postdep_objects
44103 predeps=$lt_predeps
44104 postdeps=$lt_postdeps
44106 # The library search path used internally by the compiler when linking
44107 # a shared library.
44108 compiler_lib_search_path=$lt_compiler_lib_search_path
44110 # ### END LIBTOOL CONFIG
44116 cat <<\_LT_EOF >> "$cfgfile"
44117 # AIX sometimes has problems with the GCC collect2 program. For some
44118 # reason, if we set the COLLECT_NAMES environment variable, the problems
44119 # vanish in a puff of smoke.
44120 if test "X${COLLECT_NAMES+set}" != Xset; then
44122 export COLLECT_NAMES
44129 ltmain="$ac_aux_dir/ltmain.sh"
44132 # We use sed instead of cat because bash on DJGPP gets confused if
44133 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44134 # text mode, it properly converts lines to CR/LF. This bash problem
44135 # is reportedly fixed, but why not run on old versions too?
44136 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
44137 || (rm -f "$cfgfile"; exit 1)
44141 cat << \_LT_EOF >> "$cfgfile"
44143 # func_dirname file append nondir_replacement
44144 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44145 # otherwise set result to NONDIR_REPLACEMENT.
44149 */*) func_dirname_result="${1%/*}${2}" ;;
44150 * ) func_dirname_result="${3}" ;;
44154 # func_basename file
44157 func_basename_result="${1##*/}"
44160 # func_dirname_and_basename file append nondir_replacement
44161 # perform func_basename and func_dirname in a single function
44163 # dirname: Compute the dirname of FILE. If nonempty,
44164 # add APPEND to the result, otherwise set result
44165 # to NONDIR_REPLACEMENT.
44166 # value returned in "$func_dirname_result"
44167 # basename: Compute filename of FILE.
44168 # value retuned in "$func_basename_result"
44169 # Implementation must be kept synchronized with func_dirname
44170 # and func_basename. For efficiency, we do not delegate to
44171 # those functions but instead duplicate the functionality here.
44172 func_dirname_and_basename ()
44175 */*) func_dirname_result="${1%/*}${2}" ;;
44176 * ) func_dirname_result="${3}" ;;
44178 func_basename_result="${1##*/}"
44181 # func_stripname prefix suffix name
44182 # strip PREFIX and SUFFIX off of NAME.
44183 # PREFIX and SUFFIX must not contain globbing or regex special
44184 # characters, hashes, percent signs, but SUFFIX may contain a leading
44185 # dot (in which case that matches only a dot).
44188 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
44189 # positional parameters, so assign one to ordinary parameter first.
44190 func_stripname_result=${3}
44191 func_stripname_result=${func_stripname_result#"${1}"}
44192 func_stripname_result=${func_stripname_result%"${2}"}
44198 func_opt_split_opt=${1%%=*}
44199 func_opt_split_arg=${1#*=}
44206 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
44207 *) func_lo2o_result=${1} ;;
44211 # func_xform libobj-or-source
44214 func_xform_result=${1%.*}.lo
44217 # func_arith arithmetic-term...
44220 func_arith_result=$(( $* ))
44224 # STRING may not start with a hyphen.
44227 func_len_result=${#1}
44232 *) # Bourne compatible functions.
44233 cat << \_LT_EOF >> "$cfgfile"
44235 # func_dirname file append nondir_replacement
44236 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
44237 # otherwise set result to NONDIR_REPLACEMENT.
44240 # Extract subdirectory from the argument.
44241 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
44242 if test "X$func_dirname_result" = "X${1}"; then
44243 func_dirname_result="${3}"
44245 func_dirname_result="$func_dirname_result${2}"
44249 # func_basename file
44252 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
44256 # func_stripname prefix suffix name
44257 # strip PREFIX and SUFFIX off of NAME.
44258 # PREFIX and SUFFIX must not contain globbing or regex special
44259 # characters, hashes, percent signs, but SUFFIX may contain a leading
44260 # dot (in which case that matches only a dot).
44261 # func_strip_suffix prefix name
44265 .*) func_stripname_result=`$ECHO "X${3}" \
44266 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
44267 *) func_stripname_result=`$ECHO "X${3}" \
44268 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
44273 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
44274 my_sed_long_arg='1s/^-[^=]*=//'
44279 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
44280 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
44286 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
44289 # func_xform libobj-or-source
44292 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
44295 # func_arith arithmetic-term...
44298 func_arith_result=`expr "$@"`
44302 # STRING may not start with a hyphen.
44305 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
44311 case $lt_shell_append in
44313 cat << \_LT_EOF >> "$cfgfile"
44315 # func_append var value
44316 # Append VALUE to the end of shell variable VAR.
44324 cat << \_LT_EOF >> "$cfgfile"
44326 # func_append var value
44327 # Append VALUE to the end of shell variable VAR.
44338 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
44339 || (rm -f "$cfgfile"; exit 1)
44341 mv -f "$cfgfile" "$ofile" ||
44342 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44346 cat <<_LT_EOF >> "$ofile"
44348 # ### BEGIN LIBTOOL TAG CONFIG: CXX
44350 # The linker used to build libraries.
44353 # Commands used to build an old-style archive.
44354 old_archive_cmds=$lt_old_archive_cmds_CXX
44356 # A language specific compiler.
44357 CC=$lt_compiler_CXX
44359 # Is the compiler the GNU compiler?
44362 # Compiler flag to turn off builtin functions.
44363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
44365 # How to pass a linker flag through the compiler.
44366 wl=$lt_lt_prog_compiler_wl_CXX
44368 # Additional compiler flags for building library objects.
44369 pic_flag=$lt_lt_prog_compiler_pic_CXX
44371 # Compiler flag to prevent dynamic linking.
44372 link_static_flag=$lt_lt_prog_compiler_static_CXX
44374 # Does compiler simultaneously support -c and -o options?
44375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
44377 # Whether or not to add -lc for building shared libraries.
44378 build_libtool_need_lc=$archive_cmds_need_lc_CXX
44380 # Whether or not to disallow shared libs when runtime libs are static.
44381 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
44383 # Compiler flag to allow reflexive dlopens.
44384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
44386 # Compiler flag to generate shared objects directly from archives.
44387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
44389 # Whether the compiler copes with passing no objects directly.
44390 compiler_needs_object=$lt_compiler_needs_object_CXX
44392 # Create an old-style archive from a shared archive.
44393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
44395 # Create a temporary old-style archive to link instead of a shared archive.
44396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
44398 # Commands used to build a shared archive.
44399 archive_cmds=$lt_archive_cmds_CXX
44400 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
44402 # Commands used to build a loadable module if different from building
44403 # a shared archive.
44404 module_cmds=$lt_module_cmds_CXX
44405 module_expsym_cmds=$lt_module_expsym_cmds_CXX
44407 # Whether we are building with GNU ld or not.
44408 with_gnu_ld=$lt_with_gnu_ld_CXX
44410 # Flag that allows shared libraries with undefined symbols to be built.
44411 allow_undefined_flag=$lt_allow_undefined_flag_CXX
44413 # Flag that enforces no undefined symbols.
44414 no_undefined_flag=$lt_no_undefined_flag_CXX
44416 # Flag to hardcode \$libdir into a binary during linking.
44417 # This must work even if \$libdir does not exist
44418 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
44420 # If ld is used when linking, flag to hardcode \$libdir into a binary
44421 # during linking. This must work even if \$libdir does not exist.
44422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
44424 # Whether we need a single "-rpath" flag with a separated argument.
44425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
44427 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44428 # DIR into the resulting binary.
44429 hardcode_direct=$hardcode_direct_CXX
44431 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
44432 # DIR into the resulting binary and the resulting library dependency is
44433 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
44434 # library is relocated.
44435 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
44437 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44438 # into the resulting binary.
44439 hardcode_minus_L=$hardcode_minus_L_CXX
44441 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44442 # into the resulting binary.
44443 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
44445 # Set to "yes" if building a shared library automatically hardcodes DIR
44446 # into the library and all subsequent libraries and executables linked
44448 hardcode_automatic=$hardcode_automatic_CXX
44450 # Set to yes if linker adds runtime paths of dependent libraries
44451 # to runtime path list.
44452 inherit_rpath=$inherit_rpath_CXX
44454 # Whether libtool must link a program against all its dependency libraries.
44455 link_all_deplibs=$link_all_deplibs_CXX
44457 # Fix the shell variable \$srcfile for the compiler.
44458 fix_srcfile_path=$lt_fix_srcfile_path_CXX
44460 # Set to "yes" if exported symbols are required.
44461 always_export_symbols=$always_export_symbols_CXX
44463 # The commands to list exported symbols.
44464 export_symbols_cmds=$lt_export_symbols_cmds_CXX
44466 # Symbols that should not be listed in the preloaded symbols.
44467 exclude_expsyms=$lt_exclude_expsyms_CXX
44469 # Symbols that must always be exported.
44470 include_expsyms=$lt_include_expsyms_CXX
44472 # Commands necessary for linking programs (against libraries) with templates.
44473 prelink_cmds=$lt_prelink_cmds_CXX
44475 # Specify filename containing input files.
44476 file_list_spec=$lt_file_list_spec_CXX
44478 # How to hardcode a shared library path into an executable.
44479 hardcode_action=$hardcode_action_CXX
44481 # The directories searched by this compiler when creating a shared library.
44482 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
44484 # Dependencies to place before and after the objects being linked to
44485 # create a shared library.
44486 predep_objects=$lt_predep_objects_CXX
44487 postdep_objects=$lt_postdep_objects_CXX
44488 predeps=$lt_predeps_CXX
44489 postdeps=$lt_postdeps_CXX
44491 # The library search path used internally by the compiler when linking
44492 # a shared library.
44493 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
44495 # ### END LIBTOOL TAG CONFIG: CXX
44500 for ac_file in $CONFIG_FILES; do
44501 # Support "outfile[:infile[:infile...]]"
44503 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44505 # PO directories have a Makefile.in generated from Makefile.in.in.
44506 case "$ac_file" in */Makefile.in)
44507 # Adjust a relative srcdir.
44508 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44509 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44510 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44511 # In autoconf-2.13 it is called $ac_given_srcdir.
44512 # In autoconf-2.50 it is called $srcdir.
44513 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44514 case "$ac_given_srcdir" in
44515 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44516 /*) top_srcdir="$ac_given_srcdir" ;;
44517 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44519 # Treat a directory as a PO directory if and only if it has a
44520 # POTFILES.in file. This allows packages to have multiple PO
44521 # directories under different names or in different locations.
44522 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44523 rm -f "$ac_dir/POTFILES"
44524 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44525 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44526 POMAKEFILEDEPS="POTFILES.in"
44527 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
44528 # on $ac_dir but don't depend on user-specified configuration
44530 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44531 # The LINGUAS file contains the set of available languages.
44532 if test -n "$OBSOLETE_ALL_LINGUAS"; then
44533 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44535 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44536 # Hide the ALL_LINGUAS assigment from automake.
44537 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44538 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
44540 # The set of available languages was given in configure.in.
44541 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
44544 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
44545 # Compute UPDATEPOFILES
44546 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
44547 # Compute DUMMYPOFILES
44548 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
44550 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
44551 case "$ac_given_srcdir" in
44553 *) srcdirpre='$(srcdir)/' ;;
44559 for lang in $ALL_LINGUAS; do
44560 POFILES="$POFILES $srcdirpre$lang.po"
44561 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44562 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44563 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44565 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44566 # environment variable.
44568 if test -n "$ALL_LINGUAS"; then
44569 for presentlang in $ALL_LINGUAS; do
44571 if test "%UNSET%" != "$LINGUAS"; then
44572 desiredlanguages="$LINGUAS"
44574 desiredlanguages="$ALL_LINGUAS"
44576 for desiredlang in $desiredlanguages; do
44577 # Use the presentlang catalog if desiredlang is
44578 # a. equal to presentlang, or
44579 # b. a variant of presentlang (because in this case,
44580 # presentlang can be used as a fallback for messages
44581 # which are not translated in the desiredlang catalog).
44582 case "$desiredlang" in
44583 "$presentlang"*) useit=yes;;
44586 if test $useit = yes; then
44587 INST_LINGUAS="$INST_LINGUAS $presentlang"
44592 if test -n "$INST_LINGUAS"; then
44593 for lang in $INST_LINGUAS; do
44594 CATALOGS="$CATALOGS $lang.gmo"
44597 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44598 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"
44599 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44600 if test -f "$f"; then
44602 *.orig | *.bak | *~) ;;
44603 *) cat "$f" >> "$ac_dir/Makefile" ;;
44618 { (exit 0); exit 0; }
44620 chmod +x $CONFIG_STATUS
44621 ac_clean_files=$ac_clean_files_save
44624 # configure is writing to config.log, and then calls config.status.
44625 # config.status does its own redirection, appending to config.log.
44626 # Unfortunately, on DOS this fails, as config.log is still kept open
44627 # by configure, so config.status won't be able to write to it; its
44628 # output is simply discarded. So we exec the FD to /dev/null,
44629 # effectively closing config.log, so it can be properly (re)opened and
44630 # appended to by config.status. When coming back to configure, we
44631 # need to make the FD available again.
44632 if test "$no_create" != yes; then
44634 ac_config_status_args=
44635 test "$silent" = yes &&
44636 ac_config_status_args="$ac_config_status_args --quiet"
44638 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44640 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44641 # would make configure fail if this is the last instruction.
44642 $ac_cs_success || { (exit 1); exit 1; }
44646 if test "${support_bat}" = "yes" ; then
44647 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
44648 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
44654 if test "x$QMAKEQT4" != "xnone"; then
44659 chmod 755 install_conf_file build-depkgs-qt-console
44660 echo "Creating bat Makefile"
44666 if test X"$GCC" = "Xyes" ; then
44667 echo "Doing make of dependencies"
44668 ${MAKE:-make} depend
44672 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
44673 chmod 755 dvd-handler dvd-simulator
44674 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
44678 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
44679 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
44683 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
44684 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
44686 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
44687 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
44689 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
44690 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
44692 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
44693 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
44695 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
44696 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
44698 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
44699 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
44701 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
44702 chmod 755 $c/sqlite
44705 chmod 755 src/win32/build-depkgs-mingw32
44707 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
44708 largefile_support="yes"
44711 if test X"$GCC" = "Xyes" ; then
44712 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44713 if test "x${CCVERSION}" = "x" ; then
44714 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44716 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
44717 if test x"${CXXVERSION}" = x ; then
44718 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
44722 # clean up any old junk
44728 if test "x${db_type}" = "xInternal" ; then
44731 echo "You have not specified either --enable-client-only or one of the"
44732 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
44733 echo " This is not permitted. Please reconfigure."
44735 echo "Aborting the configuration ..."
44742 Configuration on `date`:
44744 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
44745 Bacula version: ${BACULA} ${VERSION} (${DATE})
44746 Source code location: ${srcdir}
44747 Install binaries: ${sbindir}
44748 Install libraries: ${libdir}
44749 Install config files: ${sysconfdir}
44750 Scripts directory: ${scriptdir}
44751 Archive directory: ${archivedir}
44752 Working directory: ${working_dir}
44753 PID directory: ${piddir}
44754 Subsys directory: ${subsysdir}
44755 Man directory: ${mandir}
44756 Data directory: ${datarootdir}
44757 Plugin directory: ${plugindir}
44758 C Compiler: ${CC} ${CCVERSION}
44759 C++ Compiler: ${CXX} ${CXXVERSION}
44760 Compiler flags: ${WCFLAGS} ${CFLAGS}
44761 Linker flags: ${WLDFLAGS} ${LDFLAGS}
44763 Statically Linked Tools: ${support_static_tools}
44764 Statically Linked FD: ${support_static_fd}
44765 Statically Linked SD: ${support_static_sd}
44766 Statically Linked DIR: ${support_static_dir}
44767 Statically Linked CONS: ${support_static_cons}
44768 Database type: ${db_type}
44769 Database port: ${db_port}
44770 Database lib: ${DB_LIBS}
44771 Database name: ${db_name}
44772 Database user: ${db_user}
44774 Job Output Email: ${job_email}
44775 Traceback Email: ${dump_email}
44776 SMTP Host Address: ${smtp_host}
44778 Director Port: ${dir_port}
44779 File daemon Port: ${fd_port}
44780 Storage daemon Port: ${sd_port}
44782 Director User: ${dir_user}
44783 Director Group: ${dir_group}
44784 Storage Daemon User: ${sd_user}
44785 Storage DaemonGroup: ${sd_group}
44786 File Daemon User: ${fd_user}
44787 File Daemon Group: ${fd_group}
44789 SQL binaries Directory ${SQL_BINDIR}
44791 Large file support: $largefile_support
44792 Bacula conio support: ${got_conio} ${CONS_LIBS}
44793 readline support: ${got_readline} ${PRTREADLINE_SRC}
44794 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
44795 TLS support: ${support_tls}
44796 Encryption support: ${support_crypto}
44797 ZLIB support: ${have_zlib}
44798 enable-smartalloc: ${support_smartalloc}
44799 bat support: ${support_bat} ${QWT_LDFLAGS}
44800 enable-gnome: ${support_gnome} ${gnome_version}
44801 enable-bwx-console: ${support_wx_console} ${wx_version}
44802 enable-tray-monitor: ${support_tray_monitor}
44803 client-only: ${build_client_only}
44804 build-dird: ${build_dird}
44805 build-stored: ${build_stored}
44806 ACL support: ${have_acl}
44807 XATTR support: ${have_xattr}
44808 Python support: ${support_python} ${PYTHON_LIBS}
44809 Batch insert enabled: ${support_batch_insert}